:root {
    --brand-blue: #003679;
    --brand-orange: #f15a24;
    --text-dark: #1e293b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.center-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* --- POPULAR / REGIONAL DESTINATIONS GRID --- */
.region-block { 
    margin-bottom: 3.5rem; 
}

.region-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--brand-orange);
    padding-left: 12px;
}

.region-title-row h3 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text-dark); 
}

.destination-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.destination-image-card {
    position: relative;
    height: 365px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.destination-image-card:hover { 
    transform: translateY(-5px); 
}

.destination-image-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-image-card:hover img { 
    transform: scale(1.06); 
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
}

.card-title-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    padding: 1.5rem;
    width: 100%;
}

/* --- TRENDING TOURIST DESTINATIONS --- */
.trending-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.trending-icon-item { 
    text-align: center; 
    text-decoration: none; 
    display: block; 
}

.icon-image-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.icon-image-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.trending-icon-item:hover .icon-image-wrapper { 
    transform: translateY(-5px) scale(1.02); 
    border-color: var(--brand-orange); 
}

.trending-icon-item p { 
    font-weight: 700; 
    color: var(--text-dark); 
    font-size: 1rem; 
}
.mega-search-widget {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15); /* Light glassmorphism effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Form Layout */
.single-search-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    padding: 8px 8px 8px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Search Input Field */
.single-search-grid input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1f2937;
    padding: 8px 0;
    font-family: inherit;
}

.single-search-grid input[type="text"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Submit Button */
.single-search-grid button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb; /* Primary Accent Color */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease-in-out;
}

.single-search-grid button[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.single-search-grid button[type="submit"]:active {
    transform: translateY(0);
}

.single-search-grid button[type="submit"] i {
    font-size: 0.95rem;
}

/* Slide Up Animation */
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN (Mobile & Tablets)
   ============================================================ */
@media (max-width: 640px) {
    .mega-search-widget {
        padding: 6px;
        border-radius: 14px;
    }

    .single-search-grid {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .single-search-grid input[type="text"] {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb; /* Soft divider line on mobile */
        border-radius: 0;
    }

    .single-search-grid button[type="submit"] {
        width: 100%;
        padding: 12px 20px;
    }
}
/* Callback Modal Overlay */
.callback-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active State for Modal */
.callback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Callback Modal Card */
.callback-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.callback-modal-overlay.active .callback-modal {
    transform: translateY(0);
}

/* Close Button */
.callback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666666;
    transition: color 0.2s;
}

.callback-modal-close:hover {
    color: #111111;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f172a;
    z-index: 999999; /* Highest priority */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    pointer-events: all;
}

/* Hide Preloader State */
#preloader.preloader-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: #ffffff;
}

/* Flight Path Track */
.flight-path {
    position: relative;
    width: 240px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
}

.flight-line {
    width: 100%;
    height: 2px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.25);
}

.plane-icon {
    position: absolute;
    top: 50%;
    left: 0;
    font-size: 2rem;
    color: #38bdf8;
    transform: translateY(-50%);
    /* Single smooth 1.5s flight motion */
    animation: flyPlane 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
}

/* One-time Takeoff Flight Path Animation */
@keyframes flyPlane {
    0% {
        left: 0%;
        transform: translateY(-50%) rotate(0deg);
    }
    40% {
        transform: translateY(-22px) rotate(-12deg);
    }
    75% {
        transform: translateY(-30px) rotate(8deg);
    }
    100% {
        left: 88%;
        transform: translateY(-50%) rotate(0deg);
    }
}

.preloader-text h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
    font-weight: 700;
}

.preloader-text h3 span {
    color: #f97316;
}

.preloader-text p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* ============== callback modal =================== */

/* Base Overlay Styling */
.callback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px); /* Glassmorphism Effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

/* Modal Open State (Add this class via JS when showing modal) */
.callback-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box Container */
.callback-modal {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Slide/Pop-in Animation on Active */
.callback-overlay.active .callback-modal {
  transform: translateY(0) scale(1);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #888888;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.close-btn:hover {
  color: #111111;
  background-color: #f0f0f0;
}

/* Headings & Text */
.callback-modal h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.callback-modal p {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
}

/* Form Layout & Inputs */
.callback-modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Input Wrapper (Agar aapne input aur icon ko ek div me rakha hai) */
.input-group {
  position: relative;
  width: 100%;
}

.input-group i, 
.input-group svg,
.input-group .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a94a6; 
  font-size: 16px;
  pointer-events: none; 
}

/* Main Input Fix - Padding-left ko 42px/45px set karo */
.callback-modal input {
  width: 100%;
  padding: 12px 16px 12px 42px; /* Top Right Bottom LEFT */
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  background-color: #f8fafc;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.callback-modal input:focus {
  background-color: #ffffff;
  border-color: #ff4d29; /* Orange theme color */
  box-shadow: 0 0 0 3px rgba(255, 77, 41, 0.15);
}

.callback-modal input::placeholder {
  color: #a0aec0;
}

.callback-modal input:focus {
  background-color: #ffffff;
  border-color: #000000; /* Primary brand color ke mutabiq change kar sakte ho */
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Submit Button */
.callback-modal button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  background-color: #000000; /* Main CTA color */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.callback-modal button[type="submit"]:hover {
  background-color: #222222;
}

.callback-modal button[type="submit"]:active {
  transform: scale(0.98);
}