/* PAGE: property (see design/DESIGN.md). Loaded after styles.css on property pages. */
.muted{color:var(--muted)}
.prop{max-width:var(--max);margin:0 auto;padding:20px var(--m) var(--sec)}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);margin-bottom:14px}
.crumbs a{color:var(--ink)}
.prop__head h1{font-size:clamp(32px,3.8vw,52px);line-height:1.05}
.prop__sub{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-size:16px}
.prop__sub a{color:var(--ink)}

/* gallery */
.gallery{position:relative;margin:24px 0 clamp(32px,4vw,48px)}
.gallery__grid{display:grid;grid-template-columns:3fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;height:clamp(380px,46vw,640px);border-radius:10px;overflow:hidden;box-shadow:0 22px 44px -26px rgba(70,45,10,.55)}
.gallery__cell{padding:0;border:0;cursor:zoom-in;overflow:hidden;background:var(--sand)}
.gallery__cell img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.gallery__cell:hover img{transform:scale(1.03)}
.gallery__cell--main{grid-row:span 2}
.gallery__all{position:absolute;right:16px;bottom:16px}
.btn--paper{background:var(--paper);color:var(--ink);min-height:44px;padding:10px 16px;font-size:15px}
.btn--paper:hover{background:#fff}
.btn .ic{width:18px;height:18px}
.gallery__count{display:none}

/* layout */
.prop__layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;column-gap:clamp(32px,5vw,80px);align-items:start}
.prop__layout>.prop__block{grid-column:1}
.book{grid-column:2;grid-row:1 / span 20;position:sticky;top:24px}
.prop__block{padding:clamp(64px,7vw,104px) 0 0}
.prop__block:first-child{padding-top:0}
.prop__block h2{font-size:clamp(24px,2.4vw,32px);line-height:1.15;margin-bottom:16px}
.prop__block h3{font:700 19px var(--sans);margin:28px 0 8px}
.ic{width:22px;height:22px;flex:none}
.ic--lg{width:30px;height:30px}
.ic--xl{width:40px;height:40px}
.facts{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px 22px;font-size:17px}
.facts li{display:flex;align-items:center;gap:8px}
.highlights{list-style:none;padding:0;display:grid;gap:20px;margin:28px 0}
.highlights li{display:flex;gap:16px;align-items:flex-start}
.highlights b{display:block}
.highlights span{color:var(--muted)}
.prose{max-width:64ch}
.prose p+p{margin-top:14px}
.amen{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin-bottom:24px}
.amen li{display:flex;gap:14px;align-items:center}
.amen--list{grid-template-columns:1fr;gap:14px}
.amen--no li{color:var(--muted);text-decoration:line-through}
.link-btn{background:none;border:0;padding:6px 0;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}

/* calendar */
.cal{position:relative;margin-top:8px}
.cal__nav{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;pointer-events:none}
.cal__btn{pointer-events:auto;width:40px;height:40px;border-radius:50%;border:0;background:var(--sand);display:grid;place-items:center;cursor:pointer}
.cal__btn:disabled{opacity:.35;cursor:default}
.cal__btn .ic{width:18px;height:18px}
.cal__months{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:40px}
.cal__title{text-align:center;font-weight:700;line-height:40px;margin-bottom:8px;text-transform:capitalize}
.cal__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.cal__dow{text-align:center;font-size:13px;color:var(--muted);padding:4px 0}
.cal__day{aspect-ratio:1;border:0;border-radius:50%;background:none;font-size:15px;font-weight:500;cursor:pointer;transition:background-color .14s}
.cal__day:hover:not(:disabled){background:var(--sand)}
.cal__day:disabled{cursor:default;color:#8a8170}
.cal__day.is-busy{color:#8a8170;text-decoration:line-through}
.cal__day.is-in{background:var(--sand);border-radius:0}
.cal__day.is-sel{background:var(--ink);color:var(--paper);text-decoration:none}
.cal__legend{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--muted)}
.sw{display:inline-block;width:14px;height:14px;border-radius:50%}
.sw--free{background:var(--ink)}
.sw--busy{background:#d9d2c4;margin-left:12px}

/* reviews */
.star-lg{width:24px;height:24px;color:var(--gold);vertical-align:-3px;margin-right:6px}
.prop-reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 40px;margin-bottom:28px}
.prop-reviews figcaption{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;margin-bottom:10px}
.prop-reviews figcaption span:last-child{grid-column:2;font-size:14px;color:var(--muted)}
.avatar{grid-row:span 2;width:44px;height:44px;border-radius:50%;background:var(--field);display:grid;place-items:center;font:400 20px var(--serif)}
.prop-reviews blockquote{font-size:16px;line-height:1.55}

/* map and photo strips */
.prop__block p .ic{vertical-align:-5px}
.map{margin-top:16px;aspect-ratio:16/9;border-radius:var(--radius-photo);box-shadow:var(--shadow-photo);overflow:hidden;background:var(--sand)}
.map iframe{width:100%;height:100%;border:0}
.strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:22px;margin-top:14px}
.strip--wide{grid-auto-columns:minmax(240px,280px)}
.strip--hl{grid-auto-columns:minmax(240px,1fr)}
.strip.strip--hl img{aspect-ratio:4/3}
.hl__open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.strip--hl figcaption{color:var(--ink)}
.strip figure{scroll-snap-align:start}
.strip img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:var(--radius-photo);box-shadow:var(--shadow-photo)}
.strip figcaption{font-size:14px;color:var(--muted);margin-top:8px}

/* rules and host */
.rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px}
.rules dt{font-weight:700}
.rules dd{margin:4px 0 0;color:var(--muted)}
.host__facts{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.host__facts li{background:var(--sand);padding:6px 12px;border-radius:2px;font-size:15px;font-weight:500}
.host p{max-width:64ch;margin-bottom:20px}

/* booking card */
.book__card{background:var(--paper);border-radius:8px;padding:24px;box-shadow:0 12px 40px -16px rgba(23,20,15,.28),0 0 0 1px rgba(23,20,15,.08)} /* taste-skill-ignore: sticky booking overlay */
.book__price{font-size:16px;margin-bottom:16px}
.book__price b{font:400 30px var(--serif)}
.book__fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.book__date,.book__gbtn{background:var(--sand);border-radius:4px}
.book__date{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border:0;text-align:left;cursor:pointer}
.book__date:hover{background:#e6e0d5}
.book__date span,.book__gbtn span{font-size:13px;font-weight:700}
.book__date b{font-weight:400;font-size:16px}
.book__guests{grid-column:1/-1;position:relative}
.stepper{display:flex;align-items:center;gap:12px}
.stepper button{width:36px;height:36px;border-radius:50%;border:0;background:var(--paper);font-size:20px;line-height:1;cursor:pointer}
.stepper output{min-width:1.5em;text-align:center;font-weight:700}
.book__sum dl,.pay__sum dl{display:grid;gap:8px;margin-top:18px;font-size:16px}
.book__sum dl div,.pay__sum dl div{display:flex;justify-content:space-between;gap:12px}
.book__sum dd,.pay__sum dd{margin:0}
.sum__total{padding-top:10px;margin-top:4px;font-weight:700;border-top:1px solid #d9d2c4} /* taste-skill-ignore: total rule in a receipt */
.sum__dep{color:var(--gold-ink);font-weight:700}
.book__go{width:100%;margin-top:18px}
.book__note{text-align:center;font-size:14px;color:var(--muted);margin-top:10px}
.book__wa{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:14px;font-weight:700;font-size:15px;text-underline-offset:4px}
.book__wa .wa-ico{width:18px;height:18px;color:#1f9d55}

/* related */
.related{padding-top:clamp(80px,9vw,128px)}
.related h2{font-size:clamp(24px,2.4vw,32px);margin-bottom:24px}
.related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}

/* phone booking bar */

/* dialogs */
.dlg{border:0;padding:0;background:var(--paper);color:var(--ink);max-height:100dvh}
.dlg::backdrop{background:rgba(23,20,15,.6)}
.dlg__bar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:var(--paper);z-index:1}
.dlg__x{width:40px;height:40px;border-radius:50%;border:0;background:var(--sand);display:grid;place-items:center;cursor:pointer}
.dlg__body{padding:8px clamp(20px,3vw,32px) 32px}
.dlg__body h2{font-size:28px;margin-bottom:16px}
.dlg__body h3{font:700 17px var(--sans);margin:24px 0 12px}
.dlg--photos{width:100vw;height:100dvh;max-width:none;margin:0}
.dlg--photos .ph-list{height:calc(100dvh - 64px);overflow-y:auto;display:grid;gap:12px;padding:0 16px 24px;justify-items:center}
.dlg--photos figure{width:min(900px,100%)}
.dlg--photos img{width:100%;border-radius:var(--radius-photo-sm)}
.dlg--side{width:min(520px,100vw);height:100dvh;margin:0 0 0 auto;overflow-y:auto}
.dlg[open]{animation:dlg-in .28s var(--ease)}
@keyframes dlg-in{from{opacity:0;transform:translateY(12px)}}
.pay__stay{display:flex;gap:14px;align-items:center;padding-bottom:16px}
.pay__stay img{width:96px;height:72px;object-fit:cover;border-radius:4px}
.pay__stay div{display:flex;flex-direction:column}
.pay__stay span{color:var(--muted);font-size:15px}
.pay__methods{border:0;padding:0;margin:24px 0 0;display:grid;gap:10px}
.pay__methods legend{font-weight:700;font-size:17px;margin-bottom:10px}
.method{display:flex;gap:14px;align-items:center;padding:14px 16px;border-radius:6px;background:var(--sand);cursor:pointer;border:2px solid transparent}
.method:has(input:checked){border-color:var(--ink);background:var(--paper)}
.method input{width:18px;height:18px;accent-color:var(--ink);flex:none}
.method b{display:block}
.method small{display:block;font-size:14px;color:var(--muted)}
.pay__policy{font-size:14px;color:var(--muted);margin:18px 0}
.pay__go{width:100%}
.pay__done{text-align:center;display:grid;justify-items:center;gap:12px;padding-top:32px}
.pay__check{width:72px;height:72px;border-radius:50%;background:var(--field);display:grid;place-items:center}

/* galleries with fewer than 5 photos (Instagram-only houses, small listings) */
.gallery__grid--n1{grid-template-columns:1fr;grid-template-rows:1fr}
.gallery__grid--n2{grid-template-columns:2fr 1fr;grid-template-rows:1fr}
.gallery__grid--n2 .gallery__cell--main{grid-row:auto}
.gallery__grid--n3{grid-template-columns:2fr 1fr}
.gallery__grid--n4{grid-template-columns:2fr 1fr 1fr}
.gallery__grid--n4 .gallery__cell:last-child{grid-column:span 2}

@media (max-width:900px){
  .prop__layout{grid-template-columns:minmax(0,1fr)}
  /* phones: the booking card sits right after the house intro */
  .book{grid-column:1;grid-row:2;position:static;margin-top:8px;margin-bottom:8px}
  .book__card{box-shadow:none;background:var(--sand)}
  .book__date,.book__gbtn{background:var(--paper)}
  .gallery{margin-left:calc(var(--m)*-1);margin-right:calc(var(--m)*-1)}
  .gallery__grid{display:flex;height:auto;border-radius:0;box-shadow:none;overflow-x:auto;scroll-snap-type:x mandatory;gap:0}
  .gallery__cell{flex:0 0 100%;scroll-snap-align:start;aspect-ratio:4/3}
  .gallery__all{right:calc(var(--m) + 4px);bottom:12px}
  .gallery__count{display:block;position:absolute;left:var(--m);bottom:16px;background:rgba(23,20,15,.7);color:var(--paper);font-size:14px;padding:4px 10px;border-radius:2px}
  .amen,.prop-reviews,.rules,.related__grid{grid-template-columns:1fr}

  .dlg--side{width:100vw}
}
@media (prefers-reduced-motion:reduce){.dlg[open]{animation:none}.gallery__cell img{transition:none}}

/* booking without checkout: WhatsApp request + payment info */
.book__title{font:400 24px/1.2 var(--serif);margin-bottom:16px}
.book__go{display:flex;width:100%;margin-top:18px}
.book__pay{margin-top:20px;padding-top:16px;border-top:1px solid #d9d2c4} /* taste-skill-ignore: divider inside a card */
.book__pay>p{font-weight:700;font-size:15px;margin-bottom:8px}
.paylist{list-style:none;padding:0;display:grid;gap:10px;font-size:15px}
.paylist li{display:flex;gap:10px;align-items:flex-start}
.paylist .ic{width:20px;height:20px;margin-top:2px;color:var(--gold-ink)}
.howto__steps{list-style:none;padding:0;display:grid;gap:22px;margin-bottom:8px}
.howto__steps li{display:flex;gap:16px;align-items:flex-start}
.howto__steps b{display:block;font-size:18px}
.howto__steps span{color:var(--muted);max-width:56ch;display:block}
.howto .paylist{font-size:16px}

/* long house-page blocks render when they come near the screen */
.prop__layout>.prop__block:not(.prop__overview),.related{content-visibility:auto;contain-intrinsic-size:auto 700px}

/* Prices and the estimate (booking card) */
.prop__price b,.book__from b{font-weight:700;color:var(--ink)}
.book__from{margin:-6px 0 16px;color:var(--muted)}
.book__from b{font:600 24px/1 var(--serif)}
.book__long{margin:-8px 0 16px;font-size:14px;color:var(--gold-ink);font-weight:500}
.book__quote{margin:16px 0 4px;padding:14px 0 0;border-top:1px solid var(--line);display:grid;gap:8px;font-size:15px}
.book__quote p{display:flex;justify-content:space-between;gap:12px}
.book__quote .q-total{padding-top:8px;border-top:1px solid var(--line);font-weight:700;font-size:17px}
.book__quote .q-warn{color:var(--gold-ink);font-weight:500}
.book__fine{font-size:13px;color:var(--muted);margin:6px 0 14px}

/* Guests menu (Airbnb-style): drops down on computers, opens inside the card on phones */
.book__gbtn{width:100%;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;padding:12px 14px;border:0;text-align:left;cursor:pointer}
.book__gbtn:hover{background:#e6e0d5}
.book__gbtn span{grid-column:1}
.book__gbtn b{grid-column:1;font-weight:400;font-size:16px}
.book__chev{grid-column:2;grid-row:1/span 2;width:20px;height:20px;transition:transform .2s var(--ease)}
.book__gbtn[aria-expanded="true"] .book__chev{transform:rotate(180deg)}
.gpanel{margin-top:6px;padding:6px 16px 12px;background:var(--paper);border-radius:8px;box-shadow:0 14px 36px -12px rgba(23,20,15,.3),0 0 0 1px rgba(23,20,15,.08)} /* taste-skill-ignore: dropdown overlay */
.grow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.grow p{display:flex;flex-direction:column}
.grow p span{font-size:14px;color:var(--muted)}
.grow .stepper button{background:var(--sand);border:0}
.grow .stepper button:disabled{opacity:.35;cursor:default}
.gpanel__note{font-size:13px;color:var(--muted);margin-top:12px}
.gpanel__close{display:block;margin:8px 0 0 auto}
@media (min-width:900px){.gpanel{position:absolute;left:0;right:0;top:100%;z-index:20}}

/* Date picker: a panel over the card on computers, full screen on phones */
.dp{border:0;padding:0;color:var(--ink);background:var(--paper)}
.dp__head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.dp__titles h2{font:600 26px/1.15 var(--serif);letter-spacing:-.012em}
.dp__titles p{color:var(--muted);margin-top:4px}
.dp__pills{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cfc7b8;border-radius:12px;background:var(--sand);flex:none;width:340px;overflow:hidden}
.dp__pill{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px;border:0;background:none;text-align:left;cursor:pointer;border-radius:11px}
.dp__pill span{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.dp__pill b{font-weight:400;font-size:15px;color:var(--muted)}
.dp__pill.is-on{background:var(--paper);box-shadow:0 0 0 2px var(--ink)}
.dp__pill.is-on b{color:var(--ink)}
.dp__body{margin-top:12px}
.dp__x{display:none}
.dp__foot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px}
.dp__actions{display:flex;align-items:center;gap:20px;margin-left:auto}
.dp__done{min-height:44px;padding:10px 20px}
.dp__save-lbl{display:none}
@media (min-width:900px){
  .book__card{position:relative}
  .dp .cal__day{aspect-ratio:auto;height:40px}
  .dp .cal__grid{row-gap:2px}
  .dp[open]{position:absolute;z-index:40;inset:auto;top:var(--dp-top,96px);right:-12px;left:auto;margin:0;width:min(720px,calc(100vw - 64px));
    padding:28px 32px 22px;border-radius:16px;box-shadow:0 18px 50px -14px rgba(23,20,15,.38),0 0 0 1px rgba(23,20,15,.08); /* taste-skill-ignore: popover */
    animation:dp-in .22s var(--ease)}
}
@media (max-width:899px){
  .dp{width:100%;height:100%;max-width:none;max-height:none;margin:0;inset:0}
  .dp[open]{display:flex;flex-direction:column;animation:dp-up .26s var(--ease)}
  .dp::backdrop{background:rgba(23,20,15,.4)}
  .dp__head{flex-direction:column;gap:14px;padding:12px var(--m) 14px;border-bottom:1px solid var(--line)}
  .dp__x{display:grid;place-items:center;width:40px;height:40px;margin-left:-8px;border:0;border-radius:50%;background:none;cursor:pointer}
  .dp__pills{width:100%}
  .dp__body{flex:1;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:8px var(--m) 24px}
  .dp .cal__nav{display:none}
  .dp .cal__months{gap:28px}
  .dp__foot{margin:0;padding:12px var(--m) calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
  .dp__close-lbl{display:none}.dp__save-lbl{display:inline}
  html.dp-lock{overflow:hidden}
}
@keyframes dp-in{from{opacity:0;transform:translateY(8px)}}
@keyframes dp-up{from{opacity:0;transform:translateY(24px)}}
@media (prefers-reduced-motion:reduce){.dp[open]{animation:none}.book__chev{transition:none}}
.cal__legend[hidden]{display:none}
