:root {
  --ink: #1a1714; --muted: #746b61; --line: #e6dfd4; --sand: #f3eee6;
  --paper: #faf8f4; --gold: #c4a265; --gold-ink: #7a5c2e; --navy: #1b2430; --r: 2px;
}
.dv-hub * { box-sizing: border-box; }
/* Without this, Android Chrome's font-boosting heuristic auto-inflates short
   bold text in narrow containers (like .stat b values) on real devices, well
   past the actual CSS font-size - invisible in desktop devtools emulation,
   only visible on a real phone. */
.dv-hub { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* .mobile-bar's own styling now lives in the unconditional wp_head injection in
   dv-listings.php, since the bar renders on every page sitewide but this file
   only loads on hub-style pages - kept out of here to avoid two conflicting
   definitions drifting apart. */

.dv-hub { background: var(--paper); color: var(--ink); font-family: Montserrat, system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.dv-hub h1, .dv-hub h2, .dv-hub h3, .dv-hub .h1-visual { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; }
.dv-hub a { color: inherit; text-decoration: none; }
.dv-hub .wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.dv-hub .hero { position: relative; height: min(64vh, 560px); min-height: 340px; background: #111; overflow: hidden; }
.dv-hub .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-hub .hero-scrim { position: absolute; inset: 0; background: linear-gradient(#0000 42%, #0009); }
.dv-hub .hero-copy { position: absolute; left: 0; right: 0; bottom: 28px; color: #fff; }
.dv-hub .band-inner { padding: 28px 0 22px; }
.dv-hub .band-inner.mob-only { display: none; }
.dv-hub .crumbs { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; font-weight: 500; color: var(--muted); }
.dv-hub .hero-copy .crumbs { color: #fff; opacity: .85; }
.dv-hub h1, .dv-hub .h1-visual { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; margin: 0 0 10px; max-width: 780px; }
.dv-hub .from { font-size: 13px; }
.dv-hub .badges { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.dv-hub .chip { background: #fff; color: #111; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.dv-hub .chip.promo { background: #8b1e2d; color: #fff; }

.dv-hub .band { background: #fff; border-bottom: 1px solid var(--line); }
.dv-hub .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.dv-hub .stat { padding: 16px 10px 18px; text-align: center; border-right: 1px solid var(--line); }
.dv-hub .stat:last-child { border-right: 0; }
.dv-hub .stat b { display: block; font-size: 14px; font-weight: 600; }
.dv-hub-area .stat b { font-size: 20px; }
.dv-hub .stat span { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.dv-hub .layout { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(280px,.78fr); gap: 28px; padding: 28px 0 88px; }
.dv-hub .layout.tight { padding-top: 4px; }
.dv-hub .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px 28px; margin: 0 0 16px; }
.dv-hub h2 { font-size: 28px; line-height: 1.15; margin: 0 0 16px; }
.dv-hub .bullets { margin: 0; padding: 0; list-style: none; }
.dv-hub .bullets li { padding: 12px 0 12px 16px; border-bottom: 1px solid var(--line); position: relative; }
.dv-hub .bullets li:last-child { border-bottom: 0; }
.dv-hub .bullets li:before { content: ""; width: 5px; height: 5px; background: var(--gold); position: absolute; left: 0; top: 20px; }

.dv-hub .filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.dv-hub .filters button {
  border: 1px solid var(--line) !important; background: #fff !important; color: var(--ink) !important; box-shadow: none !important;
  border-radius: 999px; padding: 8px 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; cursor: pointer;
}
.dv-hub .filters button.on { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }
.dv-hub .filters select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23746b61' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px;
}
.dv-hub .area-link { color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; }

.dv-hub .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dv-hub .card.types { background: var(--sand); }
.dv-hub .type { background: #fff; border: 1px solid var(--line); overflow: hidden; display: block; }
.dv-hub .type .ph { aspect-ratio: 3 / 2; background: #ddd; position: relative; overflow: hidden; }
.dv-hub .type .ph img, .dv-hub .proj-tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-hub .type .p { padding: 12px 14px 14px; }
.dv-hub .type h3 { font-size: 22px; margin: 0 0 4px; }
.dv-hub .meta { color: var(--muted); font-size: 13px; }
.dv-hub .price-line { margin: 8px 0 0; font-weight: 600; font-size: 14px; }
.dv-hub .was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 6px; }

/* Developer hub: grid of project cards (same visual language as villa-grid tiles) */
.dv-hub .proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dv-hub .proj-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.dv-hub .proj-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; }
.dv-hub .proj-tile .ph { aspect-ratio: 3 / 2; background: #ddd; position: relative; overflow: hidden; }
.dv-hub .proj-tile .p { padding: 14px 16px 16px; }
.dv-hub .proj-tile h3 { margin: 0 0 4px; font-size: 22px; }
.dv-hub .proj-tile .price { margin-top: 8px; font-weight: 600; font-size: 14px; }
.dv-hub .proj-tile .excerpt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dv-hub .pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.dv-hub .pagination span, .dv-hub .pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); background: #fff; }
.dv-hub .pagination a:hover { border-color: var(--navy); }
.dv-hub .pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.dv-hub .guide-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; }
.dv-hub .guide-cat h3 { font-size: 22px; margin: 0 0 8px; }
.dv-hub .guide-cat ul { list-style: none; margin: 0 0 24px; padding: 0; }
.dv-hub .guide-cat li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dv-hub .guide-cat li:last-child { border-bottom: 0; }
.dv-hub .guide-cat li .note { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.dv-hub .map { height: 280px; background: #cfc8bb center/cover; margin: 0 0 8px; }
.dv-hub .nearby { list-style: none; margin: 16px 0 0; padding: 0; }
.dv-hub .nearby li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.dv-hub .nearby li:last-child { border-bottom: 0; }
.dv-hub .nearby b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 2px; }

.dv-hub .sticky { position: sticky; top: 84px; }
.dv-hub .agent { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
.dv-hub .avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--sand); flex: 0 0 40px; }
.dv-hub .avatar img { width: 40px; height: 40px; object-fit: cover; display: block; }
.dv-hub .agent strong { display: block; font-size: 14px; font-weight: 600; }
.dv-hub .proof { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dv-hub label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.dv-hub button, .dv-hub input, .dv-hub textarea, .dv-hub select { font-family: inherit; }
.dv-hub input, .dv-hub textarea, .dv-hub select { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; font-size: 14px; background: #fff; color: var(--ink); }
.dv-hub .fine { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.dv-hub .faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.dv-hub .faq details:last-child { border-bottom: 0; }
.dv-hub .faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.dv-hub .faq p { margin: 10px 0 0; color: var(--muted); }
.dv-hub .open h2 { margin-top: 28px; scroll-margin-top: 110px; }
.dv-hub .open h2:first-child { margin-top: 0; }
.dv-hub .open h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 600; scroll-margin-top: 110px; }
.dv-hub .open h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .02em; scroll-margin-top: 110px; }
.dv-hub .prose p { margin: 0 0 14px; }
.dv-hub .open p img, .dv-hub .prose p img { max-width: 100%; height: auto; display: block; margin: 20px 0; }
.dv-hub .bleed { width: 100%; object-fit: cover; display: block; margin: 32px 0 10px; border-radius: 0; }
.dv-hub .bleed.square { margin-top: 12px; }
.dv-hub .bleed.tall { height: min(58vh, 580px); }
.dv-hub .bleed.square { aspect-ratio: 3 / 2; height: auto; }
.dv-hub .bleed.wide { aspect-ratio: 21 / 9; height: auto; }
.dv-hub .pair { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; margin: 32px 0 10px; }
.dv-hub .pair img { width: 100%; height: min(42vh, 380px); object-fit: cover; display: block; border-radius: 0; }
.dv-hub .quotes { display: grid; grid-template-columns: 1fr; gap: 0; margin: 12px 0 8px; }
.dv-hub .quote { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.dv-hub .quote:last-child { border-bottom: 1px solid var(--line); }
.dv-hub .qimg { width: 72px; height: 72px; border-radius: 50%; background: #ddd center/cover; }
.dv-hub .quote p { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; line-height: 1.25; font-style: italic; }
.dv-hub .quote b { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-family: Montserrat, sans-serif; }
.dv-hub .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r); }
.dv-hub .open table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 14px; }
.dv-hub .open table th, .dv-hub .open table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.dv-hub .open table th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-weight: 700; background: var(--sand); white-space: nowrap; border-top: 0; }
.dv-hub .open table th:first-child, .dv-hub .open table td:first-child { border-left: 0; }
.dv-hub .open table th:last-child, .dv-hub .open table td:last-child { border-right: 0; }
.dv-hub .open table tr:first-child th { border-top: 0; }
.dv-hub .open table tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) {
  .dv-hub .quote { grid-template-columns: 1fr; }
  .dv-hub .bleed.tall { height: 280px; }
  .dv-hub .bleed.wide { aspect-ratio: 16 / 9; }
  .dv-hub .pair { grid-template-columns: 1fr; }
  .dv-hub .pair img { height: 220px; }
}
.dv-hub .btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; border-radius: 999px; padding: 11px 18px; min-height: 42px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.dv-hub .btn-gold { background: var(--navy); color: #fff; width: 100%; }
.dv-hub .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dv-hub .seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.dv-hub .seg button {
  border-radius: 0 !important; border: 0 !important; background: #fff !important; color: var(--ink) !important; box-shadow: none !important;
  padding: 10px 8px; cursor: pointer; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.dv-hub .seg button + button { border-left: 1px solid var(--line); }
.dv-hub .seg button.on, .dv-hub .seg button:hover { background: var(--sand) !important; }

.dv-hub .enquire-wide { margin-top: 0; }
.dv-hub .enquire-wide h2 { margin-bottom: 4px; }
.dv-hub .wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.dv-hub .wf-grid .seg { margin-top: 6px; }
.dv-hub .wf-full { grid-column: 1 / -1; }

@media (max-width: 820px) {
  .dv-hub .hero { height: 220px; min-height: 220px; }
  .dv-hub .hero-copy { bottom: 16px; }
  .dv-hub-project .hero-copy { display: none; }
  .dv-hub-project .band-inner.mob-only { display: block; }
  .dv-hub-area .hero-copy { display: none; }
  .dv-hub-area .band-inner.mob-only { display: block; }
  .dv-hub .band-inner { padding: 18px 0 16px; }
  .dv-hub h1, .dv-hub .h1-visual { font-size: clamp(26px, 7vw, 38px); }
  .dv-hub .from { font-size: 13px; }
  .dv-hub .badges { margin-top: 8px; }
  .dv-hub .layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 0 88px; }
  .dv-hub .grid, .dv-hub .proj-grid, .dv-hub .proj-grid.cols-2 { grid-template-columns: 1fr; }
  .dv-hub .stats { grid-template-columns: 1fr; }
  .dv-hub .stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .dv-hub .stat span { margin: 0; order: -1; }
  .dv-hub-area .stat b { font-size: 14px; }
  .dv-hub .sticky { position: static; }
  .dv-hub .card { padding: 22px; }
  .dv-hub h2 { font-size: 26px; }
  .dv-hub .nearby li { grid-template-columns: 1fr; gap: 2px; }
  .dv-hub .guide-cats { grid-template-columns: 1fr; }
  .dv-hub .wf-grid { grid-template-columns: 1fr; }
}

