:root {
  --navy: #0B2239;
  --navy-2: #14314F;
  --gold: #B89155;
  --gold-2: #D0B173;
  --ivory: #F7F1E8;
  --sand: #DED0BD;
  --sand-2: #ECE2D6;
  --charcoal: #1E1E1E;
  --muted: #6D675F;
  --line: rgba(11, 34, 57, .14);
  --white: #FFFFFF;
  --success: #2E6654;
  --danger: #9C3F3F;
  --shadow: 0 18px 44px rgba(11, 34, 57, .12);
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(100% - 24px, 1180px); margin: 0 auto; }
.narrow { width: min(100% - 24px, 820px); }
.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { font-size: 2.35rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 16px; }
.eyebrow {
  margin-bottom: 9px;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.large-text { font-size: 1.05rem; }
.prose a,
.text-link {
  width: fit-content;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  font-weight: 800;
}
.text-link:hover { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-2); }
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--navy); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  min-width: 0;
}
.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(96px, 28vw, 134px);
}
.brand img {
  width: 100%;
  height: auto;
}
.nav-toggle {
  order: 4;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--navy);
}
.site-nav {
  order: 5;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav a,
.admin-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
}
.site-nav a { padding: 9px 11px; }
.site-nav a:hover,
.site-nav a.is-active { background: var(--sand-2); }
.language-switch {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.language-switch a {
  min-width: 36px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-align: center;
}
.language-switch a.is-active { background: var(--navy); color: var(--white); }
.admin-link {
  order: 3;
  flex: 0 0 auto;
  max-width: 56px;
  overflow: hidden;
  padding: 7px 9px;
  color: var(--gold);
  font-size: 0;
  white-space: nowrap;
}
.admin-link::before {
  content: attr(data-short);
  font-size: .78rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 610px;
  overflow: hidden;
  background: var(--hero-image) center/cover no-repeat;
  color: var(--white);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 34, 57, .9), rgba(11, 34, 57, .58), rgba(11, 34, 57, .18));
}
.hero-content {
  position: relative;
  padding: 82px 0 112px;
}
.hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: 2.7rem;
}
.hero p {
  max-width: 640px;
  color: rgba(255,255,255,.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section { padding: 58px 0; }
.section-muted { background: var(--sand-2); }
.search-section {
  position: relative;
  z-index: 2;
  margin-top: -58px;
  padding-top: 0;
}
.search-section.tight {
  margin-top: 0;
  padding: 24px 0 0;
}
.section-heading { margin-bottom: 26px; }
.section-heading.compact { max-width: 740px; }
.section-heading.with-action {
  display: grid;
  gap: 12px;
}

.search-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; }
.price-range-field {
  gap: 10px;
}
.price-range-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-range-heading strong {
  color: var(--navy);
  font-size: .92rem;
  white-space: nowrap;
}
.price-histogram {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 3px;
  bottom: 5px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0 8px;
  opacity: .58;
  pointer-events: none;
  z-index: 0;
}
.price-histogram span {
  flex: 1 1 0;
  min-width: 2px;
  max-height: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(190, 145, 75, .82), rgba(190, 145, 75, .14));
}
.price-range-line {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.price-range-control {
  position: relative;
  height: 44px;
  min-width: 0;
}
.price-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 4px;
  border-radius: 999px;
  background: #E4D8C7;
  z-index: 1;
}
.price-range-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--navy);
  z-index: 2;
}
.price-range-control input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  z-index: 3;
}
.price-range-control input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 3px 10px rgba(11, 34, 57, .24);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
}
.price-range-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 3px 10px rgba(11, 34, 57, .24);
  cursor: grab;
  pointer-events: auto;
}
.price-range-control input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
}
.field label,
.admin-form label,
.inquiry-form label {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
}
.field small,
.inquiry-form small,
.admin-form small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
}
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(184, 145, 85, .24);
  border-color: var(--gold);
}

.property-grid {
  display: grid;
  gap: 18px;
}
.property-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(11, 34, 57, .08);
}
.property-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}
.property-media::after,
.gallery-item::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 98px;
  height: 58px;
  background: url("../images/brand/mcsc-watermark.webp") center/contain no-repeat;
  opacity: .55;
  pointer-events: none;
}
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.property-card:hover .property-media img { transform: scale(1.025); }
.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  background: var(--badge-color);
  border-radius: 4px;
  color: var(--white);
  font-size: .74rem;
  font-weight: 900;
}
.property-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.property-content h3 { margin-bottom: 8px; }
.property-content p { color: var(--muted); font-size: .94rem; }
.property-ref {
  width: fit-content;
  margin: -2px 0 0;
  padding: 4px 7px;
  background: rgba(184, 145, 85, .13);
  border: 1px solid rgba(184, 145, 85, .25);
  border-radius: 4px;
  color: var(--navy) !important;
  font-size: .8rem !important;
  font-weight: 900;
}
.price {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.property-facts span {
  padding: 5px 8px;
  background: var(--ivory);
  border-radius: 4px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.service-grid,
.blog-grid,
.testimonial-grid,
.region-grid {
  display: grid;
  gap: 14px;
}
.service-item,
.blog-card,
.testimonial,
.region-tile,
.feature-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.service-item,
.blog-card {
  padding: 22px;
}
.service-item span,
.feature-panel span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}
.service-item p,
.blog-card p { color: var(--muted); }
.region-tile {
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--navy);
}
.region-tile:hover,
.service-item:hover {
  border-color: rgba(184, 145, 85, .56);
  box-shadow: var(--shadow);
}
.region-tile span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.region-tile strong { color: var(--gold); }
.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-cloud a {
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 800;
}

.split-grid {
  display: grid;
  gap: 28px;
}
.feature-panel {
  padding: 24px;
  background: var(--ivory);
}
.feature-panel.navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.feature-panel.navy h2,
.feature-panel.navy p { color: var(--white); }
.about-preview { background: var(--navy); color: var(--white); }
.about-preview h2,
.about-preview p { color: var(--white); }
.about-preview .text-link { color: var(--white); }
.lead-person-section { background: var(--ivory); }
.lead-person-grid {
  display: grid;
  gap: 22px;
}
.lead-portrait {
  align-self: start;
  box-shadow: var(--shadow);
}
.lead-person-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.lead-person-panel h2 {
  margin-bottom: 6px;
}
.person-role {
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 900;
}
.business-card-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.business-card-details a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
}
.business-card-details a:hover {
  border-color: rgba(184, 145, 85, .56);
}
.business-card-details span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.business-card-details strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}
.section.legal-membership-section {
  padding: 24px 0;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal-membership-grid {
  display: grid;
}
.legal-membership-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.legal-membership-logo,
.legal-membership-panel {
  min-width: 0;
}
.legal-membership-logo {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}
.legal-membership-logo img {
  width: min(138px, 48vw);
  height: auto;
  border-radius: 0;
}
.legal-membership-panel {
  display: grid;
  gap: 10px;
  padding: 0;
}
.legal-membership-panel h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 5vw, 1.65rem);
}
.legal-membership-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}
.legal-details-grid {
  display: grid;
  gap: 6px 12px;
  margin: 4px 0 0;
}
.legal-details-grid div {
  display: grid;
  grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line);
}
.legal-details-grid dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.legal-details-grid dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.service-area-strip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}
.service-area-strip > span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.service-area-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-area-strip em {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}
.portrait-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(184, 145, 85, .42);
  background: var(--sand);
  aspect-ratio: 1 / 1;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial {
  margin: 0;
  padding: 22px;
}
.testimonial p { color: var(--charcoal); }
.testimonial footer {
  color: var(--muted);
  font-weight: 800;
}
.cta-band {
  padding: 48px 0;
  background: var(--navy);
  color: var(--white);
}
.cta-inner {
  display: grid;
  gap: 22px;
}
.cta-band h2,
.cta-band p { color: var(--white); }

.page-hero {
  padding: 68px 0;
  background: var(--navy);
  color: var(--white);
}
.page-hero h1,
.page-hero p { color: var(--white); }
.page-hero p { max-width: 780px; }
.results-bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
}
.results-bar strong {
  color: var(--navy);
  font-size: 1.35rem;
}
.empty-state {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-hero {
  padding: 56px 0;
  background: var(--navy);
  color: var(--white);
}
.detail-hero h1 { color: var(--white); }
.detail-price {
  display: block;
  color: var(--gold-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}
.detail-hero-grid {
  display: grid;
  gap: 24px;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-facts span {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: rgba(255,255,255,.78);
}
.detail-facts strong {
  display: block;
  color: var(--white);
  font-size: 1.18rem;
}
.detail-layout {
  display: grid;
  gap: 28px;
}
.detail-main {
  display: grid;
  gap: 38px;
}
.gallery-grid {
  display: grid;
  gap: 10px;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.gallery-open:hover img,
.gallery-open:focus-visible img {
  filter: brightness(.94);
  transform: scale(1.012);
}
.gallery-item figcaption {
  padding: 9px 11px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}
.feature-list {
  display: grid;
  gap: 10px;
}
.feature-list span {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-list strong {
  display: block;
  color: var(--navy);
}
.map-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand-2);
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}
.map-placeholder.small {
  min-height: 170px;
  margin-top: 18px;
}
.native-map {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand-2);
  touch-action: none;
}
.native-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}
.native-map-radius {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(200, 169, 106, .95);
  border-radius: 999px;
  background: rgba(200, 169, 106, .22);
  box-shadow: 0 0 0 1px rgba(11, 34, 57, .16);
  pointer-events: none;
}
.native-map-controls {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 6px;
  pointer-events: auto;
}
.native-map-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 34, 57, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .95);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}
.native-map-controls button:disabled {
  cursor: not-allowed;
  opacity: .46;
}
.native-map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  font-size: .72rem;
}
.native-map-attribution a {
  color: var(--navy);
  font-weight: 800;
}
.map-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.detail-sidebar {
  display: grid;
  gap: 16px;
}
.contact-card,
.inquiry-form,
.contact-details,
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.inquiry-form.wide { box-shadow: none; }
.form-subsection {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.form-subsection h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}
.form-subsection p {
  margin: 0;
  color: var(--muted);
}
.image-manager,
.approval-panel,
.approval-history {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
}
.image-manager h2,
.approval-panel h2,
.approval-history h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.image-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}
.image-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.image-manager-row {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: grab;
}
.image-manager-row:active { cursor: grabbing; }
.image-manager-row.is-dragging {
  opacity: .45;
  outline: 2px solid var(--gold);
}
.image-drag-handle {
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 28px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(11, 34, 57, .72);
  cursor: grab;
}
.image-drag-handle span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 8px 0 var(--gold);
}
.image-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: .82rem;
  font-weight: 900;
}
.image-order-pill::after {
  content: "Hero";
  display: none;
  margin-left: 6px;
  font-size: .68rem;
  text-transform: uppercase;
}
.image-manager-row:first-child .image-order-pill {
  width: auto;
  padding: 0 10px;
  background: var(--gold);
}
.image-manager-row:first-child .image-order-pill::after {
  display: inline;
}
.image-featured-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ivory);
}
.image-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  background: var(--sand);
}
.image-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-card-media::after {
  content: "Edit";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(11, 34, 57, .72);
  color: var(--white);
  font-size: .72rem;
  font-weight: 900;
  opacity: .9;
}
.image-card-tools {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.image-card-tools > * {
  pointer-events: auto;
}
.image-card-controls {
  display: none;
  gap: 9px;
  min-width: 0;
  padding: 12px;
}
.image-card-edit {
  width: calc(100% - 24px);
  margin: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ivory);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}
.image-manager.is-bulk-editing .image-card-controls {
  display: grid;
}
.image-manager.is-bulk-editing .image-card-edit {
  display: none;
}
.image-manager.is-bulk-editing .image-card-media::after {
  content: none;
}
.image-card-controls label {
  min-width: 0;
}
.image-card-controls input:not([type="checkbox"]):not([type="radio"]) {
  min-width: 0;
}
.image-card-controls .media-ledger {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.image-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 22, 38, .72);
}
.image-edit-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1fr);
  gap: 18px;
  width: min(100%, 920px);
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.image-edit-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}
.image-edit-preview img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--sand);
}
.image-edit-fields {
  display: grid;
  align-content: start;
}
.image-edit-fields .image-card-controls {
  display: grid;
  padding: 0;
}
.gallery-modal-open {
  overflow: hidden;
}
.gallery-modal[hidden] {
  display: none;
}
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 22, 38, .9);
}
.gallery-modal figure {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 1120px);
  max-height: 92vh;
  margin: 0;
}
.gallery-modal img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.gallery-modal figcaption {
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
}
.gallery-modal-close,
.gallery-modal-arrow {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.gallery-modal-close:hover,
.gallery-modal-close:focus-visible,
.gallery-modal-arrow:hover,
.gallery-modal-arrow:focus-visible {
  background: rgba(255, 255, 255, .2);
  color: var(--white);
}
.gallery-modal-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
  line-height: 1;
}
.gallery-modal-arrow {
  top: 50%;
  width: 46px;
  height: 70px;
  transform: translateY(-50%);
  font-size: 2.7rem;
  line-height: 1;
  opacity: .72;
}
.gallery-modal-arrow:disabled {
  opacity: .2;
  cursor: default;
}
.gallery-modal-prev { left: 18px; }
.gallery-modal-next { right: 18px; }
.approval-history p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.approval-history span,
.approval-history small {
  color: var(--muted);
}
.upload-field {
  gap: 10px;
}
.upload-queue {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.upload-queue[hidden],
.upload-progress[hidden] {
  display: none;
}
.upload-queue-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.upload-queue-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
}
.upload-queue-item strong,
.upload-queue-item span {
  display: block;
  overflow-wrap: anywhere;
}
.upload-queue-item span {
  color: var(--muted);
  font-size: .84rem;
}
.upload-progress {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.upload-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.upload-progress-row strong,
.upload-progress-row span {
  color: var(--navy);
  font-size: .9rem;
}
.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sand-2);
}
.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width .18s ease;
}
.media-ledger {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--ivory);
}
.media-ledger small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.media-ledger code {
  color: var(--navy);
  font-size: .82rem;
}
.integration-status-list {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--white);
}
.integration-status-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.integration-fields {
  display: grid;
  gap: 12px;
}
.owner-details-grid {
  display: grid;
  gap: 12px;
}
.integration-fields section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.integration-fields h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}
.integration-field-required input,
.integration-field-required select,
.integration-field-required textarea {
  border-color: rgba(184, 145, 85, .7);
}
.missing-field {
  color: #9D3434 !important;
}
.missing-checklist {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(157, 52, 52, .25);
  border-radius: 6px;
  background: #FFF4F4;
  color: #7A2020;
}
.missing-checklist small {
  color: #7A2020;
}
.property-card img,
.gallery-item img,
.image-manager-row img {
  -webkit-user-drag: none;
  user-select: none;
}
.admin-pre {
  max-width: 540px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: .78rem;
}
.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}
.check-row input {
  width: auto;
  min-height: 0;
  margin-top: 5px;
}
.listing-category-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.listing-category-control legend {
  grid-column: 1 / -1;
  padding: 0 4px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 900;
}
.listing-category-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand-2);
  cursor: pointer;
  text-align: center;
}
.listing-category-control input {
  width: auto;
  min-height: 0;
  margin: 0 7px 0 0;
}
.listing-category-control label:has(input:checked) {
  border-color: rgba(196, 154, 89, .55);
  background: var(--navy);
  color: var(--white);
}
.listing-category-control small {
  grid-column: 1 / -1;
  margin-top: 0;
}
.form-note,
.auth-switch {
  color: var(--muted);
  font-size: .92rem;
}
.auth-switch a {
  color: var(--navy);
  font-weight: 900;
}
.location-suggest-menu {
  position: absolute;
  z-index: 80;
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.location-suggest-menu[hidden] { display: none; }
.location-suggest-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.location-suggest-option:hover,
.location-suggest-option:focus {
  background: var(--sand-2);
  outline: none;
}
.location-suggest-option strong {
  color: var(--navy);
  font-size: .92rem;
}
.location-suggest-option span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contact-grid {
  display: grid;
  gap: 26px;
}
.contact-details {
  padding: 22px;
  background: var(--white);
}
.contact-logo {
  width: 210px;
  height: auto;
  margin-bottom: 16px;
}
.contact-details a {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-weight: 800;
}

.flash {
  position: fixed;
  top: 86px;
  left: 12px;
  right: 12px;
  z-index: 70;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--white);
  box-shadow: var(--shadow);
}
.flash-success { background: var(--success); }
.flash-error { background: var(--danger); }

.site-footer {
  padding: 50px 0 24px;
  background: #071A2D;
  color: rgba(255,255,255,.76);
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-brand {
  width: 220px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 220px;
  mix-blend-mode: normal;
}
.site-footer h3 {
  color: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
}
.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--gold-2); }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--white);
  font-size: .88rem;
  font-weight: 800;
}
.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.58);
}
.footer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.36);
  font-size: .72rem;
}
.footer-credit span {
  margin: 0;
  letter-spacing: .02em;
}
.footer-credit img {
  width: 72px;
  max-width: 24vw;
  height: auto;
  opacity: .48;
}
.whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 65;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(11, 34, 57, .24);
}

.admin-body { background: var(--ivory); }
.admin-body .whatsapp-float { display: none; }
.admin-shell {
  width: min(100% - 24px, 1180px);
  margin: 24px auto 72px;
  display: grid;
  gap: 20px;
}
.admin-shell > *,
.admin-content,
.admin-card {
  min-width: 0;
}
.narrow-admin {
  width: min(100% - 24px, 460px);
  display: block;
}
.admin-nav {
  display: grid;
  gap: 14px;
  align-self: start;
}
.admin-nav-group {
  display: grid;
  gap: 7px;
}
.admin-nav-group > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 800;
}
.admin-user-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--navy);
  border-radius: 8px;
  color: var(--white);
}
.admin-user-card strong { color: var(--white); }
.admin-user-card small { color: rgba(255,255,255,.72); font-weight: 800; }
.admin-version-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(196, 154, 89, .4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255,255,255,.86) !important;
  font-size: .76rem;
  letter-spacing: 0;
}
.admin-content,
.admin-card {
  padding: 18px;
  background: var(--white);
}
.login-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 18px;
}
.admin-muted {
  color: var(--muted);
  font-size: .9rem;
}
.admin-alert {
  padding: 14px;
  margin-bottom: 18px;
  background: #FFF8E5;
  border: 1px solid #E4C676;
  border-radius: 6px;
}
.role-summary,
.stats-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.role-summary > div,
.stat {
  padding: 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.role-summary span,
.stat span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
}
.role-summary strong,
.stat strong {
  color: var(--navy);
  font-weight: 900;
}
.stat strong { font-size: 1.7rem; }
.stat-link {
  color: inherit;
  text-decoration: none;
}
.stat-link:hover,
.stat-link:focus-visible {
  border-color: rgba(196, 154, 89, .62);
  box-shadow: 0 0 0 3px rgba(196, 154, 89, .18);
}
.role-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.role-admin { background: var(--gold); }
.role-employee { background: #DDE8F4; }
.role-partner { background: #E1EEE7; }
.admin-title-row {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.admin-title-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-toolbar {
  margin-bottom: 14px;
}
.admin-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.compact-stats {
  margin-bottom: 0;
}
.admin-subsection {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.admin-subsection h2 {
  margin: 0;
  font-size: 1.35rem;
}
.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: var(--ivory);
  color: var(--navy);
  font-size: .86rem;
}
.admin-table td a { color: var(--navy); font-weight: 800; }
.admin-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.row-actions button,
.inline-form button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-weight: 900;
}
.row-actions form[data-confirm] button { color: var(--danger); }
.status-toggle {
  min-width: 88px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
}
.status-toggle.is-live {
  border-color: rgba(45, 106, 79, .28);
  background: #E1EEE7;
  color: #21533D;
}
.status-toggle.is-draft {
  border-color: rgba(107, 114, 128, .25);
  background: #F1F3F5;
  color: #4B5563;
}
.quick-publish-toggle {
  display: inline-flex;
  min-width: 116px;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.05;
}
.quick-publish-toggle span {
  font-size: .82rem;
}
.quick-publish-toggle small {
  display: block;
  color: inherit;
  font-size: .68rem;
  font-weight: 800;
  opacity: .72;
}
.quick-publish-toggle.is-live {
  border-color: rgba(160, 69, 69, .24);
  background: #F8E6E3;
  color: #8B2F2F;
}
.quick-publish-toggle.is-draft {
  border-color: rgba(45, 106, 79, .28);
  background: #E1EEE7;
  color: #21533D;
}
.quick-publish-toggle:hover,
.quick-publish-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(196, 154, 89, .22);
  transform: translateY(-1px);
}
.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
}
.page-editor-form textarea[name^="blocks_json"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .86rem;
  line-height: 1.5;
}
.admin-editor-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.admin-editor-head strong,
.admin-editor-head span {
  display: block;
}
.admin-editor-head span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form select {
  min-height: 36px;
  padding: 6px 8px;
}
.workflow-form {
  display: grid;
  gap: 10px;
  min-width: 280px;
}
.workflow-form label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
}
.workflow-form select,
.workflow-form input,
.workflow-form textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.workflow-form button,
.integration-history-row button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--navy);
  font-weight: 900;
}
.integration-history {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.integration-history h3 {
  margin: 0;
  font-size: 1rem;
}
.integration-history-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.integration-history-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.compact-table .admin-table {
  min-width: 520px;
}
.color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  vertical-align: -3px;
}

@media (max-width: 719px) {
  .container,
  .narrow,
  .admin-shell,
  .narrow-admin {
    width: min(100% - 18px, 1180px);
  }
  .language-switch a {
    min-width: 34px;
    padding: 7px 7px;
  }
  .site-nav a {
    min-height: 44px;
    font-size: .9rem;
  }
  .whatsapp-float {
    top: calc(82px + env(safe-area-inset-top));
    right: 10px;
    bottom: auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: .86rem;
  }
  .hero {
    min-height: 540px;
    background-position: center;
  }
  .hero-content {
    padding: 72px 0 92px;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 12vw, 2.7rem);
  }
  .hero-actions,
  .search-panel .btn,
  .search-panel .btn-ghost {
    width: 100%;
  }
  .admin-shell {
    margin: 16px auto 56px;
    gap: 14px;
  }
  .admin-nav {
    gap: 10px;
  }
  .admin-nav-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .admin-nav-group > span {
    grid-column: 1 / -1;
  }
  .admin-nav a {
    min-height: 38px;
    padding: 8px 10px;
    font-size: .86rem;
  }
  .admin-user-card,
  .admin-content,
  .admin-card,
  .admin-form {
    padding: 14px;
  }
  .listing-category-control {
    grid-template-columns: 1fr;
  }
  .admin-title-row {
    gap: 8px;
  }
  .admin-title-actions,
  .admin-toolbar {
    width: 100%;
  }
  .admin-title-actions .btn,
  .admin-toolbar .btn {
    width: 100%;
    justify-content: center;
  }
  .table-wrap {
    margin-inline: -4px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    min-width: 0;
    display: block;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(11, 34, 57, .08);
  }
  .admin-table td:last-child {
    border-bottom: 0;
  }
  .row-actions {
    gap: 8px;
  }
  input,
  select,
  textarea,
  button {
    min-width: 0;
  }
  .gallery-modal {
    padding: 16px;
  }
  .gallery-modal-arrow {
    width: 38px;
    height: 58px;
    font-size: 2.1rem;
    opacity: .58;
  }
  .gallery-modal-prev { left: 8px; }
  .gallery-modal-next { right: 8px; }
  .image-edit-modal {
    padding: 12px;
  }
  .image-edit-dialog {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
}

@media (min-width: 720px) {
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.1rem; }
  .container { width: min(100% - 40px, 1180px); }
  .hero { min-height: 670px; }
  .hero h1 { font-size: 3.45rem; }
  .section { padding: 74px 0; }
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
  .price-range-field { grid-column: 1 / -1; }
  .property-grid,
  .service-grid,
  .testimonial-grid,
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading.with-action,
  .cta-inner,
  .admin-title-row,
  .footer-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
  }
  .split-grid,
  .contact-grid,
  .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .lead-person-grid { grid-template-columns: .82fr 1.18fr; align-items: start; }
  .lead-person-panel { padding: 28px; }
  .business-card-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-membership-card { grid-template-columns: 176px minmax(0, 1fr); align-items: start; padding: 18px; }
  .legal-membership-panel { padding: 0; }
  .legal-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .detail-sidebar { position: sticky; top: 92px; }
  .gallery-grid { grid-template-columns: 1.45fr 1fr; }
  .gallery-item:first-child { grid-row: span 2; }
  .gallery-item:first-child img { height: 420px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid,
  .role-summary,
  .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-form .full { grid-column: 1 / -1; }
  .owner-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-details-grid .full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.3fr .75fr .85fr .85fr; }
  .flash {
    left: auto;
    right: 18px;
    max-width: 380px;
  }
}

@media (min-width: 1040px) {
  .search-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-range-field { grid-column: span 2; }
  .search-panel .btn { align-self: end; }
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .region-grid.large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 230px minmax(0, 1fr); margin-top: 34px; }
  .admin-nav { position: sticky; top: 96px; }
  .admin-content,
  .admin-card { padding: 24px; }
  .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .whatsapp-float { right: 22px; bottom: 22px; }
}

@media (min-width: 1240px) {
  .header-inner { min-height: 78px; gap: 12px; }
  .brand { order: 0; width: 150px; }
  .brand img { width: 150px; }
  .nav-toggle { display: none; }
  .site-nav {
    order: 1;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-width: 0;
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .language-switch { order: 3; margin-left: 0; }
  .admin-link {
    order: 4;
    max-width: none;
    font-size: .84rem;
    white-space: nowrap;
  }
  .admin-link::before { content: none; }
  .site-nav a { padding: 8px 7px; font-size: .82rem; white-space: nowrap; }
}

@media (max-width: 380px) {
  .brand,
  .brand img { width: 112px; }
  .admin-link { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .detail-facts { grid-template-columns: 1fr; }
}
