:root {
  color-scheme: light;
  --ink: #182944;
  --navy: #0b243a;
  --navy-light: #15394d;
  --gold: #b6843c;
  --gold-light: #ddc394;
  --muted: #536075;
  --line: #e2e7ea;
  --paper: #f6f7f8;
  --white: #fff;
  --wrap: min(1200px, calc(100% - 64px));
  font-family: "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--white); min-width: 280px; }
body:has(.gallery-dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #c18b3e; outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: absolute; inset: 8px auto auto 12px; z-index: 50; padding: 12px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid rgba(13,36,58,.06); }
.header-content { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; width: max-content; }
.brand-symbol { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--gold); border-radius: 5px; color: #93652b; font: italic 29px/1 Georgia, serif; }
.brand-words { display: grid; line-height: .94; }
.brand-words strong { font: 600 30px/.96 Georgia, serif; letter-spacing: -.06em; }
.brand-words small { margin-top: 5px; font-size: 9.5px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3.55vw, 51px); }
.primary-nav a { color: #314157; font-size: 14px; font-weight: 560; padding-block: 20px; white-space: nowrap; transition: color .15s ease; }
.primary-nav a:hover { color: #83571d; }
.primary-nav a[aria-current="page"], .primary-nav a[aria-current="location"] { color: var(--navy); font-weight: 730; }
.test-label { display: flex; align-items: center; gap: 7px; justify-self: end; padding: 7px 10px; border: 1px solid #e6dfd0; background: #faf8f3; color: #6a522f; font-size: 11px; font-weight: 650; border-radius: 4px; white-space: nowrap; }
.test-label span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.mobile-menu { display: none; }
.hero { min-height: 450px; position: relative; display: grid; align-items: center; isolation: isolate; background: #102e47; color: var(--white); }
.hero-picture, .hero-picture::after { position: absolute; inset: 0; }
.hero-picture { z-index: -1; overflow: hidden; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-picture::after { content: ""; background: linear-gradient(90deg, rgba(8,31,51,.94) 0%, rgba(9,31,50,.82) 38%, rgba(11,33,49,.24) 75%, rgba(9,28,45,.30) 100%), linear-gradient(0deg, rgba(4,23,39,.34), transparent 42%); }
.hero-copy { padding-block: 67px 115px; }
.hero h1 { max-width: 720px; margin: 0 0 19px; font-weight: 600; font-size: clamp(42px, 5.2vw, 74px); line-height: 1.025; letter-spacing: -.06em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #f3dcaf; }
.hero p { max-width: 495px; margin: 0; color: #eef4f6; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; }
.search-wrap { position: relative; margin-top: -66px; z-index: 1; }
.search-card { padding: 16px 21px 21px; border: 1px solid #e6e8e7; border-radius: 12px; background: #fff; box-shadow: 0 18px 47px rgba(15,39,59,.12); }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.search-kind { font-size: 14px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.search-kind::before { content: ""; width: 12px; height: 2px; background: var(--gold); }
.filters-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 35px; padding: 4px 9px; border: 1px solid transparent; border-radius: 5px; color: #314b65; background: #fff; white-space: nowrap; font-weight: 620; font-size: 13px; }
.filters-toggle:hover { background: #f3f5f7; border-color: #e7eaec; }
.chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-1px); transition: transform .15s ease; }
[aria-expanded="true"] .chevron { transform: rotate(225deg) translate(-2px,-2px); }
.search-grid, .extra-filters { display: grid; gap: 13px; }
.search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(165px, .93fr); align-items: end; }
.extra-filters { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.search-card label, .lead-form label { display: grid; gap: 6px; min-width: 0; color: #35465b; font-size: 13px; font-weight: 630; }
input, select, textarea { min-height: 49px; width: 100%; min-width: 0; border: 1px solid #d8e0e6; background: #fff; border-radius: 6px; padding: 0 11px; color: var(--ink); outline-offset: 2px; font-weight: 490; }
input::placeholder, textarea::placeholder { color: #647184; opacity: 1; }
select { text-overflow: ellipsis; }
textarea { min-height: 97px; padding-block: 12px; resize: vertical; }
.button { min-height: 49px; border: 1px solid transparent; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; font-size: 14px; font-weight: 720; text-align: center; }
.primary { background: var(--navy); color: var(--white); transition: background .16s ease, box-shadow .16s ease; }
.primary:hover { background: #1a405c; box-shadow: 0 4px 12px rgba(17,54,81,.15); }
.search-icon { width: 12px; height: 12px; flex: 0 0 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-right: 2px; }
.search-icon::after { position: absolute; content: ""; width: 5px; height: 1.5px; background: currentColor; top: 9px; left: 8px; transform: rotate(47deg); transform-origin: left center; }
.catalogue { padding-block: 62px 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
h2 { margin: 0; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.14; font-weight: 670; letter-spacing: -.048em; }
#match-count { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
#match-count:empty { display: none; }
.sort-label { display: flex; gap: 9px; align-items: center; min-width: 0; }
.sort-label > span { white-space: nowrap; font-size: 13px; color: var(--muted); }
.sort-label select { min-height: 40px; width: 130px; padding-inline: 9px; font-size: 13px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.property-grid:empty { display: none; }
.property-card { min-width: 0; overflow: hidden; border: 1px solid #e0e6e9; border-radius: 10px; background: #fff; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.property-card:hover, .property-card:focus-within { border-color: #c7b896; box-shadow: 0 13px 30px rgba(12,32,55,.09); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-link:focus-visible { outline-offset: -4px; }
.card-media { position: relative; background: #e6eaed; aspect-ratio: 16/10; overflow: hidden; }
.card-media img, .gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; inset: 13px auto auto 13px; padding: 5px 8px; border-radius: 4px; background: rgba(255,255,255,.97); color: var(--navy); font-size: 11px; font-weight: 730; }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: #617286; background: #e9edf0; font-size: 14px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 17px; }
.card-location { margin: 0; color: #566579; font-size: 13px; line-height: 1.4; }
.card-title { margin: 0; font-size: clamp(17px, 2vw, 20px); font-weight: 685; line-height: 1.23; letter-spacing: -.024em; overflow-wrap: anywhere; }
.metrics { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin: 1px 0 0; padding: 0; color: #405166; font-size: 12.5px; line-height: 1.35; }
.metrics li { display: flex; gap: 5px; align-items: center; }
.metrics li + li::before { content: ""; width: 3px; height: 3px; margin-right: 3px; flex-shrink: 0; border-radius: 50%; background: #ac8b5b; }
.card-end { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid #e7ebed; margin-top: auto; }
.card-price { color: var(--navy); font-size: 21px; font-weight: 735; letter-spacing: -.035em; }
.property-code { color: #526276; font-size: 11px; letter-spacing: .015em; font-weight: 610; white-space: nowrap; }
.filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.filter-chip, .clear-filters { min-height: 35px; padding: 5px 9px; border: 1px solid #dfe6e9; border-radius: 5px; background: #f6f8f9; color: #314960; font-size: 12px; font-weight: 640; }
.filter-chip:hover, .clear-filters:hover { border-color: #9caebd; background: #edf3f7; }
.filter-chip > span { margin-left: 5px; color: #374c60; font-size: 15px; }
.clear-filters { border: none; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.content-state { padding: 23px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); font-size: 15px; line-height: 1.55; }
.content-state > a, .content-state > button { margin-top: 12px; }
.category-section { background: #f2f4f5; padding-block: 56px 64px; }
.category-section h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 22px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 13px; }
.category-button { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 9px; min-height: 64px; padding: 12px 16px; background: #fff; border: 1px solid #e1e6e8; border-radius: 7px; color: var(--ink); font-size: 15px; font-weight: 660; }
.category-button:hover { border-color: #baa27a; }
.category-button span { color: #83571d; font-size: 20px; }
.site-footer { background: #0c2437; color: #f6f8fa; padding-block: 42px; }
.footer-content { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.footer-brand .brand-symbol { color: var(--gold-light); border-color: #bfa775; }
.footer-content p { color: #c7d4dd; margin: 13px 0 0; font-size: 13px; line-height: 1.5; }
.footer-links a { font-size: 14px; font-weight: 670; text-decoration: underline; text-underline-offset: 3px; }
.footer-links p { margin-top: 7px; }
.listing-detail { padding-block: 33px 70px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }
.detail-gallery { display: grid; grid-template-columns: 2.05fr 1fr; grid-auto-rows: minmax(0, 1fr); width: 100%; height: clamp(255px, 43vw, 475px); gap: 8px; border-radius: 12px; overflow: hidden; background: #edf0f2; position: relative; }
.detail-gallery.single { grid-template-columns: 1fr; }
.detail-gallery.dual { grid-template-columns: 1.9fr 1fr; }
.gallery-tile { position: relative; border: 0; background: #edf0f2; padding: 0; min-width: 0; overflow: hidden; }
.gallery-tile:first-child, .detail-gallery.dual .gallery-tile { grid-row: span 2; }
.gallery-tile:focus-visible { outline-offset: -4px; z-index: 1; }
.gallery-tile img { transition: transform .18s ease; }
.gallery-tile:hover img { transform: scale(1.025); }
.gallery-open { position: absolute; right: 14px; bottom: 14px; z-index: 1; min-height: 41px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; background: #fff; border: 1px solid #e6e9ea; border-radius: 6px; color: var(--navy); font-size: 13px; font-weight: 700; }
.gallery-missing { display: flex; border-radius: 10px; overflow: hidden; min-height: 180px; aspect-ratio: 3 / 1; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 350px); gap: clamp(28px, 6vw, 80px); margin-top: 29px; align-items: start; }
.detail-main > .property-code { display: block; color: #586275; margin-bottom: 9px; font-size: 12px; }
.detail-main h1 { margin: 0 0 11px; font-size: clamp(26px, 4.7vw, 45px); letter-spacing: -.052em; line-height: 1.12; overflow-wrap: anywhere; }
.detail-location { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.detail-main .metrics { font-size: 14px; margin: 17px 0 18px; gap: 8px 14px; }
.detail-price { font-size: clamp(24px, 3vw, 34px); font-weight: 740; color: var(--navy); margin: 0 0 25px; letter-spacing: -.045em; }
.detail-section { padding-top: 21px; margin-top: 21px; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: clamp(21px, 3vw, 26px); }
.detail-section p { color: #415168; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.detail-features { padding-left: 19px; color: #415168; line-height: 1.65; }
.detail-features > li { margin-bottom: 5px; }
.contact-card { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 21px; box-shadow: 0 6px 17px rgba(16,40,66,.06); }
.contact-card h2 { font-size: 24px; margin-bottom: 8px; }
.contact-card > p { margin: 0 0 17px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.lead-form { display: grid; gap: 12px; }
.lead-form input { min-height: 44px; }
.lead-form .website-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead-form .button { justify-self: stretch; }
.form-result { margin: 0; color: #384b62; font-size: 13px; line-height: 1.5; }
.form-result[data-kind="success"] { color: #195932; }
.form-result[data-kind="error"] { color: #9f251e; }
.form-result:empty { display: none; }
.gallery-dialog { color: #fff; width: min(1080px, calc(100% - 32px)); max-height: calc(100dvh - 30px); padding: 12px; border: 0; border-radius: 10px; background: #132936; }
.gallery-dialog::backdrop { background: rgba(4,17,27,.87); }
.gallery-dialog-top, .gallery-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px; font-size: 14px; }
.gallery-dialog-image { display: grid; place-items: center; min-height: 100px; height: min(68dvh, 740px); background: #0d212e; }
.gallery-dialog-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-control { min-height: 38px; border: 1px solid #8497a7; border-radius: 5px; background: #123046; color: #fff; padding: 5px 10px; font-size: 13px; }
.gallery-control:hover { background: #284b61; }
.gallery-control span { font-size: 17px; }
@media (max-width: 1000px) {
  :root { --wrap: calc(100% - 48px); }
  .property-grid { gap: 15px; }
  .card-body { padding: 14px; }
}
@media (max-width: 760px) {
  .header-content { gap: 14px; min-height: 69px; }
  .primary-nav { gap: 17px; }
  .primary-nav a { font-size: 13px; }
  .test-label { font-size: 10.5px; }
  .hero { min-height: 360px; }
  .hero-copy { padding-block: 55px 101px; }
  .hero h1 { font-size: clamp(32px, 7vw, 53px); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-submit { width: 100%; }
  .extra-filters { grid-template-columns: 1fr 1fr; }
  .extra-filters label:first-child { grid-column: 1/-1; }
  .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalogue { padding-block: 45px 55px; }
  .detail-columns { grid-template-columns: 1fr; gap: 23px; }
  .contact-card { max-width: 540px; }
}
@media (max-width: 550px) {
  :root { --wrap: calc(100% - 32px); }
  .header-content { display: flex; justify-content: space-between; gap: 8px; min-height: 64px; }
  .brand-symbol { width: 33px; height: 33px; font-size: 24px; }
  .brand-words strong { font-size: 25px; }
  .brand-words small { font-size: 8px; margin-top: 4px; }
  .test-label { padding: 6px 7px; gap: 5px; font-size: 9.5px; margin-left: auto; }
  .mobile-menu { display: inline-grid; place-items: center; order: 3; padding-inline: 9px; min-height: 38px; color: var(--navy); background: #fff; border: 1px solid #dce3e7; border-radius: 5px; font-size: 12px; font-weight: 680; }
  .primary-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 6px 16px 14px; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(17,38,57,.11); }
  .primary-nav.open { display: grid; gap: 0; }
  .primary-nav a { padding: 11px; border-bottom: 1px solid #edf0f2; font-size: 14px; }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 322px; }
  .hero-copy { padding-block: 37px 90px; }
  .hero-picture::after { background: linear-gradient(90deg,rgba(8,31,51,.92),rgba(8,31,51,.69) 55%,rgba(8,31,51,.41)); }
  .hero h1 { font-size: clamp(32px,7.7vw,43px); margin-bottom: 13px; }
  .hero p { font-size: 14.5px; }
  .search-wrap { margin-top: -54px; }
  .search-card { padding: 10px 12px 14px; }
  .search-top { margin-bottom: 9px; }
  .search-grid, .extra-filters { gap: 10px; }
  .search-submit { font-size: 12px; padding-inline: 6px; gap: 5px; }
  .search-card label { font-size: 12px; gap: 4px; }
  .search-card input, .search-card select { min-height: 44px; padding-inline: 7px; font-size: 14px; }
  .search-submit { min-height: 44px; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: 14px; }
  .sort-label select { min-height: 38px; }
  .property-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-body { padding: 15px; }
  .card-title { font-size: 20px; }
  .category-section { padding-block: 39px 42px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .category-button { padding: 8px 9px; min-height: 52px; font-size: 13px; }
  .footer-content { display: grid; gap: 22px; }
  .listing-detail { padding-block: 23px 45px; }
  .breadcrumb { margin-bottom: 17px; }
  .detail-gallery, .detail-gallery.dual, .detail-gallery.single { display: block; height: auto; aspect-ratio: 4/3; position: relative; }
  .detail-gallery .gallery-tile { display: none; }
  .detail-gallery .gallery-tile:first-child { display: block; width: 100%; height: 100%; }
  .contact-card { padding: 17px; }
  .gallery-open { right: 9px; bottom: 9px; }
}
@media (max-width: 345px) {
  .search-grid, .extra-filters, .category-grid { grid-template-columns: 1fr; }
  .test-label { padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

