/* =========================================================
   RESPONSIVE STYLESHEET
========================================================= */

@media (max-width: 1180px) {
  .navbar ul { gap: 18px; }
  .navbar a { font-size: .88rem; }
  .book-btn { padding-inline: 20px; }
  .booking-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-submit { grid-column: span 1; }
  .amenities-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .attraction-control--prev { left: 8px; }
  .attraction-control--next { right: 8px; }
}

@media (max-width: 991px) {
  :root { --header-h: 82px; }
  html { scroll-padding-top: 86px; }
  .section { padding: 143px 0 60px 0; }
  .top-bar { display: none; }
  .header,
  .header.is-sticky {
    top: 0;
    min-height: var(--header-h);
    background: rgba(255,255,255,.98);
    border-bottom-color: rgba(0,80,63,.12);
    box-shadow: 0 7px 24px rgba(8,43,35,.09);
  }
  .logo img,
  .header.is-sticky .logo img { width: 148px; filter: none; }
  .menu-button { display: inline-flex; order: 3; }
  .book-btn { margin-left: auto; }
  .navbar {
    position: fixed;
    z-index: 1001;
    top: var(--header-h);
    left: 0;
    width: 100%;
    max-height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 18px 20px 28px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: 0 18px 35px rgba(8,43,35,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }
  .navbar.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .navbar ul { display: grid; gap: 0; }
  .navbar li { border-bottom: 1px solid var(--line); }
  .navbar a,
  .header.is-sticky .navbar a { padding: 15px 4px; color: var(--ink); }
  .navbar a::after { bottom: 8px; width: 50px; }
  .hero { min-height: 700px; height: 88svh; }
  .hero-content { transform: translateY(-38%); }
  .hero-control { top: auto; bottom: 44px; transform: none; }
  .hero-control--prev { left: 24px; }
  .hero-control--next { left: 88px; right: auto; }
  .hero-status { right: 26px; bottom: 58px; }
  .hero-pause { right: 26px; bottom: 99px; }
  .booking-bar { margin-top: -42px; }
  .booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-submit { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-media { min-height: 480px; }
  .about-media img { height: 480px; }
  .about-badge { right: 22px; }
  .room-grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
  .room-card { display: grid; grid-template-columns: .9fr 1.1fr; }
  .room-media { height: 100%; min-height: 300px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-item:nth-child(n) { grid-column: auto; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6), .gallery-item:nth-child(13), .gallery-item:nth-child(21) { grid-column: span 2; }
  .attractions-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .faq-map-grid { grid-template-columns: 1fr; }
  .map-card { grid-template-rows: 430px auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-bottom .container { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 43px 0 76px 0; }
  .header__inner { gap: 14px; }
  .logo img,
  .header.is-sticky .logo img { width: 128px; }
  .book-btn { display: none; }
  .menu-button { margin-left: auto; }
  .hero { min-height: 660px; height: 82svh; }
  .hero-content { top: 47%; transform: translateY(-38%); }
  .hero-kicker { font-size: .74rem; letter-spacing: .13em; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 330px); }
  .hero-actions .button { width: 100%; }
  .hero-control { width: 46px; height: 46px; bottom: 28px; }
  .hero-control--prev { left: 16px; }
  .hero-control--next { left: 70px; }
  .hero-status { right: 18px; bottom: 42px; }
  .hero-status__line { width: 72px; }
  .hero-pause { right: 18px; bottom: 79px; }
    .booking-bar {
        margin-top: 0;
        padding: 22px 0;
        /* background: var(--light); */
    }
  .booking-bar__container { width: min(calc(100% - 30px), 1320px); }
  .booking-wrapper { padding: 24px 20px 20px; border-radius: 22px; box-shadow: var(--shadow); }
  .booking-form { grid-template-columns: 1fr 1fr; }
  .booking-submit { grid-column: 1 / -1; }
  .about-media { min-height: 390px; }
  .about-media img { height: 390px; }
  .about-media::before { top: -14px; left: -14px; }
  .about-badge { right: 14px; bottom: 18px; min-width: 170px; padding: 17px 20px; }
  .section-title { margin-bottom: 46px; }
  .section-title::before { top: -38px; font-size: clamp(2.8rem, 11.4vw, 5rem); }
  .amenities-grid { grid-template-columns: 1fr; }
  .amenity-card { min-height: auto; }
  .room-card { display: block; }
  .room-media { height: 280px; min-height: 0; }
  .parallax { min-height: 450px; background-attachment: scroll; }
  .gallery-grid { grid-auto-rows: 220px; }
  .attractions-track { grid-auto-columns: 86%; }
  .attraction-control { display: block; }
  .map-card__details { grid-template-columns: 1fr; }
  .map-card__details .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer { padding: 68px 0 50px; }
  .gallery-dialog__window { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 5px; width: 100%; }
  .gallery-dialog__close,
  .gallery-dialog__nav { width: 42px; height: 42px; }
  .gallery-dialog__close { top: -52px; right: 0; }
}

/* Attractions Mobile Optimization */
@media (max-width: 767px) {

  .attractions-track {
    display: flex;
    grid-auto-columns: 100%;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .attractions-track::-webkit-scrollbar {
    display: none;
  }

  .attraction-card {
    min-width: 100%;
    width: 100%;
    height: 420px;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
  }

  .attraction-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .attraction-overlay {
    padding: 24px 20px;
    justify-content: flex-end;
  }

  .attraction-overlay span {
    font-size: 0.72rem;
    letter-spacing: .12em;
  }

  .attraction-overlay h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .attraction-overlay p {
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .attraction-overlay a {
    font-size: .95rem;
  }

}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(1.35rem, 5.6vw, 3.25rem);
}
  .booking-form { grid-template-columns: 1fr; gap: 16px; }
  .booking-submit { grid-column: auto; }
  .booking-wrapper { padding: 22px 18px 20px; }
  .booking-control input,
  .booking-control select,
  .booking-submit { height: 58px; min-height: 58px; }
  .about-media { min-height: 320px; }
  .about-media img { height: 320px; border-radius: 18px; }
  .about-badge { position: relative; right: auto; bottom: auto; width: calc(100% - 28px); margin: -30px auto 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item:nth-child(n) { grid-column: auto; }
  .attraction-card,
  .attraction-card img { min-height: 465px; }
  .faq-item button { padding: 18px; }
  .faq-panel { padding-inline: 18px; }
  .footer-bottom__links { flex-wrap: wrap; white-space: normal; }
  .back-to-top { right: 16px; bottom: 16px; }
  .gallery-dialog { padding-inline: 4px; }
  .gallery-dialog__window { grid-template-columns: 38px minmax(0,1fr) 38px; }
  .gallery-dialog__nav { width: 38px; height: 38px; }

}

@media (max-width: 390px) {
  .logo img,
  .header.is-sticky .logo img { width: 112px; }
  .menu-button { width: 42px; height: 42px; }
  .hero-status__line { width: 52px; }
  .hero-status { font-size: .76rem; }
}


/* ==========================
   BOOKING BAR RESPONSIVE
========================== */

@media (max-width: 1199px) {
    .booking-form {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-submit {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .booking-bar {
        margin-top: 28px;
        padding: 0 14px;
        position: relative;
    }

    .booking-container {
        border-radius: 24px;
        padding: 22px 18px;
    }

    .booking-form {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .booking-submit {
        grid-column: 1 / -1;
    }

    .flatpickr-calendar {
        width: 300px;
        border-radius: 22px;
    }
}

@media (max-width: 575px) {
    .booking-form {
        grid-template-columns: 1fr;
    }

    .booking-submit {
        grid-column: auto;
    }

    .booking-field label {
        font-size: 12px;
    }

    .booking-control input,
    .booking-control select {
        font-size: 14px;
    }

    .flatpickr-calendar {
        width: 285px;
        padding: 8px 8px 10px;
    }

    .flatpickr-current-month {
        font-size: 16px;
    }

    .flatpickr-day {
        max-width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }

    span.flatpickr-weekday {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
  .attractions-track {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
  }

  .attraction-card {
    flex: 0 0 86%;
  }
}