:root {
  --ink: #18201e;
  --night: #1d2423;
  --muted: #66716d;
  --paper: #f7f3eb;
  --panel: #ffffff;
  --line: #ded6c8;
  --forest: #1f473f;
  --forest-2: #111c1a;
  --gold: #d6ad6a;
  --clay: #9e5b42;
  --sky: #dcebf1;
  --shadow: 0 18px 50px rgba(20, 32, 29, 0.14);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.admin-page {
  background: #f3f1eb;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.brand-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 173, 106, 0.16), transparent 30%),
    var(--forest-2);
  animation: loaderExit 550ms 1850ms ease forwards;
}

.loader-card {
  display: grid;
  gap: 18px;
  place-items: center;
  color: var(--gold);
  animation: loaderMark 1600ms ease both;
}

.loader-card img {
  width: clamp(150px, 22vw, 230px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 173, 106, 0.38);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  object-fit: cover;
}

.loader-card span {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.75rem);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 235, 0.88);
  border-bottom: 1px solid rgba(221, 216, 205, 0.82);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.admin-header {
  background: rgba(243, 241, 235, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--night);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(24, 32, 30, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--forest);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-button:hover,
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
}

.hero {
  position: relative;
  display: grid;
  height: calc(100vh - 112px);
  min-height: 560px;
  max-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero picture img,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero picture {
  height: 100%;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 22% 48%, rgba(214, 173, 106, 0.18), transparent 27%),
    linear-gradient(90deg, rgba(10, 24, 21, 0.82), rgba(10, 24, 21, 0.44) 48%, rgba(10, 24, 21, 0.1));
  z-index: 1;
}

.hero-content {
  z-index: 2;
  align-self: start;
  width: min(900px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 118px 0 0;
  color: #fff;
  animation: heroIn 760ms ease both;
}

.hero-logo {
  width: clamp(86px, 10vw, 112px);
  aspect-ratio: 1;
  margin-bottom: 14px;
  border: 1px solid rgba(214, 173, 106, 0.45);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.admin-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 0.96;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(0.96rem, 1.45vw, 1.12rem);
}

.hero-actions,
.contact-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-proof {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 13px 28px rgba(31, 71, 63, 0.24);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.secondary-button.light {
  border-color: rgba(255, 255, 255, 0.5);
}

.danger-button {
  background: #9c332f;
  color: #fff;
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--forest);
}

.clear-button {
  min-height: 40px;
  padding: 0 14px;
  background: #f3eee4;
  border-color: var(--line);
  color: var(--forest);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.clear-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.search-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(5, minmax(118px, 0.9fr));
  gap: 14px;
  width: min(1120px, calc(100% - 36px));
  margin: -24px auto 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: searchRise 720ms 120ms ease both;
}

.search-field,
.listing-form label,
.admin-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field input,
.search-field select,
.listing-form input,
.listing-form select,
.listing-form textarea,
.admin-auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.photo-upload-field input[type="file"] {
  min-height: auto;
  padding: 10px;
  border-style: dashed;
  cursor: pointer;
}

.search-field input:focus,
.search-field select:focus,
.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus,
.admin-auth-form input:focus {
  border-color: rgba(31, 71, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 71, 63, 0.1);
  outline: 0;
}

.search-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1 / -1;
}

.search-tools strong {
  color: var(--forest);
  font-size: 0.95rem;
}

.search-tools span {
  color: var(--clay);
  font-size: 0.9rem;
  font-weight: 900;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.quick-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f3eb;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.quick-filters button:hover,
.quick-filters button.is-active {
  background: var(--forest);
  color: #fff;
  transform: translateY(-1px);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: clamp(26px, 6vw, 86px);
  align-items: start;
  padding-top: 110px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2.4rem);
  line-height: 1;
}

.intro-section > p,
.contact-section p,
.admin-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.compact {
  align-items: center;
}

.text-link {
  color: var(--clay);
  font-weight: 800;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20, 32, 29, 0.07);
  animation: cardIn 420ms ease both;
  animation-delay: calc(var(--card-index, 0) * 70ms);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(20, 32, 29, 0.13);
}

.listing-media {
  position: relative;
  display: block;
  aspect-ratio: 1.28;
  overflow: hidden;
  background: var(--sky);
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.listing-card:hover .listing-media img {
  transform: scale(1.04);
}

.listing-media span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  background: rgba(20, 32, 29, 0.82);
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-body {
  padding: 18px;
}

.listing-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.listing-title-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.2;
}

.listing-title-row strong {
  color: var(--forest);
  white-space: nowrap;
}

.listing-body p {
  margin: 10px 0 0;
  color: var(--muted);
}

.listing-type {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  background: #f3eee4;
  border-radius: 999px;
  color: var(--forest) !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 0;
}

.listing-meta div {
  padding: 10px;
  background: #f4f1ea;
  border-radius: 8px;
}

.listing-meta dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-meta dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.listing-cta {
  display: inline-flex;
  margin-top: 18px;
  color: var(--clay);
  font-weight: 800;
}

.listing-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.small-action {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.small-action:hover,
.small-action.is-saved {
  background: var(--forest);
  color: #fff;
  transform: translateY(-1px);
}

.empty-state {
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.services-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

.services-section article {
  min-height: 230px;
  padding: 26px;
  background: var(--forest);
  border-radius: 8px;
  color: #fff;
}

.services-section article:nth-child(2) {
  background: var(--clay);
}

.services-section article:nth-child(3) {
  background: #263d59;
}

.services-section span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.services-section h3 {
  margin: 46px 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.services-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 56px clamp(18px, 5vw, 66px);
  background: var(--forest-2);
  color: #fff;
}

.contact-section p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 0;
}

.spotlight-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding-top: 0;
}

.spotlight-copy p:not(.eyebrow) {
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

.spotlight-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--night);
  box-shadow: var(--shadow);
}

.spotlight-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 500ms ease;
}

.spotlight-panel:hover img {
  transform: scale(1.04);
}

.spotlight-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(17, 28, 26, 0.88));
}

.spotlight-panel div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(17, 28, 26, 0.72);
  color: #fff;
  backdrop-filter: blur(16px);
}

.spotlight-panel span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-panel strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.spotlight-panel small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.market-strip article {
  display: grid;
  gap: 4px;
  min-height: 126px;
  align-content: center;
  padding: 22px;
  background: var(--night);
  border-radius: 8px;
  color: #fff;
}

.market-strip article:nth-child(2) {
  background: var(--forest);
}

.market-strip article:nth-child(3) {
  background: #6f493f;
}

.market-strip strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1;
}

.market-strip span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.area-guide {
  display: grid;
  gap: 26px;
  padding-top: 0;
}

.area-guide-grid,
.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.area-card,
.recent-card {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 34px rgba(20, 32, 29, 0.05);
}

.area-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.area-card:hover {
  border-color: rgba(31, 71, 63, 0.4);
  transform: translateY(-2px);
}

.area-card strong,
.recent-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.area-card span,
.recent-card span,
.area-card small,
.recent-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.trust-grid,
.testimonial-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 0;
}

.trust-grid article,
.testimonial-grid article,
.tool-panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 32, 29, 0.06);
}

.trust-grid span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-grid strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.05;
}

.trust-grid p,
.testimonial-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.process-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding-top: 0;
}

.process-section ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-section li {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-section strong {
  color: var(--forest);
  font-size: 1.05rem;
}

.process-section span {
  color: var(--muted);
}

.best-match-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding-top: 0;
}

.best-match-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.best-match-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.best-match-card div {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px;
}

.best-match-card span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.best-match-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.best-match-card small {
  color: var(--muted);
  font-weight: 800;
}

.best-match-card b {
  color: var(--forest);
  font-size: 1.05rem;
}

.best-match-card em {
  color: var(--clay);
  font-style: normal;
  font-weight: 900;
}

.tools-section {
  padding-top: 0;
}

.tool-grid {
  grid-template-columns: minmax(320px, 640px);
}

.tool-panel {
  display: grid;
  gap: 14px;
}

.tool-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.tool-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-panel input,
.tool-panel select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.tool-panel output {
  display: grid;
  min-height: 70px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 900;
}

.testimonials-section,
.faq-section,
.recent-section {
  display: grid;
  gap: 28px;
  padding-top: 0;
}

.recent-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  min-height: auto;
  padding: 10px;
}

.recent-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.recent-card b {
  display: block;
  margin-top: 5px;
  color: var(--forest);
}

.testimonial-grid article {
  display: grid;
  align-content: space-between;
  min-height: 190px;
}

.testimonial-grid strong {
  margin-top: 18px;
  color: var(--forest);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px;
  color: var(--forest);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.listing-modal {
  width: min(920px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(17, 28, 26, 0.3);
  overflow: hidden;
}

.listing-modal::backdrop {
  background: rgba(17, 28, 26, 0.72);
  backdrop-filter: blur(8px);
}

.listing-modal[open] {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
}

.listing-modal > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.modal-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
}

.modal-body h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.modal-body > strong {
  color: var(--forest);
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(17, 28, 26, 0.82);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.compare-drawer {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 28;
  width: min(520px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(222, 214, 200, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(17, 28, 26, 0.2);
  backdrop-filter: blur(18px);
}

.compare-drawer > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.compare-drawer strong {
  color: var(--forest);
}

.compare-grid {
  display: grid;
  gap: 8px;
}

.compare-grid article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f3eb;
}

.compare-grid span {
  color: var(--forest);
  font-weight: 900;
}

.compare-grid small {
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(17, 28, 26, 0.14);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 15px 36px rgba(37, 211, 102, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 32, 29, 0.06);
}

.admin-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.admin-stat {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--forest);
  border-radius: 8px;
  color: #fff;
  text-align: center;
}

.admin-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.admin-stat small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-auth-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 0.55fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 32, 29, 0.06);
}

.admin-auth-panel[hidden] {
  display: none;
}

.admin-auth-panel p:not(.eyebrow),
#adminAuthStatus {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-auth-form {
  display: grid;
  gap: 12px;
}

.listing-form,
.admin-list-panel {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.listing-form {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 94px;
}

.photo-preview-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(31, 71, 63, 0.28);
  border-radius: 8px;
  background: #f7f3eb;
}

.photo-preview-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-preview-grid:empty {
  display: none;
}

.photo-preview-grid img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 32, 29, 0.08);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-heading h2,
.admin-list-panel h2 {
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item img {
  width: 112px;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
}

.admin-item h3,
.admin-item p {
  margin: 0;
}

.admin-item p {
  color: var(--muted);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.small-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    height: calc(100svh - 140px);
    min-height: 560px;
    max-height: 680px;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 50% 55%, rgba(214, 173, 106, 0.15), transparent 32%),
      linear-gradient(180deg, rgba(10, 24, 21, 0.4), rgba(10, 24, 21, 0.83));
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding-bottom: 92px;
  }

  .search-band,
  .intro-section,
  .listing-grid,
  .services-section,
  .contact-section,
  .market-strip,
  .spotlight-section,
  .trust-grid,
  .testimonial-grid,
  .area-guide-grid,
  .recent-grid,
  .tool-grid,
  .process-section,
  .best-match-section,
  .admin-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .listing-form {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .admin-hero h1 {
    font-size: 1.85rem;
  }

  .admin-stat span {
    font-size: 1.75rem;
  }

  .hero-logo {
    width: 92px;
  }

  .search-band {
    margin-top: -42px;
  }

  .search-field:first-child {
    grid-column: span 1;
  }

  .section {
    padding: 62px 0;
  }

  .intro-section {
    padding-top: 76px;
  }

  .section-heading,
  .form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-title-row,
  .listing-meta,
  .form-grid,
  .form-grid.three,
  .admin-item,
  .listing-modal[open],
  .best-match-card,
  .recent-card {
    grid-template-columns: 1fr;
  }

  .recent-card img {
    width: 100%;
    height: 170px;
  }

  .compare-drawer {
    right: 12px;
    bottom: 78px;
    width: calc(100% - 24px);
  }

  .listing-actions {
    grid-template-columns: 1fr;
  }

  .listing-modal > img {
    min-height: 260px;
  }

  .modal-body {
    padding: 22px;
  }

  .listing-title-row strong {
    white-space: normal;
  }

  .admin-item img {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderMark {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  45% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
}

@keyframes loaderExit {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
