:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --text:#e8eefc;
  --muted:#a8b6d9;
  --line:rgba(255,255,255,.12);
  --accent:#5dd6ff;
  --accent2:#7cf2c9;
  --danger:#ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --max: 1100px;
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 600px at 15% 0%, rgba(93,214,255,.18), transparent 55%),
              radial-gradient(900px 550px at 95% 15%, rgba(124,242,201,.16), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{color:inherit; text-decoration:none}
a:hover{color:var(--accent)}

.wrap{max-width:var(--max); margin:0 auto; padding: 18px 16px 80px}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.68);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  max-width:var(--max);
  margin:0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap: nowrap;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  font-size: clamp(20px, 3.4vw, 34px);
  white-space: nowrap;
}
.brand-badge{
  width:34px; height:34px; border-radius:10px;
  background-color: rgba(255,255,255,.04);
  background-image: url("./listing-assets/lake-tahoe-lake-shape.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 82% 82%;
  box-shadow: var(--shadow);
}
.topbar .brand-badge{display:none}
.nav-cart-icon{
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  align-items:center;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar{display:none}
.nav a{
  padding:8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(232,238,252,.92);
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav a[aria-label="Cart"]{padding:6px}
.nav a[aria-current="page"]{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}
.nav a:not(:last-child)::after {
  content: " ->";
  margin: 0 10px;
  color: rgba(232,238,252,.84);
  text-decoration: none;
  pointer-events: none;
}

/* Mobile-friendly nav dropdown (hamburger). */
.nav-menu{
  position: relative;
  display:flex;
  align-items:center;
}
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
  user-select:none;
}
.nav-toggle:hover{border-color: rgba(93,214,255,.5)}
.nav-toggle-bars{
  width: 18px;
  height: 12px;
  position: relative;
  display:block;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius: 2px;
  background: rgba(232,238,252,.92);
}
.nav-toggle-bars::before{top:0}
.nav-toggle-bars span{top:5px}
.nav-toggle-bars::after{bottom:0}
.nav-dropdown{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.nav-dropdown a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 800;
  color: rgba(232,238,252,.92);
}
.nav-dropdown a:hover{
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.nav-dropdown a[aria-current="page"]{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

/* Primary progression emphasis (blue ring). */
.btn.next{
  box-shadow: 0 0 0 2px rgba(93,214,255,.55), 0 0 0 6px rgba(93,214,255,.12);
  border-color: rgba(93,214,255,.65);
}

@media (max-width: 520px){
  .topbar-inner{padding: 10px 12px; gap: 10px}
  .nav{gap: 8px}
  .nav a{padding: 6px 8px; font-size: 14px}
  .nav a:not(:last-child)::after{margin: 0 8px}
  .nav-cart-icon{height: 24px}
}


.hero{
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 8px; font-size: 28px}
.hero p{margin:0; color:var(--muted)}

.grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 16px;
}
.col-5{grid-column: span 5}
.col-7{grid-column: span 7}
.col-4{grid-column: span 4}
.col-6{grid-column: span 6}
.col-8{grid-column: span 8}
.col-12{grid-column: span 12}
@media (max-width: 900px){
  .col-4,.col-5,.col-6,.col-7,.col-8{grid-column: span 12}
}

.panel{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h2{margin:0 0 10px; font-size: 18px}
.panel h3{margin:0 0 10px; font-size: 16px}
.muted{color: var(--muted)}
.small{font-size: 12px}

.form-row{display:flex; gap:10px; flex-wrap:wrap}
.field{display:flex; flex-direction:column; gap:6px; min-width: 180px; flex:1}
label{color: var(--muted); font-size: 12px}
input,select,textarea{
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,26,46,.72);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
textarea{min-height:90px; resize:vertical}
input:focus,select:focus,textarea:focus{border-color: rgba(93,214,255,.55)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
  user-select:none;
}
.btn:hover{border-color: rgba(93,214,255,.5)}
.btn.primary{
  border-color: rgba(93,214,255,.55);
  background: linear-gradient(135deg, rgba(93,214,255,.18), rgba(124,242,201,.14));
}
.btn.danger{border-color: rgba(255,107,107,.45)}
.btn.danger:hover{border-color: rgba(255,107,107,.75)}
.btn[disabled]{opacity:.55; cursor:not-allowed}

.cards{display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 14px}
.card{
  grid-column: span 4;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
@media (max-width: 950px){ .card{grid-column: span 6} }
@media (max-width: 650px){ .card{grid-column: span 12} }
.card-media{
  height: 140px;
  background: linear-gradient(135deg, rgba(93,214,255,.22), rgba(124,242,201,.18));
  border-bottom: 1px solid var(--line);
}
.card-body{padding: 12px}
.card-title{margin:0; font-size: 16px}
.card-meta{margin:6px 0 0; color: var(--muted); font-size: 12px}
.card-actions{display:flex; gap:10px; margin-top: 10px; flex-wrap:wrap}

/* Affiliate concierge collection */
.affiliate-page{
  --bg:#f4f7f5;
  --panel:#ffffff;
  --text:#17201b;
  --muted:#5d6a62;
  --line:rgba(23,32,27,.12);
  --accent:#176f5b;
  --accent2:#c65f36;
  --shadow: 0 18px 46px rgba(20,31,26,.12);
  color-scheme: light;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(23,111,91,.1), rgba(198,95,54,.08) 42%, transparent 72%),
    var(--bg);
}
.affiliate-page .topbar{
  background: rgba(244,247,245,.86);
  color: var(--text);
}
.affiliate-page .nav-dropdown{
  background: rgba(255,255,255,.94);
}
.affiliate-page .nav-toggle{
  background: rgba(255,255,255,.72);
}
.affiliate-page .nav-toggle-bars::before,
.affiliate-page .nav-toggle-bars::after,
.affiliate-page .nav-toggle-bars span{
  background: var(--text);
}
.affiliate-page .btn{
  min-height: 42px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}
.affiliate-page .btn.primary{
  border-color: #17201b;
  background: #17201b;
  color: #fff;
}
.affiliate-page .btn.danger{
  color: #7b2f20;
  background: #fff7f3;
  border-color: rgba(198,95,54,.36);
}
.affiliate-wrap{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 120px;
}
.affiliate-hero{
  min-height: 220px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 20px;
  padding: 34px 0 20px;
}
.affiliate-eyebrow{
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.affiliate-hero h1{
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .95;
}
.affiliate-hero p:not(.affiliate-eyebrow){
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.affiliate-hero-meta{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-weight: 800;
}
.affiliate-products-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.affiliate-product-card{
  display:flex;
  flex-direction:column;
  min-height: 100%;
  overflow:hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20,31,26,.1);
}
.affiliate-product-media{
  display:block;
  aspect-ratio: 1.36;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(23,111,91,.14), rgba(198,95,54,.12));
}
.affiliate-product-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition: transform .28s ease;
}
.affiliate-product-card:hover .affiliate-product-media img{
  transform: scale(1.035);
}
.affiliate-product-copy{
  display:flex;
  flex:1;
  flex-direction:column;
  padding: 14px;
}
.affiliate-product-provider{
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.affiliate-product-copy h2{
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.12;
}
.affiliate-product-subtitle{
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}
.affiliate-product-summary{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.affiliate-product-bottom{
  margin-top:auto;
  padding-top: 16px;
}
.affiliate-product-price{
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.affiliate-product-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.affiliate-cart-bar{
  position:fixed;
  left:50%;
  bottom: 16px;
  z-index: 18;
  width: min(760px, calc(100% - 28px));
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(23,32,27,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(20,31,26,.18);
  backdrop-filter: blur(14px);
}
.affiliate-cart-bar div{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.affiliate-cart-bar span{
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px){
  .affiliate-hero{
    min-height: auto;
    align-items:flex-start;
    flex-direction:column;
  }
  .affiliate-products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px){
  .affiliate-wrap{
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }
  .affiliate-hero h1{
    font-size: 42px;
  }
  .affiliate-products-grid{
    grid-template-columns: 1fr;
  }
  .affiliate-cart-bar{
    align-items:stretch;
  }
  .affiliate-cart-bar .btn{
    white-space: nowrap;
  }
}

/* Card carousel (Stays grid) */
.card-carousel{position: relative; height: 100%}
.card-carousel-track{
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.card-carousel-track::-webkit-scrollbar{display:none}
.card-carousel-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* keep swipe/drag on container */
}
.carousel-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,26,46,.82);
  color: var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.carousel-arrow.left{left: 8px}
.carousel-arrow.right{right: 8px}
.carousel-arrow:disabled{opacity:.3; cursor:default}

.stay-hero-image{
  width:100%;
  height: min(420px, 46vh);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  user-select:none;
  -webkit-user-drag:none;
}

/* Activity + product detail hero (square, phone-friendly) */
.detail-hero-square{
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display:block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  user-select:none;
  -webkit-user-drag:none;
}

/* Detail square photo carousel (stay/activity/product) */
.stay-photo-carousel{position: relative}
.stay-photo-single{
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.stay-photo-track{
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  padding-right: 44px; /* room for right arrow */
}
.stay-photo-track::-webkit-scrollbar{display:none}
.stay-photo-img{
  display:block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none; /* keep swipe/drag on container */
}
@supports not (aspect-ratio: 1 / 1){
  .stay-photo-single{height: 320px;}
  .stay-photo-track{height: 320px;}
}

.stay-hero-carousel{position: relative}
.stay-hero-track{
  width: 100%;
  height: min(420px, 46vh);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.stay-hero-track::-webkit-scrollbar{display:none}
.stay-hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}
.hero-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,26,46,.82);
  color: var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.hero-arrow.left{left: 10px}
.hero-arrow.right{right: 10px}
.hero-arrow:disabled{opacity:.3; cursor:default}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gallery-grid img{
  width:100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.gallery-grid img:first-child{
  grid-column: span 2;
  min-height: 320px;
}
@media (max-width: 900px){
  .gallery-grid{grid-template-columns: 1fr;}
  .gallery-grid img:first-child{grid-column:auto;}
}

/* Stay detail photo strip */
.stay-gallery{
  position: relative;
}
.stay-gallery-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: 44px; /* room for arrow */
  -webkit-overflow-scrolling: touch;
}
.stay-gallery-track::-webkit-scrollbar{height: 10px}
.stay-gallery-track::-webkit-scrollbar-thumb{background: rgba(255,255,255,.12); border-radius: 999px}
.stay-gallery-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  scroll-snap-align: start;
}
.gallery-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,26,46,.88);
  color: var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.gallery-arrow.left{left: 8px}
.gallery-arrow.right{right: 8px}
.gallery-arrow:disabled{opacity:.35; cursor:default}
@media (max-width: 900px){
  .stay-gallery-track{grid-auto-columns: calc((100% - 12px) / 2);}
}
@media (max-width: 600px){
  .stay-gallery-track{grid-auto-columns: 100%;}
}

/* Stay detail square photo carousel */
.stay-photo-carousel{position: relative}
.stay-photo-single{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.stay-photo-track{
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  padding-right: 44px; /* room for arrow */
}
.stay-photo-track::-webkit-scrollbar{display:none}
.stay-photo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none; /* keep swipe/drag on container */
}
@supports not (aspect-ratio: 1 / 1){
  .stay-photo-single{height: 320px;}
  .stay-photo-track{height: 320px;}
}

/* Stay copy */
.stay-intro{font-size: 14px; line-height: 1.55; margin: 10px 0 0 0}
.stay-highlights{
  margin: 10px 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.stay-highlights li{margin: 6px 0}
.stay-notes{display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px}

/* Activities "Next choices" bar */
.next-choices{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
}
.next-choices.hidden{display:none}
.next-choices-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,26,46,.92);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
}
.next-choices-copy{min-width: 0}

.pill{
  display:inline-flex; align-items:center;
  padding: 4px 10px;
  border-radius:999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* Cart dock */
.ik-dock{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: min(420px, calc(100vw - 28px));
  z-index: 50;
}
.ik-dock-inner{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,26,46,.92);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
}
.ik-dock-top{display:flex; align-items:center; justify-content:space-between; gap:12px}
.ik-dock-title{font-weight:700}
.ik-dock-items{margin-top:10px; display:flex; flex-direction:column; gap:8px}
.ik-dock-item{display:flex; align-items:center; justify-content:space-between; gap:10px}
.ik-dock-item .name{color:var(--text)}
.ik-dock-item .kind{color:var(--muted); font-size:12px}
.ik-dock-actions{display:flex; gap:10px; margin-top: 10px; flex-wrap:wrap}
.ik-dock-body.is-collapsed .ik-dock-items,
.ik-dock-body.is-collapsed .ik-dock-actions{
  display:none;
}

/* Tables / pre */
pre{
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
