/* ============================================================
   TGV WORLDWIDE HOLIDAYS — responsive.css
   Media Queries & Responsive Layout Overrides
   ============================================================ */

/* ---- Large Desktop (1280px+) ---- */
@media (min-width: 1280px) {
  :root { --container-px: 2rem; }
}

/* ---- Desktop (1024px - 1279px) ---- */
@media (max-width: 1279px) {
  .hero-title { font-size: 4.5rem; }
}

/* ---- Tablet Landscape (1023px and below) ---- */
@media (max-width: 1023px) {

  /* Nav */
  .nav-links,
  .nav-actions { display: none; }

  .nav-hamburger { display: flex; }
  
  .nav-col-left {
    grid-column: 2;
    justify-self: center;
  }
  
  .nav-col-right {
    grid-column: 1;
    justify-self: start;
    grid-row: 1;
  }

  .nav-mobile {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: none;
    margin-inline: auto;
  }

  .hero-header {
    align-items: center;
  }

  .hero-underline {
    margin-inline: auto;
  }

  .hero-desc {
    margin-inline: auto;
    max-width: 520px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-images {
    min-height: 285px;
    max-width: 470px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-img-main {
    width: 67%;
  }

  .hero-img-secondary {
    width: 48%;
    bottom: 4%;
  }

  .hero-img-accent { width: 40%; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-badge {
    bottom: -1.5rem;
    left: -1rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .review-page-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Tablet Portrait (767px and below) ---- */
@media (max-width: 767px) {

  /* Typography scale */
  .page-hero { padding: 8.5rem 0 3rem; }

  .section-pad { padding-block: 3rem; }
  .section-pad-sm { padding-block: 2.25rem; }

  /* Premium Right Nav Badge Mobile */
  .nav-badge-container {
    padding-right: 0;
  }
  .nav-badge-img {
    height: 70px;
    width: 70px;
  }

  /* Hero */
  .hero-images { 
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-img-main {
    width: 100% !important;
    aspect-ratio: 4/5 !important;
    max-height: 60vh !important;
    margin-inline: auto;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
  }
  
  .hero-img-main video,
  .hero-img-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px;
    display: block;
  }

  .hero-img-secondary {
    display: none; /* Hide the smaller floating images on mobile to keep it clean */
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-header {
    align-items: center;
  }

  .hero-underline {
    margin-inline: auto;
  }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-6-cols { grid-template-columns: 1fr 1fr; }

  /* Experience grid */
  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Destination grid — override .grid-3 three-column default */
  #destGrid.grid-3.destination-grid,
  .destination-grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem;
  }

  /* Destination filter pills */
  .dest-filter-bar {
    gap: 0.5rem 0.625rem;
    row-gap: 0.75rem;
    margin-bottom: 2rem;
    padding-inline: 0.25rem;
    justify-content: center;
    align-content: flex-start;
  }

  .dest-filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
  }

  /* Destination card labels — prevent text clipping in rounded cards */
  #destGrid .destination-card {
    aspect-ratio: 4 / 3 !important;
    min-height: 10.5rem;
    border-radius: var(--radius-md);
  }

  .dest-card-label {
    padding: 1rem 0.875rem 0.875rem;
    min-height: 5.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 65%, transparent 100%);
  }

  .dest-card-label h3 {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .dest-card-label p {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  /* FAB clearance for grid sections */
  #destGrid,
  .destination-grid {
    padding-bottom: 5.5rem;
  }

  .chatbot-float,
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .back-to-top {
    bottom: 5.25rem;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Customize */
  .customize-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Banner */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  /* Feature cards */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Form row */
  .form-row {
    grid-template-columns: 1fr;
  }

  .review-rating-options {
    grid-template-columns: repeat(5, minmax(2.5rem, 1fr));
  }

  /* Payment options */
  .payment-options {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Preloader (mobile & tablet) ---- */
@media (max-width: 767px) {
  .preloader-title { font-size: 2rem; letter-spacing: 0.06em; }
  .preloader-subtitle { font-size: 0.7rem; letter-spacing: 0.2em; }
  .preloader-logo-container { width: 5.5rem; height: 5.5rem; }
  .preloader-logo { width: 4.25rem; height: 4.25rem; }
  .preloader-content { gap: 1.25rem; }
}

/* ---- Mobile (479px and below) ---- */
@media (max-width: 479px) {

  :root { --container-px: 1.25rem; }

  .hero-title { font-size: 2.75rem; }

  .page-hero-title { font-size: 2.25rem; }

  .section-title { font-size: 1.875rem; }

  .experience-grid,
  #destGrid.grid-3.destination-grid,
  .destination-grid.grid-3,
  .destination-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number { font-size: 2.25rem; }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .nav-mobile a {
    font-size: 1.5rem;
  }
  
  .nav-mobile .btn {
    font-size: 1.125rem;
    width: 100%;
    justify-content: center;
    padding-block: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dest-filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    row-gap: 0;
  }

  .dest-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .dest-filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
  }

  #destGrid .destination-card {
    min-height: 13rem;
    aspect-ratio: 16 / 11 !important;
    border-radius: var(--radius-md);
  }

  .dest-card-label {
    padding: 1.125rem 1rem 1rem;
    min-height: 5.75rem;
  }

  .dest-card-label h3 {
    font-size: 1.25rem;
  }

  .dest-card-label p {
    font-size: 0.8125rem;
  }

  #destGrid,
  .destination-grid {
    padding-bottom: 7rem;
  }

  .chatbot-float {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .back-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .form-card { padding: 1.5rem; }

  .about-badge {
    position: static;
    margin-top: 1.5rem;
    max-width: 100%;
  }
}

/* ---- Print ---- */
@media print {
  #navbar,
  .chatbot-float,
  .back-to-top,
  .nav-mobile { display: none; }

  body { background: #fff; }

  .hero { min-height: auto; padding: 2rem 0; }

  * { animation: none !important; transition: none !important; }
}
/* Desktop */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 380px;
    height: 620px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999999;
    transition: all .3s ease;
}

/* Mobile - Full Screen */
@media (max-width: 768px) {
    .chatbot-window {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100vw;
        height: 100vh;

        max-width: 100vw;
        max-height: 100vh;

        border-radius: 0;
        margin: 0;
        padding: 0;

        z-index: 999999;
    }

    .chatbot-header {
        height: 70px;
        padding: 20px;
    }

    .chatbot-messages {
        flex: 1;
        overflow-y: auto;
    }

    .chatbot-input {
        padding: 15px;
        position: sticky;
        bottom: 0;
        background: #fff;
    }
}
