:root {
  --ink: #1d2327;
  --muted: #5d676d;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e6e1d9;
  --accent: #2f5d62;      /* deep lake green */
  --accent-ink: #ffffff;
  --booked: #e9e4dc;
  --radius: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { margin: 0 0 .3em; font-size: .95rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { background: #244a4e; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.15); border: 1.5px solid #fff; color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.3); }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(16px, calc((100% - var(--max)) / 2)); background: rgba(250,248,245,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 1.4rem; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav nav a:not(.btn):hover { color: var(--accent); }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; padding: 0 10px; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav.open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0 .6rem; }
  .nav.open nav { display: flex; }
  .nav nav a:not(.btn) { padding: .75rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav nav .btn { margin-top: .8rem; text-align: center; padding: .8em 1.4em; font-size: 1rem; }
}

/* hero */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: #33494f center/cover no-repeat; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.1) 70%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.hero-text { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px 4rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 14em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; opacity: .9; }
.lede { font-size: 1.15rem; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: -2.2rem auto 0; position: relative; background: var(--card); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.facts div { padding: 1.3rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); margin: -2rem 16px 0; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: 4.5rem 16px 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.rooms { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.rooms li { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.rooms li:last-child { border-bottom: 0; }
.rooms span { color: var(--muted); font-size: .93rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #ddd; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .more { position: relative; }
.gallery .more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 600; font-size: 1.1rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

/* amenities */
.amenities { columns: 3 220px; padding: 0; margin: 0; list-style: none; }
.amenities li { break-inside: avoid; padding: .45rem 0 .45rem 1.6rem; position: relative; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }

/* calendar */
.avail-head { display: flex; justify-content: space-between; align-items: baseline; }
.cal-nav button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .calendar { grid-template-columns: repeat(2, 1fr); } .calendar .month:nth-child(3) { display: none; } }
@media (max-width: 600px) { .calendar { grid-template-columns: 1fr; } .calendar .month:nth-child(2) { display: none; } }
.month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.month h3 { font-size: 1.05rem; text-align: center; margin-bottom: .8rem; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: .9rem; }
.days .dow { color: var(--muted); font-size: .75rem; font-weight: 600; padding-bottom: .3rem; }
.days .d { padding: .45rem 0; border-radius: 6px; }
.days .past { color: #bbb; }
.days .booked { background: var(--booked); color: #a39b8f; text-decoration: line-through; }
.days .today { outline: 1.5px solid var(--accent); }
.cal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.legend { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.sw-free { background: var(--card); }
.sw-booked { background: var(--booked); margin-left: .8rem; }
.book-box { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2rem; padding: 1.6rem 2rem; background: #edf2f1; border-radius: var(--radius); }
.book-box p { margin: 0; color: var(--muted); }
.book-box h3 { margin-bottom: .3rem; }
@media (max-width: 600px) { .book-box { flex-direction: column; align-items: flex-start; padding: 1.4rem; } }

/* map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map .leaflet-container, .map { font: inherit; }
.map { z-index: 0; position: relative; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rules > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.rules p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.permit { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }

.footer { max-width: var(--max); margin: 5rem auto 0; padding: 2rem 16px 3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,12,14,.97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; }
.lightbox figcaption { color: #ddd; margin-top: .8rem; font-size: .95rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: .4rem 1rem; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }

/* availability calendar hidden until iCal feeds are connected */
.cal-off .calendar, .cal-off .cal-nav, .cal-off .cal-foot { display: none; }
.cal-off .book-box { margin-top: .5rem; }

/* reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; }
.rating { margin: 0 0 1.2rem; color: var(--muted); }
.rating .stars { color: #d9a400; letter-spacing: .05em; }
.rating b { color: var(--ink); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.review blockquote { margin: 0; font-size: .97rem; }
.review figcaption { display: flex; flex-direction: column; font-size: .88rem; }
.review figcaption span { color: var(--muted); }
.review[hidden] { display: none; }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); margin-top: 1.2rem; cursor: pointer; font: inherit; font-weight: 600; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.review-more { border: 0; background: #edf2f1; color: var(--accent); font: inherit; font-weight: 700; letter-spacing: .1em; padding: 0 .45em; border-radius: 6px; cursor: pointer; line-height: 1.4; }
.review-more:hover { background: var(--accent); color: #fff; }
.review { justify-content: flex-start; }
.review figcaption { margin-top: auto; }

/* host */
.host { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center; }
.host-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.host-avatar { width: 96px; height: 96px; margin: 0 auto .8rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: Fraunces, Georgia, serif; font-size: 2.4rem; overflow: hidden; }
.host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host-card h3 { margin: 0; font-size: 1.5rem; }
.host-sub { color: var(--muted); margin: .2rem 0 1.2rem; }
.host-stats { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.host-stats li { display: flex; flex-direction: column; }
.host-stats b { font-size: 1rem; }
.host-stats span { color: var(--muted); font-size: .78rem; line-height: 1.3; }
@media (max-width: 760px) { .host { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Tahoe Guide pages */
.guide { max-width: 860px; margin: 0 auto; padding: 2.5rem 16px 0; }
.guide h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(2rem, 4.5vw, 3rem); margin: .3rem 0 .6rem; line-height: 1.1; }
.guide h2 { margin-top: 2.6rem; font-size: 1.6rem; }
.crumbs { color: var(--muted); font-size: .88rem; margin: 0; }
.crumbs a { color: var(--muted); }
.lede-dark { font-size: 1.15rem; color: var(--muted); }
.places { display: grid; gap: .9rem; }
.place { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.place h3 { margin: 0 0 .35rem; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.place h3 a { color: var(--ink); }
.place p { margin: 0; color: var(--muted); }
.tag { font-family: Inter, sans-serif; font-size: .75rem; font-weight: 600; color: var(--accent); background: #edf2f1; border-radius: 999px; padding: .15em .7em; }
.tips { padding-left: 1.2rem; }
.tips li { margin-bottom: .4rem; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.guide-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.guide-card p { color: var(--muted); }
.guide-card span { color: var(--accent); font-weight: 600; }
.guide .book-box { margin-top: 3rem; }

.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 .5rem; }
.toc a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--accent); background: #edf2f1; padding: .35em .9em; border-radius: 999px; }
.resort { scroll-margin-top: 80px; }
.guide h3.sub { font-size: 1.1rem; margin: 1.6rem 0 .7rem; }
.stats { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; text-align: center; display: flex; flex-direction: column; }
.stats b { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; }
.stats span { color: var(--muted); font-size: .8rem; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font-size: .85rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card); padding: .4em .9em; border-radius: 999px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.faq { margin-top: 1.5rem; display: grid; gap: .6rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.2rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style-position: outside; }
.faq details[open] summary { margin-bottom: .5rem; }
.faq details p { margin: 0; color: var(--muted); }
.footer-links a { margin: 0 .2rem; }

/* amenity / room names that open a photo */
.photo-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: zoom-in; text-align: left; border-bottom: 1px dashed var(--accent); }
.photo-link::after { content: ""; display: inline-block; width: .95em; height: .95em; margin-left: .35em; vertical-align: -.1em; opacity: .7;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
.photo-link:hover { color: var(--accent); }
.rooms b .photo-link { font-weight: 700; }

.mobile-book { display: none; }
@media (max-width: 760px) {
  .mobile-book { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .25s; }
  .mobile-book.show { transform: none; }
  .host-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
  body { padding-bottom: 76px; }
  .lightbox ~ .mobile-book { }
}

/* Guide photos */
.guide-hero { margin: 1rem 0 1.2rem; border-radius: var(--radius); overflow: hidden; position: relative; background: #dfe6e5; }
.guide-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.guide-hero .credit { position: absolute; right: .6rem; bottom: .5rem; background: rgba(0,0,0,.45); color: #eee; padding: .15em .55em; border-radius: 6px; }
.guide-hero .credit a { color: #fff; }
.credit { font-size: .72rem; color: var(--muted); }
.credit a { color: inherit; }
.guide-fig { margin: 1.2rem 0; }
.guide-fig img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); display: block; background: #dfe6e5; }
.guide-fig figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; }
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fig-row .guide-fig img { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .fig-row { grid-template-columns: 1fr; } .guide-hero img { aspect-ratio: 4 / 3; } }
.place.has-img { display: grid; grid-template-columns: 220px 1fr; gap: 1.1rem; align-items: start; }
.place-img { margin: 0; }
.place-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: #dfe6e5; }
.place-img figcaption { margin-top: .25rem; line-height: 1.3; }
@media (max-width: 600px) { .place.has-img { grid-template-columns: 1fr; } }
.guide-card { padding: 0; overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #dfe6e5; }
.guide-card h3, .guide-card p, .guide-card span { margin-left: 1.3rem; margin-right: 1.3rem; }
.guide-card h3 { margin-top: 1rem; }
.guide-card span { display: block; margin-bottom: 1.2rem; }
