/* ============================================================
   The Marigold Hotel — Complete Responsive Stylesheet
   Breakpoints: 1399 / 1199 / 991 / 767 / 575 / 480 / 360
   ============================================================ */

/* ---------- Base fluid safety (all screens) ---------- */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
img {
  height: auto;
}
h1, h2, h3, h4,
.section-title,
.room-detail-content h2 {
  overflow-wrap: break-word;
}
.btn,
.text-link,
.filter-btn,
.navbar-toggler,
.carousel-control {
  touch-action: manipulation;
}
iframe {
  max-width: 100%;
}

/* ---------- ≤1399px (small laptops) ---------- */
@media (max-width: 1399.98px) {
  .container {
    max-width: 1140px;
  }
  .hero h1 {
    font-size: clamp(44px, 5.5vw, 72px);
  }
}

/* ---------- ≤1199px ---------- */
@media (max-width: 1199.98px) {
  .nav-link {
    padding: 10px 6px !important;
    font-size: 11px;
  }
  .brand {
    min-width: 165px;
  }
  .brand-copy strong {
    font-size: 18px;
  }
  .booking-form {
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr auto;
    gap: 12px;
  }
  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .room-detail {
    gap: 35px;
  }
  .carousel-track img {
    height: 430px;
  }
}

/* ---------- ≤991px (tablets) ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 15px 0 12px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .navbar-nav {
    gap: 0;
  }
  .nav-link {
    padding: 12px 0 !important;
    font-size: 14px;            /* larger tap target */
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-link:after {
    left: 0;
    right: auto;
    width: 35px;
  }
  .nav-cta {
    margin: 12px 0 6px;
    width: 100%;
    text-align: center;
  }
  .hero {
    min-height: 560px;
  }
  .hero h1 {
    font-size: clamp(42px, 9vw, 64px);
  }
  .booking-form {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-label {
    grid-column: 1/-1;
  }
  .section-pad {
    padding: 75px 0;
  }
  .split-feature {
    grid-template-columns: 1fr;
  }
  .split-image {
    min-height: 340px;
  }
  .split-content {
    padding: 55px 8%;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  .room-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 70px;
  }
  .room-detail-reverse .room-carousel,
  .room-detail-reverse .room-detail-content {
    order: initial;
  }
  .carousel-track img {
    height: 400px;
  }
  .room-detail-content {
    max-width: 760px;
  }
  .wide-photo {
    height: 390px;
  }
  .about-collage {
    max-width: 650px;
  }
  .mini-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-gallery img {
    height: 240px;
  }
  .mini-gallery .gallery-trigger:first-child {
    grid-column: 1/-1;
  }
  .mini-gallery .gallery-trigger:first-child img {
    height: 300px;
  }
  .amenity-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-detail {
    min-width: 0;
  }
}

/* ---------- ≤767px (large phones) ---------- */
@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }
  .hero {
    min-height: 520px;
    background-position: 60% center;
  }
  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(27, 22, 20, 0.8),
      rgba(27, 22, 20, 0.45)
    );
  }
  .hero h1 {
    font-size: clamp(38px, 10.5vw, 56px);
    letter-spacing: -0.5px;
  }
  .hero-copy {
    font-size: 14px;
    max-width: 100%;
  }
  .hero-actions {
    gap: 10px;
  }
  .scroll-cue {
    display: none;
  }
  .booking-form {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .booking-form .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .booking-label strong {
    font-size: 21px;
  }
  .section-pad {
    padding: 60px 0;
  }
  .section-title {
    font-size: clamp(30px, 7.5vw, 42px);
  }
  .lead-copy {
    font-size: 18px;
  }
  .image-stack {
    padding-right: 30px;
    padding-bottom: 30px;
  }
  .stack-main {
    height: 320px;
    width: 94%;
  }
  .stack-small {
    height: 150px;
    width: 50%;
    border-width: 6px;
  }
  .image-note {
    left: 5px;
    bottom: 0;
    padding: 10px 14px;
    font-size: 12px;
  }
  .image-note strong {
    font-size: 18px;
  }
  .room-card img {
    height: 220px;
  }
  .room-card-body {
    padding: 20px 18px 24px;
  }
  .split-image {
    min-height: 250px;
  }
  .split-content {
    padding: 45px 22px;
  }
  .wide-photo {
    height: 280px;
  }
  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .amenity {
    padding: 14px 5px;
  }
  .amenity > i {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .amenity p {
    max-width: 170px;
    margin: auto;
  }
  .mini-gallery {
    gap: 9px;
  }
  .mini-gallery img,
  .mini-gallery .gallery-trigger:first-child img {
    height: 180px;
  }
  .destination-band {
    padding: 60px 0;
  }
  .destination-card {
    min-height: 320px;
  }
  .cta-panel {
    padding: 28px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .cta-panel .btn {
    width: 100%;
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-col a,
  .footer-col p {
    margin-bottom: 8px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .page-hero {
    min-height: 280px;
  }
  .page-hero h1 {
    font-size: clamp(34px, 9vw, 48px);
  }
  .breadcrumbs {
    flex-wrap: wrap;
  }
  .about-collage {
    padding-right: 22px;
    padding-bottom: 26px;
  }
  .collage-large {
    height: 320px;
    width: 94%;
  }
  .collage-small {
    height: 140px;
    border-width: 6px;
  }
  .carousel-track img {
    height: 300px;
  }
  .room-detail-content h2 {
    font-size: 30px;
  }
  .room-facts {
    gap: 8px 14px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .photo-grid .gallery-trigger {
    aspect-ratio: 1;
  }
  /* Filters: horizontally scrollable instead of wrapping awkwardly */
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .filter-btn {
    flex: 0 0 auto;
    min-height: 40px;
  }
  .contact-form-card {
    padding: 24px 16px;
  }
  .contact-form-card h2 {
    font-size: 27px;
  }
  .map-frame {
    height: 300px;
  }
  .lightbox {
    padding: 54px 10px 60px;
  }
  .lightbox img {
    max-height: 68vh;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox button {
    width: 42px;
    height: 42px;
  }
  .article-modal-panel {
    padding: 40px 22px;
    max-height: 88vh;
    overflow-y: auto;
  }
  .article-modal-panel h2 {
    font-size: 26px;
  }
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- ≤575px (small phones) ---------- */
@media (max-width: 575.98px) {
  .navbar {
    padding: 10px 0;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .brand-copy strong {
    font-size: 17px;
  }
  .brand-copy small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .navbar-toggler {
    font-size: 22px;
    padding: 6px 8px;
  }
  .hero {
    min-height: 480px;
  }
  .hero h1 {
    font-size: clamp(34px, 11.5vw, 46px);
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 13px 18px;
  }
  .booking-form {
    grid-template-columns: 1fr;
  }
  .booking-form label {
    width: 100%;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .section-heading .text-md-end {
    text-align: left !important;
    margin-top: 6px;
  }
  .image-stack {
    padding-right: 22px;
    padding-bottom: 22px;
  }
  .stack-main {
    height: 260px;
  }
  .stack-small {
    height: 120px;
  }
  .mini-gallery,
  .mini-gallery .gallery-trigger:first-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
  .mini-gallery img,
  .mini-gallery .gallery-trigger:first-child img {
    height: 210px;
  }
  .amenity-grid-wide {
    grid-template-columns: 1fr 1fr;
  }
  .destination-card {
    min-height: 280px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-social a {
    width: 40px;
    height: 40px;           /* 44px-ish tap target */
  }
  .page-hero {
    min-height: 240px;
  }
  .carousel-track img {
    height: 250px;
  }
  .carousel-control {
    width: 38px;
    height: 38px;
  }
  .room-detail-content h2 {
    font-size: 27px;
  }
  .room-detail-content .btn {
    width: 100%;
    text-align: center;
  }
  .room-facts {
    flex-direction: column;
    gap: 8px;
  }
  .contact-detail {
    gap: 14px;
  }
  .map-frame {
    height: 260px;
  }
}

/* ---------- ≤480px (very small / iPhone SE, etc.) ---------- */
@media (max-width: 480px) {
  body {
    font-size: 13.5px;
  }
  /* Stop iOS Safari auto-zoom on focus */
  input, select, textarea, .form-control {
    font-size: 16px;
  }
  .hero {
    min-height: 440px;
    background-position: 62% center;
  }
  .hero h1 {
    font-size: clamp(30px, 12vw, 40px);
    margin-bottom: 14px;
  }
  .hero-copy {
    font-size: 13.5px;
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  .section-pad {
    padding: 50px 0;
  }
  .section-title {
    font-size: clamp(27px, 8.5vw, 34px);
  }
  .btn {
    padding: 12px 18px;
  }
  .image-note {
    padding: 8px 12px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid .gallery-trigger {
    aspect-ratio: 4/3;
  }
  .amenity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .amenity h3 {
    font-size: 15px;
  }
  .amenity p {
    font-size: 10.5px;
    max-width: none;
  }
  .filter-btn {
    padding: 8px 12px;
    font-size: 10.5px;
  }
  .carousel-track img {
    height: 220px;
  }
  .carousel-count {
    bottom: 10px;
    right: 10px;
  }
  .contact-form-card {
    padding: 20px 14px;
  }
  .map-frame {
    height: 230px;
  }
  .lightbox button {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
  .back-to-top {
    width: 38px;
    height: 38px;
  }
}

/* ---------- ≤360px (tiny devices) ---------- */
@media (max-width: 360px) {
  .brand-copy strong {
    font-size: 15px;
  }
  .brand-copy small {
    letter-spacing: 1.5px;
  }
  .hero {
    min-height: 400px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .section-title {
    font-size: 26px;
  }
  .stack-main {
    height: 220px;
  }
  .stack-small {
    height: 100px;
  }
  .amenity-grid,
  .amenity-grid-wide,
  .booking-form {
    grid-template-columns: 1fr;
  }
  .carousel-track img {
    height: 190px;
  }
  .footer-bottom {
    font-size: 9px;
  }
}

/* ---------- Landscape phones / short viewports ---------- */
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero {
    min-height: 360px;
  }
  .hero h1 {
    font-size: clamp(32px, 7vw, 48px);
  }
  .page-hero {
    min-height: 220px;
  }
  .section-pad {
    padding: 50px 0;
  }
}

/* ---------- Reduced data / print niceties ---------- */
@media print {
  .site-header, .back-to-top, .scroll-cue, .hero-actions {
    display: none !important;
  }
}