:root {
  --navy: #1b2d3e;
  --blue: #245f9e;
  --blue-dark: #17436f;
  --teal: #2d9ca3;
  --ink: #1b2d3e;
  --muted: #607383;
  --line: #c9d7e2;
  --panel: #ffffff;
  --soft: #f0f5f9;
  --soft-strong: #e5edf4;
  --accent: #245f9e;
  --accent-dark: #17436f;
  --accent-soft: #e5eff9;
  --gold: #2d9ca3;
  --danger: #a32929;
  --bg: #f7f9fa;
  --bg-dashboard: #eef3f5;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 14px 34px rgba(25, 43, 58, 0.1);
  --shadow-soft: 0 8px 20px rgba(25, 43, 58, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 72px);
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  gap: 24px;
  min-height: 84px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 1 340px;
  font-size: 18px;
  gap: 10px;
  font-weight: 700;
  line-height: 1.2;
  max-width: min(340px, 44vw);
  min-width: 0;
}

.site-header .brand img {
  display: block;
  flex: 0 0 auto;
  height: 46px;
  max-height: 46px;
  max-width: 160px;
  object-fit: contain;
  width: auto;
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.main-nav a,
.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.main-nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.main-nav a:hover {
  background: var(--accent-soft);
  border-color: #bdd5d8;
}

.nav-logout-form {
  margin: 0;
}

.nav-logout-form button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
  min-height: auto;
  padding: 8px 12px;
}

.nav-logout-form button:hover {
  background: var(--accent-soft);
  border-color: #bdd5d8;
  box-shadow: none;
  transform: none;
}

.nav-icon {
  display: inline-block;
  fill: none;
  flex: 0 0 auto;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.icon-sprite {
  display: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(23, 33, 31, 0.92), rgba(23, 33, 31, 0.54) 58%, rgba(23, 33, 31, 0.28)),
    url("../images/hero-inmobiliaria.webp");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  min-height: 640px;
  padding: 78px clamp(20px, 5vw, 72px) 44px;
}

.hero-inner {
  max-width: 1040px;
}

.hero h1,
.catalog-header h1,
.detail-hero h1 {
  font-size: 56px;
  line-height: 1.03;
  margin: 0;
  max-width: 840px;
}

.hero-copy {
  font-size: 20px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-whatsapp {
  background: #1f9d72;
  border-color: #1f9d72;
}

.hero-contact {
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  margin: 16px 0 0;
}

.hero-contact span::before {
  content: "/";
}

.property-detail-actions {
  margin-top: 18px;
}

.property-detail-actions .ghost-button {
  background: #ffffff;
  color: var(--accent-dark);
}

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

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.search-panel,
.filter-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
}

.search-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 42px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  max-width: 720px;
}

.hero-stats article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 14px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-bar {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: -30px auto 0;
  max-width: 1180px;
  padding: 16px;
  position: relative;
  z-index: 2;
}

.advanced-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.advanced-filter button,
.advanced-filter .ghost-button {
  align-self: end;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  text-transform: uppercase;
}

input,
select,
button,
.ghost-button,
.primary-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  min-height: 40px;
  padding: 7px 10px;
}

input,
select,
textarea {
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9aa6a2;
}

textarea {
  border-radius: var(--radius-sm);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 157, 160, 0.18);
}

button,
.primary-button {
  align-items: center;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

button:hover,
.primary-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 10px 20px rgba(25, 110, 118, 0.22);
  transform: translateY(-1px);
}

.ghost-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.ghost-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section,
.page-layout {
  padding: 54px clamp(20px, 5vw, 72px);
}

.compact {
  padding-top: 34px;
}

.section-heading,
.detail-hero {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0;
}

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

.property-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.property-card:hover {
  border-color: #c5d2ca;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.property-media,
.gallery-placeholder {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(41, 157, 160, 0.08), rgba(25, 43, 58, 0.24)),
    #e6eff1;
  display: flex;
  min-height: 210px;
  padding: 16px;
}

.property-media {
  overflow: hidden;
  padding: 0;
}

.property-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
  width: 100%;
}

.property-card:hover .property-media img {
  transform: scale(1.025);
}

.property-media span,
.gallery-placeholder span {
  background: #ffffff;
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  margin: 16px;
  padding: 6px 10px;
}

.property-media-placeholder {
  position: relative;
}

.property-media:has(.property-media-placeholder) {
  background:
    linear-gradient(135deg, rgba(25, 43, 58, 0.24), rgba(41, 157, 160, 0.3)),
    linear-gradient(45deg, #eef4f5, #b9d5d7);
}

.property-body {
  padding: 18px;
}

.property-meta {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  text-transform: uppercase;
}

.property-body h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 10px 0 6px;
}

.property-body p,
.muted {
  color: var(--muted);
}

.property-body strong,
.detail-hero strong {
  color: var(--accent-dark);
  display: block;
  font-size: 22px;
  margin-top: 12px;
}

.property-facts,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.property-facts div,
.feature-list div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.property-card-action {
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
}

.property-card-action:hover {
  text-decoration: underline;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.catalog-header,
.detail-hero,
.owner-hero {
  background:
    linear-gradient(180deg, #ffffff, var(--soft));
  border-bottom: 1px solid var(--line);
  padding: 54px clamp(20px, 5vw, 72px);
}

.about-page {
  background: #ffffff;
}

.about-hero,
.about-section,
.about-facts,
.about-coverage-section,
.about-closing {
  margin-inline: auto;
  max-width: 1240px;
}

.about-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: 480px;
  padding: 46px clamp(20px, 5vw, 64px);
}

.about-hero:not(.has-image) {
  grid-template-columns: minmax(0, 760px);
  min-height: 380px;
}

.about-hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 12px 0 18px;
}

.about-hero-description {
  color: var(--muted);
  font-size: 17px;
  max-width: 650px;
}

.about-hero-description p {
  margin: 0 0 22px;
}

.about-hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(27, 45, 62, 0.16);
  margin: 0;
  max-height: 430px;
  overflow: hidden;
}

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

.about-facts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 18px clamp(20px, 5vw, 64px);
}

.about-facts dl {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.about-facts dl div {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding-right: 18px;
}

.about-facts dl div:last-child {
  border-right: 0;
}

.about-facts dd {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
}

.about-section {
  padding: 44px clamp(20px, 5vw, 64px);
}

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

.about-purpose-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 26px;
}

.about-purpose-card > span,
.about-difference-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-purpose-card h2,
.about-framework h2,
.about-section-heading h2,
.about-coverage-section h2,
.about-closing h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em;
  margin: 5px 0 12px;
}

.about-purpose-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.about-framework {
  background: var(--soft);
  display: grid;
  gap: 38px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-compact-list,
.about-coverage-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.about-compact-list li {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px 12px 40px;
  position: relative;
}

.about-values-list li::before {
  color: var(--accent);
  content: "\2713";
  font-weight: 800;
  left: 15px;
  position: absolute;
}

.about-objectives-list {
  counter-reset: about-objective;
}

.about-objectives-list li {
  counter-increment: about-objective;
}

.about-objectives-list li::before {
  color: var(--accent);
  content: counter(about-objective, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
  left: 13px;
  position: absolute;
  top: 14px;
}

.about-section-heading {
  max-width: 720px;
}

.about-section-heading > p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.about-difference-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.about-difference-grid article {
  border-top: 2px solid var(--accent);
  padding: 16px 14px;
}

.about-difference-grid p {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.about-coverage-section {
  align-items: start;
  background: var(--navy);
  color: #ffffff;
  display: grid;
  gap: clamp(30px, 5vw, 60px);
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  padding: 44px clamp(20px, 5vw, 64px);
}

.about-coverage-section .eyebrow {
  color: #8fdde1;
}

.about-coverage-copy > p:last-child {
  color: #d5e1e9;
}

.about-coverage-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.about-coverage-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 8px 9px 25px;
  position: relative;
}

.about-coverage-list li::before {
  color: #8fdde1;
  content: "\2713";
  font-weight: 800;
  left: 2px;
  position: absolute;
}

.about-closing {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 38px clamp(20px, 5vw, 64px) 52px;
}

.about-closing h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 0;
  max-width: 820px;
}

.about-editor-groups {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.about-editor-groups details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.about-editor-groups summary {
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
}

.about-editor-groups details[open] summary {
  border-bottom: 1px solid var(--line);
}

.about-editor-groups .settings-grid {
  padding: 18px;
}

.detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 34px clamp(20px, 5vw, 72px);
}

.gallery-placeholder {
  min-height: 420px;
}

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

.property-gallery figure {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  border: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
}

.property-gallery figure.is-cover {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.property-gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.video-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}

.video-list strong {
  display: block;
  margin-bottom: 8px;
}

.contact-panel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 94px;
}

.contact-panel h2 {
  font-size: 24px;
}

.detail-content {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.map-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 clamp(20px, 5vw, 72px);
  padding: 24px;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 380px;
  margin-top: 18px;
  overflow: hidden;
}

.map-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.image-upload-panel {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #dce8f7;
  border-radius: var(--radius);
  display: flex;
  gap: 22px;
  grid-column: 1 / -1;
  min-height: 128px;
  padding: 20px 24px;
}

.image-upload-preview {
  background: #ffffff;
  border: 1px solid #d5e1f0;
  box-shadow: 0 8px 18px rgba(23, 33, 31, 0.12);
  color: var(--muted);
  display: grid;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  place-items: center;
}

.settings-logo-preview {
  border-radius: var(--radius-sm);
  height: 76px;
  padding: 10px;
  width: 116px;
}

.settings-logo-preview img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.settings-about-preview {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  width: min(260px, 35vw);
}

.settings-about-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-form-preview img[hidden],
.image-form-preview:not(.is-empty) span {
  display: none;
}

.agent-form-preview,
.testimonial-form-preview {
  border-radius: 999px;
  height: 84px;
  padding: 4px;
  width: 84px;
}

.agent-form-preview img,
.testimonial-form-preview img {
  border-radius: 999px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-upload-content {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-width: 0;
}

.image-upload-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #1f4e8c;
  border-radius: 999px;
  color: #1f4e8c;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  grid-column: auto;
  line-height: 1;
  min-height: 38px;
  min-width: 0;
  padding: 10px 16px;
}

.image-upload-button::before {
  content: "+";
  font-size: 16px;
  line-height: 1;
}

.image-upload-button:hover {
  background: #eef6ff;
}

.image-upload-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.image-upload-native {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.empty-state {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-column: 1 / -1;
  padding: 24px;
}

.trust-strip,
.owner-cta-section {
  display: grid;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
}

.intent-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intent-strip a {
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 22px clamp(20px, 4vw, 48px);
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.intent-strip a:hover {
  background: var(--accent-soft);
}

.intent-strip span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.intent-strip strong {
  font-size: 18px;
  line-height: 1.25;
}

.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-strip article {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
}

.trust-strip span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.trust-strip strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.trust-strip p {
  color: var(--muted);
  margin: 6px 0 0;
}

.owner-cta-section {
  align-items: center;
  background: var(--soft);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
}

.owner-cta-section h2 {
  max-width: 720px;
}

.owner-cta-section p {
  color: var(--muted);
  max-width: 720px;
}

.home-lead-section {
  align-items: start;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  padding: 44px clamp(20px, 5vw, 72px);
}

.lead-intro h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0;
}

.lead-intro p {
  color: var(--muted);
  max-width: 620px;
}

.lead-benefits {
  color: var(--ink);
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
}

.homepage-lead-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

.lead-message-field {
  grid-column: 1 / -1;
}

.homepage-lead-form textarea {
  border: 1px solid var(--line);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

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

.process-grid article,
.agent-preview-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.process-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.process-grid strong,
.agent-preview-card strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.process-grid p,
.agent-preview-card p,
.agent-preview-card span {
  color: var(--muted);
}

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

.agent-preview-card {
  display: grid;
  gap: 14px;
}

.testimonial-section {
  background: #ffffff;
}

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

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.testimonial-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.testimonial-avatar {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: grid;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  height: 58px;
  overflow: hidden;
  place-items: center;
  text-transform: uppercase;
  width: 58px;
}

.testimonial-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.testimonial-rating {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.testimonial-card p {
  color: var(--ink);
  margin: 0;
}

.testimonial-card footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.login-page {
  align-items: center;
  background: var(--soft);
  display: grid;
  min-height: calc(100vh - 170px);
  padding: 54px clamp(20px, 5vw, 72px);
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 460px;
  padding: 28px;
  width: 100%;
}

.login-panel h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}

.login-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.login-form {
  display: grid;
  gap: 14px;
}

.auth-shell {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(25, 43, 58, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  margin: 0 auto;
  max-width: 1040px;
  overflow: hidden;
  width: 100%;
}

.auth-intro {
  background: linear-gradient(145deg, #192b3a, #214a57 62%, #299da0);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 48px;
}

.auth-intro .eyebrow, .auth-intro p { color: rgba(255, 255, 255, 0.78); }
.auth-intro h1 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1.02; margin: 12px 0 20px; }
.auth-brand { align-items: center; display: flex; font-weight: 850; gap: 12px; }
.auth-brand img { background: #fff; border-radius: 10px; height: 48px; object-fit: contain; width: 58px; }
.auth-benefits { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.auth-benefits li { align-items: center; display: flex; gap: 10px; }
.auth-benefits li::before { align-items: center; background: rgba(255,255,255,.16); border-radius: 50%; content: "✓"; display: inline-flex; height: 26px; justify-content: center; width: 26px; }
.auth-card { border: 0; border-radius: 0; box-shadow: none; margin: 0; max-width: none; padding: 54px 48px; place-self: center; }
.auth-card h1, .auth-card h2 { font-size: 36px; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 12px; }
.auth-form { gap: 9px; margin-top: 6px; }
.auth-form input { border: 1px solid #c7d7da; border-radius: 10px; font: inherit; min-height: 48px; padding: 11px 13px; width: 100%; }
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.auth-form label { color: var(--ink); font-size: 13px; font-weight: 800; }
.auth-form button { margin-top: 10px; min-height: 50px; }
.auth-label-row { align-items: center; display: flex; justify-content: space-between; margin-top: 8px; }
.auth-label-row a, .auth-back-link, .header-forgot-link { color: var(--accent-dark); font-size: 13px; font-weight: 800; }
.auth-error { background: #fff0ef; border: 1px solid #e7b7b2; border-radius: 10px; color: #8a2921; padding: 11px 13px; }
.auth-support { border-top: 1px solid var(--line); font-size: 13px; padding-top: 18px; text-align: center; }
.auth-page-compact { min-height: 650px; }
.auth-recovery-card { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin: 0 auto; max-width: 560px; padding: 42px; }
.auth-step, .auth-state-icon { align-items: center; background: var(--accent); border-radius: 50%; color: #fff; display: flex; font-size: 20px; font-weight: 900; height: 48px; justify-content: center; width: 48px; }
.auth-state-card { justify-items: center; text-align: center; }
.auth-state-warning { background: #b97813; }
.auth-security-note { background: var(--soft); border-radius: 10px; font-size: 13px; padding: 12px; }
.auth-primary-link { background: var(--accent); border-radius: 999px; color: #fff; font-weight: 800; padding: 12px 20px; }
.header-forgot-link { display: block; padding-top: 5px; text-align: center; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 580px; }
  .auth-intro { min-height: auto; padding: 32px; }
  .auth-intro > div, .auth-benefits { display: none; }
  .auth-card { padding: 38px 30px; }
}

@media (max-width: 520px) {
  .login-page { padding: 24px 16px; }
  .auth-shell { border-radius: 16px; }
  .auth-card, .auth-recovery-card { padding: 30px 22px; }
  .auth-card h1, .auth-card h2 { font-size: 30px; }
}

.messages {
  padding: 12px clamp(20px, 5vw, 72px);
}

.message {
  background: #e8f6f1;
  border: 1px solid #b7dfd1;
  border-radius: var(--radius);
  margin: 0;
  padding: 12px 16px;
}

.lead-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
}

.lead-form textarea {
  border: 1px solid var(--line);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.errorlist {
  color: #a32929;
  list-style: none;
  margin: 0;
  padding: 0;
}

.errorlist li {
  background: #fff1f1;
  border-left: 3px solid #a32929;
  margin-top: 4px;
  padding: 6px 8px;
}

.mortgage-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 32px;
  padding: 24px;
}

.mortgage-box h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

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

.mortgage-form button {
  grid-column: 1 / -1;
}

.mortgage-result {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 18px;
  padding: 16px;
}

.mortgage-result span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mortgage-result strong {
  color: var(--accent-dark);
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.owner-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
  max-width: 760px;
}

.owner-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.owner-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 38px clamp(20px, 5vw, 72px);
}

.info-grid,
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
}

.owner-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-auto-flow: row dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 24px;
}

.owner-form textarea {
  border: 1px solid var(--line);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.wide-field,
.document-checklist,
.owner-form button {
  grid-column: 1 / -1;
}

.document-checklist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 16px;
}

.document-checklist legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.document-checklist label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  text-transform: none;
}

.owner-aside {
  align-self: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.owner-aside h2 {
  font-size: 26px;
}

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

.agent-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.agent-photo,
.agent-profile-media {
  align-items: center;
  background: var(--soft);
  color: var(--accent-dark);
  display: flex;
  font-weight: 700;
  justify-content: center;
  overflow: hidden;
}

.agent-photo {
  aspect-ratio: 4 / 3;
  font-size: 46px;
}

.agent-photo img,
.agent-profile-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.agent-card-body {
  padding: 18px;
}

.agent-card-body > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-card h2 {
  font-size: 24px;
  margin: 8px 0;
}

.agent-hero {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: 32px;
  grid-template-columns: 260px minmax(0, 1fr);
  padding: 54px clamp(20px, 5vw, 72px);
}

.agent-profile-media {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 72px;
}

.agent-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
}

.agent-hero p {
  color: var(--muted);
  max-width: 760px;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

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

.blog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-media {
  align-items: end;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  display: flex;
  overflow: hidden;
  padding: 16px;
}

.blog-media img {
  height: calc(100% + 32px);
  margin: -16px;
  object-fit: cover;
  width: calc(100% + 32px);
}

.blog-media span {
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.blog-card-body {
  padding: 18px;
}

.blog-card-body > span,
.blog-hero span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card h2 {
  font-size: 24px;
  margin: 8px 0;
}

.blog-hero {
  background: var(--soft);
  padding: 54px clamp(20px, 5vw, 72px);
}

.blog-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
  max-width: 920px;
}

.blog-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.blog-featured-image,
.blog-content {
  margin: 0 auto;
  max-width: 860px;
}

.blog-featured-image {
  padding: 34px 20px 0;
}

.blog-featured-image img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  width: 100%;
}

.blog-content {
  color: var(--ink);
  font-size: 18px;
  padding: 34px 20px 60px;
}

.blog-tags {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 34px;
  padding-top: 18px;
}

.dashboard-page {
  background: var(--bg-dashboard);
  min-height: 70vh;
  --dashboard-sidebar-closed: 76px;
  --dashboard-sidebar-open: 260px;
  --dashboard-sidebar-offset: var(--dashboard-sidebar-open);
}

.dashboard-page:has(.dashboard-sidebar-state:not(:checked)) {
  --dashboard-sidebar-offset: var(--dashboard-sidebar-closed);
}

.dashboard-header {
  background:
    linear-gradient(180deg, #ffffff, var(--soft));
  border-bottom: 1px solid var(--line);
  padding: 36px clamp(20px, 5vw, 72px);
}

.dashboard-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  margin: 0;
}

.dashboard-header p {
  color: var(--muted);
  max-width: 680px;
}

.dashboard-sidebar-state {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.dashboard-sidebar {
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--line);
  bottom: 0;
  box-shadow: 14px 0 34px rgba(23, 33, 31, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px 22px;
  position: fixed;
  top: 70px;
  transition: width 0.2s ease;
  width: var(--dashboard-sidebar-open);
  z-index: 5;
}

.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar {
  width: var(--dashboard-sidebar-closed);
}

.dashboard-nav-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 44px;
}

.dashboard-nav-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-nav-brand span,
.dashboard-nav-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-nav-brand strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav-toggle {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  padding: 0 10px;
}

.dashboard-nav-groups,
.dashboard-nav-group {
  display: grid;
  gap: 8px;
}

.dashboard-nav-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dashboard-nav-title {
  margin: 0;
  padding: 0 8px;
}

.dashboard-sidebar a {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 11px;
  min-height: 42px;
  overflow: hidden;
  padding: 9px 11px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.dashboard-sidebar a::before {
  content: none;
  display: none;
}

.dashboard-sidebar .nav-icon {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-sizing: content-box;
  color: var(--accent-dark);
  height: 17px;
  padding: 6px;
  width: 17px;
}

.dashboard-sidebar a:hover {
  background: var(--accent-soft);
  border-color: #b7dfd1;
  color: var(--accent-dark);
  transform: translateX(1px);
}

.dashboard-sidebar a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.dashboard-sidebar a[aria-current="page"] .nav-icon {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
}

.dashboard-page:has(.dashboard-sidebar) .dashboard-header,
.dashboard-page:has(.dashboard-sidebar) .metric-grid,
.dashboard-page:has(.dashboard-sidebar) .dashboard-layout,
.dashboard-page:has(.dashboard-sidebar) .kanban-board,
.dashboard-page:has(.dashboard-sidebar) .lead-detail-layout,
.dashboard-page:has(.dashboard-sidebar) .dashboard-list-page {
  padding-left: calc(clamp(20px, 5vw, 72px) + var(--dashboard-sidebar-offset));
}

.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar .dashboard-nav-brand,
.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar .dashboard-nav-title,
.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar a span,
.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar .dashboard-nav-toggle span {
  display: none;
}

.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar .dashboard-nav-header,
.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar a {
  justify-content: center;
}

.dashboard-sidebar-state:not(:checked) + .dashboard-sidebar .dashboard-nav-group {
  justify-items: center;
}

.metric-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px clamp(20px, 5vw, 72px) 0;
}

.metric-grid article,
.dashboard-panel,
.pipeline-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-grid article {
  padding: 18px 20px;
}

.metric-grid span,
.pipeline-grid span,
.record-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-grid strong {
  color: var(--accent-dark);
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-top: 10px;
}

.dashboard-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 28px clamp(20px, 5vw, 72px) 54px;
}

.dashboard-panel {
  padding: 20px;
}

.dashboard-panel,
.metric-grid article,
.pipeline-grid article,
.lead-card,
.kanban-column,
.property-card,
.blog-card,
.agent-card,
.owner-form,
.contact-panel {
  box-shadow: 0 10px 26px rgba(23, 33, 31, 0.04);
}

.dashboard-panel:first-child {
  grid-column: 1 / -1;
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 22px;
  line-height: 1.2;
}

.panel-heading a {
  color: var(--accent-dark);
  font-weight: 700;
}

.heading-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.heading-actions a,
.quick-links a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 700;
  padding: 7px 10px;
}

.quick-links {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

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

.pipeline-grid article {
  padding: 16px;
}

.pipeline-grid strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

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

.record-list article {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 0 4px;
}

.record-avatar {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: grid;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  height: 44px;
  overflow: hidden;
  place-items: center;
  text-transform: uppercase;
  width: 44px;
}

.record-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.record-list article > div:not(.record-avatar) {
  flex: 1 1 auto;
  min-width: 0;
}

.record-list strong {
  display: block;
}

.kanban-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  overflow-x: auto;
  padding: 28px clamp(20px, 5vw, 72px) 54px;
}

.kanban-column {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 260px;
  padding: 14px;
}

.kanban-column header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kanban-column h2 {
  font-size: 18px;
}

.kanban-column header span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  padding: 4px 8px;
}

.lead-cards {
  display: grid;
  gap: 12px;
}

.lead-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.lead-card strong,
.lead-card span {
  display: block;
}

.lead-card span,
.lead-card p {
  color: var(--muted);
}

.lead-card form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lead-detail-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 380px;
  padding: 28px clamp(20px, 5vw, 72px) 54px;
}

.lead-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.lead-summary div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.lead-message {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.lead-message h3 {
  margin: 0 0 8px;
}

.follow-up-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.follow-up-form textarea {
  border: 1px solid var(--line);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.follow-up-form button,
.follow-up-form .form-actions {
  grid-column: 1 / -1;
}

.form-surface {
  box-shadow: var(--shadow);
}

.form-section-title {
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-bottom: 8px;
}

.form-section-title h2 {
  font-size: 22px;
}

.form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.lead-notes-panel {
  grid-column: 1 / -1;
}

.dashboard-list-page {
  padding: 28px clamp(20px, 5vw, 72px) 54px;
}

.compact-list-page {
  padding-bottom: 0;
}

.inline-filter {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 320px) 140px;
  margin-bottom: 10px;
  padding-bottom: 18px;
}

.export-filter,
.pipeline-filter,
.visit-filter,
.offer-filter,
.deal-filter,
.property-filter,
.owner-filter {
  align-items: end;
  display: grid;
  gap: 14px;
}

.export-filter label,
.pipeline-filter label,
.visit-filter label,
.offer-filter label,
.deal-filter label,
.property-filter label,
.owner-filter label,
.filter-bar label {
  grid-column: span 3;
}

.export-filter label:has([name="q"]),
.pipeline-filter label:has([name="q"]),
.visit-filter label:has([name="q"]),
.offer-filter label:has([name="q"]),
.deal-filter label:has([name="q"]),
.property-filter label:has([name="q"]),
.owner-filter label:has([name="q"]),
.filter-bar label:has([name="code"]),
.filter-bar label:has([name="sector"]) {
  grid-column: span 4;
}

.export-filter label:has([name*="date"]),
.pipeline-filter label:has([name*="date"]),
.visit-filter label:has([name*="date"]),
.offer-filter label:has([name*="date"]),
.deal-filter label:has([name*="date"]),
.filter-bar label:has([name*="price"]),
.filter-bar label:has([name*="area"]),
.filter-bar label:has([name="bedrooms"]),
.filter-bar label:has([name="bathrooms"]),
.filter-bar label:has([name="parking_spots"]) {
  grid-column: span 2;
}

.filter-bar button,
.filter-bar .ghost-button,
.export-filter button,
.pipeline-filter button,
.visit-filter button,
.offer-filter button,
.deal-filter button,
.property-filter button,
.owner-filter button,
.owner-filter .ghost-button {
  grid-column: span 2;
}

.catalog-filter {
  gap: 18px;
  grid-template-columns: 1fr;
  padding: 18px;
}

.catalog-filter label,
.catalog-filter button,
.catalog-filter .ghost-button {
  grid-column: auto;
}

.catalog-search-main {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 2fr) minmax(160px, 0.8fr) minmax(180px, 0.9fr) auto;
}

.catalog-search-field input {
  font-size: 16px;
  min-height: 48px;
}

.catalog-filter-actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.catalog-filter-actions button,
.catalog-filter-actions .ghost-button {
  min-width: 128px;
}

.catalog-filter-summary {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0;
}

.catalog-filter-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.catalog-filter-summary span:not(:first-of-type) {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.catalog-advanced-panel {
  display: grid;
  gap: 16px;
}

.catalog-advanced-panel summary {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 6px 12px;
  list-style: none;
  padding-bottom: 14px;
}

.catalog-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.catalog-advanced-panel summary::before {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  content: "+";
  display: inline-grid;
  font-size: 18px;
  height: 26px;
  place-items: center;
  width: 26px;
}

.catalog-advanced-panel[open] summary::before {
  content: "-";
}

.catalog-advanced-panel summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.catalog-advanced-content {
  display: grid;
  gap: 16px;
}

.catalog-filter-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  min-width: 0;
  padding: 16px 0 0;
}

.catalog-filter-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.catalog-filter-group legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
  padding-right: 12px;
  text-transform: uppercase;
}

.catalog-filter-row {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.catalog-filter-row label {
  grid-column: span 3;
}

.catalog-filter-row .wide-filter-field {
  grid-column: span 6;
}

.catalog-filter-row-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 760px;
}

.catalog-filter-row-compact label {
  grid-column: span 2;
}

.catalog-advanced-actions {
  align-items: end;
  display: flex;
  gap: 10px;
  grid-column: span 3;
}

.catalog-advanced-actions button,
.catalog-advanced-actions .ghost-button {
  min-width: 128px;
}

.export-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.pipeline-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.visit-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.offer-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.deal-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.property-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.owner-filter {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

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

.visit-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 260px;
  padding: 16px 0;
}

.visit-row strong,
.visit-row span {
  display: block;
}

.visit-row span,
.visit-row p {
  color: var(--muted);
}

.visit-row form {
  display: grid;
  gap: 10px;
}

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

.media-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.media-item img {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  object-fit: cover;
  width: 100%;
}

.media-item form,
.stacked-actions {
  display: grid;
  gap: 10px;
}

.danger-button {
  background: var(--danger);
  border-color: var(--danger);
}

.follow-up-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.follow-up-strip article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.follow-up-strip strong {
  display: block;
  margin-top: 8px;
}

.follow-up-strip p {
  color: var(--muted);
  margin: 8px 0 0;
}

.follow-up-badge,
.lead-next-contact {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.follow-up-badge {
  background: #e8f6f1;
  border: 1px solid #b7dfd1;
  border-radius: 999px;
  display: inline-flex;
  padding: 4px 8px;
}

.lead-next-contact {
  background: #f8efd9;
  border: 1px solid #e1c781;
  border-radius: var(--radius-sm);
  padding: 8px;
}

.checklist-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checklist-readout span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
}

.checklist-readout .is-checked {
  background: #e8f6f1;
  border-color: #b7dfd1;
  color: var(--accent-dark);
}

.amenity-checklist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
}

.amenity-checklist legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.amenity-checklist > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amenity-checklist label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  text-transform: none;
}

.amenity-checklist input {
  min-height: auto;
  width: auto;
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-grid {
  display: grid;
  gap: 14px;
  grid-auto-flow: row dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.settings-grid textarea {
  border: 1px solid var(--line);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.checkbox-field {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  text-transform: none;
}

.checkbox-field input {
  min-height: auto;
  width: auto;
}

.settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.app-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1320px;
  padding: 22px;
}

.app-form-compact {
  max-width: 1080px;
}

.app-form-narrow {
  max-width: 760px;
}

.app-form-header,
.app-form-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.app-form-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.app-form-header h2 {
  font-size: 26px;
}

.app-form-header p,
.app-section-header p {
  color: var(--muted);
  margin: 6px 0 0;
}

.app-form-header-actions,
.app-form-actions {
  flex-wrap: wrap;
}

.app-form-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.app-section-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.app-section-header h3 {
  font-size: 18px;
  margin: 0;
}

.app-form-grid {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-auto-flow: row dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.app-field {
  grid-column: span 3;
  min-width: 0;
}

.app-field-xs {
  grid-column: span 1;
}

.app-field-sm {
  grid-column: span 2;
}

.app-field-md {
  grid-column: span 3;
}

.app-field-lg {
  grid-column: span 4;
}

.app-field-xl {
  grid-column: span 6;
}

.app-field-full,
.app-field:has(textarea),
.app-field:has(input[type="file"]) {
  grid-column: 1 / -1;
}

.app-field-check {
  align-items: center;
  align-self: end;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px;
  text-transform: none;
}

.app-field-check input {
  min-height: auto;
  width: auto;
}

.app-field input,
.app-field select,
.app-field textarea {
  width: 100%;
}

.app-field-xs input,
.app-field-xs select,
.app-field-sm input,
.app-field-sm select {
  max-width: 100%;
}

.app-form-grid-compact {
  max-width: 680px;
}

.property-physical-grid {
  gap: 16px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  max-width: 760px;
}

.property-physical-field {
  grid-column: auto;
  min-width: 120px;
}

.property-physical-field input {
  max-width: 100%;
}

.app-amenities {
  border: 0;
  margin: 0;
  padding: 0;
}

.app-amenities legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.app-amenities > div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-amenities label {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: flex;
  flex-direction: row;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  text-transform: none;
}

.app-amenities label:hover {
  background: var(--accent-soft);
  border-color: #b7dfd1;
}

.app-amenities input {
  min-height: auto;
  width: auto;
}

.app-form-actions {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  justify-content: flex-end;
  margin: 4px -22px -22px;
  padding: 14px 22px;
  position: sticky;
  z-index: 3;
}

.app-form .form-section-title {
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
  margin: 4px 0 2px;
  padding-bottom: 10px;
}

.app-form .form-section-title h2 {
  font-size: 18px;
}

.app-form .form-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin: 4px -22px -22px;
  padding: 14px 22px;
  position: sticky;
  z-index: 3;
}

.app-form .form-actions .ghost-button,
.app-form .form-actions button {
  min-width: 140px;
}

.app-form .dashboard-panel {
  box-shadow: none;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .app-form-grid,
  .property-form-grid,
  .settings-grid,
  .owner-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .app-field-xs,
  .app-field-sm,
  .field-xs,
  .field-small,
  .field-code,
  .field-money {
    grid-column: span 2;
  }

  .app-field-md,
  .app-field-lg,
  .field-medium {
    grid-column: span 3;
  }

  .app-field-xl,
  .field-title,
  .app-field-full,
  .wide-field {
    grid-column: 1 / -1;
  }

  .app-amenities > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-form {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    padding: 16px;
  }

  .app-form-header,
  .app-form-actions,
  .app-form .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-form-header-actions,
  .app-form-actions,
  .app-form .form-actions {
    width: 100%;
  }

  .app-form-header-actions > *,
  .app-form-actions > *,
  .app-form .form-actions > * {
    justify-content: center;
    width: 100%;
  }

  .app-form-section {
    padding: 14px;
  }

  .app-form-grid,
  .property-form-grid,
  .settings-grid,
  .owner-form {
    grid-template-columns: 1fr;
  }

  .app-field,
  .app-field-xs,
  .app-field-sm,
  .app-field-md,
  .app-field-lg,
  .app-field-xl,
  .app-field-full,
  .field-xs,
  .field-small,
  .field-code,
  .field-money,
  .field-medium,
  .field-title,
  .wide-field {
    grid-column: 1 / -1;
  }

  .app-amenities > div {
    grid-template-columns: 1fr;
  }

  .app-form-actions {
    margin: 0 -16px -16px;
    padding: 12px 16px;
    position: static;
  }

  .app-form .form-actions {
    margin: 0 -16px -16px;
    padding: 12px 16px;
    position: static;
  }
}

.owner-form,
.settings-form,
.follow-up-form,
.lead-form,
.mortgage-form {
  --field-gap: 14px;
}

.owner-form label,
.settings-grid label,
.follow-up-form label,
.lead-form label,
.mortgage-form label {
  grid-column: span 3;
  min-width: 0;
}

.follow-up-form label,
.lead-form label {
  grid-column: span 1;
}

.mortgage-form label {
  grid-column: span 2;
}

.owner-form label:has(textarea),
.settings-grid label:has(textarea),
.follow-up-form label:has(textarea),
.lead-form label:has(textarea) {
  grid-column: 1 / -1;
}

.owner-form label:has(input[type="file"]),
.settings-grid label:has(input[type="file"]) {
  grid-column: 1 / -1;
}

.owner-form label:has(input[type="checkbox"]),
.settings-grid label:has(input[type="checkbox"]),
.follow-up-form label:has(input[type="checkbox"]) {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  text-transform: none;
}

.checklist-grid {
  display: grid;
  gap: 0.65rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.checklist-grid label {
  margin: 0;
}

.owner-form input[type="checkbox"],
.settings-grid input[type="checkbox"],
.follow-up-form input[type="checkbox"],
.mortgage-form input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.owner-form label:has([name="currency"]),
.settings-grid label:has([name="currency"]),
.follow-up-form label:has([name="currency"]),
.owner-form label:has([name="rating"]),
.settings-grid label:has([name="rating"]),
.owner-form label:has([name="display_order"]),
.settings-grid label:has([name="display_order"]),
.owner-form label:has([name="order"]),
.settings-grid label:has([name="order"]),
.follow-up-form label:has([name="order"]),
.owner-form label:has([name="bedrooms"]),
.settings-grid label:has([name="bedrooms"]),
.owner-form label:has([name="bathrooms"]),
.settings-grid label:has([name="bathrooms"]),
.owner-form label:has([name="parking_spots"]),
.settings-grid label:has([name="parking_spots"]),
.owner-form label:has([name="annual_rate"]),
.settings-grid label:has([name="annual_rate"]),
.mortgage-form label:has([name="annual_rate"]),
.owner-form label:has([name="term_years"]),
.settings-grid label:has([name="term_years"]),
.mortgage-form label:has([name="term_years"]) {
  grid-column: span 1;
}

.owner-form label:has([name*="phone"]),
.settings-grid label:has([name*="phone"]),
.owner-form label:has([name*="email"]),
.settings-grid label:has([name*="email"]),
.owner-form label:has([name*="amount"]),
.settings-grid label:has([name*="amount"]),
.owner-form label:has([name*="price"]),
.settings-grid label:has([name*="price"]),
.owner-form label:has([name="area_m2"]),
.settings-grid label:has([name="area_m2"]),
.owner-form label:has([name="latitude"]),
.settings-grid label:has([name="latitude"]),
.owner-form label:has([name="longitude"]),
.settings-grid label:has([name="longitude"]),
.owner-form label:has([name="document_id"]),
.settings-grid label:has([name="document_id"]),
.owner-form label:has([name="tax_id"]),
.settings-grid label:has([name="tax_id"]) {
  grid-column: span 2;
}

.owner-form label:has([name*="url"]),
.settings-grid label:has([name*="url"]),
.owner-form label:has([name*="address"]),
.settings-grid label:has([name*="address"]) {
  grid-column: span 3;
}

.owner-form label:has([name="full_name"]),
.settings-grid label:has([name="full_name"]),
.owner-form label:has([name="contact_name"]),
.settings-grid label:has([name="contact_name"]),
.owner-form label:has([name="client_name"]),
.settings-grid label:has([name="client_name"]),
.owner-form label:has([name="trade_name"]),
.settings-grid label:has([name="trade_name"]),
.owner-form label:has([name="legal_name"]),
.settings-grid label:has([name="legal_name"]),
.owner-form label:has([name="title"]),
.settings-grid label:has([name="title"]),
.owner-form label:has([name="location_text"]),
.settings-grid label:has([name="location_text"]),
.owner-form label:has([name="assigned_agent"]),
.settings-grid label:has([name="assigned_agent"]),
.owner-form label:has([name="agent"]),
.settings-grid label:has([name="agent"]),
.owner-form label:has([name="owner"]),
.settings-grid label:has([name="owner"]),
.owner-form label:has([name="customer"]),
.settings-grid label:has([name="customer"]),
.owner-form label:has([name="property"]),
.settings-grid label:has([name="property"]),
.owner-form label:has([name="city"]),
.settings-grid label:has([name="city"]),
.owner-form label:has([name="sector"]),
.settings-grid label:has([name="sector"]) {
  grid-column: span 3;
}

.owner-form label:has([name="default_meta_title"]),
.settings-grid label:has([name="default_meta_title"]),
.owner-form label:has([name="meta_title"]),
.settings-grid label:has([name="meta_title"]),
.owner-form label:has([name="slug"]),
.settings-grid label:has([name="slug"]) {
  grid-column: span 3;
}

.owner-form input,
.owner-form select,
.owner-form textarea,
.settings-form input,
.settings-form select,
.settings-form textarea,
.follow-up-form input,
.follow-up-form select,
.follow-up-form textarea,
.lead-form input,
.lead-form textarea {
  width: 100%;
}

.owner-form label:has([name="currency"]) select,
.settings-grid label:has([name="currency"]) select,
.follow-up-form label:has([name="currency"]) select,
.owner-form label:has([name="bedrooms"]) input,
.settings-grid label:has([name="bedrooms"]) input,
.owner-form label:has([name="bathrooms"]) input,
.settings-grid label:has([name="bathrooms"]) input,
.owner-form label:has([name="parking_spots"]) input,
.settings-grid label:has([name="parking_spots"]) input,
.owner-form label:has([name="order"]) input,
.settings-grid label:has([name="order"]) input,
.follow-up-form label:has([name="order"]) input,
.owner-form label:has([name="rating"]) input,
.settings-grid label:has([name="rating"]) input,
.owner-form label:has([name="annual_rate"]) input,
.settings-grid label:has([name="annual_rate"]) input,
.mortgage-form label:has([name="annual_rate"]) input,
.owner-form label:has([name="term_years"]) input,
.settings-grid label:has([name="term_years"]) input,
.mortgage-form label:has([name="term_years"]) input {
  max-width: 150px;
}

.owner-form label:has([name*="phone"]) input,
.settings-grid label:has([name*="phone"]) input,
.owner-form label:has([name*="email"]) input,
.settings-grid label:has([name*="email"]) input,
.owner-form label:has([name="price"]) input,
.settings-grid label:has([name="price"]) input,
.owner-form label:has([name="area_m2"]) input,
.settings-grid label:has([name="area_m2"]) input,
.owner-form label:has([name="latitude"]) input,
.settings-grid label:has([name="latitude"]) input,
.owner-form label:has([name="longitude"]) input,
.settings-grid label:has([name="longitude"]) input {
  max-width: 260px;
}

.form-surface,
.dashboard-panel form {
  position: relative;
}

.form-surface:focus-within,
.dashboard-panel:has(form:focus-within) {
  border-color: #c7d8d2;
}

.document-checklist,
.amenity-checklist {
  background: #ffffff;
}

.document-checklist label,
.amenity-checklist label {
  border-radius: var(--radius-sm);
  padding: 7px 8px;
}

.document-checklist label:hover,
.amenity-checklist label:hover {
  background: var(--accent-soft);
}

.professional-form .settings-grid {
  align-items: start;
}

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

.field-xs {
  grid-column: span 1;
}

.field-small,
.field-code,
.field-money {
  grid-column: span 2;
}

.field-medium {
  grid-column: span 3;
}

.field-title {
  grid-column: span 4;
}

input[type="file"] {
  background: var(--soft);
  border-style: dashed;
  cursor: pointer;
}

.media-manager-layout {
  align-items: start;
}

.media-preview {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.media-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-preview span {
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  left: 10px;
  padding: 5px 8px;
  position: absolute;
  top: 10px;
}

.detail-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.detail-quick-facts div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 118px;
  padding: 10px 12px;
}

.detail-quick-facts dd {
  color: var(--accent-dark);
  font-weight: 700;
}

.property-showcase {
  align-items: start;
}

.property-gallery figure {
  border-radius: var(--radius);
  position: relative;
}

.property-gallery figcaption {
  background: rgba(23, 33, 31, 0.74);
  bottom: 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  left: 10px;
  padding: 6px 10px;
  position: absolute;
}

.agent-contact-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
}

.agent-contact-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.property-spec-panel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.property-spec-panel h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.property-spec-panel .feature-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.amenity-showcase {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 28px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.amenity-grid span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-dark);
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
}

.amenity-grid span::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.mortgage-section {
  align-items: start;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
}

.mortgage-copy h2 {
  max-width: 520px;
}

.mortgage-copy p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

.mortgage-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mortgage-benefits span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.mortgage-section .mortgage-box {
  background: #ffffff;
  box-shadow: var(--shadow);
  margin-top: 0;
}

.mortgage-section .mortgage-form {
  gap: 18px;
  grid-template-columns: 1fr;
}

.mortgage-form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  padding: 16px;
}

.mortgage-form-section legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 8px;
  text-transform: uppercase;
}

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

.mortgage-section .mortgage-form .mortgage-field {
  grid-column: span 4;
}

.mortgage-section .mortgage-form .mortgage-loan-grid .mortgage-field {
  grid-column: span 3;
}

.mortgage-section .mortgage-form .mortgage-field-small {
  grid-column: span 2;
}

.mortgage-request-row {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.55fr);
}

.mortgage-preapproval-card {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  text-transform: none;
  grid-column: auto;
}

.mortgage-preapproval-card span {
  display: grid;
  gap: 2px;
}

.mortgage-preapproval-card strong {
  color: var(--ink);
  font-size: 14px;
}

.mortgage-preapproval-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mortgage-request-row button {
  grid-column: auto;
  min-height: 54px;
}

img {
  max-width: 100%;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  display: block;
  padding: 0;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 72px);
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  width: 38px;
}

.nav-toggle {
  display: none;
}

.main-nav {
  justify-content: center;
}

.main-nav a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: #bdd5d8;
  color: var(--accent-dark);
}

.header-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: end;
}

.header-cta {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  min-height: 40px;
  padding: 8px 13px;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

.profile-menu-panel a,
.profile-menu-panel button {
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--ink);
  justify-content: start;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
  transform: none;
}

.profile-menu-panel a:hover,
.profile-menu-panel button:hover {
  background: var(--soft);
  box-shadow: none;
  color: var(--accent-dark);
  transform: none;
}

.login-menu-panel {
  gap: 12px;
  min-width: min(320px, calc(100vw - 40px));
  padding: 18px;
}

.header-login-form {
  display: grid;
  gap: 7px;
}

.header-login-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.header-login-form input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.header-login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: 0;
}

.header-login-form button {
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  justify-content: center;
  margin-top: 5px;
  text-align: center;
}

.hero {
  min-height: 620px;
}

.hero-actions {
  align-items: center;
}

.hero-whatsapp {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.hero-owner-link {
  color: #ffffff;
  display: inline-flex;
  min-height: 40px;
  padding: 8px 0;
}

.hero-contact {
  list-style: none;
  padding: 0;
}

.hero-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.search-panel {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.search-panel button {
  align-self: end;
}

.search-advanced-code {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-advanced-code summary {
  cursor: pointer;
  min-height: 40px;
  padding-top: 10px;
}

.search-advanced-code label {
  margin-top: 8px;
}

.location-section {
  background: var(--soft);
}

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

.location-grid a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 18px;
}

.location-grid a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.location-grid span,
.location-grid small,
.property-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.location-grid strong {
  font-size: 22px;
  line-height: 1.1;
}

.consent-field {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
  text-transform: none;
}

.consent-field input {
  margin-top: 3px;
  min-height: auto;
  width: auto;
}

.consent-field .errorlist {
  grid-column: 1 / -1;
}

.legal-page {
  padding: 64px 20px 96px;
}

.legal-content {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border-color, #d8dfdc);
  border-radius: 24px;
  background: #fff;
}

.legal-content h1 {
  margin-bottom: 28px;
}

.legal-content h2 {
  margin: 32px 0 10px;
}

.legal-content p {
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color, #d8dfdc);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f3f6f4;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-notice {
  margin-top: 36px;
  padding: 16px;
  border-left: 4px solid #c28d46;
  background: #fff8ec;
}

.cookie-banner {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  width: min(520px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid #cfd8d4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(20 38 33 / 20%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 14px;
}

.cookie-banner > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.cookie-banner div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-privacy-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-privacy-button:hover,
.footer-privacy-button:focus-visible {
  text-decoration: underline;
}

.map-frame {
  position: relative;
  min-height: 280px;
  background: #eef2f0;
}

.map-consent-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.property-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.property-card-link {
  inset: 0;
  position: absolute;
  z-index: 1;
}

.property-card a,
.property-card button {
  position: relative;
  z-index: 2;
}

.property-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.property-code {
  display: inline-flex;
  margin-top: 8px;
}

.property-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.property-card-action {
  margin-top: 0;
}

.property-card-action.secondary {
  color: var(--muted);
}

.agent-preview-card {
  grid-template-columns: 74px minmax(0, 1fr);
}

.agent-preview-media {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  height: 68px;
  overflow: hidden;
  place-items: center;
  width: 68px;
}

.agent-preview-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.agent-preview-card p,
.agent-preview-card > a {
  grid-column: 1 / -1;
}

.site-footer {
  align-items: start;
  background: #ffffff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr));
}

.site-footer nav,
.footer-contact,
.footer-brand {
  display: grid;
  gap: 8px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 16px;
}

.floating-whatsapp {
  background: #1f9d72;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 12px 16px;
  position: fixed;
  right: 18px;
  z-index: 30;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(180px, 260px) auto;
  }

  .nav-toggle {
    align-items: center;
    background: #ffffff;
    border-color: var(--line);
    color: var(--accent-dark);
    display: inline-flex;
    gap: 8px;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-nav-open .main-nav,
  .site-header.is-nav-open .header-actions {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .site-header.is-nav-open .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header.is-nav-open .main-nav a,
  .site-header.is-nav-open .header-cta {
    justify-content: center;
  }

  .site-header.is-nav-open .header-actions {
    grid-template-columns: 1fr;
  }

  .profile-menu-panel {
    position: static;
  }
}

/* Refined public homepage */
.home-page {
  background: #ffffff;
}

.home-page .hero {
  align-items: center;
  display: flex;
  min-height: 660px;
  padding-block: 68px 54px;
}

.home-page .hero-inner {
  margin-inline: auto;
  max-width: 1320px;
  width: 100%;
}

.home-page .hero h1 {
  font-size: clamp(44px, 5.7vw, 76px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 880px;
}

.home-page .hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.55;
  max-width: 650px;
}

.home-page .hero-actions {
  gap: 10px;
  margin-top: 24px;
}

.home-page .hero-actions .primary-button,
.home-page .hero-actions .ghost-button {
  min-height: 46px;
  padding-inline: 18px;
}

.home-page .hero-owner-link {
  flex-basis: 100%;
  font-size: 14px;
  min-height: auto;
  width: fit-content;
}

.home-page .hero-contact {
  font-size: 13px;
  opacity: 0.9;
}

.home-page .search-panel {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 54px rgba(10, 25, 38, 0.3);
  color: var(--ink);
  gap: 12px;
  grid-template-columns: 2fr 2.4fr 2fr 1.7fr 1.2fr 1.7fr;
  margin-top: 32px;
  padding: 18px;
}

.home-page .search-panel label {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.home-page .search-panel input,
.home-page .search-panel select,
.home-page .search-panel button {
  min-height: 44px;
}

.home-page .search-panel .search-advanced-code {
  grid-column: 1 / -1;
}

.home-page .search-panel .search-advanced-code summary {
  min-height: auto;
  padding: 2px 0;
}

.home-page .hero-stats {
  gap: 0;
  margin-top: 20px;
  max-width: 620px;
}

.home-page .hero-stats article {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 4px 18px;
}

.home-page .hero-stats article:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-page .hero-stats strong {
  font-size: 24px;
}

.home-page .intent-strip,
.home-page .trust-strip,
.home-page .home-lead-section,
.home-page .owner-cta-section {
  margin-inline: auto;
  max-width: 1320px;
}

.home-page .intent-strip {
  border: 0;
  gap: 10px;
  padding: 28px clamp(20px, 5vw, 56px) 12px;
}

.home-page .intent-strip a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 124px;
  padding: 18px;
}

.home-page .intent-strip a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.home-page .intent-strip strong {
  font-size: 15px;
  line-height: 1.45;
}

.home-page .section {
  padding-block: 46px;
}

.home-page .section-heading {
  align-items: end;
  margin-bottom: 24px;
}

.home-page .section-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 4px 0 0;
}

.home-page .location-section {
  background: #f5f8fa;
}

.home-page .location-grid {
  gap: 10px;
}

.home-page .location-grid a {
  border-color: transparent;
  min-height: 112px;
  padding: 16px;
}

.home-page .location-grid strong {
  font-size: 20px;
}

.home-page .trust-strip {
  background: #ffffff;
  border: 0;
  gap: 0;
  padding: 34px clamp(20px, 5vw, 56px);
}

.home-page .trust-strip article {
  border-left: 1px solid var(--line);
  padding: 2px 26px;
}

.home-page .trust-strip article:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-page .trust-strip strong {
  font-size: 17px;
}

.home-page .trust-strip p {
  font-size: 14px;
  line-height: 1.5;
}

.home-page .home-lead-section {
  background: var(--navy);
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  margin-block: 28px;
  padding: clamp(28px, 5vw, 52px);
}

.home-page .lead-intro p {
  color: rgba(255, 255, 255, 0.75);
}

.home-page .lead-benefits {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.home-page .homepage-lead-form {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.home-page .property-grid {
  gap: 16px;
}

.home-page .property-card {
  border-color: #d8e2e9;
  box-shadow: 0 10px 28px rgba(27, 45, 62, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page .property-card:hover {
  box-shadow: 0 18px 38px rgba(27, 45, 62, 0.14);
  transform: translateY(-3px);
}

.home-page .process-section {
  background: #f5f8fa;
}

.home-page .process-grid {
  gap: 10px;
}

.home-page .process-grid article {
  border: 0;
  border-top: 3px solid var(--teal);
  min-height: 168px;
}

.home-page .testimonial-section {
  background: #ffffff;
}

.home-page .testimonial-card {
  border: 0;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.home-page .agent-preview-card {
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.home-page .owner-cta-section {
  background: linear-gradient(120deg, var(--navy), #234c68);
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  margin-block: 24px 54px;
  padding: 34px clamp(24px, 5vw, 52px);
}

.home-page .owner-cta-section p {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .home-page .hero {
    min-height: auto;
    padding-block: 56px 42px;
  }

  .home-page .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .search-panel button,
  .home-page .search-panel .search-advanced-code {
    grid-column: 1 / -1;
  }

  .home-page .intent-strip,
  .home-page .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .trust-strip article,
  .home-page .trust-strip article:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px;
  }
}

@media (max-width: 620px) {
  .home-page .hero h1 {
    font-size: 42px;
  }

  .home-page .search-panel,
  .home-page .intent-strip,
  .home-page .trust-strip {
    grid-template-columns: 1fr;
  }

  .home-page .hero-stats strong {
    font-size: 20px;
  }

  .home-page .hero-stats span {
    font-size: 10px;
  }

  .home-page .home-lead-section,
  .home-page .owner-cta-section {
    border-radius: 0;
    margin-block: 0;
  }
}

@media (max-width: 900px) {
  .location-grid,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 12px 20px;
  }

  .brand {
    flex-basis: auto;
    max-width: none;
  }

  .site-header.is-nav-open .main-nav,
  .search-panel,
  .location-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    border-color: var(--line);
    border-radius: var(--radius-sm);
    justify-content: center;
    min-height: 42px;
  }

  .hero-actions > * {
    flex: 1 1 100%;
  }

  .hero-owner-link {
    justify-content: center;
  }

  .search-panel label:nth-of-type(4) {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: 12px;
    left: 20px;
    right: 20px;
    text-align: center;
  }
}

.dashboard-panel > p,
.lead-card p,
.visit-row p,
.record-list p {
  margin: 6px 0 0;
}

.visit-row:first-child,
.record-list article:first-child {
  border-top: 0;
}

.visit-row form,
.lead-card form {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.dashboard-list-page .dashboard-panel {
  box-shadow: var(--shadow-soft);
}

.filter-bar label,
.search-panel label,
.dashboard-panel label {
  min-width: 0;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select,
.dashboard-panel input,
.dashboard-panel select,
.dashboard-panel textarea {
  width: 100%;
}

.property-body h3 a,
.blog-card h2 a,
.agent-card h2 a,
.lead-card strong a,
.record-list strong a,
.visit-row strong a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.property-body h3 a:hover,
.blog-card h2 a:hover,
.agent-card h2 a:hover,
.lead-card strong a:hover,
.record-list strong a:hover,
.visit-row strong a:hover,
.text-link:hover {
  text-decoration: underline;
}

.section-heading .text-link,
.panel-heading > a {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .search-panel,
  .filter-bar,
  .property-grid,
  .testimonial-grid,
  .trust-strip,
  .intent-strip,
  .home-lead-section,
  .lead-form-grid,
  .process-grid,
  .agent-preview-grid,
  .owner-cta-section,
  .hero-stats,
  .agent-grid,
  .agent-hero,
  .blog-grid,
  .detail-layout,
  .detail-content,
  .property-gallery,
  .video-list,
  .mortgage-form,
  .owner-layout,
  .info-grid,
  .contact-grid,
  .about-hero.has-image,
  .about-purpose-grid,
  .about-framework,
  .about-coverage-section,
  .owner-form,
  .document-checklist,
  .metric-grid,
  .dashboard-layout,
  .pipeline-grid,
  .kanban-board,
  .lead-detail-layout,
  .inline-filter,
  .export-filter,
  .pipeline-filter,
  .visit-filter,
  .offer-filter,
  .deal-filter,
  .property-filter,
  .owner-filter,
  .follow-up-strip,
  .follow-up-form,
  .settings-grid,
  .property-form-grid,
  .amenity-checklist > div,
  .amenity-grid,
  .mortgage-section,
  .media-grid,
  .visit-row {
    grid-template-columns: 1fr;
  }

  .about-closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-facts dl,
  .about-difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-search-main,
  .catalog-filter-row,
  .catalog-filter-row-compact,
  .mortgage-form-grid,
  .mortgage-request-row {
    grid-template-columns: 1fr;
  }

  .catalog-filter-actions,
  .catalog-advanced-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .property-physical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .dashboard-sidebar-state {
    display: none;
  }

  .dashboard-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    box-shadow: 0 12px 28px rgba(23, 33, 31, 0.06);
    gap: 12px;
    max-height: none;
    padding: 14px clamp(20px, 5vw, 72px);
    position: sticky;
    top: 0;
    width: auto;
  }

  .dashboard-nav-header {
    min-height: 0;
  }

  .dashboard-nav-toggle {
    display: none;
  }

  .dashboard-nav-groups {
    gap: 10px;
  }

  .dashboard-nav-group {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dashboard-nav-title {
    flex: 0 0 100%;
    padding: 0;
  }

  .dashboard-sidebar a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 10px;
  }

  .dashboard-page:has(.dashboard-sidebar) .dashboard-header,
  .dashboard-page:has(.dashboard-sidebar) .metric-grid,
  .dashboard-page:has(.dashboard-sidebar) .dashboard-layout,
  .dashboard-page:has(.dashboard-sidebar) .kanban-board,
  .dashboard-page:has(.dashboard-sidebar) .lead-detail-layout,
  .dashboard-page:has(.dashboard-sidebar) .dashboard-list-page {
    padding-left: clamp(20px, 5vw, 72px);
  }

  .contact-panel {
    position: static;
  }

  .dashboard-panel:first-child,
  .lead-notes-panel,
  .settings-grid .wide-field,
  .owner-form label,
  .settings-grid label,
  .follow-up-form label,
  .lead-form label,
  .mortgage-form label,
  .filter-bar label,
  .export-filter label,
  .pipeline-filter label,
  .visit-filter label,
  .offer-filter label,
  .deal-filter label,
  .property-filter label,
  .owner-filter label,
  .filter-bar button,
  .filter-bar .ghost-button,
  .export-filter button,
  .pipeline-filter button,
  .visit-filter button,
  .offer-filter button,
  .deal-filter button,
  .property-filter button,
  .owner-filter button,
  .field-xs,
  .field-small,
  .field-code,
  .field-money,
  .field-medium,
  .field-title,
  .mortgage-section .mortgage-form label {
    grid-column: auto;
  }

  .catalog-filter-row label,
  .catalog-filter-row .wide-filter-field,
  .catalog-advanced-actions,
  .mortgage-section .mortgage-form .mortgage-field,
  .mortgage-section .mortgage-form .mortgage-loan-grid .mortgage-field,
  .mortgage-section .mortgage-form .mortgage-field-small,
  .mortgage-preapproval-card,
  .mortgage-request-row button {
    grid-column: auto;
  }

  .site-header,
  .section-heading,
  .detail-hero {
    align-items: start;
    flex-direction: column;
  }

  .site-header {
    gap: 14px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .intent-strip {
    border-top: 1px solid var(--line);
  }

  .intent-strip a {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .home-lead-section {
    padding-top: 34px;
  }

  .lead-message-field {
    grid-column: auto;
  }

  .panel-heading,
  .form-actions,
  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-heading > a,
  .heading-actions a,
  .quick-links a,
  .form-actions > *,
  .settings-actions > * {
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 42px;
  }
}

@media (max-width: 620px) {
  .about-hero {
    min-height: auto;
    padding-block: 34px;
  }

  .about-hero h1 {
    font-size: 38px;
  }

  .about-facts dl,
  .about-difference-grid,
  .about-coverage-list {
    grid-template-columns: 1fr;
  }

  .about-facts dl div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-bottom: 10px;
  }

  .about-facts dl div:last-child {
    border-bottom: 0;
  }

  .about-purpose-card {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 20px;
  }

  .about-section,
  .about-coverage-section {
    padding-block: 34px;
  }

  .site-header,
  .site-footer {
    padding: 16px 20px;
  }

  .site-header {
    gap: 10px;
  }

  .brand {
    font-size: 17px;
    max-width: 100%;
  }

  .site-header .brand img {
    height: 38px;
    max-height: 38px;
    max-width: 128px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a,
  .nav-logout-form button {
    font-size: 13px;
    min-height: 34px;
    padding: 6px 9px;
  }

  .main-nav .nav-icon {
    height: 14px;
    width: 14px;
  }

  .hero {
    padding: 64px 20px 28px;
  }

  .hero h1,
  .catalog-header h1,
  .detail-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions > * {
    flex: 1 1 148px;
    min-height: 42px;
  }

  .hero-contact {
    display: grid;
    gap: 4px;
  }

  .hero-contact span::before {
    content: "";
  }

  .search-panel {
    margin-top: 28px;
    padding: 16px;
  }

  .search-panel label:nth-of-type(4) {
    display: none;
  }

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

  .hero-stats article {
    padding: 10px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats span {
    font-size: 10px;
  }

  .section,
  .page-layout,
  .home-lead-section,
  .owner-cta-section,
  .trust-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .property-media,
  .gallery-placeholder {
    min-height: 190px;
  }

  .property-physical-grid {
    grid-template-columns: 1fr;
  }

  .image-upload-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }
}

/* Homepage/nav overrides must remain after legacy responsive rules. */
.site-header {
  display: block;
  padding: 0;
}

@media (max-width: 1180px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-nav-open .main-nav,
  .site-header.is-nav-open .header-actions {
    display: grid;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 12px 20px;
  }

  .site-header.is-nav-open .main-nav,
  .search-panel,
  .location-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .search-panel label:nth-of-type(4) {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* DeCapa-inspired brand system: navy structure, blue actions, teal accents. */
.header-inner {
  margin-inline: auto;
  max-width: 1480px;
  width: 100%;
}

.brand-mark {
  background: var(--navy);
  box-shadow: inset 0 -4px 0 var(--teal);
}

.header-cta,
button,
.primary-button {
  background: var(--blue);
  border-color: var(--blue);
}

.header-cta:hover,
button:hover,
.primary-button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.hero {
  background-image:
    linear-gradient(90deg, rgba(27, 45, 62, 0.96), rgba(27, 45, 62, 0.72) 58%, rgba(27, 45, 62, 0.38)),
    url("../images/hero-inmobiliaria.webp");
}

.eyebrow,
.dashboard-header .eyebrow {
  color: var(--teal);
  letter-spacing: 0.08em;
}

.dashboard-header {
  background: linear-gradient(120deg, var(--navy), #223f57 72%, #265a70);
  border-bottom: 4px solid var(--teal);
  color: #ffffff;
}

.dashboard-header p {
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-header > *,
.section > *,
.page-layout > *,
.catalog-header > *,
.detail-hero > *,
.owner-hero > * {
  margin-inline: auto;
  max-width: 1320px;
  width: 100%;
}

.dashboard-sidebar {
  border-right-color: #bfd0dd;
  box-shadow: 14px 0 34px rgba(27, 45, 62, 0.09);
}

.dashboard-sidebar a[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--teal);
}

.app-form,
.dashboard-panel,
.property-card,
.contact-panel {
  border-color: #c8d6e1;
  box-shadow: 0 12px 30px rgba(27, 45, 62, 0.07);
}

.app-form-section {
  border-left: 3px solid #d5e1eb;
}

.app-section-header h3,
.panel-heading h2 {
  color: var(--navy);
}

.site-footer {
  background: var(--navy);
  border-top: 4px solid var(--teal);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer strong,
.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #72d1d5;
}

/* Searchable relation selector. The native field remains in the form. */
.search-select {
  min-width: 0;
  position: relative;
  width: 100%;
}

.search-select-input {
  background:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%) calc(100% - 15px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--blue) 50%, transparent 50%) calc(100% - 10px) 50% / 5px 5px no-repeat,
    #ffffff;
  padding-right: 34px;
  width: 100%;
}

.search-select-input[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 95, 158, 0.16);
}

.search-select-native {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px !important;
}

.search-select-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(27, 45, 62, 0.18);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
}

.search-select-list[hidden] {
  display: none;
}

.search-select-option {
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  transform: none;
  width: 100%;
}

.search-select-option:hover,
.search-select-option.is-active,
.search-select-option[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--blue-dark);
  transform: none;
}

.search-select-empty {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  padding: 10px;
}

@media (max-width: 640px) {
  .dashboard-header {
    border-bottom-width: 3px;
  }

  .search-select-list {
    max-height: 220px;
  }
}

/* Compact institutional navigation and dedicated access screen. */
.header-inner {
  gap: clamp(18px, 2.2vw, 34px);
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) auto;
}

.main-nav {
  flex-wrap: nowrap;
  gap: 4px;
}

.nav-cluster {
  position: relative;
}

.nav-cluster summary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
  list-style: none;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.nav-cluster summary::-webkit-details-marker {
  display: none;
}

.nav-cluster summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 5px;
  margin-left: 2px;
  transform: rotate(45deg) translateY(-2px);
  width: 5px;
}

.nav-cluster summary:hover,
.nav-cluster summary[aria-current="page"],
.nav-cluster[open] summary {
  background: var(--accent-soft);
  border-color: #c1d5e6;
  color: var(--blue-dark);
}

.nav-cluster-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(27, 45, 62, 0.16);
  display: grid;
  gap: 3px;
  left: 0;
  min-width: 210px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 30;
}

.nav-cluster-panel a {
  border-radius: 7px;
  justify-content: flex-start;
  min-height: 38px;
  padding-inline: 11px;
}

.header-login-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #b9cce0;
  border-radius: 999px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  white-space: nowrap;
}

.header-login-link:hover {
  background: var(--accent-soft);
  border-color: var(--blue);
}

.institutional-login-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 156, 163, 0.2), transparent 28%),
    linear-gradient(135deg, #edf4f8, #f8fafc 48%, #e7f0f6);
  min-height: 100vh;
}

.institutional-login-page .auth-shell {
  border: 1px solid rgba(27, 45, 62, 0.14);
  border-top: 4px solid var(--teal);
  box-shadow: 0 28px 80px rgba(27, 45, 62, 0.2);
}

.institutional-login-page .auth-intro {
  background: linear-gradient(145deg, var(--navy), #214862 64%, #267d88);
}

.institutional-login-page .auth-brand img {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-support {
  display: grid;
  gap: 7px;
}

.auth-support p {
  margin: 0;
}

.auth-support a {
  color: var(--blue-dark);
  font-weight: 700;
}

.auth-back-link {
  margin-top: 5px;
}

@media (max-width: 1180px) {
  .nav-cluster {
    width: 100%;
  }

  .nav-cluster summary {
    justify-content: center;
    width: 100%;
  }

  .nav-cluster-panel {
    box-shadow: none;
    margin-top: 6px;
    position: static;
  }
}

/* Social navigation stays visible without adding pressure to the main menu. */
.footer-social {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.social-settings-grid label {
  grid-column: span 4;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .social-settings-grid label {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .social-settings-grid label {
    grid-column: 1 / -1;
  }
}

.social-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-menu a,
.social-rail a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  width: 40px;
}

.social-menu a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-icon {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.social-rail {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #c7d5e1;
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 16px 38px rgba(27, 45, 62, 0.16);
  display: grid;
  gap: 5px;
  left: 0;
  padding: 8px 7px 8px 6px;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 24;
}

.social-rail a {
  border-color: transparent;
  color: var(--blue-dark);
  height: 38px;
  width: 38px;
}

.social-rail a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  transform: translateX(2px);
}

.footer-map-link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  width: fit-content;
}

.footer-map-link .social-icon {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

@media (max-width: 1180px) {
  .social-rail {
    display: none;
  }
}

/* Refined public property detail */
.property-detail-page {
  background: #ffffff;
}

.property-detail-page .detail-hero {
  background: linear-gradient(145deg, #f7fafc, #edf3f7);
  display: block;
  margin: 0;
  padding: 38px clamp(20px, 5vw, 64px);
}

.property-detail-page .detail-hero-inner {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
  max-width: 1320px;
}

.property-detail-page .detail-back-link {
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.property-detail-page .detail-back-link:hover {
  color: var(--accent-dark);
}

.property-detail-page .detail-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 880px;
}

.property-detail-page .detail-location {
  color: var(--muted);
  font-size: 17px;
  margin: 14px 0 0;
}

.property-detail-page .detail-quick-facts {
  gap: 0;
  margin-top: 22px;
}

.property-detail-page .detail-quick-facts div {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  min-width: 108px;
  padding: 2px 18px;
}

.property-detail-page .detail-quick-facts div:first-child {
  border-left: 0;
  padding-left: 0;
}

.property-detail-page .detail-price-card {
  background: var(--navy);
  border-radius: 12px;
  color: #ffffff;
  min-width: 270px;
  padding: 24px;
}

.property-detail-page .contact-panel .detail-price-card {
  border-radius: 8px;
  margin: -8px -8px 22px;
  min-width: 0;
  padding: 20px;
}

.property-detail-page .property-detail-shell {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 370px;
  margin-inline: auto;
  max-width: 1320px;
  padding: 28px clamp(20px, 5vw, 64px) 42px;
}

.property-detail-page .property-detail-primary {
  display: grid;
  gap: 0;
  min-width: 0;
}

.property-detail-page .detail-price-card span,
.property-detail-page .detail-price-card small {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.property-detail-page .detail-price-card strong {
  color: #ffffff;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin: 7px 0;
  white-space: nowrap;
}

.property-detail-page .property-detail-actions {
  align-items: center;
  margin-top: 24px;
}

.property-detail-page .property-detail-actions .ghost-button {
  background: #ffffff;
  border-color: var(--line);
}

.property-detail-page .detail-layout {
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 370px;
  margin-inline: auto;
  max-width: 1320px;
  padding: 30px clamp(20px, 5vw, 64px) 20px;
}

.property-detail-page .property-gallery {
  background: #ffffff;
  border: 1px solid #d8e2e9;
  border-radius: 12px 12px 0 0;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
}

.property-detail-page .property-gallery figure {
  aspect-ratio: 4 / 3;
  border: 0;
  box-shadow: none;
}

.property-detail-page .property-detail-primary > .gallery-placeholder {
  border: 1px solid #d8e2e9;
  border-radius: 12px 12px 0 0;
  min-height: 360px;
}

.property-detail-page .property-gallery figure.is-cover {
  aspect-ratio: 16 / 9;
}

.property-detail-page .contact-panel {
  border: 1px solid #cedae3;
  border-top: 4px solid var(--teal);
  box-shadow: 0 16px 38px rgba(27, 45, 62, 0.1);
  padding: 24px;
  top: 104px;
}

.property-detail-page .contact-panel h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.property-detail-page .agent-contact-card {
  background: #f5f8fa;
  border: 0;
  border-radius: var(--radius-sm);
}

.property-detail-page .contact-panel > .primary-button {
  margin-bottom: 6px;
  width: 100%;
}

.property-detail-page .contact-panel > p {
  font-size: 13px;
  margin-block: 8px;
}

.property-detail-page .contact-panel .lead-form {
  border-top: 1px solid var(--line);
  gap: 11px;
  margin-top: 18px;
  padding-top: 18px;
}

.property-detail-page .contact-panel .lead-form textarea {
  max-height: 100px;
}

.property-detail-page .contact-panel .lead-form button {
  width: 100%;
}

.property-detail-page .section,
.property-detail-page .map-panel {
  margin-inline: auto;
  max-width: 1320px;
}

.property-detail-page .section {
  padding: 42px clamp(20px, 5vw, 64px);
}

.property-detail-page .section-heading h2,
.property-detail-page .property-overview > div > h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.03em;
}

.property-detail-page .property-overview {
  align-items: start;
  border: 1px solid #d8e2e9;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 32px;
}

.property-detail-page .amenity-showcase {
  grid-column: 1 / -1;
  margin-top: 0;
}

.property-detail-page .property-video-section {
  border: 1px solid #d8e2e9;
  border-radius: 12px;
  margin-top: 18px;
  padding: 26px;
}

.property-detail-page .property-video-section .section-heading {
  margin-bottom: 16px;
}

.property-detail-page .property-video-section .video-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-detail-page .property-description {
  color: #405363;
  font-size: 16px;
  line-height: 1.75;
  margin-top: 18px;
  max-width: 820px;
}

.property-detail-page .property-description p {
  margin: 0 0 14px;
}

.property-detail-page .property-spec-panel {
  background: #f5f8fa;
  border: 0;
  box-shadow: none;
}

.property-detail-page .property-spec-panel .feature-list div {
  background: #ffffff;
  border-color: #d8e2e9;
}

.property-detail-page .amenity-grid {
  gap: 8px;
}

.property-detail-page .amenity-grid span {
  border-color: #d8e2e9;
  font-size: 14px;
  min-height: 46px;
}

.property-detail-page .video-list article {
  border: 0;
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.property-detail-page .mortgage-section {
  background: #f3f7fa;
  border: 0;
  border-radius: 14px;
  margin-block: 24px;
  padding: 38px;
}

.property-detail-page .mortgage-section .mortgage-box {
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(27, 45, 62, 0.1);
}

.property-detail-page .map-panel {
  border: 0;
  padding: 42px clamp(20px, 5vw, 64px);
}

.property-detail-page .map-frame {
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .property-detail-page .detail-hero-inner,
  .property-detail-page .detail-layout,
  .property-detail-page .property-detail-shell,
  .property-detail-page .property-overview,
  .property-detail-page .mortgage-section {
    grid-template-columns: 1fr;
  }

  .property-detail-page .detail-price-card {
    min-width: 0;
    width: 100%;
  }

  .property-detail-page .property-gallery {
    grid-template-columns: 1fr;
  }

  .property-detail-page .property-video-section .video-list {
    grid-template-columns: 1fr;
  }

  .property-detail-page .contact-panel {
    position: static;
  }

  .property-detail-page .mortgage-section {
    border-radius: 0;
    margin-block: 0;
    padding: 34px 20px;
  }
}

@media (max-width: 620px) {
  .property-detail-page .detail-hero {
    padding-block: 28px;
  }

  .property-detail-page .detail-hero h1 {
    font-size: 38px;
  }

  .property-detail-page .detail-quick-facts div {
    border: 0;
    padding: 6px 14px 6px 0;
  }

  .property-detail-page .property-detail-actions > * {
    justify-content: center;
    width: 100%;
  }

  .property-detail-page .detail-layout {
    padding-inline: 14px;
  }

  .property-detail-page .property-detail-shell {
    padding-inline: 14px;
  }

  .property-detail-page .property-overview,
  .property-detail-page .property-video-section {
    padding: 22px 18px;
  }

  .property-detail-page .property-gallery figure,
  .property-detail-page .property-gallery figure.is-cover {
    aspect-ratio: 4 / 3;
  }
}
