/* ============================================================
   Doorloom brand-website V2 — property detail page.
   Reuses shared tokens/components (sheet, calendar, stepper,
   lightbox, buttons). Only detail-specific layout lives here.
   ============================================================ */

body { padding-bottom: 84px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.detail .wrap { max-width: 720px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.sec { scroll-margin-top: 118px; }
.sec__h { margin-bottom: 14px; }
.detail h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.detail h2 { font-size: 1.1875rem; font-weight: 600; }
.detail h3 { font-size: 1rem; font-weight: 600; }

/* title */
.titlerow { padding: 18px 0 14px; }
.titlerow .sub { color: var(--text-2); font-size: 1.0625rem; margin-top: 2px; }

/* gallery */
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; margin: 0 calc(-1 * var(--pad)); }
.gal::-webkit-scrollbar { display: none; }
.gal__item { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/3; background: var(--surface-2); position: relative; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gal__more { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 7px 13px; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow); }
.gal__more svg { width: 14px; height: 14px; }
.gdots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.gdots i.on { background: #fff; }
@media (min-width: 760px) {
  .gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 400px; margin: 0; border-radius: 14px; overflow: hidden; }
  .gal__item { aspect-ratio: auto; }
  .gal__item:first-child { grid-row: 1/3; }
  .gal__item:nth-child(n+4) { display: none; }
  .gdots { display: none; }
}

/* overview */
.apt { font-size: 1.125rem; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 12px; }
.facts .f { display: inline-flex; align-items: center; gap: 7px; font-size: .9375rem; }
.facts .f svg { width: 18px; height: 18px; color: var(--text-2); }
.single { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9375rem; }
.single svg { width: 18px; height: 18px; color: var(--text-2); }

/* booking card */
.bcard { border: 1px solid var(--border-accent); border-radius: 16px; box-shadow: var(--shadow-card); padding: 18px; margin-top: 22px; }
.bcard__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.bcard__price b { font-size: 1.3rem; font-weight: 700; }
.bcard__price .u { font-size: .85rem; color: var(--text-2); }
.bcard__pkg { font-size: .82rem; color: var(--text-2); }
.bcard__pkg b { color: var(--text); }
.datefield { width: 100%; text-align: left; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.datefield .l { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); font-weight: 700; }
.datefield .v { font-size: .9375rem; color: var(--text-2); margin-top: 2px; }
.datefield.set .v { color: var(--text); font-weight: 500; }
.datefield svg { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.bcard__total { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0 14px; color: var(--text-2); }
.bcard__total b { color: var(--text); }
.bcard .btn { width: 100%; }
.comms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* tabs */
.tabs { position: sticky; top: 56px; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); margin: 22px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
.tabs__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs__in::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; padding: 13px 11px; font-size: .9rem; font-weight: 500; color: var(--text-2); border: 0; border-bottom: 2px solid transparent; background: none; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* space + video carousels */
.spacehead { display: flex; align-items: center; justify-content: space-between; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: grid; place-items: center; }
.arrow:hover { background: var(--surface-2); }
.arrow svg { width: 16px; height: 16px; }
.hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 14px calc(-1 * var(--pad)) 0; padding: 2px var(--pad) 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.space { flex: 0 0 220px; scroll-snap-align: start; }
.space img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.space .n { font-weight: 600; margin-top: 10px; }
.space ul { margin: 5px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .875rem; line-height: 1.7; }
.video { flex: 0 0 300px; scroll-snap-align: start; position: relative; display: block; border: 0; padding: 0; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: pointer; }
.video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(15, 15, 17, .55); display: grid; place-items: center; }
.video__play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.06); background: rgba(15, 15, 17, .72); }
.video__cap { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); }

/* description */
.desc.clip { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.showmore { margin-top: 12px; background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text); }

/* meals */
.meals { display: flex; gap: 16px; align-items: stretch; }
.meals__menu { flex: none; width: 132px; position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.meals__menu img { width: 132px; height: 100%; min-height: 150px; object-fit: cover; object-position: top; border-radius: var(--r); border: 1px solid var(--line); }
.meals__cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: .72rem; font-weight: 600; padding: 6px; border-radius: 0 0 var(--r) var(--r); display: flex; align-items: center; justify-content: center; gap: 5px; }
.meals__cap svg { width: 13px; height: 13px; }
.meals__info { flex: 1; min-width: 0; }
.meals__opts { margin-top: 8px; }
.meals__title { font-weight: 600; font-size: .9375rem; margin-bottom: 2px; }
.mopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.mopt:last-child { border-bottom: 1px solid var(--line); }
.mopt b { font-weight: 700; white-space: nowrap; }
.mopt b.inc { color: var(--green); }
.mopt b span { font-weight: 400; color: var(--text-2); font-size: .76rem; margin-left: 2px; }
.meals__desc { margin-top: 14px; font-size: .9rem; color: var(--text-2); line-height: 1.55; }

/* amenities */
.amgroup { margin-bottom: 20px; }
.amgroup h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); font-weight: 600; margin-bottom: 11px; }
.amlist { display: grid; grid-template-columns: 1fr; gap: 11px 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .amlist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .amlist { grid-template-columns: 1fr 1fr 1fr; } }
.amlist li { display: flex; align-items: center; gap: 11px; font-size: .9375rem; }
.amlist svg { width: 19px; height: 19px; color: var(--text-2); flex: none; }

/* location */
.mapbtn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 8px 13px; font-size: .85rem; font-weight: 600; margin-bottom: 12px; color: var(--blue); }
.mapbtn svg { width: 15px; height: 15px; }
.locmap { height: 240px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.addr { margin-top: 12px; color: var(--text-2); font-size: .9rem; }

/* reviews (V1 parity, read-only) */
.rev__summary { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rev__score { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rev__score svg { width: 22px; height: 22px; color: var(--accent); fill: var(--accent); }
.rev__count { color: var(--text-2); font-size: .9rem; }
.rev__list { display: grid; gap: 16px; }
@media (min-width: 700px) { .rev__list { grid-template-columns: 1fr 1fr; } }
.rev__card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.rev__top { display: flex; align-items: center; justify-content: space-between; }
.rev__name { font-weight: 600; }
.rev__stars { color: var(--accent); font-size: .85rem; }
.rev__body { color: var(--text-2); font-size: .9rem; margin-top: 8px; line-height: 1.55; }

/* policies */
.polrow { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.polrow span:first-child { color: var(--text-2); }
.cnote { background: var(--surface-2); border-radius: var(--r-sm); padding: 13px 15px; font-size: .9rem; line-height: 1.55; margin-top: 12px; }
.cnote > div + div { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.cnote b { color: var(--accent-ink); }
.viewpol { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; }
.viewpol svg { width: 16px; height: 16px; }

/* host */
.host { display: flex; align-items: center; gap: 14px; }
.host img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.host .n { font-weight: 600; font-size: 1.0625rem; }
.host .m { color: var(--text-2); font-size: .9rem; }
.host .soc { display: flex; gap: 10px; margin-top: 8px; color: var(--text-2); }
.host .soc svg { width: 18px; height: 18px; }

/* bottom bar (mobile) */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bg); border-top: 1px solid var(--line); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.mbar__dates { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.mbar__dates .p b { font-size: 1rem; font-weight: 700; }
.mbar__dates .p .u { font-weight: 400; color: var(--text-2); font-size: .8rem; }
.mbar__dates .d { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.mbar__dates .d svg { width: 13px; height: 13px; }
.mbar__cta { display: flex; gap: 8px; flex: none; }
.mbar__cta .btn { width: 50px; height: 50px; border-radius: 12px; padding: 0; flex: none; }
.mbar__cta .btn svg { width: 22px; height: 22px; }
@media (min-width: 760px) { .mbar { display: none; } body.detail { padding-bottom: 0; } }

/* desktop two-column */
@media (min-width: 768px) { .detail .wrap { max-width: 820px; } }
@media (min-width: 1024px) {
  .detail .wrap { max-width: 1040px; }
  .desc, .meals__desc { max-width: 70ch; }
  main.detail-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; align-items: start; }
  main.detail-main > * { grid-column: 1; min-width: 0; }
  main.detail-main > .titlerow, main.detail-main > .gal { grid-column: 1 / -1; }
  main.detail-main > .bcard { grid-column: 2; grid-row: 3 / 40; align-self: start; position: sticky; top: 78px; margin-top: 26px; }
  main.detail-main > .tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .gal { height: 460px; }
}
@media (min-width: 1280px) { .detail .wrap { max-width: 1160px; } }
