/* ==========================================================================
   Public property detail page. Same guest theme language as the search page,
   with a lot more air: wide gutters, generous section rhythm, one sticky
   booking card. Everything the backend exposes is surfaced — organised, not
   crammed.
   ========================================================================== */

.pdp {
  --p-ink: #1b2330; --p-ink-2: #5c6675; --p-ink-3: #8b94a3;
  --p-line: #e7eaef; --p-soft: #f6f7f9; --p-brand: #1f7a5a;
  --p-radius: 18px;
  --p-shadow: 0 2px 12px rgba(20, 28, 40, .07);
  --p-shadow-lg: 0 22px 50px -18px rgba(20, 28, 40, .3);
  color: var(--p-ink);
}
.pdp .container { max-width: 1240px; }

/* ---------- title block ---------- */
.pdp-top { padding: 30px 0 18px; }
.pdp-crumb { font-size: 13px; color: var(--p-ink-3); margin-bottom: 10px; }
.pdp-crumb a { color: var(--p-ink-2); text-decoration: none; }
.pdp-crumb a:hover { text-decoration: underline; }
.pdp-title { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.pdp-head { font-size: 18px; color: var(--p-ink-2); margin-bottom: 12px; }
.pdp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--p-ink-2); }
.pdp-meta b { color: var(--p-ink); font-weight: 700; }
.pdp-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--p-soft); border: 1px solid var(--p-line); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--p-ink-2); }
.pdp-badge--brand { background: #edf6f2; border-color: #cfe6dc; color: #1a6a4f; }

/* ---------- gallery ---------- */
.pdp-gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 480px; border-radius: var(--p-radius); overflow: hidden; position: relative; }
.pdp-gal__c { position: relative; overflow: hidden; background: var(--p-soft); cursor: pointer; border: 0; padding: 0; }
.pdp-gal__c:first-child { grid-row: span 2; }
.pdp-gal__c img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pdp-gal__c:hover img { transform: scale(1.04); }
.pdp-gal__all { position: absolute; right: 18px; bottom: 18px; background: #fff; border: 1px solid rgba(20,28,40,.18); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--p-shadow); }
.pdp-gal--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pdp-gal--single .pdp-gal__c:first-child { grid-row: auto; }

/* lightbox */
.pdp-lb { position: fixed; inset: 0; background: rgba(12, 16, 22, .96); z-index: 1300; display: flex; flex-direction: column; }
.pdp-lb__h { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; color: #fff; }
.pdp-lb__h button { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; padding: 8px 12px; }
.pdp-lb__b { flex: 1 1 auto; overflow-y: auto; padding: 0 22px 40px; }
.pdp-lb__g { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.pdp-lb__g figure { margin: 0; }
.pdp-lb__g img { width: 100%; border-radius: 12px; display: block; }
.pdp-lb__g figcaption { color: #b7bfcc; font-size: 13px; padding-top: 8px; }

/* ---------- section nav ---------- */
.pdp-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--p-line); margin-top: 34px; }
.pdp-nav__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pdp-nav__row::-webkit-scrollbar { display: none; }
.pdp-nav a { flex: 0 0 auto; padding: 16px 14px; font-size: 14px; font-weight: 600; color: var(--p-ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.pdp-nav a:hover { color: var(--p-ink); }

/* ---------- body layout ---------- */
.pdp-body { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: 64px; align-items: start; padding: 8px 0 70px; }
.pdp-main { min-width: 0; }
.pdp-sec { padding: 44px 0; border-top: 1px solid var(--p-line); scroll-margin-top: 76px; }
.pdp-sec:first-child { border-top: 0; padding-top: 36px; }
.pdp-sec__t { font-size: 24px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 6px; }
.pdp-sec__s { color: var(--p-ink-3); font-size: 14.5px; margin-bottom: 22px; }
.pdp-prose { font-size: 16.5px; line-height: 1.75; color: var(--p-ink-2); white-space: pre-line; }
.pdp-prose + .pdp-prose { margin-top: 20px; }
.pdp-sub { font-size: 17px; font-weight: 700; color: var(--p-ink); margin: 30px 0 10px; }

/* key facts */
.pdp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--p-line); border: 1px solid var(--p-line); border-radius: 16px; overflow: hidden; margin-top: 26px; }
.pdp-fact { background: #fff; padding: 20px; }
.pdp-fact__k { font-size: 12.5px; color: var(--p-ink-3); font-weight: 600; }
.pdp-fact__v { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }

/* highlight list */
.pdp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pdp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--p-ink-2); line-height: 1.6; }
.pdp-list li i { color: var(--p-brand); margin-top: 5px; flex: 0 0 auto; }

/* amenities */
.pdp-am { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 34px; }
.pdp-am li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--p-ink-2); padding: 3px 0; }
.pdp-am li i { color: var(--p-ink-3); }
.pdp-feat { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.pdp-feat span { background: #edf6f2; border: 1px solid #cfe6dc; color: #1a6a4f; border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; }

/* cards (attractions / restaurants / faq / reviews) */
.pdp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.pdp-card { border: 1px solid var(--p-line); border-radius: 16px; padding: 20px; background: #fff; }
.pdp-card__t { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.pdp-card__m { font-size: 13.5px; color: var(--p-ink-3); }
.pdp-card__d { font-size: 14.5px; color: var(--p-ink-2); line-height: 1.6; margin-top: 10px; }

.pdp-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--p-line); border-radius: 999px; padding: 9px 17px; font-size: 14.5px; font-weight: 600; color: var(--p-ink-2); }

/* faq accordion */
.pdp-faq { border-top: 1px solid var(--p-line); }
.pdp-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: none; border: 0; border-bottom: 1px solid var(--p-line); padding: 22px 2px; text-align: left; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; color: var(--p-ink); }
.pdp-faq__q i { color: var(--p-ink-3); transition: transform .22s ease; flex: 0 0 auto; }
.pdp-faq__q[aria-expanded="true"] i { transform: rotate(45deg); }
.pdp-faq__a { padding: 4px 2px 24px; border-bottom: 1px solid var(--p-line); font-size: 16px; line-height: 1.7; color: var(--p-ink-2); white-space: pre-line; }

/* reviews */
.pdp-rev { border: 1px solid var(--p-line); border-radius: 16px; padding: 22px; }
.pdp-rev__h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pdp-rev__av { width: 42px; height: 42px; border-radius: 50%; background: var(--p-soft); display: grid; place-items: center; font-weight: 700; color: var(--p-ink-2); }
.pdp-rev__n { font-weight: 700; font-size: 15px; }
.pdp-rev__d { font-size: 13px; color: var(--p-ink-3); }
.pdp-rev__t { font-size: 15.5px; line-height: 1.7; color: var(--p-ink-2); }

/* host */
.pdp-host { display: flex; gap: 22px; align-items: flex-start; border: 1px solid var(--p-line); border-radius: 18px; padding: 26px; }
.pdp-host__ph { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; background: var(--p-soft); }

/* map */
.pdp-map { height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--p-line); background: var(--p-soft); }
.pdp-map .maplibregl-map, .pdp-map > div { height: 100%; width: 100%; background: #eef1f4; }
.pdp-note { display: flex; gap: 12px; align-items: flex-start; background: var(--p-soft); border: 1px solid var(--p-line); border-radius: 14px; padding: 16px 18px; font-size: 14.5px; color: var(--p-ink-2); line-height: 1.6; margin-top: 18px; }
.pdp-note i { color: var(--p-ink-3); margin-top: 3px; }

/* ---------- booking card ---------- */
.pdp-book { position: sticky; top: 84px; }
.pdp-book__c { position: relative; border: 1px solid var(--p-line); border-radius: 20px; padding: 26px; box-shadow: var(--p-shadow-lg); background: #fff; }
.pdp-book__p { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.pdp-book__p b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pdp-book__p span { color: var(--p-ink-2); font-size: 15px; }
.pdp-book__grid { border: 1px solid var(--p-line); border-radius: 14px; overflow: hidden; }
.pdp-book__row { display: grid; grid-template-columns: 1fr 1fr; }
.pdp-book__cell { min-width: 0; border-right: 1px solid var(--p-line); }
.pdp-book__cell:last-child { border-right: 0; }
.pdp-book__f { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 13px 15px; cursor: pointer; font: inherit; }
.pdp-book__f:focus-visible { outline: 2px solid var(--p-brand); outline-offset: -2px; border-radius: 8px; }
.pdp-book__row + .pdp-book__row { border-top: 1px solid var(--p-line); }
.pdp-book__row--one .pdp-book__cell { grid-column: 1 / -1; border-right: 0; }
.pdp-book__l { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--p-ink-3); }
.pdp-book__v { font-size: 14.5px; font-weight: 500; margin-top: 2px; }
.pdp-book__v.is-empty { color: var(--p-ink-3); }
.pdp-book__go { width: 100%; margin-top: 18px; border: 0; border-radius: 14px; background: var(--p-brand); color: #fff; height: 54px; font-size: 16px; font-weight: 700; cursor: pointer; }
.pdp-book__go:hover { filter: brightness(.94); }
.pdp-book__go:disabled { opacity: .55; cursor: not-allowed; }
.pdp-book__hint { text-align: center; font-size: 13px; color: var(--p-ink-3); margin-top: 12px; }
.pdp-line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--p-ink-2); padding: 9px 0; }
.pdp-line--total { border-top: 1px solid var(--p-line); margin-top: 8px; padding-top: 16px; font-weight: 700; color: var(--p-ink); font-size: 16.5px; }
.pdp-line u { text-decoration: underline; text-underline-offset: 3px; }
.pdp-book__err { background: #fdf1f1; border: 1px solid #f6dada; color: #8c2f2f; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-top: 14px; }
.pdp-book__guests { top: auto; bottom: auto; left: 26px; right: 26px; min-width: 0; margin-top: 8px; position: absolute; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pdp-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pdp-book { position: static; margin-bottom: 40px; }
  .pdp-book__c { box-shadow: var(--p-shadow); }
  .pdp-gal { height: 400px; }
}
@media (max-width: 820px) {
  .pdp-title { font-size: 28px; }
  .pdp-gal { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 300px; }
  .pdp-gal__c:not(:first-child) { display: none; }
  .pdp-gal__c:first-child { grid-row: auto; }
  .pdp-am { grid-template-columns: minmax(0, 1fr); }
  .pdp-sec { padding: 34px 0; }
  .pdp-host { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .pdp * { transition-duration: 1ms !important; } }

/* Checkout guest-details fields: two columns where there is room, one on a
   phone. Replaces an inline 1fr 1fr that could not respond to anything. */
.book-fields { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .book-fields { grid-template-columns: 1fr; } }
