@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/22833467f99fe0e8.793b13319a8d25c3.woff2) format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fd9ecc6cc9381471.65eaf529ccca6cac.woff2) format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/df369f68adc214ef.d80073f9c9e51e4d.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/0569c822cab6c510.4ea03e909ea98ebb.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/9bd8ba39c9d55e06.5b839e7b7921a216.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/18e69125ce1f964e.a44dffd8a873b9d3.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/8257aa2626c379cb.2541391488e6970b.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/755fa076675e6f61.392ef66f560f9894.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/e6fa40b6715a310a.b57c2105aecb1fba.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/900670474e93d412.eb7ad11193f583ad.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/e7e0cf40cb44208e.dd83c6d60b78ed66.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/0404e9f6404a474c.906351547a8c2949.woff2) format('woff2');
}

/* Historical broken Google Fonts import fragments and the rule discarded with them.
600;700&display=swap');

500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#263440;--muted:#667783;--paper:#f5f9fb;--white:#fff;--green:#14578d;--lime:#d9f3f7;--line:#dce7ed;--gold:#56bfd0}
*/
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1220px;
  margin: auto;
  padding: 0 28px;
}
.top {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1010;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 17px Manrope;
  letter-spacing: 0.09em;
  color: #14578d;
}
.brand img {
  -webkit-user-drag: none;
  user-select: none;
  height: 68px;
  width: 68px;
  display: block;
  object-fit: contain;
}
.brand span {
  color: #14578d;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.nav a:hover {
  color: #56bfd0;
}
.nav .contact,
.btn {
  background: var(--green);
  color: white;
  padding: 13px 19px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.hero {
  padding: 42px 0 58px;
}
.heroimg {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 7px;
  background: #39463c;
}
.heroimg:before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 43, 76, 0.78), rgba(10, 43, 76, 0.07)),
    url('/media/photos/property-0.jpg') center 54% / cover;
}
.hero-copy {
  position: relative;
  color: white;
  max-width: 680px;
  padding: 90px 7%;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 11px;
  color: #b9edf3;
}
.hero h1 {
  font: 600 clamp(42px, 6vw, 72px)/1.02 Manrope;
  margin: 22px 0;
}
.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: #eff8fc;
  max-width: 490px;
}
.search {
  display: flex;
  gap: 9px;
  background: white;
  padding: 11px;
  border-radius: 6px;
  margin-top: 29px;
  max-width: 750px;
}
.search input,
.search select {
  border: 0;
  padding: 10px;
  color: #24342f;
  min-width: 0;
  flex: 1;
  outline: none;
}
.section {
  padding: 48px 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.heading h2 {
  font: 600 32px Manrope;
  margin: 0;
}
.heading p {
  color: var(--muted);
  margin: 7px 0 0;
}
.properties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: 0.2s;
}
.card {
  cursor: pointer;
}
.card:focus-visible {
  outline: 3px solid #56bfd0;
  outline-offset: 3px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #263b2b12;
}
#listingModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0c233acc;
  display: grid;
  place-items: center;
  padding: 20px;
}
#listingModal[hidden] {
  display: none !important;
}
.listing-dialog {
  width: min(900px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px #06192b55;
}
.listing-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.listing-close {
  border: 0;
  background: #eef5f7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  color: #14578d;
}
.listing-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.listing-dialog-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #eef3f4;
}
.listing-dialog-info {
  padding: 26px;
}
.listing-dialog-info h2 {
  margin: 10px 0 8px;
  font: 700 26px Manrope;
}
.listing-dialog-info .price {
  font-size: 27px;
  margin-top: 20px;
}
.listing-dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.listing-dialog-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 12px 16px;
  background: #14578d;
  color: #fff;
}
.listing-dialog-actions a.secondary {
  background: #e8f5f7;
  color: #14578d;
}
@media (max-width: 650px) {
  #listingModal {
    padding: 10px;
  }
  .listing-dialog-grid {
    grid-template-columns: 1fr;
  }
  .listing-dialog-image {
    height: 230px;
    min-height: 230px;
  }
  .listing-dialog-info {
    padding: 20px;
  }
}
.photo {
  height: 225px;
  position: relative;
  background: #e3e5df;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tag {
  position: static;
  display: inline-block;
  margin: 9px 0 0;
  background: #e0f5f8;
  color: #14578d;
  padding: 6px 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.compact-search {
  max-width: none;
  margin: 0 0 20px;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px #2634400d;
}
.cardbody {
  padding: 17px 18px 19px;
}
.muted {
  color: var(--muted);
}
.address {
  font: 600 18px Manrope;
  margin: 0 0 10px;
}
.stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.card-price {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.card-price strong {
  font: 700 21px Manrope;
  color: var(--ink);
}
.card-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.unit {
  font-size: 12px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats small {
  font-size: 11px;
  color: var(--muted);
}
.stats b {
  font-size: 14px;
  font-weight: 650;
}
.card-rooms {
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.homes-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}
.homes-pagination:empty {
  display: none;
}
.homes-pagination span {
  font-size: 13px;
  color: var(--muted);
}
.homes-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.center {
  text-align: center;
  padding: 25px;
}
.darkband {
  background: #14578d;
  color: white;
  padding: 54px 0;
  margin: 40px 0;
}
.bandgrid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 35px;
  align-items: center;
}
.darkband h2 {
  font: 600 35px Manrope;
  margin: 0 0 12px;
}
.darkband p {
  color: #ced8ce;
  line-height: 1.65;
}
.lightbtn {
  background: #d9f3f7;
  color: #14578d;
  padding: 14px 20px;
  border-radius: 4px;
  display: inline-block;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service {
  padding: 24px;
  background: #e9f3f7;
  border-radius: 5px;
}
.service b {
  font: 600 17px Manrope;
}
.service p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
footer {
  background: #172b27;
  color: white;
  padding: 42px 0 24px;
}
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.foot h3 {
  font: 600 14px Manrope;
}
.foot p,
.foot a {
  font-size: 13px;
  line-height: 1.9;
  color: #d2ddd5;
}
.footend {
  border-top: 1px solid #ffffff28;
  padding-top: 17px;
  margin-top: 28px;
  color: #afbeb3;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.tablinks {
  display: flex;
  gap: 16px;
  align-items: center;
}
.tablinks button {
  background: transparent;
  border: 0;
  padding: 7px 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.tablinks button.sel {
  border-bottom: 2px solid var(--gold);
}
.decision-tools {
  display: grid;
  grid-template-columns: 1fr 240px 180px;
  gap: 10px;
  margin: 24px 0;
}
.field {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
}
.result-count {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}
.decisions {
  display: grid;
  gap: 12px;
}
.decision {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 5px;
}
.decision h3 {
  font: 600 17px Manrope;
  margin: 0 0 8px;
}
.decision .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.decision .topic {
  display: inline-block;
  background: #e0f5f8;
  color: #14578d;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 20px;
  margin: 4px 0 9px;
}
.decision p {
  margin: 6px 0;
  color: #58645e;
  font-size: 13px;
  line-height: 1.55;
}
.adminbox {
  max-width: 660px;
  margin: 50px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 28px;
}
.adminbox h2 {
  font: 600 25px Manrope;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.formgrid .full {
  grid-column: 1/-1;
}
.status {
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.admin-photo-gallery {
  grid-column: 1/-1;
  width: 100%;
  margin: 8px 0 18px;
}
.admin-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  max-height: 390px;
  overflow: auto;
  padding: 4px;
}
.admin-photo-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: #fff;
  cursor: grab;
}
.admin-photo-card.dragging {
  opacity: 0.45;
}
.admin-photo-card img {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 5px;
  background: #edf3f6;
}
.admin-photo-meta {
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 5px 0;
}
.admin-photo-card .outline {
  width: 100%;
  padding: 6px;
  font-size: 11px;
}
.listing-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  gap: 15px;
}
.listing-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.outline.danger {
  color: #a63838;
  border-color: #d9a2a2;
}
.outline.danger:hover {
  background: #fff1f1;
}
.outline {
  background: transparent;
  color: var(--green);
  border: 1px solid #78b5c3;
  border-radius: 4px;
  padding: 10px 13px;
  cursor: pointer;
}
.secondary {
  background: #e8f1f5;
  color: var(--ink);
  padding: 10px 13px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.notice {
  background: #e8f5f7;
  padding: 16px;
  border-radius: 5px;
  color: #4d5d51;
  font-size: 14px;
  line-height: 1.5;
}
.upload {
  border: 1px dashed #b4bdb1;
  padding: 17px;
  border-radius: 5px;
  margin: 14px 0;
}
@media (max-width: 850px) {
  .properties {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    gap: 14px;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 17px;
  }
  .top {
    height: 70px;
  }
  .nav a:not(.contact) {
    display: none;
  }
  .hero {
    padding-top: 20px;
  }
  .heroimg {
    min-height: 520px;
  }
  .hero-copy {
    padding: 72px 24px;
  }
  .search {
    display: grid;
  }
  .properties,
  .services,
  .foot,
  .bandgrid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: start;
    gap: 12px;
    flex-direction: column;
  }
  .properties {
    gap: 14px;
  }
  .photo {
    height: 230px;
  }
  .decision-tools {
    grid-template-columns: 1fr;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .formgrid .full {
    grid-column: auto;
  }
  .footend {
    gap: 10px;
    flex-direction: column;
  }
}

.court-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 0 0 18px;
  border: 1px solid #dce7ed;
  border-radius: 7px;
  background: #fff;
  color: #14578d;
  font-weight: 700;
  cursor: pointer;
}
.court-back:hover {
  background: #e8f5f7;
}
.court-sidebar > .court-back {
  display: flex;
  width: 100%;
  margin: 12px 0 4px;
  padding: 10px 12px;
  background: #eef5fa;
  border-color: #d5e2ec;
  color: #164f83;
  text-align: left;
}
.court-sidebar > .court-back:hover {
  background: #e3eff7;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.resource-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  transition: 0.2s;
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px #263b2b12;
  border-color: #56bfd0;
}
.resource-card strong {
  display: block;
  color: #14578d;
  font: 700 17px Manrope;
  margin-bottom: 8px;
}
.resource-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.resource-section {
  margin: 30px 0 12px;
  font: 700 12px Manrope;
  letter-spacing: 0.1em;
  color: #667783;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}
.court-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.court-sidebar {
  position: sticky;
  top: 18px;
  background: #fff;
  border: 1px solid #e4ebef;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px #16304a0b;
}
.court-brand {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: #164f83;
}
.court-brand small {
  display: block;
  font-size: 11px;
  color: #718090;
  font-weight: 600;
  margin-top: 5px;
}
.court-nav {
  display: grid;
  gap: 5px;
  margin: 22px 0;
}
.court-nav button {
  border: 0;
  background: transparent;
  color: #42556a;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.court-nav button span {
  display: inline-block;
  width: 25px;
  color: #258da2;
}
.court-nav button.active {
  background: #e9f6fa;
  color: #145688;
}
.court-datasets {
  border-top: 1px solid #e4ebef;
  padding-top: 16px;
}
.dataset-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #738291;
  margin-bottom: 8px;
}
.dataset-toggle {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #26465f;
}
.dataset-toggle.active {
  background: #eef8f9;
}
.dataset-toggle small {
  display: block;
  color: #778493;
  font-weight: 500;
  margin-top: 4px;
}
.dataset-mark {
  color: #188c87;
  font-weight: 900;
}
.dataset-toggle.preparing {
  opacity: 0.6;
}
.dataset-help {
  font-size: 11px;
  color: #778493;
  line-height: 1.5;
  margin: 8px 2px;
}
.court-official {
  display: inline-block;
  margin: 14px 4px 2px;
  color: #287d94;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.court-content {
  min-width: 0;
  background: #fff;
  border: 1px solid #e4ebef;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: 0 12px 40px #16304a0b;
}
.court-view {
  display: none;
}
.court-view.active {
  display: block;
}
.court-view-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.court-view-head h2 {
  margin: 7px 0 5px;
}
.court-view-head p {
  margin: 0;
  color: #738090;
}
.court-sort {
  max-width: 190px;
}
.court-taxonomy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.court-topic {
  border: 1px solid #e4ebef;
  border-radius: 14px;
  overflow: hidden;
}
.court-topic-head {
  display: flex;
  align-items: stretch;
}
.court-topic-link,
.court-topic-chevron {
  border: 0;
  background: #f8fbfc;
  color: #214a68;
  font: inherit;
  cursor: pointer;
}
.court-topic-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 15px 14px;
  flex: 1;
  font-weight: 750;
}
.court-topic-link span,
.court-subtopic-link span {
  font-size: 11px;
  color: #168999;
  background: #e5f5f6;
  border-radius: 999px;
  padding: 3px 8px;
}
.court-topic-chevron {
  padding: 0 15px;
  font-size: 20px;
  color: #168999;
}
.court-topic-details {
  padding: 8px;
  display: grid;
  gap: 5px;
}
.court-subtopic-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 9px;
  color: #536779;
  font: 500 13px inherit;
  cursor: pointer;
}
.court-subtopic-link:hover,
.court-topic-link:hover {
  background: #eef7f9;
}
.court-subtopic-link {
  font-family: inherit;
}
.court-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.court-filters .field {
  min-width: 0;
}
.court-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.court-results {
  display: grid;
  gap: 8px;
}
.court-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e4ebef;
  background: #fff;
  border-radius: 12px;
  padding: 13px;
  color: #23394f;
  font: inherit;
  cursor: pointer;
}
.court-result.selected {
  border-color: #178da1;
  box-shadow: 0 0 0 2px #178da11b;
}
.court-result-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.court-result-top span,
.court-result .meta {
  font-size: 11px;
  color: #7b8895;
}
.court-result .meta {
  display: block;
  margin-top: 5px;
}
.court-result-association {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #526a7d;
}
.court-result .topic {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 11px;
}
.court-detail {
  position: sticky;
  top: 18px;
  border: 1px solid #dce8ed;
  border-radius: 14px;
  overflow: hidden;
  background: #fbfdfe;
}
.court-detail-head {
  padding: 18px;
  background: #eef7f9;
  border-bottom: 1px solid #deeaee;
}
.court-detail-head h3 {
  margin: 6px 0;
}
.court-detail-head p {
  margin: 0;
}
.court-detail-body {
  padding: 18px;
}
.court-language-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #deeaee;
}
.court-language-switch button {
  border: 1px solid #cbdde5;
  border-radius: 7px;
  background: #fff;
  color: #28516c;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.court-language-switch button.active {
  background: #14578d;
  border-color: #14578d;
  color: #fff;
}
.court-fulltext-section {
  margin-top: 18px;
  padding-top: 6px;
  border-top: 1px solid #e2eaee;
}
.court-fulltext-section h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.court-text-language {
  font-size: 11px;
  font-weight: 600;
  color: #668092;
}
.court-fulltext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #405668;
  font-size: 14px;
  line-height: 1.75;
}
.court-text-audit {
  margin: 20px 0;
  padding: 12px;
  border: 1px solid #e1e9ee;
  border-radius: 8px;
  color: #536779;
}
.court-text-audit summary {
  cursor: pointer;
  color: #28516c;
  font-weight: 650;
}
.court-text-audit p {
  margin-bottom: 0;
}
.court-pdf-link {
  display: block;
  margin-top: 9px;
}
.court-text-loading {
  padding: 12px;
  background: #f3f8fa;
  border-radius: 8px;
  color: #627d8c;
}
.court-detail-body h4 {
  margin: 18px 0 6px;
  color: #214a68;
}
.court-detail-body p {
  line-height: 1.65;
}
.court-help {
  border: 1px solid #e4ebef;
  border-radius: 14px;
  padding: 20px;
  line-height: 1.7;
  color: #536779;
}
.court-help p {
  margin: 0 0 15px;
}
.court-help p:last-child {
  margin-bottom: 0;
}
@media (max-width: 920px) {
  .court-shell {
    grid-template-columns: 1fr;
  }
  .court-sidebar {
    position: static;
  }
  .court-taxonomy {
    grid-template-columns: 1fr;
  }
  .court-results-layout {
    grid-template-columns: 1fr;
  }
  .court-detail {
    position: static;
  }
  .court-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .court-sidebar {
    padding: 15px;
  }
  .court-content {
    padding: 15px;
  }
  .court-filters {
    grid-template-columns: 1fr;
  }
  .court-view-head {
    display: block;
  }
  .court-sort {
    margin-top: 12px;
  }
  .court-view-head button {
    margin-top: 10px;
  }
}
#listingModal {
  position: fixed;
  inset: 84px 0 0;
  z-index: 980;
  background: #f3f7fa;
  display: block;
  overflow: auto;
  padding: 0;
}
#listingModal[hidden] {
  display: none !important;
}
.listing-dialog {
  width: min(1380px, 100%);
  min-height: 100%;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
  padding: 0 28px 54px;
  background: #f3f7fa;
  border-radius: 8px;
  box-shadow: none;
}
.listing-dialog-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #dfe8ed;
  background: #f3f7fa;
}
.listing-return {
  border: 0;
  background: none;
  padding: 8px 0;
  color: #14578d;
  font: 700 14px Manrope;
  cursor: pointer;
  white-space: nowrap;
}
.listing-return:hover {
  color: #258da2;
}
.listing-breadcrumb {
  font-size: 13px;
  color: #718090;
}
.listing-breadcrumb span {
  padding: 0 8px;
  color: #98a9b4;
}
.listing-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 30px;
  align-items: start;
  padding-top: 24px;
}
.listing-main-col {
  min-width: 0;
}
.listing-detail-photo {
  background: #e6edf0;
  overflow: hidden;
  border-radius: 8px;
}
.listing-detail-photo img {
  display: block;
  width: 100%;
  height: clamp(380px, 62vh, 740px);
  object-fit: cover;
}
.listing-description {
  margin-top: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e1e9ee;
  border-radius: 8px;
}
.listing-description h2 {
  margin: 0 0 12px;
  color: #164f83;
  font: 700 20px Manrope;
}
.listing-description p {
  margin: 0 0 16px;
  color: #42556a;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}
.listing-description p:last-child {
  margin-bottom: 0;
}
.listing-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px;
}
.listing-gallery-thumbs button {
  flex: 0 0 86px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  background: #eaf0f4;
  cursor: pointer;
}
.listing-gallery-thumbs button.selected {
  border-color: #176095;
}
.listing-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-detail-photo {
  position: relative;
}
.listing-detail-photo .gallery-prev,
.listing-detail-photo .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e8f4;
  border-radius: 8px;
  background: #103d5ed9;
  color: #fff;
  cursor: pointer;
}
.listing-detail-photo .gallery-prev svg,
.listing-detail-photo .gallery-next svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.listing-detail-photo .gallery-prev:hover,
.listing-detail-photo .gallery-next:hover,
.listing-detail-photo .gallery-prev:focus-visible,
.listing-detail-photo .gallery-next:focus-visible {
  background: #176095;
}
.listing-detail-photo .gallery-prev {
  left: 14px;
}
.listing-detail-photo .gallery-next {
  right: 14px;
}
.gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #18394ccc;
  color: white;
  font-size: 12px;
}
.listing-detail-aside {
  position: sticky;
  top: 18px;
  background: #fff;
  border: 1px solid #e1e9ee;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 8px 26px #16304a0a;
}
.listing-deal {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 4px;
  background: #e4f4f7;
  color: #14578d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.listing-detail-aside h1 {
  margin: 18px 0 12px;
  color: #20394c;
  font: 700 27px Manrope;
  line-height: 1.2;
}
.listing-total-price {
  color: #20394c;
  font: 800 34px Manrope;
}
.listing-price-per {
  margin-top: 4px;
  color: #718090;
  font-size: 14px;
}
.listing-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid #e1e9ee;
  border-bottom: 1px solid #e1e9ee;
}
.listing-detail-facts div {
  display: grid;
  gap: 5px;
}
.listing-detail-facts span {
  color: #718090;
  font-size: 12px;
}
.listing-detail-facts strong {
  color: #20394c;
  font: 700 18px Manrope;
}
.listing-updated {
  margin-top: 16px;
  color: #718090;
  font-size: 12px;
}
.listing-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.listing-detail-actions a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13px 14px;
  border-radius: 5px;
  background: #14578d;
  color: #fff;
  font-weight: 700;
}
.listing-detail-actions a.secondary {
  background: #e7f4f7;
  color: #14578d;
}
@media (max-width: 900px) {
  .listing-dialog {
    padding: 0 18px 40px;
  }
  .listing-dialog-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    gap: 18px;
  }
  .listing-detail-aside {
    padding: 22px;
  }
  .listing-detail-photo img {
    height: clamp(320px, 55vh, 600px);
  }
}
@media (max-width: 700px) {
  #listingModal {
    inset: 72px 0 0;
  }
  .listing-dialog {
    padding: 0 12px 28px;
  }
  .listing-dialog-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
  }
  .listing-dialog-grid {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
  .listing-detail-photo img {
    height: 52vw;
    min-height: 230px;
    max-height: 360px;
  }
  .listing-detail-aside {
    position: static;
    padding: 20px;
  }
  .listing-detail-aside h1 {
    font-size: 23px;
  }
  .listing-total-price {
    font-size: 30px;
  }
  .listing-description {
    padding: 20px;
    margin-top: 14px;
  }
  .listing-description p {
    font-size: 14px;
  }
  .listing-detail-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Admin workspace: permanent labels, distinct editor and searchable inventory. */
#loginBox {
  max-width: 480px;
  margin: 48px auto;
}
#adminBox {
  max-width: 1120px;
  width: 100%;
  box-sizing: border-box;
  margin: 32px auto;
  padding: 28px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #31536b;
}
.admin-field .field {
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
}
.admin-field textarea {
  resize: vertical;
  line-height: 1.6;
}
#listingForm {
  background: #f7fbfd;
  border: 1px solid #dce8ee;
  border-radius: 14px;
  padding: 24px;
}
#listingForm h3 {
  margin-top: 0;
}
.admin-savebar {
  position: sticky;
  bottom: 0;
  background: #f7fbfdf5;
  border-top: 1px solid #dce8ee;
  margin: 20px -24px -24px;
  padding: 16px 24px;
  border-radius: 0 0 14px 14px;
  z-index: 3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-savebar .status {
  width: 100%;
  margin: 0;
}
.admin-savebar button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.admin-list-section {
  border-top: 1px solid #dde7ee;
  margin-top: 28px;
  padding-top: 18px;
}
.admin-list-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.admin-list-filters label {
  font-size: 13px;
  font-weight: 700;
  display: grid;
  gap: 8px;
}
.listing-admin {
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}
.listing-admin small {
  line-height: 1.8;
}
.admin-court-import {
  border: 1px solid #dae7ee;
  padding: 16px;
  border-radius: 10px;
  margin-top: 24px;
}
.admin-court-import summary {
  cursor: pointer;
  font-weight: 700;
  color: #14578d;
}
.photo-move-buttons {
  display: flex;
  gap: 6px;
}
.photo-move-buttons button {
  padding: 5px 10px;
}
.pending-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pending-photo-grid img {
  width: 86px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.admin-gallery-head {
  gap: 12px;
  flex-wrap: wrap;
}
.admin-photo-card:first-child:before {
  content: 'Главное фото';
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #14578d;
  margin-bottom: 6px;
}
@media (max-width: 640px) {
  #adminBox {
    padding: 16px;
    margin: 16px auto;
  }
  #listingForm {
    padding: 16px;
  }
  .admin-savebar {
    margin: 16px -16px -16px;
    padding: 14px 16px;
  }
  .admin-list-filters {
    grid-template-columns: 1fr;
  }
  .listing-admin {
    align-items: flex-start;
    flex-direction: column;
  }
  .listing-admin-actions {
    width: 100%;
  }
  .listing-admin-actions button {
    flex: 1;
  }
  .admin-field {
    min-width: 0;
  }
}

/* A compact branded catalog, without the old promotional banner. */
:root {
  --ink: #20354a;
  --muted: #687c8d;
  --paper: #f6f8fb;
  --line: #e0e7ee;
}
body {
  font-family: Manrope, 'Segoe UI', sans-serif;
}
.wrap {
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}
.wrap.section {
  padding: 24px 24px 40px;
}
.top {
  height: 88px;
  background: var(--paper);
  gap: 24px;
}
.brand img {
  width: 58px;
  height: 58px;
  max-width: 58px;
  flex-shrink: 0;
}
.nav {
  gap: 20px;
}
.nav .contact {
  border-radius: 8px;
  font-weight: 700;
  padding: 12px 18px;
}
.nav-service {
  background: none;
  border: 0;
  padding: 12px 0;
  color: var(--muted);
  cursor: pointer;
}
.nav-service.sel {
  color: #14578d;
}
.tablinks button {
  font-family: inherit;
  font-weight: 600;
}
.tablinks button.sel {
  color: #14578d;
  border-bottom-color: #56bfd0;
}
#homes .heading {
  justify-content: flex-end;
  margin-bottom: 16px;
  font-size: 12px;
}
#homes .heading > div {
  display: none;
}
.compact-search {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.3fr auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px #183b5a04;
  margin-bottom: 24px;
}
.search-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.search-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64788a;
}
.search-field input,
.search-field select {
  width: 100%;
  background: #f7f9fc;
  border: 1px solid #e3eaf1;
  border-radius: 7px;
  font-size: 13px;
  padding: 11px;
  color: #20354a;
  min-height: 44px;
  outline: none;
}
.search-field input:focus,
.search-field select:focus {
  border-color: #379db5;
  box-shadow: 0 0 0 3px #56bfd020;
}
.compact-search > .btn {
  min-height: 44px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.properties {
  gap: 22px;
}
.card {
  border-radius: 12px;
  border: 1px solid #e0e7ee;
  box-shadow: 0 3px 12px #20354a04;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #b8cddd;
  box-shadow: 0 10px 24px #20354a10;
}
.photo {
  height: auto;
  aspect-ratio: 1.55;
  background: #eaf0f5;
  display: grid;
  place-items: center;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo:has(img:not([hidden])) .photo-placeholder {
  display: none;
}
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #8a9eae;
  font-size: 12px;
}
.photo-placeholder > span {
  font-size: 44px;
  line-height: 1;
  color: #a8bdcc;
}
.cardbody {
  padding: 18px 20px 16px;
}
.address {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.card-price {
  margin: 0;
}
.card-price strong {
  font:
    800 25px/1.3 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  color: #173b5d;
}
.card-label {
  font-size: 10px;
}
.unit {
  font-size: 12px;
  margin-top: 3px;
}
.stats {
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
  padding: 14px 0 0;
}
.stats small {
  font-size: 10px;
}
.stats b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.homes-pagination {
  padding: 28px 0 0;
}
.outline {
  border-radius: 7px;
}
footer {
  background: #143954;
  color: #d3e1ec;
  margin-top: 20px;
}
footer .brand img {
  width: 54px;
  height: 54px;
}
.foot h3 {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.foot p {
  font-size: 13px;
  line-height: 1.9;
}
.catalog-error {
  grid-column: 1/-1;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}
@media (max-width: 950px) {
  .compact-search {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .compact-search > .btn {
    grid-column: 1/-1;
  }
  .nav {
    gap: 12px;
  }
  .tablinks button {
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .top {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }
  .top .brand img {
    width: 46px;
    height: 46px;
  }
  .nav {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tablinks {
    order: 2;
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }
  .tablinks button {
    padding: 8px 0;
    font-size: 11px;
  }
  .nav a:not(.contact) {
    display: inline-block;
  }
  .nav-service {
    font-size: 12px;
    padding: 8px;
  }
  .nav .contact {
    padding: 9px 12px;
    font-size: 12px;
  }
  .wrap.section {
    padding: 18px 16px 28px;
  }
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .compact-search {
    padding: 14px;
    gap: 10px;
    border-radius: 10px;
  }
  .search-field input,
  .search-field select {
    font-size: 12px;
    padding: 10px 8px;
  }
  .properties {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .photo {
    aspect-ratio: 1.65;
  }
  .cardbody {
    padding: 16px 18px;
  }
  .stats b {
    font-size: 14px;
  }
  .address {
    font-size: 18px;
  }
  .homes-pagination {
    gap: 10px;
  }
  .homes-pagination span {
    font-size: 11px;
  }
}

.court-main-nav {
  font-weight: 800;
}
.court-main-nav span {
  margin-left: 5px;
}
.court-discovery {
  border: 1px solid #d4e1ed;
  background: #fff;
  border-radius: 12px;
  margin: 0 0 24px;
  padding: 20px;
}
.court-discovery-heading > span {
  color: #6c8599;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.court-discovery-heading h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 6px 0 16px;
  letter-spacing: -0.02em;
  color: #173c5d;
}
.court-entrances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.court-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-align: left;
  border: 1px solid #d7e4ee;
  background: #f5f9fd;
  border-radius: 9px;
  cursor: pointer;
  color: #173d60;
  transition: 0.18s;
}
.court-entry:hover,
.court-entry.active {
  border-color: #6aa9cc;
  background: #edf6fc;
}
.court-entry > span:nth-child(2) {
  flex: 1;
}
.court-entry strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.court-entry small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #6d8496;
  margin-top: 4px;
}
.court-entry-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #14578d;
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.court-hub {
  padding-top: 30px;
}
.court-hub .eyebrow {
  color: #3b8fba;
}
.court-hub h1 {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}
.court-hub > p:not(.small) {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.8;
  color: #587085;
}
.court-hub .court-entry {
  padding: 22px;
}
.court-hub .court-entry strong {
  font-size: 16px;
}
.court-hub .court-entry small {
  font-size: 12px;
}
.dataset-toggle {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  border: 1px solid #dce7ef;
  margin-top: 7px;
}
#listingUnavailable:not(:empty) {
  padding: 16px;
  background: #fff6df;
  border-radius: 8px;
  margin-bottom: 18px;
}
.listing-admin-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.listing-admin-actions button {
  font-size: 12px;
  padding: 9px 12px;
}
@media (max-width: 760px) {
  .court-entrances {
    grid-template-columns: 1fr;
  }
  .court-discovery {
    padding: 16px;
  }
  .court-hub h1 {
    font-size: 26px;
  }
  .court-entry {
    padding: 13px;
  }
  .court-hub .court-entry {
    padding: 16px;
  }
  .court-hub .court-entry strong {
    font-size: 14px;
  }
  .court-main-nav {
    font-size: 11px !important;
  }
  .top {
    flex-wrap: wrap;
  }
  .tablinks {
    gap: 10px;
  }
}

/* Prominent navigation within judicial topics and subtopics. */
#courtBack {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 16px 0 20px;
  padding: 12px 18px;
  background: #a33f20;
  color: #fff;
  border: 1px solid #8b3218;
  border-radius: 9px;
  font: 800 16px/1.3 inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 9px #8b321822;
}
#courtBack:hover {
  background: #853117;
}
#courtBack:focus-visible {
  outline: 3px solid #e8a44e;
  outline-offset: 3px;
}

#courtOrganizationLabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 15px 0;
}
#courtOrganizationLabel.hidden {
  display: none;
}
#courtOrganization {
  width: 100%;
  margin-top: 7px;
  padding: 9px;
  font: inherit;
  border: 1px solid #cedce7;
  border-radius: 7px;
}
.court-related button {
  display: block;
  text-align: left;
  margin: 7px 0;
  width: 100%;
}
#courtBack {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.court-artwork {
  float: right;
  width: 300px;
  max-width: 34%;
  height: auto;
  margin: 0 0 20px 30px;
  border-radius: 10px;
  border: 1px solid #d4e1eb;
}
.court-hub > .court-entrances {
  clear: both;
}
@media (max-width: 700px) {
  .court-artwork {
    float: none;
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 0 20px;
  }
}

/* Artwork frames the legal resource; reading and catalogue surfaces stay calm. */
.court-hub {
  position: relative;
  isolation: isolate;
  margin-top: 26px;
  padding: 30px !important;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(
      100deg,
      rgba(9, 34, 52, 0.95) 0%,
      rgba(9, 34, 52, 0.88) 43%,
      rgba(9, 34, 52, 0.36) 100%
    ),
    url('/assets/court-artwork-768.3c7ac4280d9ed7af.webp') center 42% / cover no-repeat;
  box-shadow: 0 12px 35px #173c5d15;
}
.court-hub h1 {
  color: #fff;
}
.court-hub .eyebrow {
  color: #add6ee;
}
.court-hub > p:not(.small) {
  max-width: 690px;
  color: #edf5fa;
}
.court-hub > p.small {
  color: #dce8f0;
  font-size: 11px;
  line-height: 1.7;
}
.court-hub .court-entrances {
  margin-top: 24px;
}
.court-hub .court-entry {
  background: #f7fbffed;
  border-color: #d4e4ef;
  padding: 18px;
}
.court-hub .court-entry.active,
.court-hub .court-entry:hover {
  background: #fff;
  border-color: #8ec3e0;
}
.court-hub .court-entry strong {
  font-size: 14px;
}
.court-hub .court-entry small {
  font-size: 11px;
}
.court-hub #courtSnapshotDate {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .court-hub {
    margin: 15px 14px 0;
    padding: 22px !important;
    border-radius: 12px;
    background-position: center;
  }
  .court-hub h1 {
    font-size: 27px;
  }
  .court-hub .court-entry {
    padding: 14px;
  }
  .court-hub .court-entry strong {
    font-size: 13px;
  }
}

/* The corpus selector stays above the research workspace. */
.court-base-selector {
  position: sticky;
  top: 80px;
  z-index: 25;
  background: #fff;
  border: 2px solid #bdd8eb;
  border-radius: 13px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 6px 22px #17496b12;
}
.court-base-heading {
  font-size: 18px;
  line-height: 1.4;
  color: #173c5d;
  font-weight: 800;
  margin-bottom: 13px;
}
.court-base-heading small {
  font-size: 11px;
  font-weight: 400;
  color: #6a8295;
  margin-left: 14px;
}
.court-base-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.court-base-buttons .dataset-toggle {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 16px 18px;
  min-height: 72px;
  background: #edf5fb;
  border: 2px solid #d5e4ee;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: #194b70;
  transition: 0.15s;
}
.court-base-buttons .dataset-toggle:hover {
  border-color: #6aa6ce;
  background: #e4f1fa;
}
.court-base-buttons .dataset-toggle.active {
  background: #14578d;
  border-color: #14578d;
  color: #fff;
}
.court-base-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  color: #14578d;
  font-size: 14px;
}
.court-base-buttons .dataset-toggle:focus-visible {
  outline: 3px solid #bd723f;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .court-base-selector {
    position: static;
    padding: 15px;
  }
  .court-base-buttons {
    grid-template-columns: 1fr;
  }
  .court-base-heading small {
    display: block;
    margin: 3px 0 0;
  }
  .court-base-buttons .dataset-toggle {
    padding: 13px;
    font-size: 14px;
    min-height: 64px;
  }
}

/* Highlight only the current section, including on mobile. */
.tablinks button {
  border: 1px solid transparent !important;
  border-radius: 8px;
  padding: 10px 12px !important;
  background: transparent !important;
  color: #42576a !important;
  font-weight: 600 !important;
}
.nav button[data-tab].sel {
  background: #e6f1fa !important;
  border-color: #bdd6e7 !important;
  color: #14578d !important;
  font-weight: 800 !important;
}
.tablinks button:not(.sel):hover {
  background: #e8f2f8 !important;
  color: #14578d !important;
}
.tablinks button:focus-visible {
  outline: 3px solid #56bfd0;
  outline-offset: 2px;
}
#homes .heading {
  justify-content: space-between;
  align-items: center;
}
#homes .heading > div {
  display: block;
}
.heading p.home-inventory-count {
  display: inline-block;
  margin: 0;
  padding: 11px 16px;
  background: #e5f0f8;
  border: 1px solid #c9dfef;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  color: #154e7a;
}
@media (max-width: 760px) {
  #homes .court-discovery {
    display: none;
  }
  .top .nav {
    min-width: 0;
  }
  .tablinks {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }
  .tablinks button {
    padding: 9px 10px !important;
    min-height: 40px;
    font-size: 11px !important;
  }
  .court-main-nav span {
    display: none;
  }
  #homes .heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  .heading p.home-inventory-count {
    font-size: 14px;
    padding: 10px 13px;
  }
}

.nav button[data-tab] {
  border: 1px solid transparent !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px !important;
  background: transparent !important;
  color: #42576a !important;
  line-height: 1.4;
  text-align: center;
}
.nav button[data-tab]:not(.sel) {
  background: transparent !important;
  border-color: transparent !important;
}
.tablinks {
  align-items: stretch;
}
@media (max-width: 650px) {
  .tablinks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .tablinks button {
    width: 100%;
    height: 100%;
    min-height: 62px !important;
    white-space: normal;
    overflow-wrap: normal;
    padding: 9px 7px !important;
  }
  .nav button.nav-service {
    min-height: 36px;
  }
}

@media (max-width: 760px) {
  input,
  select,
  textarea,
  .search-field input,
  .search-field select {
    font-size: 16px !important;
  }
  .court-subtopic-link,
  .court-language-switch button,
  .listing-return {
    min-height: 44px;
  }
  footer a {
    display: inline-block;
    min-height: 36px;
    padding: 4px 0;
  }
}

/* Shared Estonian accents: restrained blue, ink and white; no flag image. */
body:before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #4895c7 0 57%, #243039 57% 78%, #fff 78%);
  border-bottom: 1px solid #e6edf1;
}
.top > .est-swallow {
  width: 42px;
  height: 29px;
  flex-shrink: 0;
  color: #253c4c;
  margin-right: auto;
  opacity: 0.65;
}
.top {
  gap: 15px;
}
.heading:before {
  content: '';
  width: 4px;
  align-self: stretch;
  min-height: 28px;
  background: linear-gradient(#4a98cb 0 55%, #23333f 55% 78%, #fff 78%);
  border-radius: 4px;
}
footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(13, 40, 59, 0.97),
      rgba(13, 40, 59, 0.93) 55%,
      rgba(13, 40, 59, 0.83)
    ),
    url('/assets/court-artwork-768.3c7ac4280d9ed7af.webp') center 48% / cover no-repeat;
}
footer:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4c9cd1 0 57%, #18242e 57% 78%, #fff 78%);
}
.est-footer-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  color: #d9e7f0;
}
.est-cornflower {
  width: 38px;
  height: 38px;
}
.est-footer-mark .est-swallow {
  width: 48px;
  height: 30px;
  color: #dbe8f1;
  opacity: 0.8;
}
.est-footer-mark span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b1cadb;
}
@media (max-width: 760px) {
  .top > .est-swallow {
    display: none;
  }
  .est-footer-mark {
    margin-top: 20px;
  }
  .heading:before {
    display: none;
  }
}

.court-topic.has-open-cases {
  grid-column: 1/-1;
}
.court-subtopic-branch {
  min-width: 0;
}
.court-subtopic-branch > .court-subtopic-link {
  width: 100%;
}
.court-subtopic-link.expanded {
  background: #e0eff9;
  color: #144e79;
  font-weight: 700;
  border-radius: 7px;
}
.court-inline-cases {
  padding: 15px 10px 6px;
  border-top: 1px solid #dce7ef;
  margin: 8px 0 14px;
}
.court-inline-cases > .court-view {
  padding: 0;
}
.court-inline-cases .court-view-head {
  margin-bottom: 14px;
}
.court-inline-cases .court-view-head h2 {
  font-size: 18px;
}
.court-inline-cases .court-results-layout {
  gap: 16px;
}
.court-inline-cases .court-detail {
  position: static;
}
.estonian-postage {
  display: block;
  width: 125px;
  height: auto;
  transform: rotate(-5deg);
  box-shadow: 0 8px 25px #0004;
  flex-shrink: 0;
}
.est-footer-mark {
  justify-content: flex-end;
  gap: 25px;
}
.est-footer-mark > span {
  max-width: 100px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .court-inline-cases {
    padding: 12px 0 4px;
  }
  .court-topic.has-open-cases {
    grid-column: auto;
  }
  .estonian-postage {
    width: 108px;
  }
  .est-footer-mark {
    justify-content: flex-start;
    margin-top: 28px;
  }
}

/* Shared postage backgrounds. Navigation and contact text retain quiet surfaces. */
.postage-masthead {
  width: calc(100% - 56px);
  max-width: 1164px;
  height: clamp(130px, 28vw, 360px);
  margin: 20px auto 0;
  background: #e7f1fa url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') center/cover no-repeat;
  border-radius: 10px;
  box-shadow: 0 4px 20px #163d6010;
}
footer {
  background: #16334e url('/assets/cornflower-2172.b70243f3ace883e4.webp') center/cover no-repeat;
  padding-top: 46px;
  padding-bottom: 24px;
  min-height: 430px;
}
footer .foot {
  width: 68%;
  max-width: 790px;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px 30px;
  padding: 24px 28px;
  border-radius: 12px;
  background: rgba(9, 35, 58, 0.92);
  box-shadow: 0 5px 22px #0a203318;
}
footer .foot > div:first-child {
  grid-row: span 2;
}
footer .foot p,
footer .foot a {
  color: #e0edf5;
}
footer .foot h3 {
  color: #fff;
}
footer .footend {
  background: rgba(9, 35, 58, 0.92);
  padding: 14px 18px;
  border: 1px solid #c3d7e629;
  border-radius: 9px;
  color: #e0edf5;
}
.est-footer-mark {
  justify-content: flex-start;
  margin-top: 20px;
}
.est-footer-mark span {
  color: #fff;
  background: #0c2a47e8;
  padding: 7px 12px;
  border-radius: 5px;
  max-width: none;
}
.court-hub {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .postage-masthead {
    width: calc(100% - 28px);
    height: clamp(130px, 33vw, 220px);
    margin-top: 14px;
    border-radius: 7px;
  }
  footer {
    background-position: 72% center;
    min-height: 600px;
    padding-top: 35px;
  }
  footer .foot {
    width: 100%;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  footer .foot > div:first-child {
    grid-row: auto;
  }
  .est-footer-mark {
    margin-bottom: 20px;
  }
}

/* The swallow postage artwork is part of the navigation controls. */
.top {
  height: auto;
  min-height: 96px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.tablinks {
  gap: 10px;
}
.nav .tablinks button[data-tab] {
  min-width: 130px;
  min-height: 66px;
  padding: 12px 14px !important;
  border: 1px solid #c1d6e5 !important;
  border-radius: 7px;
  background-image:
    linear-gradient(90deg, rgba(246, 251, 255, 0.95), rgba(246, 251, 255, 0.78)),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
  background-position:
    center,
    right center !important;
  background-size:
    cover,
    auto 100% !important;
  box-shadow: 0 2px 5px #173f5c08;
  font-weight: 700 !important;
}
.nav .tablinks button[data-tab].sel {
  border: 2px solid #2675aa !important;
  background-image:
    linear-gradient(90deg, rgba(210, 233, 249, 0.94), rgba(210, 233, 249, 0.7)),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
  color: #0f4772 !important;
  box-shadow: inset 0 -4px #2675aa;
}
.nav .tablinks button[data-tab]:not(.sel):hover {
  border-color: #6aa2c6 !important;
  background-image:
    linear-gradient(90deg, rgba(231, 244, 253, 0.94), rgba(231, 244, 253, 0.7)),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
}
.nav .tablinks button[data-tab='courts'] {
  max-width: 230px;
}
@media (max-width: 950px) {
  .nav .tablinks button[data-tab] {
    min-width: 0;
    font-size: 12px !important;
    padding: 10px !important;
  }
  .nav {
    gap: 10px;
  }
}
@media (max-width: 650px) {
  .top {
    min-height: 140px;
  }
  .nav .tablinks button[data-tab] {
    min-width: 0;
    min-height: 68px !important;
    padding: 8px 5px !important;
    font-size: 11px !important;
    background-size:
      cover,
      auto 100% !important;
  }
  .nav .tablinks button[data-tab='courts'] {
    max-width: none;
  }
}

/* Contact logo retains the original lettering and colours. */
.top > .brand {
  width: 340px;
  flex: 0 0 340px;
  letter-spacing: 0;
}
.top > .brand img {
  display: block;
  width: 340px;
  height: auto;
  max-width: 100%;
  border-radius: 5px;
  object-fit: contain;
}
.top > .nav {
  min-width: 0;
}
@media (max-width: 1199px) {
  .top {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .top > .brand {
    flex-basis: 100%;
    width: 100%;
    justify-content: flex-start;
  }
  .top > .brand img {
    width: 340px;
  }
  .top > .nav {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  .top .tablinks {
    margin-right: auto;
  }
}
@media (max-width: 650px) {
  .top > .brand {
    justify-content: center;
  }
  .top > .brand img {
    width: 300px;
    max-width: 100%;
    height: auto;
  }
  .top > .nav {
    width: 100%;
    justify-content: flex-end;
  }
  .top .tablinks {
    margin-right: 0;
  }
  .top {
    gap: 8px;
  }
}

.top > .brand {
  width: 390px;
  flex-basis: 390px;
}
.top > .brand img {
  width: 390px;
  height: 100px;
  object-fit: cover;
  object-position: center;
}
.top {
  min-height: 120px;
}
@media (max-width: 1199px) {
  .top > .brand {
    width: 100%;
    flex-basis: 100%;
  }
  .top > .brand img {
    width: 390px;
    height: 100px;
  }
  .top > .nav {
    justify-content: center;
  }
}
@media (max-width: 650px) {
  .top > .brand img {
    width: 100%;
    max-width: 360px;
    height: 92px;
    object-fit: cover;
  }
  .top > .brand {
    width: 100%;
    justify-content: center;
  }
  .top > .nav {
    justify-content: flex-end;
  }
  .top {
    gap: 6px;
  }
}

.top > .brand img {
  height: 108px;
  border: 1px solid #c7dbe9;
  border-radius: 7px;
  box-shadow: 0 2px 6px #24495e08;
}
@media (max-width: 650px) {
  .top > .brand img {
    height: 98px;
  }
}
/* Keep the current section distinct from pointer hover. */
.nav .tablinks button[data-tab].sel {
  box-shadow: none;
  background-image:
    linear-gradient(90deg, rgba(225, 239, 249, 0.97), rgba(225, 239, 249, 0.91)),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
  border: 1px solid #6d9fbe !important;
}
.nav .tablinks button[data-tab]:not(.sel):hover {
  box-shadow: none;
  border-color: #90b3ca !important;
}
/* Compact postage logo: keep the perforated paper edge visible. */
.top > .brand {
  width: 300px;
  flex-basis: 300px;
}
.top > .brand img {
  width: 300px;
  height: 100px;
  object-fit: contain;
  background: #edf6fc;
}
.top {
  min-height: 120px;
}
@media (max-width: 1199px) {
  .top > .brand {
    width: 100%;
    flex-basis: 100%;
  }
  .top > .brand img {
    width: 300px;
    height: 100px;
  }
}
@media (max-width: 650px) {
  .top > .brand img {
    width: min(300px, 100%);
    height: auto;
    aspect-ratio: 3/1;
  }
}
/* One readable postal navigation system, with the swallow below each label. */
.top {
  gap: 16px;
  min-height: 116px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
}
.top > .brand {
  width: 240px;
  flex: 0 0 240px;
  justify-content: flex-start;
}
.top > .brand img {
  width: 240px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}
.top > .nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
  align-items: stretch;
}
.top .tablinks {
  display: contents;
}
.top .nav button[data-tab],
.top .nav a.contact {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 88px;
  min-height: 88px !important;
  margin: 0;
  padding: 12px 8px 35px !important;
  border: 1px solid #bcd2e2 !important;
  border-radius: 7px;
  background: #eef5fb !important;
  box-shadow: none !important;
  color: #244e6d !important;
  font:
    700 13px/1.4 Manrope,
    'Segoe UI',
    sans-serif !important;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.top .nav button[data-tab]::after,
.top .nav a.contact::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 26px;
  background: url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') right center/auto 26px no-repeat;
  opacity: 0.65;
  pointer-events: none;
}
.top .nav button[data-tab].sel {
  background: #dcecf8 !important;
  border-color: #367ca9 !important;
  box-shadow: inset 0 0 0 1px #367ca9 !important;
  color: #103f65 !important;
}
.top .nav button[data-tab]:not(.sel):hover,
.top .nav a.contact:hover {
  background: #e4eff7 !important;
  border-color: #87abc5 !important;
}
.court-main-nav span {
  display: none;
}
@media (max-width: 1050px) {
  .top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .top > .brand {
    width: 100%;
    flex-basis: 100%;
    justify-content: center;
  }
  .top > .nav {
    width: 100%;
    flex-basis: 100%;
  }
  .top .nav button[data-tab],
  .top .nav a.contact {
    font-size: 13px !important;
  }
}
@media (max-width: 650px) {
  .top {
    position: relative;
  }
  .top > .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .top .nav button[data-tab],
  .top .nav a.contact {
    height: 88px;
    min-height: 88px !important;
    font-size: 12px !important;
    padding: 10px 5px 33px !important;
  }
  .top > .brand img {
    width: 240px;
    height: 80px;
    aspect-ratio: 3/1;
  }
  .top .nav a.contact {
    grid-column: 3;
  }
  .top .nav .nav-service {
    grid-column: 1/3;
    width: calc(50% - 3px);
    justify-self: center;
  }
}
@media (max-width: 650px) {
  .top .nav .nav-service,
  .top .nav a.contact {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}
/* Full-surface swallow postage backgrounds, with calm space behind labels. */
.top .nav button[data-tab],
.top .nav a.contact {
  background-image:
    linear-gradient(
      180deg,
      rgba(242, 248, 252, 0.98) 0%,
      rgba(242, 248, 252, 0.94) 42%,
      rgba(242, 248, 252, 0.24) 100%
    ),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
  background-position:
    center,
    right bottom !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
}
.top .nav button[data-tab]::after,
.top .nav a.contact::after {
  display: none;
}
.top .nav button[data-tab].sel {
  background-image:
    linear-gradient(
      180deg,
      rgba(215, 234, 248, 0.98) 0%,
      rgba(215, 234, 248, 0.93) 42%,
      rgba(215, 234, 248, 0.2) 100%
    ),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
}
.top .nav button[data-tab]:not(.sel):hover,
.top .nav a.contact:hover {
  background-image:
    linear-gradient(
      180deg,
      rgba(231, 242, 251, 0.98) 0%,
      rgba(231, 242, 251, 0.94) 42%,
      rgba(231, 242, 251, 0.24) 100%
    ),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
}
footer .brand {
  display: inline-flex;
  width: 270px;
  max-width: 100%;
  height: auto;
}
footer .brand img {
  width: 270px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.top > .brand img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
/* The logo is a complete compact stamp, displayed without stretching or cropping. */
.top > .brand {
  width: 200px;
  flex: 0 0 200px;
}
.top > .brand img {
  width: 200px;
  height: 113px;
  aspect-ratio: auto;
  object-fit: contain;
  max-width: 100%;
}
.top {
  min-height: 133px;
}
footer .brand {
  width: 270px;
}
footer .brand img {
  width: 270px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  max-width: 100%;
}
@media (max-width: 1050px) {
  .top > .brand {
    width: 100%;
    flex-basis: 100%;
    justify-content: center;
  }
  .top > .brand img {
    width: 200px;
    height: 113px;
  }
}
.top > .nav .tablinks button[data-tab] {
  background-size: cover, cover !important;
  background-position:
    center,
    right bottom !important;
}
.top > .nav .tablinks button[data-tab].sel {
  background-image:
    linear-gradient(
      180deg,
      rgba(215, 234, 248, 0.98) 0%,
      rgba(215, 234, 248, 0.93) 42%,
      rgba(215, 234, 248, 0.2) 100%
    ),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
}
.top > .nav .tablinks button[data-tab]:not(.sel):hover {
  background-image:
    linear-gradient(
      180deg,
      rgba(231, 242, 251, 0.98) 0%,
      rgba(231, 242, 251, 0.94) 42%,
      rgba(231, 242, 251, 0.24) 100%
    ),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') !important;
}
/* Postal edges and readable labels on every navigation stamp. */
.top > .nav {
  gap: 10px;
  padding: 4px;
}
.top > .nav .tablinks button[data-tab],
.top > .nav button.nav-service,
.top > .nav a.contact {
  height: 96px;
  min-height: 96px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
  isolation: isolate;
  padding: 10px 6px 30px !important;
  filter: drop-shadow(0 1px 2px #234c6a25);
  outline-offset: 3px;
}
.top > .nav .tablinks button[data-tab]::before,
.top > .nav button.nav-service::before,
.top > .nav a.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 50%, var(--paper) 2.6px, transparent 3.1px) left top/6px 10px
      repeat-y,
    radial-gradient(circle at 100% 50%, var(--paper) 2.6px, transparent 3.1px) right top/6px 10px
      repeat-y,
    radial-gradient(circle at 50% 0, var(--paper) 2.6px, transparent 3.1px) left top/10px 6px
      repeat-x,
    radial-gradient(circle at 50% 100%, var(--paper) 2.6px, transparent 3.1px) left bottom/10px 6px
      repeat-x;
}
.top > .nav .nav-label {
  display: block !important;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4px 3px;
  border-radius: 3px;
  background: rgba(247, 251, 255, 0.94);
  color: #123b5b;
  font:
    800 14px/1.35 'Segoe UI',
    sans-serif !important;
  text-shadow: none;
  letter-spacing: 0.01em;
}
.top > .nav .tablinks button[data-tab].sel {
  box-shadow: inset 0 0 0 3px #367ca9 !important;
}
.top > .nav .tablinks button[data-tab].sel .nav-label {
  background: #d9ecfa;
  color: #0a3455;
}
@media (max-width: 650px) {
  .top > .nav .nav-label {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  .top > .nav {
    gap: 8px;
    padding: 2px;
  }
  .top > .nav .tablinks button[data-tab],
  .top > .nav button.nav-service,
  .top > .nav a.contact {
    height: 96px;
    min-height: 96px !important;
  }
}
/* Four matching paper stamps; only homes and courts have pictorial backgrounds. */
.top > .nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}
.top > .nav .tablinks button[data-tab],
.top > .nav button.nav-service,
.top > .nav .tablinks button[data-tab].sel,
.top > .nav .tablinks button[data-tab]:not(.sel):hover {
  height: 118px;
  min-height: 118px !important;
  padding: 17px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent image-set(url('/assets/stamp-paper-252.bc207f6641b48aca.webp') 1x, url('/assets/stamp-paper-504.5301951bb82fca01.webp') 2x) center/100% 100% no-repeat !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
}
.top > .nav .tablinks button[data-tab]::before,
.top > .nav button.nav-service::before {
  display: none !important;
}
.top > .nav .tablinks button[data-tab]::after,
.top > .nav button.nav-service::after {
  display: none !important;
  transform: none;
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
}
.top > .nav .tablinks button[data-tab='homes']::after,
.top > .nav .tablinks button[data-tab='courts']::after {
  content: '';
  display: block !important;
  position: absolute;
  inset: 17% 9% 17%;
  z-index: 0;
  opacity: 0.34;
  pointer-events: none;
  background: url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') right center/cover no-repeat;
  mix-blend-mode: multiply;
}
.top > .nav .tablinks button[data-tab='courts']::after {
  background-image: url('/assets/narva-five-480.31cfc1412c8c00c7.webp');
  background-position: center 32%;
  opacity: 0.4;
}
.top > .nav .nav-label,
.top > .nav .tablinks button[data-tab].sel .nav-label {
  display: block !important;
  width: 100%;
  padding: 3px 0;
  background: transparent !important;
  color: #0e3554 !important;
  font:
    900 17px/1.25 Manrope,
    'Arial Rounded MT Bold',
    'Segoe UI',
    sans-serif !important;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px #f0faff,
    0 0 5px #f0faff;
  letter-spacing: 0.005em;
}
.top > .nav .tablinks button[data-tab].sel {
  filter: drop-shadow(0 2px 2px #1a669b80);
}
.top > .nav .tablinks button[data-tab].sel .nav-label {
  text-decoration: underline;
  text-decoration-color: #4385ad;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.top > .nav .tablinks button[data-tab]:hover,
.top > .nav button.nav-service:hover {
  filter: brightness(0.97);
}
.top > .nav button[data-tab]:focus-visible {
  outline: 3px solid #4385ad;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .top > .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .top > .nav .tablinks button[data-tab],
  .top > .nav button.nav-service {
    height: 100px;
    min-height: 100px !important;
    padding: 14px 12px !important;
  }
  .top > .nav .nav-label {
    font-size: 14px !important;
  }
  .top > .nav .tablinks button[data-tab].sel .nav-label {
    font-size: 14px !important;
  }
}
.top > .nav .tablinks button[data-tab='courts']::after {
  background-size: 170% auto;
  background-position: 60% 5%;
}
/* Equal-size logo and navigation stamps, with calmer readable typography. */
.top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  min-height: 138px;
}
.top > .nav,
.top .tablinks {
  display: contents;
}
.top > .brand {
  display: flex;
  width: 100%;
  height: 118px;
  min-width: 0;
  justify-content: center;
  align-items: center;
}
.top > .brand img {
  display: block;
  width: 100%;
  height: 118px;
  max-width: 100%;
  object-fit: fill;
  aspect-ratio: auto;
}
.top > .nav .nav-label,
.top > .nav .tablinks button[data-tab].sel .nav-label {
  font:
    700 17px/1.3 'Segoe UI',
    Arial,
    sans-serif !important;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 0 1px 0 #f5fbff;
  text-decoration: none !important;
  color: #123753 !important;
}
.top > .nav .tablinks button[data-tab].sel .nav-label {
  font-weight: 800 !important;
}
@media (max-width: 1050px) {
  .top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .top > .nav {
    display: contents;
  }
  .top > .brand {
    width: 100%;
    height: 118px;
  }
  .top > .brand img {
    width: 100%;
    height: 118px;
  }
}
@media (max-width: 650px) {
  .top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
  }
  .top > .brand {
    grid-column: 1/-1;
    justify-self: center;
    width: calc(50% - 3px);
    height: 100px;
  }
  .top > .brand img {
    width: 100%;
    height: 100px;
    object-fit: fill;
  }
  .top > .nav .nav-label,
  .top > .nav .tablinks button[data-tab].sel .nav-label {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
}
/* Final picture mapping: property view, judicial shield, contact swallow. */
.top > .nav .tablinks button[data-tab='homes']::after {
  background-image: url('/assets/narva-five-480.31cfc1412c8c00c7.webp');
  background-size: 170% auto;
  background-position: 60% 5%;
  opacity: 0.4;
}
.top > .nav .tablinks button[data-tab='courts']::after {
  inset: 12% 10%;
  background: url('/assets/lions-shield-1024.308ab5817a1a3f9e.webp') center/contain no-repeat;
  opacity: 0.32;
}
.top > .nav .tablinks button[data-tab='links']::after {
  display: none !important;
  background: none !important;
}
.top > .nav button.nav-service[data-tab='services']::after {
  content: '';
  display: block !important;
  position: absolute;
  inset: 17% 9%;
  z-index: 0;
  opacity: 0.34;
  pointer-events: none;
  background: url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') right center/cover no-repeat;
  mix-blend-mode: multiply;
  transform: none;
  left: 9%;
  bottom: 17%;
  width: auto;
  height: auto;
}
/* Strong readable labels on a quiet translucent paper strip. */
.top > .nav .nav-label,
.top > .nav .tablinks button[data-tab].sel .nav-label {
  font:
    800 18px/1.25 'Segoe UI',
    Arial,
    sans-serif !important;
  color: #071e33 !important;
  background: rgba(244, 250, 255, 0.94) !important;
  padding: 6px 4px;
  border-radius: 3px;
  text-shadow: none !important;
  letter-spacing: 0.005em;
  text-decoration: none !important;
  box-shadow: 0 1px 4px #244a6210;
}
.top > .nav .tablinks button[data-tab].sel .nav-label {
  background: #e5f2fc !important;
  box-shadow: 0 0 0 1px #7faac6;
}
@media (max-width: 650px) {
  .top > .nav .nav-label,
  .top > .nav .tablinks button[data-tab].sel .nav-label {
    font-size: 16px !important;
    line-height: 1.25 !important;
    padding: 6px 3px;
  }
}
/* Uniform paper stamps over a shared swallow backdrop. */
.top {
  position: sticky;
  isolation: isolate;
  background: var(--paper);
  overflow: visible;
}
.top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.94), rgba(246, 248, 251, 0.64)),
    url('/assets/swallow-2172.1bb7fc9b99061ee2.webp') right 47% / cover no-repeat;
  opacity: 0.7;
}
.top > .nav .tablinks button[data-tab]::after,
.top > .nav button.nav-service[data-tab='services']::after {
  display: none !important;
  background: none !important;
}
.top > .nav .nav-label,
.top > .nav .tablinks button[data-tab].sel .nav-label {
  background: transparent !important;
  box-shadow: none !important;
  color: #071e33 !important;
  text-shadow: none !important;
}
#homes .heading::before {
  display: none !important;
  content: none !important;
}
#homes .heading > div:empty {
  display: none;
}
#homes .heading {
  justify-content: flex-end;
  min-height: 0;
}
@media (max-width: 650px) {
  .top {
    position: relative;
  }
  .top::before {
    background-position: 72% center;
  }
}
/* Use the footer cornflower artwork behind the uniform navigation stamps. */
.top::before {
  background-image:
    linear-gradient(90deg, rgba(246, 248, 251, 0.94), rgba(246, 248, 251, 0.64)),
    url('/assets/cornflower-2172.b70243f3ace883e4.webp');
  background-position:
    center,
    right center;
  background-size: cover, cover;
  background-repeat: no-repeat;
  opacity: 0.7;
}
@media (max-width: 650px) {
  .top::before {
    background-position:
      center,
      75% center;
  }
}
.search-result-count {
  grid-column: 1/-1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #dce7ef;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: #163c59;
}
.compact-search {
  row-gap: 12px;
}
/* Hover and selection keep the same complete paper stamp on all four buttons. */
header.top > .nav button[data-tab],
header.top > .nav button[data-tab]:hover,
header.top > .nav button[data-tab]:focus,
header.top > .nav button[data-tab].sel,
header.top > .nav .tablinks button[data-tab]:not(.sel):hover {
  background: transparent image-set(url('/assets/stamp-paper-252.bc207f6641b48aca.webp') 1x, url('/assets/stamp-paper-504.5301951bb82fca01.webp') 2x) center/100% 100% no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
header.top > .nav button[data-tab]:hover {
  filter: brightness(0.97);
}
header.top > .nav button[data-tab].sel {
  filter: drop-shadow(0 2px 2px #1a669b80);
}
.heading::before {
  display: none !important;
  content: none !important;
}
header.top > .nav button.nav-service[data-tab]:not(.sel):hover,
header.top > .nav .tablinks button[data-tab]:not(.sel):hover {
  background: transparent image-set(url('/assets/stamp-paper-252.bc207f6641b48aca.webp') 1x, url('/assets/stamp-paper-504.5301951bb82fca01.webp') 2x) center/100% 100% no-repeat !important;
}

/* Full-width cornflower header, aligned navigation, no ornamental top stripe. */
body::before {
  display: none !important;
  content: none !important;
}
.top {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding-left: max(20px, calc((100% - 1164px) / 2)) !important;
  padding-right: max(20px, calc((100% - 1164px) / 2)) !important;
  border-top: 0 !important;
}
.top::before {
  inset: 0 !important;
}
.admin-list-photo {
  width: 100px;
  flex: 0 0 100px;
  text-align: center;
}
.admin-list-photo img,
.admin-no-photo {
  display: block;
  width: 100px;
  height: 76px;
  object-fit: cover;
  border-radius: 7px;
  background: #eaf1f6;
}
.admin-no-photo {
  padding-top: 26px;
  font-size: 12px;
}
.admin-list-photo small {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  color: #31566f;
}
.admin-list-info {
  flex: 1;
  min-width: 0;
}
.listing-admin {
  gap: 16px;
}
.admin-bulk {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
}
.admin-bulk input {
  max-width: 100%;
}
@media (max-width: 640px) {
  .top {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .listing-admin {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-list-photo {
    width: 78px;
    flex-basis: 78px;
  }
  .admin-list-photo img,
  .admin-no-photo {
    width: 78px;
    height: 64px;
  }
  .admin-list-info {
    flex-basis: calc(100% - 100px);
  }
  .listing-admin-actions {
    flex-basis: 100%;
  }
}

/* A real envelope face: the company stamp sits at the upper right. */
footer .foot.postal-envelope {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px 26px;
  width: 70%;
  max-width: 810px;
  min-height: 320px;
  padding: 30px 32px 48px;
  border: 1px solid #c8d2d9;
  border-radius: 3px;
  background: linear-gradient(115deg, #fbfbf5, #e9f0ee);
  box-shadow:
    0 8px 25px #08243c30,
    0 0 0 5px #f6f8f15c;
  color: #21445e;
  overflow: hidden;
}
footer .postal-envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(31deg, transparent 49.6%, #b9c9d078 50%, transparent 50.5%) left bottom/50% 45%
      no-repeat,
    linear-gradient(-31deg, transparent 49.6%, #b9c9d078 50%, transparent 50.5%) right bottom/50%
      45% no-repeat,
    linear-gradient(147deg, transparent 49.7%, #c8d4d84d 50%, transparent 50.3%) left top/50% 56%
      no-repeat,
    linear-gradient(-147deg, transparent 49.7%, #c8d4d84d 50%, transparent 50.3%) right top/50% 56%
      no-repeat;
}
footer .postal-envelope > div:first-child {
  grid-row: auto;
}
footer .postal-envelope .envelope-stamp {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  display: block;
  width: 220px;
  max-width: 100%;
  padding: 0;
  background: none;
  transform: rotate(2deg);
}
footer .postal-envelope .envelope-stamp img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #24526d22);
}
footer .postal-envelope .envelope-address {
  grid-column: 1;
  grid-row: 1/3;
  align-self: center;
  min-width: 0;
}
footer .postal-envelope .envelope-social {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
footer .postal-envelope h3 {
  color: #163e5c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
footer .postal-envelope p,
footer .postal-envelope a {
  color: #21445e;
  font-size: 14px;
  line-height: 1.9;
}
footer .postal-envelope p {
  margin: 0;
}
footer .postal-envelope .envelope-hours {
  font-size: 12px;
  color: #526d7c;
  margin-bottom: 16px;
}
footer .postal-envelope a:hover {
  color: #0b659c;
  text-decoration: underline;
}
footer .postal-envelope a:focus-visible {
  outline: 2px solid #14578d;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  footer .foot.postal-envelope {
    grid-template-columns: minmax(0, 1fr) 180px;
    padding: 26px;
    width: 78%;
    gap: 18px;
  }
  .postal-envelope .envelope-stamp {
    width: 180px !important;
  }
}
@media (max-width: 650px) {
  footer .foot.postal-envelope {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 24px 50px;
    min-height: 0;
  }
  footer .postal-envelope .envelope-stamp {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: 180px !important;
  }
  footer .postal-envelope .envelope-address {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  footer .postal-envelope .envelope-social {
    grid-column: 1;
    grid-row: 3;
  }
  footer .postal-envelope::before {
    background-size:
      50% 24%,
      50% 24%,
      50% 30%,
      50% 30%;
  }
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}
.homes-pagination-top {
  padding: 0 0 20px;
}
.homes-pagination:empty {
  display: none;
}
/* Preserve the full frame, including portrait property photos. */
.photo img,
.listing-gallery-thumbs img,
.admin-list-photo img,
.admin-photo-card img,
.pending-photo-grid img {
  object-fit: contain;
  object-position: center;
  background: #eaf0f4;
}
.listing-detail-photo {
  background: #eaf0f4;
}
.listing-detail-photo img {
  width: 100%;
  height: clamp(360px, 72svh, 820px);
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 650px) {
  .listing-detail-photo img {
    height: 65svh;
    min-height: 280px;
    max-height: 640px;
  }
}
/* Clean, lightly aged stationery with real paper fibers and folded flap. */
footer .foot.postal-envelope {
  background: #f4ead5 url('/assets/envelope-1400.8c250374a7bbc236.webp') center/100% 100% no-repeat;
  border-color: #cbbb9e;
  border-radius: 2px;
  box-shadow:
    0 10px 26px #122d4833,
    0 1px 2px #513c2240;
}
footer .postal-envelope::before {
  display: none;
  background: none;
}
footer .postal-envelope h3 {
  color: #173e57;
}
footer .postal-envelope p,
footer .postal-envelope a {
  color: #23445b;
  text-shadow: 0 1px 1px #fff8;
}

/* C6 front face: 162 × 114 mm, blue handwritten contact details. */
footer .foot.postal-envelope {
  width: 68%;
  max-width: 720px;
  aspect-ratio: 162/114;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 180px;
  grid-template-rows: auto auto auto;
  align-content: space-between;
  gap: 18px 30px;
  padding: 34px 36px;
  background: #f3ead6 url('/assets/envelope-1400.8c250374a7bbc236.webp') center/100% 100% no-repeat;
  border-radius: 3px;
}
footer .postal-envelope .envelope-stamp {
  grid-column: 2;
  grid-row: 1;
  width: 180px !important;
  transform: rotate(1deg);
}
footer .postal-envelope .envelope-address {
  grid-column: 1;
  grid-row: 1/3;
  align-self: center;
}
footer .postal-envelope .envelope-social {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
footer .postal-envelope h3,
footer .postal-envelope p,
footer .postal-envelope a,
footer .postal-envelope .envelope-origin {
  font-family: 'Caveat', 'Segoe Print', cursive;
  font-weight: 600;
  color: #1b4167;
  text-shadow: none;
  letter-spacing: 0;
}
footer .postal-envelope h3 {
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 8px;
}
footer .postal-envelope p,
footer .postal-envelope a {
  font-size: 23px;
  line-height: 1.3;
}
footer .postal-envelope .envelope-hours {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #34546e;
}
footer .postal-envelope .envelope-legal {
  grid-column: 1/-1;
  grid-row: 3;
  align-self: end;
  min-width: 0;
}
footer .postal-envelope .envelope-legal p,
footer .postal-envelope .envelope-legal a {
  font-size: 20px;
  line-height: 1.25;
}
footer .postal-envelope .envelope-origin {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  footer .foot.postal-envelope {
    width: 78%;
    padding: 26px;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 14px 20px;
  }
  footer .postal-envelope .envelope-stamp {
    width: 150px !important;
  }
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 21px;
  }
}
@media (max-width: 650px) {
  footer .foot.postal-envelope {
    width: 100%;
    aspect-ratio: 162/114;
    padding: 14px;
    gap: 6px 12px;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: auto auto auto;
  }
  footer .postal-envelope .envelope-stamp {
    grid-column: 2;
    grid-row: 1;
    width: 96px !important;
    justify-self: end;
  }
  footer .postal-envelope .envelope-address {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
  }
  footer .postal-envelope .envelope-social {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
  footer .postal-envelope .envelope-social h3 {
    display: none;
  }
  footer .postal-envelope h3 {
    font-size: 18px;
    line-height: 1.1;
    margin-bottom: 5px;
  }
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  footer .postal-envelope .envelope-hours {
    font-size: 15px;
    margin-bottom: 8px;
  }
  footer .postal-envelope .envelope-legal {
    grid-column: 1/-1;
    grid-row: 3;
  }
  footer .postal-envelope .envelope-legal p,
  footer .postal-envelope .envelope-legal a {
    font-size: 15px;
    line-height: 1.1;
  }
  footer .postal-envelope .envelope-origin {
    font-size: 14px;
    margin-bottom: 4px;
  }
}
@media (max-width: 380px) {
  footer .foot.postal-envelope {
    padding: 12px;
    gap: 6px 9px;
    grid-template-columns: minmax(0, 1fr) 86px;
  }
  footer .postal-envelope .envelope-stamp {
    width: 86px !important;
  }
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 16px;
  }
  footer .postal-envelope h3 {
    font-size: 17px;
  }
  footer .postal-envelope .envelope-legal p,
  footer .postal-envelope .envelope-legal a {
    font-size: 13px;
  }
}

/* Match the masthead to the blue and cream footer artwork. */
.top::before {
  background-image:
    linear-gradient(90deg, rgba(238, 243, 247, 0.7), rgba(238, 243, 247, 0.26)),
    url('/assets/cornflower-2172.b70243f3ace883e4.webp');
  opacity: 1;
}

/* Blue-and-cream palette, with calm reading surfaces. */
:root {
  --ink: #1c364b;
  --muted: #567085;
  --paper: #edf4f8;
  --green: #105689;
  --line: #cbdde8;
}
body {
  background: linear-gradient(135deg, #e9f2f8 0%, #f8f5ec 65%, #edf4f8 100%);
  background-attachment: fixed;
}
.card,
.resource-card,
.service {
  border-color: #cbdde8;
  box-shadow: 0 3px 12px #173d5b08;
}
.search {
  background: #fffdf8;
  border-color: #cbdde8;
}
h2,
h3,
.resource-card strong {
  color: #164f78;
}
footer .postal-envelope h3 {
  font-size: 28px;
}
footer .postal-envelope p,
footer .postal-envelope a {
  font-size: 27px;
  line-height: 1.35;
}
footer .postal-envelope .envelope-hours {
  font-size: 23px;
}
footer .postal-envelope .envelope-legal p,
footer .postal-envelope .envelope-legal a {
  font-size: 23px;
}
footer .postal-envelope a[href^='tel:'] {
  display: inline-block;
  padding: 3px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.language-controls {
  position: absolute;
  right: 12px;
  bottom: 1px;
  display: flex;
  gap: 2px;
  z-index: 2;
}
.language-controls button {
  border: 0;
  background: #f5f5ecdd;
  color: #163f60;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
}
.language-controls button[aria-pressed='true'] {
  background: #174f78;
  color: white;
}
@media (max-width: 900px) {
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 23px;
  }
}
@media (max-width: 650px) {
  footer .postal-envelope h3 {
    font-size: 21px;
  }
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 20px;
    line-height: 1.18;
  }
  footer .postal-envelope .envelope-hours {
    font-size: 17px;
  }
  footer .postal-envelope .envelope-legal p,
  footer .postal-envelope .envelope-legal a {
    font-size: 17px;
  }
  .language-controls {
    right: 4px;
    bottom: 0;
  }
}
@media (max-width: 380px) {
  footer .postal-envelope p,
  footer .postal-envelope a {
    font-size: 18px;
  }
  footer .postal-envelope .envelope-legal p,
  footer .postal-envelope .envelope-legal a {
    font-size: 15px;
  }
}
/* Address, price and facts share a balanced information block. */
#homesGrid .cardbody {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(112px, 0.9fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  row-gap: 7px;
  padding: 18px;
}
#homesGrid .address {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font:
    700 18px/1.35 Manrope,
    'Segoe UI',
    sans-serif;
  color: #183e5a;
  overflow-wrap: anywhere;
}
#homesGrid .card-price {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  gap: 2px;
}
#homesGrid .card-price strong {
  font:
    700 18px/1.4 Manrope,
    'Segoe UI',
    sans-serif;
  color: #183e5a;
}
#homesGrid .card-label {
  font-size: 11px;
  font-weight: 500;
  color: #60798b;
}
#homesGrid .unit {
  grid-column: 1;
  grid-row: 3;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  color: #60798b;
}
#homesGrid .stats {
  grid-column: 2;
  grid-row: 1/4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 0;
  border-left: 1px solid #d9e4eb;
  padding: 0 0 0 14px;
  margin: 0;
  align-self: stretch;
  justify-content: center;
}
#homesGrid .stats > span {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}
#homesGrid .stats small {
  font-size: 11px;
  line-height: 1.25;
  color: #60798b;
}
#homesGrid .stats b {
  font:
    700 16px/1.35 Manrope,
    'Segoe UI',
    sans-serif;
  color: #183e5a;
}
@media (max-width: 380px) {
  #homesGrid .cardbody {
    column-gap: 12px;
    padding: 15px;
  }
  #homesGrid .address {
    font-size: 17px;
  }
}
.taxi-grid .resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.taxi-grid a {
  font-size: 20px;
  font-weight: 700;
  color: #14578d;
  text-decoration: underline;
  padding: 6px 0;
}
@media (max-width: 650px) {
  footer .foot.postal-envelope {
    aspect-ratio: auto;
    min-height: 310px;
    grid-template-rows: auto auto auto;
    padding: 20px 16px 24px;
    overflow: visible;
  }
  footer .postal-envelope .envelope-legal {
    padding-top: 15px;
  }
  footer .postal-envelope .envelope-legal p {
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  footer .postal-envelope .envelope-origin {
    flex-wrap: wrap;
    line-height: 1.3;
  }
}
/* Fine paper fibers shared by all blue postage stamps. */
header.top > .brand,
footer .postal-envelope .envelope-stamp {
  position: relative;
}
header.top > .brand::after,
header.top > .nav button[data-tab]::before,
footer .postal-envelope .envelope-stamp::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 9% 7% !important;
  width: auto !important;
  height: auto !important;
  background: url('/assets/envelope-1400.8c250374a7bbc236.webp') center/cover !important;
  opacity: 0.24 !important;
  mix-blend-mode: multiply;
  pointer-events: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  z-index: 3;
}
header.top > .nav .nav-label {
  position: relative;
  z-index: 4;
}

/* Quiet stationery texture across the page, beneath readable white cards. */
body {
  background-image:
    linear-gradient(
      125deg,
      rgba(230, 240, 247, 0.82),
      rgba(250, 247, 237, 0.87) 65%,
      rgba(233, 243, 249, 0.85)
    ),
    url('/assets/envelope-1400.8c250374a7bbc236.webp');
  background-size: cover, cover;
  background-position: center;
  background-attachment: fixed;
}

/* Thick stationery: a quiet layered paper edge, not a dark divider. */
header.top {
  border-bottom: 1px solid #c0cdd5;
  box-shadow:
    0 2px 0 #fcfaf2,
    0 4px 0 #c9d3d9,
    0 10px 18px #16364c24;
}
footer {
  border-top: 1px solid #faf6e9;
  box-shadow:
    0 -2px 0 #d4dce0,
    0 -4px 0 #fbf8ed,
    0 -11px 22px #17354b24;
}
/* The current section is a raised, distinctly blue postage stamp. */
header.top > .nav button[data-tab].sel {
  transform: translateY(-5px) !important;
  filter: drop-shadow(0 7px 3px #164e7880) saturate(1.3) !important;
}
header.top > .nav button[data-tab].sel .nav-label {
  color: #06375f !important;
  text-decoration: underline !important;
  text-decoration-color: #287bab !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px;
}
header.top > .nav button[data-tab]:not(.sel) {
  transform: none !important;
}
header.top > .nav button[data-tab] {
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}
@media (prefers-reduced-motion: reduce) {
  header.top > .nav button[data-tab] {
    transition: none;
  }
}
.listing-search-return {
  background: #14578d;
  color: #fff;
  border: 1px solid #0e4b77;
  border-radius: 7px;
  padding: 10px 17px;
  font:
    700 15px/1.3 'Segoe UI',
    sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 7px #16466430;
}
.listing-search-return:hover {
  background: #0b426c;
}
.listing-search-return:focus-visible {
  outline: 3px solid #60b5dd;
  outline-offset: 3px;
}
.listing-breadcrumb {
  color: #23475f;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
/* Album paper surrounds, never overlays, the original photographs. */
#homesGrid .card {
  background: #f8f5eb url('/assets/envelope-1400.8c250374a7bbc236.webp') center/cover;
  border: 1px solid #cbd6db;
  padding: 9px;
  box-shadow: 0 3px 8px #18394f16;
}
#homesGrid .photo {
  border: 1px solid #c3d1da;
  border-radius: 3px;
  box-shadow: 0 1px 3px #17394f22;
}
#homesGrid .cardbody {
  background: transparent;
  padding: 12px 8px 8px;
  grid-template-rows: repeat(3, minmax(43px, auto));
  row-gap: 8px;
}
#homesGrid .card-label {
  display: none;
}
#homesGrid .address,
#homesGrid .card-price,
#homesGrid .unit {
  align-self: end;
}
#homesGrid .stats {
  display: grid;
  grid-template-rows: repeat(3, minmax(43px, auto));
  gap: 8px;
  justify-content: stretch;
}
#homesGrid .stats > span {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}
#homesGrid .unit {
  font-size: 12px;
  padding-bottom: 2px;
}
.listing-dialog-grid {
  background: #f8f5eb url('/assets/envelope-1400.8c250374a7bbc236.webp') center/cover;
  padding: 14px;
  border: 1px solid #d1d7d4;
  border-radius: 8px;
}
.listing-detail-aside,
.listing-description {
  background: rgba(255, 253, 247, 0.88) !important;
}
.listing-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.listing-detail-facts > div span {
  display: block;
  font-size: 12px;
  color: #60798b;
  margin-bottom: 5px;
}
.listing-detail-facts > div strong {
  font-size: 17px;
  line-height: 1.35;
  color: #183e5a;
}
@media (max-width: 650px) {
  .listing-dialog-grid {
    padding: 9px;
  }
  .listing-detail-facts {
    gap: 14px;
  }
}

.taxi-directory {
  margin: 24px 0;
  background: #fffdf7;
  border: 1px solid #cbdde8;
  border-radius: 10px;
  padding: 18px;
}
.taxi-directory summary {
  cursor: pointer;
  font:
    700 18px/1.4 Manrope,
    sans-serif;
  color: #164f78;
}
.taxi-directory[open] summary {
  margin-bottom: 18px;
}
.taxi-directory .resource-card {
  box-shadow: none;
}

#homesGrid .stats {
  grid-template-columns: minmax(0, 1fr) !important;
  width: auto !important;
}
#homesGrid .stats > span {
  grid-column: 1 !important;
  min-width: 0;
}

/* Clean modern paper fibers: no aged envelope edges or stains on cards. */
:root {
  --clean-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.045'/%3E%3C/svg%3E");
}
body {
  background-color: #eef5f9;
  background-image: var(--clean-paper), linear-gradient(135deg, #eef6fb, #f9fbfc);
  background-size:
    180px 180px,
    cover;
  background-repeat: repeat, no-repeat;
}
#homesGrid .card {
  background-color: #f5fafd;
  background-image: var(--clean-paper);
  background-size: 180px 180px;
  border-color: #cbdce7;
  box-shadow: 0 3px 10px #173d5b12;
}
.listing-dialog-grid {
  background-color: #f5fafd;
  background-image: var(--clean-paper);
  background-size: 180px 180px;
  border-color: #d2dfe8;
}
.listing-detail-aside,
.listing-description {
  background: rgba(255, 255, 255, 0.9) !important;
}
header.top > .brand::after,
header.top > .nav button[data-tab]::before,
footer .postal-envelope .envelope-stamp::after {
  background-image: var(--clean-paper) !important;
  background-size: 180px 180px !important;
  opacity: 0.75 !important;
  mix-blend-mode: multiply;
}
/* A clean raised information sheet; description is written on the album page. */
.listing-detail-aside {
  background: #f7fbfd var(--clean-paper) !important;
  background-size: 180px 180px !important;
  border: 1px solid #cbdde7 !important;
  box-shadow:
    0 2px 0 #fff,
    0 7px 18px #1e425a1c !important;
  border-radius: 4px !important;
}
.listing-description {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
/* On narrow screens the essential facts precede the long description. */
@media (max-width: 900px) {
  .listing-dialog-grid {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
  }
  .listing-main-col {
    display: contents;
  }
  .listing-detail-photo {
    order: 1;
  }
  .listing-gallery-thumbs {
    order: 2;
  }
  .listing-detail-aside {
    order: 3;
    position: static !important;
    width: 100%;
  }
  .listing-description {
    order: 4;
  }
}
/* One breadcrumb line; the linked section returns to the saved search. */
.listing-breadcrumb,
.listing-search-return {
  font:
    600 17px/1.4 'Segoe UI',
    sans-serif;
  color: #194b70;
}
.listing-search-return {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 3px 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.listing-search-return:hover {
  background: transparent;
  color: #0874a9;
}
.resource-group {
  margin: 18px 0;
  border: 1px solid #cadce8;
  border-radius: 10px;
  background: #f9fcfd var(--clean-paper);
  padding: 20px;
}
.resource-group > summary {
  cursor: pointer;
  font:
    700 20px/1.4 Manrope,
    sans-serif;
  color: #164f78;
}
.resource-group[open] > summary {
  margin-bottom: 20px;
}
.resource-subtitle {
  font-size: 17px;
  margin: 25px 0 14px;
}
.resource-group .taxi-directory {
  margin-bottom: 0;
}
@media (max-width: 650px) {
  .resource-group {
    padding: 16px;
  }
  .resource-group > summary {
    font-size: 18px;
  }
  .listing-breadcrumb,
  .listing-search-return {
    font-size: 16px;
  }
}
/* Two clear dataset choices, with the existing judicial painting behind them. */
.court-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}
.court-sidebar,
#courtExpandAll {
  display: none !important;
}
.court-hub .court-entry {
  background: #f4f9fc var(--clean-paper) !important;
  border: 2px solid #c7dbe8 !important;
  box-shadow: 0 3px 9px #071d2c25;
  transform: none;
}
.court-hub .court-entry.active {
  background: #155783 var(--clean-paper) !important;
  border-color: #d5efff !important;
  box-shadow:
    0 0 0 3px #64b2da88,
    0 7px 16px #041a2c40;
  transform: translateY(-2px);
  color: #fff;
}
.court-hub .court-entry.active strong,
.court-hub .court-entry.active small {
  color: #fff !important;
}
.court-hub .court-entry.active .court-entry-icon {
  background: #f4f9fc;
  color: #155783;
}
.court-view {
  background: #f8fbfd var(--clean-paper) !important;
}
/* Clearly visible clean card stock: magnified neutral paper fibres, no aged edges. */
#homesGrid .card,
.listing-dialog-grid,
.listing-detail-aside {
  position: relative;
  isolation: isolate;
  background-color: #eef6fb !important;
  background-image: none !important;
}
#homesGrid .card::before,
.listing-dialog-grid::before,
.listing-detail-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url('/assets/envelope-1400.8c250374a7bbc236.webp') center/210% 210% no-repeat;
  filter: grayscale(1) contrast(1.4) brightness(1.08);
  opacity: 0.48;
  mix-blend-mode: multiply;
}
.homes-pagination {
  gap: 14px;
  align-items: center;
}
.homes-pagination button.outline {
  min-width: 140px;
  min-height: 62px;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  background: transparent image-set(url('/assets/stamp-paper-252.bc207f6641b48aca.webp') 1x, url('/assets/stamp-paper-504.5301951bb82fca01.webp') 2x) center/100% 100% no-repeat;
  color: #123e5d;
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}
.homes-pagination button.outline:not(:disabled):hover {
  filter: brightness(0.96) drop-shadow(0 3px 2px #17476c35);
}
.homes-pagination > span {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: #163c59;
}
@media (max-width: 650px) {
  .homes-pagination {
    gap: 7px;
    flex-wrap: wrap;
  }
  .homes-pagination button.outline {
    min-width: 103px;
    min-height: 54px;
    padding: 11px 14px;
    font-size: 14px;
  }
  .homes-pagination > span {
    font-size: 15px;
  }
}

.listing-detail-photo {
  min-height: 0;
  height: auto;
  align-self: start;
  overflow-anchor: none;
}
.listing-detail-photo img {
  min-height: 0 !important;
  width: 100%;
  height: auto !important;
  max-height: min(780px, 76svh) !important;
  object-fit: contain;
}

/* One document scroll surface keeps pull-to-refresh and the header in sync. */
body.listing-open main {
  display: none;
}
#listingModal {
  position: relative;
  inset: auto !important;
  overflow: visible;
  padding: 0;
  background: #eef5f9;
  min-height: 60svh;
}
.listing-detail-photo {
  scroll-margin-top: 20px;
  width: 100%;
}
.listing-detail-photo img {
  height: auto !important;
  max-height: min(780px, 76svh) !important;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.listing-gallery-thumbs {
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
  body.listing-open header.top {
    position: relative;
    top: auto;
  }
  body.listing-open .listing-detail-photo {
    scroll-margin-top: 12px;
  }
  .listing-detail-photo img {
    max-height: none !important;
  }
  #homesGrid .card::before,
  .listing-dialog-grid::before,
  .listing-detail-aside::before {
    background-image: var(--clean-paper);
    background-size: 110px 110px;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
  }
}
.seo-service-content {
  padding-top: 40px;
  padding-bottom: 48px;
}
.seo-service-content h1 {
  font:
    700 clamp(27px, 4vw, 43px)/1.25 Manrope,
    'Segoe UI',
    sans-serif;
  color: #164f78;
  max-width: 950px;
  margin: 12px 0 18px;
}
.seo-service-content h2 {
  font-size: 26px;
  margin: 38px 0 18px;
}
.seo-service-content h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.seo-service-content p,
.seo-steps {
  font-size: 17px;
  line-height: 1.7;
}
.seo-service-content .services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.seo-intro {
  max-width: 850px;
}
.seo-eyebrow {
  letter-spacing: 0.09em;
  color: #47677d;
  font-size: 13px !important;
}
.seo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.seo-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
}
.seo-steps {
  padding-left: 24px;
  max-width: 900px;
}
.seo-steps li {
  padding: 5px 0 5px 8px;
}
.seo-faq details {
  padding: 18px 20px;
  border: 1px solid #c9dce8;
  border-radius: 7px;
  margin: 12px 0;
  background: #f7fbfd var(--clean-paper);
}
.seo-faq summary {
  font-weight: 700;
  cursor: pointer;
  line-height: 1.5;
}
.seo-faq p {
  margin-bottom: 0;
}
.seo-contacts {
  padding: 0 22px 14px;
  border: 1px solid #c9dce8;
  background: #eef6fb var(--clean-paper);
  border-radius: 8px;
  margin: 30px 0;
}
.seo-contacts a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.seo-language-links,
.catalog-about nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.seo-language-links a,
.catalog-about a {
  color: #164f78;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.seo-language-links a[aria-current] {
  font-weight: 800;
}
.catalog-about {
  padding: 28px 0 12px;
}
.catalog-about h1 {
  font-size: 24px;
  color: #164f78;
}
.catalog-about p {
  max-width: 780px;
  line-height: 1.6;
}
.seo-page .seo-nav-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent image-set(url('/assets/stamp-paper-252.bc207f6641b48aca.webp') 1x, url('/assets/stamp-paper-504.5301951bb82fca01.webp') 2x) center/100% 100% no-repeat;
  min-height: 100px;
  width: 155px;
  padding: 16px;
  font:
    800 14px/1.25 Manrope,
    sans-serif;
  color: #123e5d;
  position: relative;
}
.seo-page .seo-nav-stamp.sel {
  filter: drop-shadow(0 5px 3px #164e7855);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 650px) {
  .seo-service-content {
    padding: 26px 16px 34px;
  }
  .seo-service-content .services {
    grid-template-columns: 1fr;
  }
  .seo-service-content h2 {
    font-size: 23px;
  }
  .seo-page .seo-nav-stamp {
    width: 165px;
    min-height: 100px;
  }
  .seo-service-content p,
  .seo-steps {
    font-size: 16px;
  }
}

/* Transaction type and address have the same visual weight. */
.listing-location {
  color: #526d80;
  font: 400 13px/1.5 Manrope, sans-serif;
}
.listing-detail-aside > .listing-location {
  margin: -4px 0 14px;
}
#homesGrid .address .listing-location {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.listing-deal {
  font:
    700 27px/1.2 Manrope,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 10px;
  max-width: 100%;
}
@media (max-width: 700px) {
  .listing-deal {
    font-size: 23px;
    margin-left: -10px;
  }
}

.mobile-call {
  display: none;
}
@media (max-width: 700px) {
  body {
    padding-bottom: 76px;
  }
  .mobile-call {
    position: fixed;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid #d3ebf7;
    border-radius: 8px;
    background: #14578d;
    color: #fff;
    font:
      700 17px/1.2 Manrope,
      sans-serif;
    box-shadow: 0 3px 12px #123b5b50;
  }
}

/* Keep only the catalog return above an open mobile listing. */
@media (max-width: 900px) {
  body.listing-open header.top {
    display: none !important;
  }
}

/* Native Safari buttons and failed decorative images retain a visible control. */
header.top > .nav button[data-tab],
.seo-page .seo-nav-stamp,
.homes-pagination button.outline {
  -webkit-appearance: none;
  appearance: none;
  background-color: #e6f2fa !important;
  border: 1px solid #80abc7 !important;
  border-radius: 3px !important;
  box-shadow:
    0 2px 0 #b3cbdc,
    0 3px 6px #173f5a26 !important;
  -webkit-background-size: 100% 100%;
  background-size: 100% 100%;
  color: #123e5d;
  -webkit-text-fill-color: currentColor;
}
header.top > .nav button[data-tab].sel,
.seo-page .seo-nav-stamp.sel {
  border: 2px solid #2375a5 !important;
  box-shadow: 0 4px 7px #164e7840 !important;
}
@supports (-webkit-touch-callout: none) {
  header.top > .nav button[data-tab],
  header.top > .nav button[data-tab].sel,
  .homes-pagination button.outline {
    filter: none !important;
    -webkit-filter: none !important;
  }
}

/* Identical specificity for all four stamps, including the separate services item. */
header.top > .nav .tablinks button[data-tab]:not(.sel),
header.top > .nav button.nav-service[data-tab]:not(.sel) {
  background-color: #e6f2fa !important;
  border: 1px solid #80abc7 !important;
  border-radius: 3px !important;
  box-shadow:
    0 2px 0 #b3cbdc,
    0 3px 6px #173f5a26 !important;
}
header.top > .nav .tablinks button[data-tab].sel,
header.top > .nav button.nav-service[data-tab].sel {
  border: 2px solid #2375a5 !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 7px #164e7840 !important;
}

.privacy-links {
  font:
    500 14px/1.6 Manrope,
    sans-serif !important;
  margin-top: 12px !important;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.privacy-links a,
.privacy-links button {
  font: inherit !important;
  color: #164f78 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-links button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.privacy-banner {
  position: fixed;
  z-index: 2200;
  right: 18px;
  bottom: 18px;
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 22px;
  background: #f5fafd;
  border: 1px solid #80abc7;
  border-radius: 9px;
  box-shadow: 0 8px 30px #153b5b40;
  color: #183e5a;
  font:
    400 15px/1.6 Manrope,
    sans-serif;
}
.privacy-banner[hidden] {
  display: none !important;
}
.privacy-banner h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
.privacy-banner p {
  margin: 8px 0 12px;
}
.privacy-banner a {
  color: #14578d;
  text-decoration: underline;
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.privacy-banner button {
  border: 1px solid #14578d;
  border-radius: 5px;
  background: #e7f3fb;
  color: #123e5d;
  min-height: 44px;
  padding: 10px 14px;
  font:
    700 14px/1.4 Manrope,
    sans-serif;
  cursor: pointer;
}
.privacy-actions > button {
  flex: 1;
  min-width: 190px;
}
.privacy-banner button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.privacy-banner details > summary {
  cursor: pointer;
  text-decoration: underline;
}
.privacy-banner label {
  display: block;
  margin: 14px 0;
}
.privacy-banner input {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.privacy-status:empty {
  display: none;
}
.privacy-document {
  max-width: 950px;
}
.privacy-document h1 {
  font-size: clamp(27px, 4vw, 40px);
}
.privacy-document h2 {
  font-size: 22px;
  margin-top: 28px;
}
.privacy-document p {
  font-size: 16px;
  line-height: 1.8;
}
.privacy-document .seo-language-links {
  margin: 25px 0;
}
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: #07151ff5;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
  padding: 0;
}
.photo-viewer > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: manipulation;
}
.photo-viewer-close {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #d5e8f4;
  background: #103d5e;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 8px #0008;
}
.photo-viewer-close svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}
#listingMainPhoto {
  cursor: default;
  touch-action: manipulation;
}
#listingMainPhoto:focus-visible {
  outline: 3px solid #2389ba;
  outline-offset: -3px;
}
.admin-statistics {
  margin: 25px 0;
  padding: 18px;
  border: 1px solid #b9d2e4;
  border-radius: 8px;
}
.admin-statistics > summary {
  font-weight: 800;
  cursor: pointer;
}
.statistics-totals {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.statistics-totals strong {
  font-size: 30px;
  display: block;
}
.statistics-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.admin-statistics table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.admin-statistics th,
.admin-statistics td {
  padding: 8px;
  border-bottom: 1px solid #d4e2eb;
  text-align: left;
  overflow-wrap: anywhere;
}
.admin-statistics h4 {
  margin: 16px 0 8px;
}
@media (max-width: 650px) {
  .privacy-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 17px;
  }
  .privacy-banner h2 {
    font-size: 19px;
  }
  .privacy-actions > button {
    min-width: 100%;
  }
  .statistics-tables {
    grid-template-columns: 1fr;
  }
  .privacy-links {
    font-size: 13px !important;
  }
}

/* Restore the original paper stamps; Services uses exactly the same treatment. */
header.top > .nav .tablinks button[data-tab]:not(.sel),
header.top > .nav button.nav-service[data-tab]:not(.sel),
header.top > .nav .tablinks button[data-tab].sel,
header.top > .nav button.nav-service[data-tab].sel {
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
header.top > .nav .tablinks button[data-tab].sel,
header.top > .nav button.nav-service[data-tab].sel {
  transform: translateY(-5px) !important;
  filter: drop-shadow(0 2px 2px #164e7880) saturate(1.3) !important;
}
@supports (-webkit-touch-callout: none) {
  header.top > .nav .tablinks button[data-tab].sel,
  header.top > .nav button.nav-service[data-tab].sel {
    filter: none !important;
  }
}
/* Language controls sit on the paper below the header and scroll with the page. */
.language-controls {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  width: 100%;
  margin: 14px auto 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  z-index: 1;
}
.language-controls button {
  min-width: 48px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 16px;
  border: 1px solid #85aabd;
  border-radius: 4px;
  background: #edf5f8;
  color: #163f60;
}
body.listing-open .language-controls {
  display: flex;
}
.listing-dialog-top {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.listing-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
}
.listing-dialog-top .language-controls {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0 0 0 auto;
  padding: 0;
  justify-content: flex-end;
  gap: 8px;
}
.listing-dialog-top .language-controls button {
  min-width: 44px;
  min-height: 40px;
  padding: 7px 10px;
}

/* Size the logo and menu stamps from the same proportions at every desktop width. */
@media (min-width: 651px) {
  header.top {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  header.top > .brand {
    grid-column: auto;
    width: 100%;
    max-width: 169.6px;
    height: auto;
    min-width: 0;
    flex: none;
    justify-self: center;
  }
  header.top > .brand img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1696 / 960;
    object-fit: contain;
  }
  header.top > .nav button[data-tab],
  header.top > .nav .seo-nav-stamp {
    width: 100%;
    min-width: 0;
  }
  header.top > .nav .tablinks button[data-tab],
  header.top > .nav .tablinks button[data-tab].sel,
  header.top > .nav .tablinks button[data-tab]:not(.sel),
  header.top > .nav .tablinks button[data-tab]:not(.sel):hover,
  header.top > .nav button.nav-service[data-tab],
  header.top > .nav button.nav-service[data-tab].sel,
  header.top > .nav button.nav-service[data-tab]:not(.sel),
  header.top > .nav .seo-nav-stamp {
    height: auto !important;
    min-height: 0 !important;
    max-width: 169.6px;
    aspect-ratio: 1696 / 960;
    justify-self: center;
    padding: 5px 5px !important;
  }
  header.top > .nav .nav-label,
  header.top > .nav .tablinks button[data-tab].sel .nav-label {
    max-width: 100%;
    font-size: clamp(11px, 1.45vw, 14px) !important;
    line-height: 1.16 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center;
  }
}
@media (max-width: 650px) {
  header.top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
  }
  header.top > .brand {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(calc((100% - 6px) / 2), 169.6px);
    height: auto;
    min-height: 0;
    flex: none;
  }
  header.top > .brand img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1696 / 960;
    object-fit: contain;
  }
  header.top > .nav button[data-tab],
  header.top > .nav .seo-nav-stamp {
    width: 100%;
    min-width: 0;
  }
  header.top > .nav .tablinks button[data-tab],
  header.top > .nav .tablinks button[data-tab].sel,
  header.top > .nav .tablinks button[data-tab]:not(.sel),
  header.top > .nav .tablinks button[data-tab]:not(.sel):hover,
  header.top > .nav button.nav-service[data-tab],
  header.top > .nav button.nav-service[data-tab].sel,
  header.top > .nav button.nav-service[data-tab]:not(.sel),
  header.top > .nav .seo-nav-stamp {
    min-height: 0 !important;
    height: auto !important;
    max-width: 169.6px;
    aspect-ratio: 1696 / 960;
    justify-self: center;
    padding: 5px 5px !important;
  }
  header.top > .nav .nav-label,
  header.top > .nav .tablinks button[data-tab].sel .nav-label {
    max-width: 100%;
    font-size: 14px !important;
    line-height: 1.18 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center;
  }
  .listing-dialog-top {
    align-items: flex-start;
  }
  .listing-dialog-top .language-controls {
    gap: 4px;
  }
  .listing-dialog-top .language-controls button {
    min-width: 40px;
    min-height: 38px;
    padding: 6px 8px;
  }
}
.photo-viewer-prev,
.photo-viewer-next {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 50px;
  height: 62px;
  padding: 0;
  border: 1px solid #d5e8f4;
  border-radius: 8px;
  background: #103d5ed9;
  color: #fff;
  cursor: pointer;
}
.photo-viewer-prev svg,
.photo-viewer-next svg {
  display: block;
  width: 34px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.photo-viewer-prev {
  left: max(16px, env(safe-area-inset-left));
}
.photo-viewer-next {
  right: max(16px, env(safe-area-inset-right));
}
.photo-viewer-prev:hover,
.photo-viewer-next:hover,
.photo-viewer-prev:focus-visible,
.photo-viewer-next:focus-visible {
  background: #176095;
}
.photo-viewer-prev:focus-visible,
.photo-viewer-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.listing-photo-expand {
  position: absolute;
  z-index: 2;
  right: calc(var(--photo-content-right-gap, 0px) + 14px);
  left: auto;
  bottom: calc(var(--photo-content-bottom-gap, 0px) + 14px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d5e8f4;
  border-radius: 8px;
  background: #103d5ed9;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px #0006;
}
.listing-photo-expand svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.listing-photo-expand:hover,
.listing-photo-expand:focus-visible {
  background: #176095;
}
.listing-photo-expand:focus-visible,
.photo-viewer-thumbnail:focus-visible {
  outline: 3px solid #f0a52a;
  outline-offset: 2px;
}
.photo-viewer > img {
  max-width: calc(100vw - 104px);
  max-height: calc(100svh - 112px);
}
.photo-viewer-thumbnails {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  width: min(1000px, calc(100vw - 116px));
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  transform: translateX(-50%);
  border: 1px solid #d5e8f466;
  border-radius: 8px;
  background: #07151fe8;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.photo-viewer-thumbnails::-webkit-scrollbar {
  display: none;
}
.photo-viewer-thumbnail {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #17374b;
  cursor: pointer;
  scroll-snap-align: center;
}
.photo-viewer-thumbnail.selected {
  border-color: #f0a52a;
}
.photo-viewer-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-viewer-close,
.photo-viewer-prev,
.photo-viewer-next {
  border-radius: 8px;
}
@media (max-width: 650px) {
  .listing-photo-expand {
    right: calc(var(--photo-content-right-gap, 0px) + 14px);
    left: auto;
    bottom: calc(var(--photo-content-bottom-gap, 0px) + 10px);
    width: 42px;
    height: 42px;
  }
  .photo-viewer > img {
    max-width: calc(100vw - 64px);
    max-height: calc(100svh - 92px);
  }
  .photo-viewer-prev,
  .photo-viewer-next {
    width: 40px;
    height: 52px;
  }
  .photo-viewer-prev {
    left: max(6px, env(safe-area-inset-left));
  }
  .photo-viewer-next {
    right: max(6px, env(safe-area-inset-right));
  }
  .photo-viewer-thumbnails {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    gap: 6px;
    padding: 6px;
  }
  .photo-viewer-thumbnail {
    flex-basis: 68px;
    width: 68px;
    height: 50px;
  }
}

/* Pagination uses the same transparent paper stamp as the main navigation. */
.homes-pagination button.outline,
.homes-pagination button.outline:hover,
.homes-pagination button.outline:focus {
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* In the narrow desktop layout the envelope grows to fit its stamp and text. */
@media (min-width: 651px) and (max-width: 900px) {
  footer .foot.postal-envelope {
    aspect-ratio: auto;
    align-content: start;
  }
}
.eyebrow-blue {
  color: #287d94;
}
.eyebrow-green {
  color: #60725e;
}
.services-note {
  margin-top: 22px;
}
.login-submit {
  margin-top: 14px;
}
.mfa-qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  background: #fff;
  image-rendering: pixelated;
}
.mfa-qr[hidden] {
  display: none;
}
.login-status:empty {
  display: none;
}
.login-status[data-state='error'] {
  margin-top: 16px;
  padding: 12px 14px;
  border: 2px solid #a12323;
  border-radius: 8px;
  background: #fff1f0;
  color: #7a1616;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.login-status[data-state='error']:focus {
  outline: 2px solid #7a1616;
  outline-offset: 3px;
}
.field-spaced {
  margin-top: 6px;
}
.listing-title-link {
  color: inherit;
  text-decoration: none;
}

/* Four proportional stamps in the property-only publication. */
@media (min-width: 651px) {
  header.top.property-only { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  header.top.property-only > .brand { grid-column: auto; width: 100%; max-width: 169.6px; }
}
