/* ============================================================
   SedonaEpicStays — Laptop Responsive Fix
   Targets the 1200-1500px wide / 700-900px tall viewport range
   that fell between mobile (≤768px) and desktop (≥1500px)
   breakpoints in the original CSS.
   ============================================================ */

/* ─── 1. SHORT VIEWPORT FIXES (any width, ≤900px tall) ─── */
/* This is the biggest culprit — laptops typically have 800-900px height.
   The hero was using clamp(4rem,11vw,10rem) which at 1200vw = 132px font,
   exploding past the 700-800px available vertical space. */

@media (max-height: 900px) {
  .hero {
    min-height: 0 !important;
    padding: 4rem 3rem 3rem !important;
  }
  .hero-title {
    font-size: clamp(3rem, 7vw, 6rem) !important;
    line-height: 0.92 !important;
    margin-bottom: 0.3rem !important;
  }
  .hero-sub {
    font-size: 0.9rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.6 !important;
  }
  .hero-tag {
    margin-bottom: 0.6rem !important;
  }
  .hero-row {
    gap: 1.5rem !important;
  }
  .hero-stats {
    gap: 1.5rem !important;
  }
  .hs-n {
    font-size: 1.8rem !important;
  }
  .sec {
    padding: 4rem 3rem !important;
  }
}

@media (max-height: 800px) {
  .hero {
    padding: 3rem 3rem 2.5rem !important;
  }
  .hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem) !important;
  }
  .hero-sub {
    font-size: 0.85rem !important;
    max-width: 440px !important;
  }
  .btn-fire, .btn-outline {
    padding: 0.8rem 1.8rem !important;
    font-size: 0.7rem !important;
  }
}

/* ─── 2. MIDSIZE LAPTOP WIDTH (1100-1500px) ─── */
/* The original CSS jumped from 1100px → desktop with nothing in between.
   Most 13-16" laptops sit in this range. */

@media (min-width: 1101px) and (max-width: 1500px) {
  /* Section padding — was 7rem 3.5rem, too generous for this width */
  .sec {
    padding: 5rem 2.5rem;
  }
  .sec-inner {
    max-width: 100%;
  }
  /* Hero side padding tighter */
  .hero {
    padding: 5rem 2.5rem 4rem;
  }
  /* Nav: ensure BOOK DIRECT button doesn't get clipped */
  .nav-links {
    gap: 1.2rem;
  }
  .nav-links a {
    font-size: 0.65rem;
  }
  /* Property manager / two-col grids: tighten 6rem gap to 3rem */
  .pm-hero-inner,
  .pm-why-inner,
  .pm-form-inner {
    gap: 3rem !important;
    padding: 0 2rem;
  }
  /* Host band grid */
  .host-inner {
    max-width: 100%;
    padding: 0 2rem;
  }
  /* Footer */
  .foot-top {
    max-width: 100%;
    padding: 0 2.5rem;
    gap: 2.5rem;
  }
  .foot-bottom {
    max-width: 100%;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* ─── 3. BOOKING WIDGET — fix asymmetric two-column layout ─── */
/* Original: grid-template-columns: 1fr 320px
   At 1200px the calendar dominates and the sidebar feels cramped.
   Rebalance with a more proportional split. */

@media (min-width: 721px) and (max-width: 1400px) {
  .w-body {
    grid-template-columns: 1.4fr 1fr !important;
    min-width: 0 !important;
  }
  .w-cal,
  .w-side {
    min-width: 0;
  }
}

/* Booking page container: center it within the viewport */
@media (min-width: 1101px) {
  .w-wrap,
  .booking-wrap,
  .book-direct-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── 4. AIRBNB-STYLE PHOTO TOUR OVERLAY ─── */
/* Full-screen photo tour: left sidebar with room thumbnails (click to scroll),
   right side scrollable photo sections grouped by room.
   Built and managed by /photo-tour.js. */

#ses-tour {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0d0a06;
  display: none;
  flex-direction: column;
  font-family: 'Jost', sans-serif;
  color: #E8D4B8;
}

.ses-tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(232, 212, 184, 0.08);
  flex-shrink: 0;
  background: rgba(13, 10, 6, 0.95);
  backdrop-filter: blur(8px);
}

.ses-tour-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 212, 184, 0.15);
  color: #E8D4B8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.ses-tour-close:hover {
  background: rgba(217, 95, 43, 0.15);
  border-color: #D95F2B;
  color: #fff;
}

.ses-tour-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.ses-tour-count {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 212, 184, 0.6);
}

.ses-tour-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ses-tour-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #0a0805;
  border-right: 1px solid rgba(232, 212, 184, 0.06);
  overflow-y: auto;
  padding: 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 95, 43, 0.4) transparent;
}
.ses-tour-sidebar::-webkit-scrollbar { width: 6px; }
.ses-tour-sidebar::-webkit-scrollbar-thumb { background: rgba(217, 95, 43, 0.4); border-radius: 3px; }

.ses-tour-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  color: inherit;
  font-family: inherit;
}
.ses-tour-cat:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(232, 212, 184, 0.1);
}
.ses-tour-cat.active {
  background: rgba(217, 95, 43, 0.12);
  border-color: rgba(217, 95, 43, 0.5);
}

.ses-tour-cat-thumb {
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #1a140d;
}
.ses-tour-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ses-tour-cat-label {
  flex: 1;
  min-width: 0;
}
.ses-tour-cat-name {
  font-size: 14px;
  font-weight: 500;
  color: #E8D4B8;
  margin-bottom: 2px;
  line-height: 1.2;
}
.ses-tour-cat.active .ses-tour-cat-name { color: #fff; }
.ses-tour-cat-count {
  font-size: 11px;
  color: rgba(232, 212, 184, 0.5);
  letter-spacing: 0.05em;
}

.ses-tour-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 48px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 95, 43, 0.4) transparent;
  scroll-behavior: smooth;
}
.ses-tour-main::-webkit-scrollbar { width: 8px; }
.ses-tour-main::-webkit-scrollbar-thumb { background: rgba(217, 95, 43, 0.4); border-radius: 4px; }

.ses-tour-section {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}
.ses-tour-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.ses-tour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ses-tour-photo {
  margin: 0;
  position: relative;
  background: #1a140d;
  border-radius: 6px;
  overflow: hidden;
}
.ses-tour-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.4s;
}
.ses-tour-photo img:hover {
  opacity: 0.9;
  transform: scale(1.01);
}
.ses-tour-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s;
}
.ses-tour-photo:hover figcaption { opacity: 1; }

@media (max-width: 1200px) {
  .ses-tour-sidebar { width: 240px; }
  .ses-tour-cat-thumb { width: 60px; height: 46px; }
  .ses-tour-main { padding: 20px 24px 40px; }
}

@media (max-width: 900px) {
  .ses-tour-sidebar { width: 200px; padding: 12px 8px; }
  .ses-tour-cat { padding: 6px; gap: 8px; }
  .ses-tour-cat-thumb { width: 50px; height: 38px; }
  .ses-tour-cat-name { font-size: 12px; }
  .ses-tour-cat-count { font-size: 10px; }
  .ses-tour-grid { gap: 8px; }
  .ses-tour-section h2 { font-size: 22px; }
  .ses-tour-main { padding: 16px 18px 36px; }
}

@media (max-width: 720px) {
  .ses-tour-body { flex-direction: column; }
  .ses-tour-sidebar {
    width: 100%;
    height: auto;
    max-height: 110px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid rgba(232, 212, 184, 0.08);
  }
  .ses-tour-cat {
    flex-direction: column;
    width: auto;
    min-width: 90px;
    margin-bottom: 0;
    flex-shrink: 0;
    text-align: center;
    padding: 4px;
  }
  .ses-tour-cat-thumb { width: 80px; height: 56px; }
  .ses-tour-cat-label { width: 80px; }
  .ses-tour-cat-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ses-tour-cat-count { font-size: 9px; }
  .ses-tour-grid { grid-template-columns: 1fr; }
}

@media (max-height: 800px) {
  .ses-tour-header { padding: 10px 20px; }
  .ses-tour-title { font-size: 18px; }
  .ses-tour-section { margin-bottom: 28px; }
  .ses-tour-section h2 { font-size: 22px; margin-bottom: 10px; }
}


/* ─── 5. GUIDEBOOK ─── */
/* Hero image cropping at midsize widths */
@media (min-width: 1101px) and (max-width: 1500px) {
  .gb-teaser-inner {
    min-height: 380px;
  }
  .gb-inner {
    max-width: 100%;
    padding: 0 2.5rem;
  }
}

/* ─── 6. SAFETY: prevent horizontal scroll site-wide ─── */
html, body {
  overflow-x: hidden;
}
