/* Styles for new map-directory and price-guide pages only. Legacy pages keep their original CSS. */
:root {
  --navy: #0a1628;
  --navy-light: #1a2942;
  --navy-mid: #1a2942;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  --gold: #f0c040;
  --bg: #f4f6f9;
  --surface: #fff;
  --text: #0f172a;
  --muted: #5a6578;
  --border: #e3e7ee;
  --radius: 8px;
  --accent: #059669;
  --danger: #dc2626;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--text);
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #9b692b;
  outline-offset: 4px;
}
input,
select,
textarea {
  max-width: 100%;
}
img {
  max-width: 100%;
}
button,
a.button {
  cursor: pointer;
}
a {
  text-underline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 99999;
}
.skip-link:focus {
  top: 12px;
}
.buyer-container {
  max-width: 1180px;
  margin: auto;
  padding: 48px 28px 72px;
}
.buyer-nav {
  max-width: 1440px;
  margin: auto;
  padding: 21px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.buyer-brand {
  display: inline-flex;
  align-items: center;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark {
  background: var(--accent);
  color: white;
  font-family: inherit;
  font-size: 25px;
  width: 37px;
  height: 39px;
  margin-right: 10px;
  display: grid;
  place-items: center;
  border-radius: 3px;
}
.brand-pk {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 3px;
}
.buyer-nav nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.buyer-nav nav > a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 21px;
  min-height: 48px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #193d2d;
  color: white;
  text-decoration: none;
}
.button.small {
  font-size: 13px;
  min-height: 43px;
  padding: 10px 17px;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
}
.button.secondary:hover {
  background: #eaf0e8;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.home-hero {
  max-width: 1180px;
  margin: auto;
  padding: 64px 28px 122px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  gap: 70px;
}
.home-hero h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(42px, 4.9vw, 64px);
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 0 0 24px;
  max-width: 660px;
}
.home-hero h1 em {
  font-weight: 400;
  color: #456b50;
}
.home-hero p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin: 0;
}
.hero-aside {
  border-left: 1px solid #c6d1c5;
  padding: 6px 0 6px 30px;
}
.hero-aside .aside-number {
  font-family: inherit;
  font-size: 35px;
  line-height: 1.15;
  display: block;
  margin-bottom: 12px;
}
.hero-aside p {
  font-size: 14px;
}
.hero-aside a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
}
.home-search-wrap {
  max-width: 1180px;
  padding: 0 28px;
  margin: -76px auto 0;
  position: relative;
}
.buyer-search {
  background: white;
  padding: 27px 30px 20px;
  border: 1px solid #cdd6ca;
  border-radius: 8px;
  box-shadow: 0 8px 28px #253d3010;
  margin-bottom: 36px;
}
.search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.search-top h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
.search-top > span {
  color: var(--muted);
  font-size: 16px;
}
.search-fields {
  display: grid;
  grid-template-columns: 1.7fr 1.2fr 0.9fr 0.8fr auto;
  gap: 14px;
  align-items: end;
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.field select,
.field input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #c8d1c5;
  border-radius: 4px;
  color: #263c30;
  font-size: 14px;
}
.search-fields .button {
  min-height: 49px;
}
.search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e6eae3;
  margin-top: 21px;
  padding-top: 16px;
  font-size: 12px;
}
.search-bottom p {
  margin: 0;
  color: var(--muted);
}
.search-bottom a {
  font-weight: 600;
  text-decoration: none;
}
.home-section {
  max-width: 1180px;
  margin: auto;
  padding: 26px 28px 38px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}
.section-heading h2 {
  font-family: inherit;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 0;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}
.section-heading > a {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.section-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.popular-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.popular-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 21px;
  gap: 15px;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}
.popular-links a:last-child {
  border-right: 0;
}
.popular-links a:hover {
  background: #edf2e9;
}
.popular-links small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.property-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.property-tile-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #e5e9e1;
  padding-bottom: 15px;
  margin-bottom: 18px;
}
.property-tile h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}
.property-tile h3 a {
  color: var(--text);
  text-decoration: none;
}
.property-tile h3 a:hover {
  text-decoration: underline;
}
.property-tile > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.tile-price {
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.tile-facts {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0 20px;
}
.text-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #e7eae2;
  padding-top: 16px;
}
.price-guide {
  background: #f0f4ec;
  border: 1px solid #d6dfd0;
  border-left: 3px solid #446c4f;
  border-radius: 4px;
  padding: 18px;
  margin: 16px 0;
  color: #314436;
  font-size: 14px;
  line-height: 1.65;
}
.price-guide > strong {
  font-size: 13px;
  display: block;
}
.price-guide p {
  margin: 7px 0;
}
.price-guide a {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
}
.price-guide-compact {
  padding: 12px;
  font-size: 12px;
  margin: 4px 0 18px;
}
.price-guide-compact > strong {
  font-size: 11px;
}
.price-guide-compact p {
  line-height: 1.6;
}
.price-guide-compact p span {
  white-space: nowrap;
}
.home-guide {
  background: #e9eee3;
  border: 1px solid #d5dfce;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  padding: 38px 40px;
  margin: 10px 0 8px;
}
.home-guide h2 {
  font-family: inherit;
  font-size: 33px;
  letter-spacing: -0.6px;
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 16px;
}
.home-guide p {
  font-size: 14px;
  color: #52634f;
  max-width: 490px;
}
.guide-steps {
  border-left: 1px solid #c2cfb9;
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.guide-steps div {
  display: flex;
  align-items: start;
  gap: 14px;
  font-size: 14px;
}
.guide-steps span {
  color: #78876d;
  font-size: 11px;
  font-weight: 700;
  padding-top: 3px;
}
.society-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
}
.society-directory > a {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.society-directory > a:hover > span {
  text-decoration: underline;
}
.society-directory small {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}
.society-directory small span {
  font-size: 15px;
}
.map-library > p { max-width: 720px; }
.map-library h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.map-library-tools { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: end; margin: 32px 0; }
.map-library-tools .field { flex: 1 1 320px; max-width: 500px; }
.map-library-tools input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: white; }
.map-library-tools p { margin: 0 0 12px; color: var(--muted); }
.map-library-tools > a { margin-bottom: 12px; }
.map-city { margin: 32px 0 48px; }
.map-city h2 { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.map-library [hidden], .society-directory [hidden] { display: none; }
.society-directory [data-map-card] small { gap: 6px; flex-wrap: wrap; align-items: baseline; }
.society-directory [data-map-card] small span { font-size: 12px; white-space: nowrap; }
.buyer-footer {
  border-top: 1px solid var(--border);
  max-width: 1384px;
  padding: 34px 40px;
  margin: 40px auto 0;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.buyer-footer .buyer-brand {
  font-size: 19px;
}
.buyer-footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.buyer-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.buyer-footer nav a {
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
}
.quiet-state {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  color: var(--muted);
  line-height: 1.7;
}
.quiet-state h2 {
  font-family: inherit;
  font-size: 27px;
  color: var(--text);
  font-weight: 400;
  margin-top: 0;
}
.page-heading {
  max-width: 740px;
  margin-bottom: 36px;
}
.page-heading h1 {
  font-family: inherit;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.page-heading p {
  color: var(--muted);
}
.guide-explainer {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  border-block: 1px solid var(--border);
  padding: 30px 0;
  margin-bottom: 30px;
}
.guide-explainer h2,
.guide-note h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
.guide-explainer p,
.guide-note p {
  font-size: 14px;
  color: var(--muted);
}
.guide-explainer > div:last-child {
  border-left: 1px solid var(--border);
  padding-left: 30px;
}
.guide-explainer .eyebrow {
  margin: 0 0 10px;
}
.guide-explainer strong {
  font-size: 17px;
}
.guide-explainer a {
  font-size: 13px;
}
.guide-filters {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 28px 0;
}
.guide-filters .field {
  width: 210px;
}
.table-scroll {
  overflow-x: auto;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}
.price-table caption {
  text-align: left;
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table th {
  background: #ebefe5;
  font-size: 12px;
}
.price-table small {
  display: block;
  max-width: 260px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.guide-note {
  padding-top: 36px;
  max-width: 730px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.price-helper {
  font-size: 13px;
  color: #5a685b;
  margin: 5px 0 0;
}
.price-guide-error {
  color: #943b2a;
}
.guide-admin {
  max-width: 1100px;
  margin: auto;
  padding: 30px;
}
.guide-admin textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 13px;
}
.guide-admin pre {
  white-space: pre-wrap;
  max-height: 500px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
}
.guide-admin .admin-fields {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.guide-admin .status {
  padding: 15px 0;
}
.guide-admin fieldset {
  border: 1px solid var(--border);
  padding: 24px;
  margin: 24px 0;
}
.guide-admin label {
  display: block;
}
.guide-admin input:not([type="checkbox"]) {
  padding: 10px;
  border: 1px solid var(--border);
}
@media (max-width: 1000px) {
  .buyer-nav {
    padding: 20px 28px;
  }
  .buyer-nav nav {
    gap: 18px;
  }
  .buyer-nav .nav-price {
    display: none;
  }
  .home-hero {
    gap: 35px;
  }
  .search-fields {
    grid-template-columns: 1.7fr 1.1fr 1fr;
  }
  .field-location {
    grid-column: span 2;
  }
  .search-fields > .button {
    grid-column: 3;
    grid-row: 2;
  }
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .society-directory {
    grid-template-columns: repeat(3, 1fr);
  }
  .buyer-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .buyer-nav {
    padding: 15px 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .buyer-brand {
    font-size: 21px;
  }
  .buyer-nav nav {
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .buyer-nav nav > a {
    font-size: 12px;
  }
  .buyer-nav .button.small {
    min-height: 39px;
    padding: 8px 13px;
  }
  .home-hero {
    display: block;
    padding: 40px 20px 101px;
  }
  .home-hero h1 {
    font-size: 43px;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
  }
  .home-hero p {
    font-size: 15px;
  }
  .hero-aside {
    display: none;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 17px;
  }
  .home-search-wrap {
    padding: 0 16px;
    margin-top: -70px;
  }
  .buyer-search {
    padding: 22px 18px 16px;
    margin-bottom: 20px;
  }
  .search-top {
    display: block;
    margin-bottom: 18px;
  }
  .search-top h2 {
    font-size: 17px;
  }
  .search-top > span {
    font-size: 14px;
  }
  .search-fields {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }
  .field-location {
    grid-column: span 2;
  }
  .search-fields > .button {
    grid-column: span 2;
    grid-row: auto;
  }
  .search-fields > .field:nth-child(4) {
    grid-column: span 2;
  }
  .search-bottom {
    display: block;
    font-size: 11px;
  }
  .search-bottom a {
    display: inline-block;
    margin-top: 8px;
  }
  .home-section {
    padding: 24px 20px;
  }
  .section-heading {
    align-items: start;
    gap: 18px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .section-heading > a {
    font-size: 11px;
    padding-top: 6px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .popular-links {
    grid-template-columns: 1fr;
  }
  .popular-links a {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 17px;
  }
  .popular-links a:last-child {
    border-bottom: 0;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
  .property-tile {
    padding: 22px;
  }
  .home-guide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 27px 22px;
  }
  .home-guide h2 {
    font-size: 29px;
  }
  .guide-steps {
    border-left: 0;
    border-top: 1px solid #c2cfb9;
    padding: 23px 0 0;
    gap: 14px;
  }
  .society-directory {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 18px;
  }
  .society-directory > a {
    font-size: 13px;
  }
  .buyer-footer {
    padding: 28px 20px;
    margin-top: 20px;
    gap: 20px;
    display: block;
  }
  .buyer-footer nav {
    margin: 22px 0;
    gap: 18px;
  }
  .buyer-container {
    padding: 35px 20px 45px;
  }
  .guide-explainer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .guide-explainer > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 23px 0 0;
  }
  .guide-filters {
    flex-wrap: wrap;
  }
  .guide-filters .field {
    width: calc(50% - 8px);
  }
  .guide-filters button {
    flex: 1;
  }
  .price-table {
    min-width: 700px;
  }
  .guide-admin {
    padding: 20px 16px;
  }
}
.search-context {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 14px;
}
.search-context summary {
  font-weight: 600;
  cursor: pointer;
}
.search-context p {
  margin-top: 12px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Match the established navy/emerald site branding on the added pages. */
.buyer-nav { background: #0a1628; color: white; max-width: none; box-shadow: 0 4px 20px #0a16281a; }
.buyer-brand, .buyer-nav nav > a { color: white; }
.brand-mark { background: #10b981; font-family: inherit; border-radius: 10px; }
.button { background: linear-gradient(135deg, #10b981, #059669); border-radius: 10px; box-shadow: 0 4px 14px #10b98126; }
.buyer-footer { background: #0a1628; color: white; max-width: none; padding-inline: max(24px, calc((100vw - 1100px) / 2)); }
.buyer-footer p, .buyer-footer nav a { color: #cbd5e1; }
.map-library h1, .page-heading h1 { font-family: inherit; font-weight: 800; color: #0f172a; }
.map-library .society-directory { gap: 14px; }
.map-library [data-map-card] { background: white; border: 1px solid #e3e7ee; border-radius: 12px; padding: 18px; box-shadow: 0 3px 10px #0a162805; }
.map-library [data-map-card]:hover { border-color: #10b981; box-shadow: 0 6px 18px #10b98114; }
.map-library-tools { background: white; padding: 20px; border: 1px solid #e3e7ee; border-radius: 16px; }
@media(max-width:480px) { .map-library .society-directory { grid-template-columns: 1fr; } }
