/* ============================================================================
   Junglo Resort & Spa — Luxury Editorial + Seamless Direct Booking Stylesheet
   Harmonizes our live 3-Step Direct Booking Studio, 14 Real Bungalow Galleries,
   45 Quick-Add Tours, Travel Guides, Lightbox & Floating Trip Drawer with the
   warm ivory (#f6f0df), deep rainforest (#173e2d), and sand gold (#ecc879)
   editorial design language.
   ============================================================================ */

body.editorial-home {
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1f3e2b;
  background-color: #f6f0df;
}

body.editorial-home h1,
body.editorial-home h2,
body.editorial-home h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header refinement for clean 9-item editorial nav */
.editorial-home .site-header {
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
.editorial-home .site-header.scrolled {
  box-shadow: 0 8px 28px rgba(12, 41, 30, 0.08);
}
.editorial-home .site-header nav {
  gap: 20px;
  font-size: 12.5px;
  font-weight: 500;
}
.editorial-home .site-header nav a:not(.nav-book):not(.nav-lang-pill) {
  color: #1f3e2b;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.editorial-home .site-header nav a:not(.nav-book):not(.nav-lang-pill)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: #173e2d;
  transition: width 0.22s ease;
}
.editorial-home .site-header nav a:not(.nav-book):not(.nav-lang-pill):hover::after {
  width: 100%;
}
.editorial-home .nav-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #c5ceb0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #173e2d;
  background: #f6f0df;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.editorial-home .nav-lang-pill:hover {
  background: #173e2d;
  color: #f6f0df;
  border-color: #173e2d;
}
.editorial-home .site-header .nav-book {
  padding: 12px 20px;
  min-height: 44px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Hero Height & Frosted-Forest Direct Date Bar (unobtrusive & magazine-clean) */
.editorial-home .resort-hero {
  height: auto;
  min-height: max(760px, 86vh);
  max-height: none;
  padding-top: 38px;
}
.editorial-home .resort-hero .hero-content {
  max-width: 860px;
  margin: 0 8% 106px;
}
.editorial-home .hero-content h1 {
  font-weight: 700;
  letter-spacing: -2.2px;
  line-height: 1.02;
  margin-bottom: 18px;
}
.editorial-home .hero-content h1 em {
  font-style: italic;
  color: #f1cd7d;
  font-weight: 600;
}
.editorial-home .hero-description {
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-editorial-search {
  background: rgba(11, 41, 30, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(236, 200, 121, 0.38);
  border-radius: 10px;
  padding: 14px 16px 12px;
  box-shadow: 0 18px 44px rgba(5, 22, 16, 0.42);
  max-width: 820px;
}
.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.72fr 0.72fr 0.86fr auto;
  gap: 10px;
  align-items: end;
}
.hero-editorial-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-editorial-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f0dfb9;
}
.hero-editorial-field input,
.hero-editorial-field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(236, 200, 121, 0.34);
  background: rgba(255, 253, 245, 0.96);
  color: #173e2d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}
.hero-editorial-field input:focus,
.hero-editorial-field select:focus {
  outline: 2px solid #ecc879;
  outline-offset: 1px;
}
.hero-editorial-submit {
  height: 44px;
  min-height: 44px !important;
  padding: 0 20px !important;
  white-space: nowrap;
  font-size: 13px !important;
  border-radius: 6px !important;
}
.hero-editorial-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(236, 200, 121, 0.22);
  font-size: 11.5px;
  color: #e9e4d1;
}
.hero-editorial-foot .nights-indicator {
  font-weight: 700;
  color: #f1cd7d;
}
.hero-editorial-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

/* Unified Button Classes for JS-Rendered Booking Studio & Quick-Add Cards */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  line-height: 1.3;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(120deg, #235441, #173e2d);
  color: #fff6e1;
  border-color: #2f664f;
  box-shadow: 0 6px 16px rgba(12, 41, 30, 0.16);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-gold {
  background: linear-gradient(120deg, #f1d493, #dcb65e);
  color: #17372b;
  border-color: #f5db9c;
  box-shadow: 0 6px 18px rgba(12, 41, 30, 0.18);
}
.btn-gold:hover {
  filter: brightness(1.05);
}
.btn-secondary {
  background: #fffdf6;
  color: #173e2d;
  border-color: #b7c29f;
}
.btn-secondary:hover {
  background: #eef1e2;
  border-color: #173e2d;
}
.btn-sm {
  padding: 9px 14px;
  font-size: 12px;
}

/* Real 14-Bungalow Editorial Collection Grid (right beneath .stay) */
.bungalows-editorial-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 40px 80px;
}
.bungalows-editorial-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.bungalows-editorial-head h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 6px 0 0;
  color: #173e2d;
}
.bungalows-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.bungalow-ed-card {
  background: #fffdf6;
  border: 1px solid #d7d7bd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(23, 62, 45, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bungalow-ed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(23, 62, 45, 0.12);
}
.bungalow-ed-media {
  position: relative;
  height: 196px;
  overflow: hidden;
  cursor: pointer;
  background: #173e2d;
}
.bungalow-ed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.bungalow-ed-card:hover .bungalow-ed-media img {
  transform: scale(1.05);
}
.bungalow-ed-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.bungalow-ed-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  color: #173e2d;
}
.bungalow-ed-body p {
  font-size: 12.8px;
  line-height: 1.65;
  color: #586b57;
  margin: 0;
  flex: 1;
}
.bungalow-ed-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid #e6e8d7;
}
.bungalow-ed-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 11.5px;
}

/* ============================================================================
   Seamless On-Page Direct Booking Studio (Editorial Warm Ivory & Forest Theme)
   ============================================================================ */
.editorial-booking-section {
  background: #edf0e2;
  border-block: 1px solid #d4dbc8;
  padding: 82px 0;
}
.editorial-booking-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
}
.editorial-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.editorial-booking-header h2 {
  margin-bottom: 10px;
}
.editorial-booking-header p:not(.eyebrow) {
  max-width: 560px;
  color: #586b57;
  font-size: 14.5px;
  margin: 0;
}
.direct-perks-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.direct-perks-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fffdf6;
  border: 1px solid #cfd6be;
  color: #173e2d;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.direct-perks-pills i {
  color: #8f7230;
}

/* Stepper */
.booking-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.step-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 15px 18px;
  border-radius: 10px;
  border: 1px solid #cfd6be;
  background: #fffdf6;
  color: #1f3e2b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.step-tab.active {
  background: #173e2d;
  color: #fff6e1;
  border-color: #173e2d;
  box-shadow: 0 12px 26px rgba(12, 41, 30, 0.18);
}
.step-tab.completed {
  border-color: #4f7958;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: #edf0e2;
  color: #173e2d;
  flex-shrink: 0;
}
.step-tab.active .step-num {
  background: #ecc879;
  color: #17372b;
}
.step-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step-meta strong {
  font-size: 13.5px;
}
.step-meta span {
  font-size: 11.5px;
  opacity: 0.8;
}

/* Main Studio 2-Column Layout */
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.studio-panel {
  background: #fffdf6;
  border: 1px solid #d7d7bd;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(23, 62, 45, 0.07);
  min-width: 0;
}
.studio-step {
  display: none;
}
.studio-step.active {
  display: block;
}
.studio-step-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.studio-step-head h3 {
  font-size: 24px;
  margin: 0 0 4px;
  color: #173e2d;
}
.studio-step-head p {
  color: #586b57;
}

/* Filter Pills */
.addon-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.filter-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #c5ceb0;
  background: #f6f0df;
  color: #244732;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-pill:hover {
  border-color: #173e2d;
}
.filter-pill.active {
  background: #173e2d;
  color: #fff5dc;
  border-color: #173e2d;
}

/* Room Cards inside Booking Studio */
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.room-card {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  border: 1px solid #d7d7bd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.room-card.selected {
  border-color: #173e2d;
  box-shadow: 0 0 0 2px rgba(23, 62, 45, 0.16);
}
.room-media-col {
  display: flex;
  flex-direction: column;
  background: #0c291e;
}
.room-media {
  position: relative;
  min-height: 225px;
  cursor: pointer;
  overflow: hidden;
  flex: 1;
}
.room-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23, 62, 45, 0.92);
  color: #f6e7c8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.room-badge.accessible {
  background: #0d5c91;
  color: #fff;
}
.room-badge.pool {
  background: #8a6420;
  color: #fff;
}
.room-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 41, 30, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.room-carousel-arrow.prev { left: 8px; }
.room-carousel-arrow.next { right: 8px; }
.room-photo-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(12, 41, 30, 0.88);
  color: #f6e7c8;
  border: 1px solid rgba(236, 200, 121, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.room-thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 4px;
  background: #0c291e;
}
.room-thumb-btn {
  position: relative;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #173e2d;
}
.room-thumb-btn.active {
  border-color: #ecc879;
}
.room-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(12, 41, 30, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.room-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.room-body h3 {
  font-size: 21px;
  margin: 0 0 4px;
  color: #173e2d;
}
.room-beds-line {
  font-size: 12px;
  color: #3a5943;
  font-weight: 600;
  margin-bottom: 5px;
}
.room-capacity {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #586b57;
  margin-bottom: 8px;
}
.room-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #586b57;
  margin: 0 0 10px;
}
.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.amenity-chip {
  background: #f4f0e5;
  border: 1px solid #d9dcc5;
  color: #274833;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.rate-plan-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rate-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid #c5ceb0;
  background: #faf8f0;
  color: #173e2d;
  font-size: 11.5px;
  cursor: pointer;
}
.rate-plan-pill.active {
  background: #173e2d;
  color: #fff6e1;
  border-color: #173e2d;
}
.room-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6e8d7;
  flex-wrap: wrap;
}
.ota-strike {
  display: block;
  font-size: 11.5px;
  color: #8b9484;
  text-decoration: line-through;
}
.nightly-rate {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  color: #173e2d;
}
.rate-sub {
  display: block;
  font-size: 11.5px;
  color: #586b57;
  margin-top: 2px;
}
.room-select-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.room-qty-select {
  height: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #c5ceb0;
  background: #fffdf6;
  color: #173e2d;
  font-size: 12px;
}

/* Step 2 Addons Builder */
.addons-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.addon-card {
  border: 1px solid #d7d7bd;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.addon-card.added {
  border-color: #173e2d;
  background: #f6f8ef;
}
.addon-cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #6b7d48;
  margin-bottom: 4px;
}
.addon-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16.5px;
  margin: 0 0 6px;
  color: #173e2d;
}
.addon-card p {
  font-size: 12.5px;
  color: #586b57;
  margin: 0 0 10px;
  line-height: 1.55;
}
.addon-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #586b57;
}
.addon-price {
  font-weight: 700;
  color: #173e2d;
  font-size: 13.5px;
}
.addon-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e6e8d7;
}
.addon-subcontrols {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 8px;
}
.addon-subcontrols label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #3a503b;
}
.addon-subcontrols select,
.addon-subcontrols input {
  height: 36px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #c5ceb0;
  background: #fffdf6;
  color: #173e2d;
  font-size: 12px;
}

/* Step 3 Checkout Form */
.guest-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-group.full-span {
  grid-column: 1 / -1;
}
.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: #244732;
}
.field-group input,
.field-group select,
.field-group textarea {
  padding: 10px 12px;
  border: 1px solid #c5ceb0;
  border-radius: 6px;
  background: #faf9f2;
  color: #173e2d;
  font-family: inherit;
  font-size: 13.5px;
}
.payment-trust-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #f4f0e5;
  border: 1px solid #d4d9ca;
  border-radius: 8px;
  flex-wrap: wrap;
}
.payment-trust-box strong {
  display: block;
  font-size: 13px;
  color: #173e2d;
}
.payment-trust-box span {
  font-size: 12px;
  color: #586b57;
}
.card-badges {
  display: flex;
  gap: 10px;
  font-size: 26px;
  color: #173e2d;
}
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: #586b57;
}
.form-privacy a {
  color: #173e2d;
  text-decoration: underline;
}
.step-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e6e8d7;
  flex-wrap: wrap;
}

/* Sticky Right Trip Summary */
.trip-summary-card {
  background: #fffdf6;
  border: 1px solid #d7d7bd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(23, 62, 45, 0.08);
  position: sticky;
  top: 132px;
}
.trip-summary-head {
  background: #173e2d;
  color: #fff6e1;
  padding: 18px 20px;
}
.trip-summary-head h3 {
  font-size: 19px;
  margin: 0 0 3px;
  color: #fff6e1;
}
.trip-summary-head p {
  margin: 0;
  font-size: 11.5px;
  color: #ecc879;
}
.trip-summary-body {
  padding: 18px 20px;
  font-size: 13px;
}
.summary-section {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6e8d7;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.summary-row.muted {
  color: #586b57;
  font-size: 12px;
}
.summary-row.discount {
  color: #1b6d3f;
  font-weight: 600;
}
.summary-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #e0e3d1;
  font-size: 12.5px;
}
.summary-remove-btn {
  background: none;
  border: 0;
  color: #9b3a2b;
  font-size: 16px;
  margin-left: 6px;
  cursor: pointer;
}
.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  color: #173e2d;
  padding: 8px 0 14px;
}
.summary-total-row strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
}

/* Inline Alerts */
.inline-alert {
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.inline-alert.info {
  background: #eef3e5;
  border: 1px solid #c5d3b1;
  color: #173e2d;
}
.inline-alert.error {
  background: #fdf1ee;
  border: 1px solid #e6b8ad;
  color: #8a2b1d;
}

/* Curated Quick-Add Tours Strip & Editorial Guides Strip */
.ed-tours-strip {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 40px 76px;
}
.ed-tours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.ed-tour-card {
  background: #fffdf6;
  border: 1px solid #d7d7bd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(23, 62, 45, 0.06);
}
.ed-tour-media {
  position: relative;
  height: 185px;
  overflow: hidden;
}
.ed-tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-tour-price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(12, 41, 30, 0.92);
  color: #f1cd7d;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ed-tour-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.ed-tour-body h3 {
  font-size: 19px;
  margin: 0;
  color: #173e2d;
}
.ed-tour-body p {
  font-size: 13px;
  color: #586b57;
  margin: 0;
  flex: 1;
  line-height: 1.6;
}

/* Editorial Travel Guides Strip */
.ed-guides-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 72px 40px;
  border-top: 1px solid #d7d7bd;
}
.ed-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.ed-guide-card {
  background: #fffdf6;
  border: 1px solid #d7d7bd;
  border-radius: 9px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}
.ed-guide-card:hover {
  transform: translateY(-3px);
  border-color: #173e2d;
}
.ed-guide-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6b7d48;
}
.ed-guide-card h3 {
  font-size: 18px;
  line-height: 1.28;
  margin: 0;
  color: #173e2d;
}
.ed-guide-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #586b57;
  margin: 0;
  flex: 1;
}
.ed-guide-link {
  font-size: 12px;
  font-weight: 700;
  color: #173e2d;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 6px;
}

/* Full-Screen Bungalow Photo Lightbox */
.junglo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 25, 19, 0.96);
  z-index: 20000;
  display: none;
  flex-direction: column;
  color: #fff;
}
.junglo-lightbox.open {
  display: flex;
}
.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.lightbox-title-wrap h3 {
  margin: 0;
  font-size: 20px;
  color: #fff6e1;
}
.lightbox-title-wrap p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #cfd9c7;
}
.lightbox-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lightbox-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 64px;
  min-height: 0;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(236, 200, 121, 0.5);
  background: rgba(12, 41, 30, 0.8);
  color: #fff;
  cursor: pointer;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-caption-bar {
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  color: #f0e4c8;
}
.lightbox-caption-bar span {
  color: #ecc879;
  font-weight: 700;
  margin-right: 8px;
}
.lightbox-filmstrip {
  display: flex;
  gap: 6px;
  padding: 10px 20px 14px;
  overflow-x: auto;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}
.lightbox-filmstrip button {
  flex: 0 0 74px;
  height: 50px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0.65;
  cursor: pointer;
}
.lightbox-filmstrip button.active {
  border-color: #ecc879;
  opacity: 1;
}
.lightbox-filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating "My Trip" Pill & Slide-Out Drawer */
.trip-floating-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #173e2d;
  color: #fff5dc;
  border: 1.5px solid #ecc879;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(8, 25, 19, 0.32);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.trip-floating-btn.trip-fab-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

/* Native Editorial Instagram Visual Showcase Card (replaces flaky Meta iframe) */
.ig-editorial-card {
  background: #fffdf8;
  border: 1px solid #d1d8c8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(17, 50, 36, 0.11);
}
.ig-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e4e8dc;
  background: #fff;
}
.ig-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ig-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ecc879, #173e2d);
  object-fit: contain;
  background-color: #f6f0df;
}
.ig-profile-text strong {
  display: block;
  font-size: 14px;
  color: #173e2d;
  line-height: 1.25;
}
.ig-profile-text span {
  display: block;
  font-size: 11.5px;
  color: #5d6f62;
}
.ig-follow-pill {
  padding: 7px 14px;
  border-radius: 7px;
  background: #173e2d;
  color: #fff6e1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.ig-follow-pill:hover {
  background: #235441;
}
.ig-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: #e4e8dc;
}
.ig-photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  background: #173e2d;
}
.ig-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.ig-photo-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.06);
}
.ig-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 12px;
  color: #385442;
  background: #faf9f2;
  border-top: 1px solid #e4e8dc;
}
.ig-card-footer a {
  font-weight: 700;
  color: #173e2d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trip-count-badge {
  background: #ecc879;
  color: #17372b;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}
.trip-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 25, 19, 0.55);
  z-index: 18000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.trip-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.trip-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 94vw);
  height: 100vh;
  background: #fffdf6;
  z-index: 18001;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 36px rgba(8, 25, 19, 0.24);
  transition: right 0.28s ease;
}
.trip-drawer.open {
  right: 0;
}
.trip-drawer-header {
  background: #173e2d;
  color: #fff6e1;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trip-drawer-header h3 {
  margin: 0;
  font-size: 19px;
  color: #fff6e1;
}
.drawer-close-btn {
  background: none;
  border: 0;
  color: #fff6e1;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.trip-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.trip-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #d7d7bd;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f6f0df;
}

/* Cookie Banner */
.cookie-consent {
  display: none;
  position: fixed;
  left: 20px;
  bottom: 20px;
  max-width: 420px;
  background: #0e2b22;
  color: #f3efdc;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(236, 200, 121, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  z-index: 1400;
  font-size: 12px;
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-content p {
  margin: 0;
  line-height: 1.5;
}

/* Book Direct 10% Offer Photo — preserve true aspect ratio inside <picture> */
.offer-photo {
  position: relative;
  overflow: hidden;
}
.offer-photo picture,
.offer-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* Mobile Expand List Button (hidden on desktop, compact toggle on mobile) */
.mobile-expand-list-btn {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .editorial-home .site-header nav { gap: 14px; font-size: 12px; }
  .bungalows-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout { grid-template-columns: 1fr; }
  .trip-summary-card { position: static; }
}
@media (max-width: 920px) {
  .hero-editorial-grid { grid-template-columns: 1fr 1fr; }
  .hero-editorial-submit { grid-column: 1 / -1; }
  .room-card { grid-template-columns: 1fr; }
  .ed-tours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-home .menu-toggle { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 10px 14px; color: var(--forest); background: none; font-size: 12px; min-height: 44px; }
  .editorial-home .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fffdf5; padding: 20px 25px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 25px rgba(0, 0, 0, 0.14); }
  .editorial-home .site-header nav.is-open { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
  .editorial-home .site-header nav a { padding: 10px 0; }
}
@media (max-width: 760px) {
  /* Ultra-compact Hero & Search Bar on Mobile */
  .editorial-home .resort-hero { min-height: 690px; height: auto; padding-top: 20px; }
  .editorial-home .resort-hero .hero-content { margin: 0 18px 104px; }
  .editorial-home .hero-content h1 { font-size: clamp(44px, 11vw, 62px); margin-bottom: 12px; }
  .editorial-home .hero-description { font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
  .editorial-home .hero-gallery-footer { bottom: 14px; left: 18px; right: 18px; padding-top: 10px; }
  .hero-editorial-search { padding: 10px 11px 9px; border-radius: 8px; }
  .hero-editorial-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-editorial-field:nth-child(1),
  .hero-editorial-field:nth-child(2) { grid-column: span 3; }
  .hero-editorial-field:nth-child(3),
  .hero-editorial-field:nth-child(4),
  .hero-editorial-field:nth-child(5) { grid-column: span 2; }
  .hero-editorial-field { gap: 2px; }
  .hero-editorial-field label { font-size: 9px; letter-spacing: 0.7px; }
  .hero-editorial-field input,
  .hero-editorial-field select {
    height: 36px;
    padding: 4px 7px;
    font-size: 12px;
    border-radius: 5px;
  }
  .hero-editorial-submit {
    grid-column: 1 / -1;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12.5px !important;
    margin-top: 2px;
  }
  .hero-editorial-foot {
    margin-top: 7px;
    padding-top: 6px;
    font-size: 10.5px;
    gap: 4px 8px;
  }
  .hero-editorial-links {
    margin-top: 10px;
    gap: 8px 14px;
  }
  .hero-editorial-links .quiet-link {
    font-size: 11.5px;
    padding: 4px 0;
  }

  /* Horizontal Touch Swipe Carousels for Bungalow Preview, Featured Tours & Guides */
  .bungalows-editorial-wrap { padding: 8px 18px 42px; }
  .bungalows-editorial-head { margin-bottom: 14px; gap: 10px; }
  .bungalows-editorial-head h3 { font-size: 23px; }
  .ed-tours-strip { padding: 34px 18px 10px; }
  .ed-guides-section { padding: 40px 18px; }

  .bungalows-editorial-grid,
  .ed-tours-grid,
  .ed-guides-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    margin-top: 14px;
  }
  .bungalow-ed-card,
  .ed-tour-card,
  .ed-guide-card {
    flex: 0 0 78vw;
    max-width: 282px;
    scroll-snap-align: start;
  }
  .bungalow-ed-media,
  .ed-tour-media { height: 148px; }
  .bungalow-ed-body,
  .ed-tour-body,
  .ed-guide-card { padding: 13px 14px; gap: 6px; }
  .bungalow-ed-body p,
  .ed-tour-body p,
  .ed-guide-card p {
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact Direct Booking Studio on Mobile */
  .editorial-booking-section { padding: 36px 0; }
  .editorial-booking-inner { padding: 0 16px; }
  .editorial-booking-header { margin-bottom: 14px; gap: 10px; }
  .editorial-booking-header h2 { font-size: 28px; margin-bottom: 6px; }
  .editorial-booking-header p:not(.eyebrow) { font-size: 12.8px; line-height: 1.5; }
  .direct-perks-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 4px;
    gap: 6px;
  }
  .direct-perks-pills span {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 10.5px;
  }

  /* Compact 3-Column Horizontal Stepper on Mobile */
  .booking-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
  }
  .step-tab {
    padding: 8px 8px;
    gap: 6px;
    border-radius: 8px;
  }
  .step-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .step-meta strong {
    font-size: 11px;
    line-height: 1.2;
  }
  .step-meta span {
    display: none;
  }

  .studio-layout { gap: 14px; }
  .studio-panel { padding: 14px 12px; border-radius: 10px; }
  .studio-step-head { margin-bottom: 10px; gap: 8px; }
  .studio-step-head h3 { font-size: 19px; }
  .studio-step-head p { font-size: 12px !important; line-height: 1.45; }

  /* Single-Line Scrollable Filter Pills on Mobile */
  .addon-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 4px;
  }
  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 11px;
    font-size: 11px;
  }

  /* Compact Mobile Room Cards + Collapsible Extra Rooms */
  .rooms-list { gap: 12px; }
  .room-card.room-card-mobile-extra,
  .addon-card.addon-card-mobile-extra {
    display: none !important;
  }
  .mobile-expand-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1.5px dashed #7c916e;
    background: #f6f0df;
    color: #173e2d;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
  }
  .room-media {
    min-height: 156px;
    height: 156px;
    flex: none;
  }
  .room-thumb-strip {
    display: none;
  }
  .room-body {
    padding: 12px 13px;
    gap: 8px;
  }
  .room-body h3 {
    font-size: 17.5px;
    margin-bottom: 2px;
  }
  .room-beds-line,
  .room-capacity {
    font-size: 11.5px;
    margin-bottom: 4px;
    gap: 6px;
  }
  .room-desc {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .room-amenities .amenity-chip:nth-child(n+4) {
    display: none;
  }
  .amenity-chip {
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .rate-plan-picker {
    gap: 5px;
    margin-top: 6px;
  }
  .rate-plan-pill {
    flex: 1;
    justify-content: space-between;
    padding: 5px 8px;
    font-size: 11px;
  }
  .room-pricing-row {
    padding-top: 8px;
    gap: 8px;
    align-items: center;
  }
  .nightly-rate {
    font-size: 20px;
  }
  .rate-sub {
    font-size: 11px;
  }

  /* Compact Addons Builder & Trip Summary on Mobile */
  .addons-builder-grid { grid-template-columns: 1fr; gap: 10px; }
  .addon-card { padding: 12px; gap: 8px; }
  .addon-card p {
    font-size: 11.8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .guest-form-grid { grid-template-columns: 1fr; gap: 10px; }
  .trip-summary-head { padding: 12px 14px; }
  .trip-summary-head h3 { font-size: 16.5px; }
  .trip-summary-body { padding: 12px 14px; }

  .trip-floating-btn { bottom: 68px; right: 14px; padding: 10px 14px; font-size: 12px; }
  .cookie-consent { bottom: 72px; left: 14px; right: 14px; max-width: none; }
  .offer-photo { min-height: 260px; }
  .offer-photo img { object-position: center 55%; }
}
