/* Property page (Nils, 2026-10-28: "make the public page as beautiful as possible").
   Scoped to .pd (the page root). Loaded only by property_detail.html. */

/* Gallery: one large photo and up to four more, a fixed height so nothing jumps. */
.pd-gal { position: relative; gap: 6px; height: 460px; border-radius: 22px; }
.pd-gal > div { position: relative; overflow: hidden; min-height: 0; }
.pd-gal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pd-gal > div:hover img { transform: scale(1.03); }
.pd-gal-1 { grid-template-columns: 1fr; }
.pd-gal-2 { grid-template-columns: 2fr 1fr; }
.pd-gal-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pd-gal-3 > div:first-child { grid-row: 1 / span 2; }
.pd-gal-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pd-gal-4 > div:first-child { grid-row: 1 / span 2; }
.pd-gal-4 > div:nth-child(4) { grid-column: 2 / span 2; }
.pd-gal-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pd-gal-5 > div:first-child { grid-row: 1 / span 2; }
.pd-gal > div:first-child { grid-column: 1; }
.pd-gal-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 12px; font-size: 13px; font-weight: 600; color: #0B1730; background: rgba(255,255,255,.92); box-shadow: 0 6px 20px -6px rgba(0,0,0,.5);
  backdrop-filter: blur(6px); }
.pd-gal-all:hover { background: #fff; }
@media (max-width: 639px) { .pd-gal { display: none !important; } }
@media (min-width: 640px) { .pd-gal { display: grid; } }
@media (min-width: 1280px) { .pd-gal { height: 520px; } }
.pd-mgal img { height: 300px; }
@media (max-width: 380px) { .pd-mgal img { height: 250px; } }

/* Title block. */
.pd h1 { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; letter-spacing: -.01em; line-height: 1.15; }

/* At a glance: one row of chips instead of big tiles. */
.pd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pd-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 500;
  color: var(--text-primary); background: var(--bg-elevated); border: 1px solid var(--border-color); }
.pd-facts li svg { color: var(--accent-sky, #7BB8E0); flex: none; }
.pd-facts li.pd-fact-ok svg { color: #34D399; }

/* Section headings and reading text: one rhythm for the whole page. */
.pd .lg\:col-span-2 > div > h2, .pd .lg\:col-span-2 > div > div > h2 { font-size: 1.15rem !important; margin-bottom: .6rem !important; }
.pd .rich, .pd .lg\:col-span-2 p.leading-relaxed { font-size: 15px !important; line-height: 1.7 !important; max-width: 68ch; }
.pd .lg\:col-span-2.space-y-8 > * + * { margin-top: 2.25rem !important; }

/* Rooms in this house: even, tidy cards. */
.pd #rooms ul { gap: 10px !important; }
.pd #rooms li { min-height: 84px; border-radius: 16px !important; padding: 12px 14px !important; transition: border-color .15s, transform .15s; }
.pd #rooms li:hover { border-color: var(--border-hover, rgba(123,184,224,.4)) !important; transform: translateY(-1px); }
.pd #rooms .rp-thumb img { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; }

/* Area guide: four even cards in two columns. */
.pd-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-gcard { padding: 18px 18px 16px; border-radius: 18px; background: var(--bg-elevated); border: 1px solid var(--border-color); }
.pd-gcard h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-family: var(--font-display, 'Outfit'), sans-serif; font-weight: 700;
  font-size: 1.02rem; color: var(--text-primary); }
.pd-gcard h2 svg { color: var(--accent-sky, #7BB8E0); flex: none; }
.pd-gcard p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
@media (max-width: 767px) { .pd-guide { grid-template-columns: 1fr; } }

/* Amenities and transport. */
.pd .lg\:col-span-2 .space-y-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pd .lg\:col-span-2 .space-y-2 > * + * { margin-top: 0 !important; }

/* Map: rounded, a little taller, no harsh frame. */
.pd iframe { display: block; filter: saturate(.9); }
.pd .glass-card.rounded-xl.overflow-hidden { border-radius: 18px !important; }

/* Enquiry card: calm, sticky, with a little more air. */
@media (min-width: 1024px) {
  .pd .lg\:grid-cols-3 { gap: 2.5rem !important; }
  .pd .glass-card.sticky { top: 84px !important; border-radius: 22px !important; padding: 22px !important;
    box-shadow: 0 24px 60px -28px rgba(0,0,0,.55); }
}

/* Phones. */
@media (max-width: 639px) {
  .pd { padding-top: 10px !important; }
  .pd-facts li { font-size: 12.5px; padding: 7px 10px; }
  .pd h1 { font-size: 1.45rem !important; }
}
