/* Brigade Homefinder: extra styles for the individual project pages (loaded after site.css) */

/* ── Header: project badge in place of the Homefinder name ── */
.pbadge .brand-name em { color: var(--gold-d); }
.pbadge .brand-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; letter-spacing: .03em; }
.pb-tag { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border: 1px solid rgba(184,146,74,.5); background: var(--gold-soft); color: var(--gold-d); font-size: 11px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.pb-place { white-space: nowrap; }

/* ── Hero with the enquiry form ─────────── */
/* The hero hugs its content: copy and form sit centred under the header, no empty band */
.pp-hero { min-height: max(560px, min(100svh, 760px)); justify-content: center; }
.pp-hero .hero-media::after { background:
  linear-gradient(90deg, rgba(10,9,8,.86) 0%, rgba(10,9,8,.66) 40%, rgba(10,9,8,.28) 72%, rgba(10,9,8,.1) 100%),
  linear-gradient(0deg, rgba(10,9,8,.5) 0%, rgba(10,9,8,0) 40%); }
.pp-hero .hero-copy { padding: 30px 0 34px; }
/* Tall subjects (Granada's towers): start the photo below the opaque header so the tops stay in view */
@media (min-width: 761px) { .pp-hero.hp .hero-media { top: var(--hdr); } }
.pp-hero .hero-cap { top: auto; bottom: 12px; font-size: 12px; }
.pp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.pp-hero-grid > div:first-child { max-width: 620px; }
.pp-hero h1 { margin-top: 14px; }
.pp-quick { display: grid; grid-template-columns: repeat(3, auto); width: max-content; max-width: 100%; background: rgba(12,11,10,.58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-top: 2px solid var(--gold); }
.pp-quick > div { padding: 14px 24px 15px; border-left: 1px solid rgba(255,255,255,.12); }
.pp-quick > div:first-child { border-left: 0; }
.pp-quick dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.74); }
.pp-quick dd { margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; white-space: nowrap; }
.pp-quick .pq-price dd { margin-top: 3px; font-family: var(--serif); font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: var(--gold-l); }
.pp-foot { margin-top: 10px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.72); }
.pp-hero .fcard { position: static; padding: 24px 26px 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.pp-hero .fcard h2, .pp-hero .fcard h3 { font-size: 23px; }
.pp-hero .fcard > p { font-size: 14px; }
.pp-hero h1 { font-size: clamp(40px, 4.4vw, 64px); }
.pp-hero .hero-sub { margin: 14px 0 22px; font-size: 17px; }

/* ── Overview ───────────────────────────── */
.pp-ov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 4.6vw, 64px); align-items: stretch; }
#overview { padding: clamp(48px, 7vh, 64px) 0; }
.pp-ov figure { display: flex; flex-direction: column; }
.pp-ov .lede { margin-top: 18px; max-width: 560px; }
.pp-ov .facts { max-width: 600px; margin: 22px 0 0; grid-template-columns: repeat(4, 1fr); }
.pp-ov .facts li { padding: 11px 12px; font-size: 13px; }
.pp-ov .facts b { font-size: 17px; white-space: nowrap; }
.pp-ov figure img { flex: 1 1 auto; width: 100%; height: 100%; min-height: 420px; object-fit: cover; box-shadow: 0 44px 80px -54px rgba(20,18,16,.55); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts li { padding: 14px 16px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.facts b { display: block; margin-bottom: 3px; font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); }

/* ── Homes and prices ───────────────────── */
.pp-homes { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.pp-table { background: var(--card); border: 1px solid var(--line); padding: 8px 26px 20px; }
.cfg { width: 100%; border-collapse: collapse; font-size: 16px; }
.cfg th { padding: 16px 12px 10px 0; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.cfg td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 500; }
.cfg td:first-child { font-weight: 700; color: var(--ink); }
.cfg td:last-child, .cfg th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.cfg td:last-child { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.note { margin-top: 14px; font-size: 13.5px; font-weight: 500; line-height: 1.6; color: var(--muted); }
.pp-side { padding: 24px 24px 20px; background: var(--card); border: 1px solid var(--line); }
.pp-side .btn + .btn { margin-top: 10px; }
.pp-side .pp-rera { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pp-side h3 { font-size: 22px; }
.pp-side p { margin: 8px 0 16px; font-size: 14.5px; color: var(--ink-2); }
.pp-side .btn { width: 100%; min-height: 46px; font-size: 13px; }
.pp-side .pp-rera { font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.pp-side .pp-rera b { display: block; color: var(--ink); }

/* ── Highlights and amenities ───────────── */
.pp-am { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.pp-am h3 { font-size: 22px; margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 1px; top: 10px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles li { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 14px; background: var(--card); font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.tiles li::before { content: ''; flex: none; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.pp-am .sec-cta { margin-top: 24px; }

/* ── Location: project pin and landmarks ── */
/* Live vector map (MapLibre + OpenFreeMap); the image map underneath is the fallback */
.map-cam .vmap { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .8s var(--ease); }   /* beats maplibregl-map's position: relative */
.map-cam.vec { cursor: auto; }
.map-cam.vec .vmap { opacity: 1; }
.map-cam:not(.img) .map-layer, .map-cam.vec .map-layer { visibility: hidden; }   /* image map shows only as the fallback */
.vmap .maplibregl-canvas { outline: none; }
.vmk { width: 0; height: 0; }
.vmk .mpin, .vmk .mland { --x: 0; --y: 0; }
.vmap .maplibregl-cooperative-gesture-screen { padding: 24px; background: rgba(20,18,16,.5); color: #fff; font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.map-credit a { text-decoration: underline; text-underline-offset: 2px; }
.mpin.big .dot { width: 26px; height: 26px; left: -13px; top: -13px; border-width: 4px; }
.mpin.big .lab { top: -19px; left: 24px; padding: 7px 13px; font-size: 15px; background: var(--gold); color: var(--ink); }
.mpin.big.l .lab { left: auto; right: 24px; }
.pp-locs .loc-card { width: min(440px, 100%); }
.pp-near { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin-top: 14px; }
.pp-near h3, .pp-near h4 { margin: 14px 0 4px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-d); }
.pp-near h3:first-child, .pp-near h4:first-child { margin-top: 0; }
.pp-near .times { grid-template-columns: 1fr; }
.pp-near .marks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pp-near .marks li { padding: 5px 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: default; }
.pp-near .marks li.hl { border-color: var(--gold); background: var(--gold-soft); }
.pp-near p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ── Gallery ────────────────────────────── */
.pp-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 13.5vw, 200px); gap: 12px; }
.pp-gal button { position: relative; overflow: hidden; background: var(--ivory-2); }
.pp-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pp-gal button:hover img { transform: scale(1.04); }
.pp-gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; text-align: left; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(10,9,8,.66), rgba(10,9,8,0)); }
.pp-gal.n2 button { grid-column: span 2; grid-row: span 2; }
.pp-gal.n3 button:first-child { grid-column: span 2; grid-row: span 2; }
.pp-gal.n3 button:not(:first-child) { grid-column: span 2; }
.pp-gal.n4 button:first-child { grid-column: span 2; grid-row: span 2; }
.pp-gal.n4 button:nth-child(2) { grid-column: span 2; }

@media (max-width: 1120px) {
  .pp-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .pp-hero-grid, .pp-ov, .pp-homes, .pp-am { grid-template-columns: 1fr; }
  .pp-ov figure img { flex: none; height: auto; min-height: 0; aspect-ratio: 3/2; }
  .pp-hero { min-height: 0; }
  .pp-hero .hero-copy { padding-top: 30px; }
  .pp-hero-grid { gap: 28px; }
}
@media (max-width: 760px) {
  .pbadge .brand-sub { display: flex; margin-top: 3px; font-size: 11px; }
  .pbadge .pb-place, .pbadge.at .pb-tag { display: none; }
  .pbadge.at .pb-place { display: inline; }
  .pb-tag { height: 17px; padding: 0 6px; font-size: 10px; }
  .pp-hero .fcard { margin-top: 6px; padding: 26px 20px 20px; }
  .pp-ov .facts { grid-template-columns: repeat(2, 1fr); }
  .pp-hero .hero-cap { bottom: auto; }
  .pp-quick { width: 100%; grid-template-columns: auto auto; background: rgba(255,255,255,.04); }
  .pp-quick > div { padding: 12px 14px 13px; }
  .pp-quick .pq-price { grid-column: 1 / -1; order: -1; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .pp-quick > div:nth-child(2) { border-left: 0; }
  .pp-quick dd { font-size: 16px; white-space: normal; }
  .pp-quick .pq-price dd { font-size: 27px; }
  .pp-ov figure img { flex: none; height: auto; min-height: 0; aspect-ratio: 4/3; }
  .pp-ov .facts b { white-space: normal; }
  .ft-btns { display: grid; gap: 10px; margin-top: 26px; }
  .ft-btns .btn { margin-top: 0; }
  .pp-table { padding: 4px 16px 16px; overflow-x: auto; }
  .cfg { font-size: 14.5px; }
  .cfg td:last-child { font-size: 16.5px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles li { min-height: 52px; font-size: 13.5px; }
  .pp-near { order: 4; overflow: visible; margin-top: 18px; padding: 0 var(--gut); }
  .pp-locs .loc-cta { order: 5; }
  .pp-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scrollbar-width: none; }
  .pp-gal::-webkit-scrollbar { display: none; }
  .pp-gal button, .pp-gal.n2 button, .pp-gal.n3 button, .pp-gal.n4 button { flex: 0 0 84%; aspect-ratio: 4/3; scroll-snap-align: center; }
}


/* ── Closing call to action above the footer ── */
.ft-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ft-btns .btn-line { border-color: rgba(239,233,222,.36); color: var(--on-night); }
.ft-btns .btn-line:hover { border-color: var(--gold-l); color: var(--gold-l); }
.ft-link { padding: 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ft-link:hover { color: var(--on-night); }
