:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #171514;
  --soft-ink: #3a3632;
  --muted: #756f68;
  --line: #e9e2da;
  --smoke: #f4f1ec;
  --charcoal: #242220;
  --red: #8d1721;
  --red-dark: #651017;
  --red-soft: #b65359;
  --shadow: 0 14px 34px rgba(22, 22, 22, 0.045);
  --soft-shadow: 0 8px 20px rgba(22, 22, 22, 0.035);
  --radius: 5px;
  --control-height: 46px;
  --control-height-compact: 40px;
  --control-radius: var(--radius);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}

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

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

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

::selection {
  background: rgba(141, 23, 33, 0.14);
}

:focus-visible {
  outline: 2px solid rgba(141, 23, 33, 0.55);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.9);
  color: var(--ink);
  border-bottom: 1px solid rgba(233, 226, 218, 0.82);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(22, 22, 22, 0.055);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

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

.brand strong {
  font-size: 15px;
  font-weight: 750;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
  color: #47413c;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transition: width 180ms ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  background: var(--smoke);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.74) 36%, rgba(251, 250, 247, 0.14) 70%),
    linear-gradient(0deg, rgba(251, 250, 247, 1) 0%, rgba(251, 250, 247, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 94vh;
  max-width: 1260px;
  margin: 0 auto;
  padding: 112px clamp(18px, 4vw, 42px) 44px;
  color: var(--ink);
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(50px, 6.4vw, 88px);
  line-height: 1;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--soft-ink);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.62;
}

.search-panel {
  display: grid;
  width: min(100%, 980px);
  grid-template-columns: 1fr 1fr 1fr auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.hero-actions {
  display: grid;
  width: min(100%, 980px);
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-actions a {
  display: grid;
  min-height: 64px;
  padding: 12px 14px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-content: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 219, 210, 0.9);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.hero-actions span {
  grid-row: 1 / span 2;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.hero-actions strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-actions small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.search-panel label {
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select {
  min-height: var(--control-height);
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 750;
}

input,
textarea {
  padding: 0 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(141, 23, 33, 0.34);
  box-shadow: 0 0 0 3px rgba(141, 23, 33, 0.08);
}

textarea {
  resize: vertical;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  border: 0;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(101, 16, 23, 0.16);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 28px rgba(101, 16, 23, 0.2);
}

.secondary-action {
  min-width: 112px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--red);
  color: var(--red);
}

.market-strip {
  display: grid;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 42px);
  grid-template-columns: repeat(4, 1fr);
}

.market-strip div {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.market-strip strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
}

.market-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.home-paths {
  padding-bottom: clamp(40px, 5vw, 64px);
}

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

.home-path-grid a {
  display: grid;
  min-height: 220px;
  padding: 24px;
  align-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-path-grid a:hover {
  border-color: rgba(160, 20, 32, 0.22);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.home-path-grid span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-path-grid strong {
  max-width: 320px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
}

.home-path-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(62px, 7vw, 92px) clamp(18px, 4vw, 42px);
}

.section-heading {
  display: grid;
  max-width: 720px;
  gap: 8px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 0;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.method-copy p,
.contact-band p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.filters {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
}

.filters label,
.contact-form label {
  min-height: 66px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters label,
.listings-filters label {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.filters label:focus-within,
.listings-filters label:focus-within {
  border-color: rgba(157, 22, 35, 0.42);
  box-shadow: 0 12px 30px rgba(32, 35, 42, 0.06), 0 0 0 4px rgba(157, 22, 35, 0.06);
  transform: translateY(-1px);
}

.feature-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--soft-ink);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
}

.chip-filter:hover {
  border-color: rgba(157, 22, 35, 0.34);
  box-shadow: 0 10px 24px rgba(32, 35, 42, 0.06);
  transform: translateY(-1px);
}

.chip-filter:has(input:checked) {
  background: #9d1623;
  border-color: #9d1623;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(101, 16, 23, 0.18);
}

.chip-filter input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.chip-filter span {
  color: inherit;
  font-size: 10px;
  font-weight: 850;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
}

.catalog-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 22px;
}

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

.map-panel {
  position: sticky;
  top: 96px;
  min-height: 520px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.map-shell {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, #e9e4dc, #f7f5f1);
}

.real-map {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 450px;
  background: var(--smoke);
}

.map-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.has-map-warning::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  max-width: 260px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  content: "Mappa non disponibile. Riprova piu tardi.";
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(22, 22, 22, 0.08);
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  background: #eef1ee;
  color: var(--soft-ink);
  font-family: var(--sans);
  outline-offset: 1px;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  border: 0;
  filter: saturate(0.74) contrast(0.96) brightness(1.03);
}

.leaflet-container img,
.leaflet-container svg {
  max-width: none;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 14px;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 14px;
}

.leaflet-right {
  right: 0;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  float: left;
  clear: both;
  pointer-events: auto;
}

.leaflet-left .leaflet-control {
  margin-left: 0;
}

.leaflet-top .leaflet-control {
  margin-top: 0;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.12) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(22, 22, 22, 0.12);
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--ink) !important;
  font-size: 20px !important;
  line-height: 38px !important;
}

.leaflet-control-attribution {
  padding: 4px 8px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px 0 0 0;
  color: var(--muted);
  font-size: 10px;
}

.leaflet-property-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
}

.leaflet-property-marker span {
  display: inline-grid;
  min-width: 72px;
  min-height: 34px;
  padding: 0 12px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(101, 16, 23, 0.25);
}

.leaflet-property-marker.is-card-highlighted span,
.leaflet-property-marker:hover span {
  background: var(--ink);
  transform: translateY(-1px);
}

.detail-price-marker span {
  display: inline-grid;
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(21, 21, 21, 0.14);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(22, 22, 22, 0.2);
}

.real-map.is-selecting-area {
  cursor: crosshair;
}

.detail-price-marker span::before {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 999px;
  content: "";
}

.leaflet-popup-content {
  display: grid;
  gap: 6px;
  min-width: 180px;
  font-family: var(--sans);
}

.leaflet-popup-content strong {
  color: var(--ink);
  font-size: 14px;
}

.leaflet-popup-content small {
  color: var(--muted);
  font-weight: 700;
}

.leaflet-popup-content a {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lake-shape {
  position: absolute;
  right: -36px;
  bottom: 42px;
  width: 72%;
  height: 58%;
  background: linear-gradient(135deg, rgba(142, 23, 33, 0.08), rgba(82, 116, 130, 0.22));
  border: 1px solid rgba(82, 116, 130, 0.16);
  border-radius: 52% 48% 42% 58%;
  transform: rotate(-18deg);
}

.map-label {
  position: absolute;
  z-index: 1;
  color: rgba(21, 21, 21, 0.56);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-label.center {
  left: 45%;
  top: 48%;
}

.map-label.castagnola {
  right: 12%;
  top: 24%;
}

.map-label.paradiso {
  left: 32%;
  bottom: 24%;
}

.map-label.collina {
  left: 12%;
  bottom: 14%;
}

.map-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(101, 16, 23, 0.25);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-marker:hover,
.map-marker:focus-visible {
  background: var(--red-dark);
  outline: 0;
}

.map-summary {
  min-height: 70px;
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.advanced-map-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.advanced-map-controls label {
  min-height: 44px;
  gap: 3px;
  padding: 7px 9px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advanced-map-controls select {
  min-height: 24px;
  font-size: 13px;
}

.map-tool {
  min-height: 44px;
  padding: 0 9px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft-ink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.map-tool.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.leaflet-poi-marker span {
  display: inline-grid;
  min-height: 30px;
  padding: 0 12px;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.12);
}

.property-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.property-card.is-map-highlighted,
.property-card:has(.favorite-button.is-active) {
  border-color: rgba(141, 23, 33, 0.34);
}

.property-card:hover {
  transform: translateY(-2px);
  border-color: #d4c9c0;
  box-shadow: 0 16px 36px rgba(35, 31, 28, 0.07);
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: var(--control-radius);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.12);
  cursor: pointer;
}

.favorite-button::before {
  margin-right: 6px;
  color: var(--red);
  content: "♡";
  font-size: 14px;
}

.favorite-button.is-active::before {
  content: "♥";
}

.leaflet-marker-icon.is-card-highlighted span {
  transform: scale(1.08);
}

.property-link {
  display: block;
  height: 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.property-card img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

.property-content {
  display: grid;
  min-height: 222px;
  padding: 16px;
  grid-template-rows: auto auto auto 1fr auto;
}

.property-topline,
.property-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag,
.contract {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag {
  color: var(--red);
}

.contract {
  padding: 4px 7px;
  background: #f7f4ef;
  border: 1px solid rgba(233, 226, 218, 0.8);
  border-radius: var(--control-radius);
  color: var(--muted);
}

.property-card h3 {
  margin: 10px 0 7px;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.25;
}

.address {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
  margin-bottom: 14px;
}

.property-meta span {
  display: grid;
  min-height: 32px;
  padding: 0 7px;
  place-items: center;
  background: #fbfaf7;
  border: 1px solid rgba(233, 226, 218, 0.75);
  border-radius: var(--control-radius);
  color: #4e4a46;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.property-bottom {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.property-bottom strong {
  color: var(--ink);
  font-size: 16px;
}

.property-bottom span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.private-section {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 70px);
  padding-top: 0;
}

.neighborhoods-section,
.trust-section {
  border-top: 1px solid var(--line);
}

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

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

.neighborhood-grid article,
.trust-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.neighborhood-grid article {
  min-height: 0;
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.neighborhood-visual {
  position: relative;
  overflow: hidden;
  background: var(--smoke);
}

.neighborhood-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.neighborhood-grid article:hover .neighborhood-visual img {
  transform: scale(1.025);
}

.neighborhood-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.neighborhood-grid span,
.trust-grid span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.neighborhood-grid strong,
.trust-grid strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.14;
}

.neighborhood-grid p,
.trust-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.private-copy {
  padding: clamp(34px, 5vw, 56px);
  background: var(--charcoal);
  border-radius: var(--radius);
  color: var(--white);
}

.private-copy h2 {
  max-width: 700px;
}

.private-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.text-action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-weight: 800;
  border-bottom: 2px solid var(--red-soft);
}

.private-panel {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: clamp(30px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.94)),
    url("assets/property-villa.png") center / cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.private-panel span {
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 104px);
  line-height: 0.9;
}

.private-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.private-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.insight-section {
  border-top: 1px solid var(--line);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.insight-grid article {
  display: grid;
  min-height: 270px;
  padding: 24px;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.insight-grid span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-grid h3 {
  margin: 18px 0 0;
  color: var(--soft-ink);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.18;
}

.insight-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.insight-grid a {
  align-self: end;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.detail-page {
  padding-top: 104px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-intro,
.property-gallery-section,
.property-body {
  max-width: 1260px;
  margin: 0 auto;
  padding-right: clamp(18px, 4vw, 42px);
  padding-left: clamp(18px, 4vw, 42px);
}

.property-intro {
  padding-bottom: 28px;
}

.property-title-row {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(24px, 5vw, 72px);
}

.property-title-copy {
  max-width: 820px;
}

.property-title-copy h1 {
  max-width: 850px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.02;
}

.property-price-panel {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.detail-favorite {
  position: relative;
  top: auto;
  right: auto;
  width: fit-content;
  margin-top: 8px;
  box-shadow: none;
}

.property-price-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-price-panel strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.property-facts {
  max-width: none;
  margin-top: 28px;
}

.property-gallery-section {
  padding-bottom: clamp(38px, 6vw, 66px);
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  grid-template-rows: repeat(2, minmax(210px, 280px));
  gap: 10px;
}

.gallery-tile {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.detail-gallery img,
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--smoke);
  border-radius: 4px;
  transition: transform 240ms ease, filter 240ms ease;
}

.gallery-tile:hover img {
  filter: brightness(0.94);
  transform: scale(1.02);
}

.detail-gallery .gallery-tile:first-child {
  grid-row: 1 / -1;
}

.property-gallery-section {
  position: relative;
}

.gallery-open {
  position: absolute;
  right: clamp(30px, 5vw, 58px);
  bottom: clamp(54px, 7vw, 88px);
  z-index: 2;
  min-height: 40px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(22, 22, 22, 0.14);
  cursor: pointer;
}

.property-body {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(30px, 5vw, 68px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.property-main {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  min-width: 0;
}

.property-section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.property-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.property-position {
  grid-column: 1 / -1;
  padding-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.property-section h2 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.08;
}

.property-section p:not(.eyebrow) {
  max-width: 790px;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.78;
}

.property-contact-card {
  position: relative;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.2vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.property-contact-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.16;
}

.property-contact-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.detail-contact-form {
  grid-template-columns: 1fr;
  margin-top: 2px;
  gap: 9px;
}

.detail-contact-form label,
.detail-contact-form .primary-action,
.detail-contact-form .full {
  grid-column: 1 / -1;
}

.detail-contact-form label {
  gap: 6px;
  padding: 10px;
}

.detail-contact-form input,
.detail-contact-form textarea {
  padding: 0 11px;
}

.detail-contact-form select {
  min-height: var(--control-height);
}

.detail-contact-form textarea {
  min-height: 84px;
  padding-top: 10px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.detail-facts span {
  min-height: 66px;
  padding: 14px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-actions .primary-action,
.detail-actions .secondary-action {
  width: 100%;
  min-height: var(--control-height);
  justify-content: center;
  border-radius: var(--radius);
}

.property-contact-card .primary-action {
  min-height: var(--control-height);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  min-height: 78px;
  padding: 16px 17px 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  color: var(--soft-ink);
  font-weight: 800;
  line-height: 1.45;
}

.technical-grid,
.cost-grid,
.commercial-grid,
.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.technical-grid div,
.cost-grid div,
.commercial-grid div,
.visit-grid div {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.technical-grid span,
.cost-grid span,
.commercial-grid span,
.visit-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.technical-grid strong,
.cost-grid strong,
.commercial-grid strong,
.visit-grid strong {
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.45;
}

.document-grid,
.document-vault {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.document-grid button,
.document-vault button {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  color: var(--soft-ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.document-vault button span,
.document-vault button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-vault button strong {
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.25;
}

.purchase-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.purchase-flow article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
}

.purchase-flow span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.purchase-flow strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.purchase-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.plan-section {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
  gap: 24px;
}

.plan-preview {
  display: grid;
  min-height: 260px;
  padding: 16px;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 0.8fr;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-preview span {
  border: 1px solid rgba(141, 23, 33, 0.22);
  background: linear-gradient(135deg, rgba(141, 23, 33, 0.06), rgba(244, 241, 236, 0.8));
}

.plan-preview span:first-child {
  grid-row: 1 / -1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: clamp(18px, 3vw, 38px);
  background: rgba(18, 16, 15, 0.88);
}

.gallery-lightbox.is-open {
  display: grid;
  place-items: center;
}

.has-lightbox {
  overflow: hidden;
}

.gallery-lightbox-inner {
  position: relative;
  display: grid;
  width: min(100%, 1180px);
  height: min(86vh, 760px);
  place-items: center;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-close {
  top: 0;
  right: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox-nav {
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 0;
}

.lightbox-nav.next {
  right: 0;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
}

.detail-map {
  width: 100%;
  height: 480px;
  min-height: 480px;
  max-height: 480px;
  margin-top: 22px;
  overflow: hidden;
  background: #eef1ee;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.related-section {
  padding-top: clamp(36px, 5vw, 68px);
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-card span,
.related-card strong,
.related-card small {
  margin-right: 18px;
  margin-left: 18px;
}

.related-card span {
  margin-top: 18px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-card strong {
  margin-top: 10px;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.25;
}

.related-card small {
  margin-top: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.catalog-cta {
  margin-top: 28px;
  border-radius: var(--radius);
}

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

.listings-page {
  padding-top: 92px;
}

.listings-head {
  max-width: 1260px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 42px) 20px;
}

.listings-head h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 5vw, 68px);
}

.listings-head p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.listings-app {
  max-width: 1260px;
  margin: 0 auto 50px;
  padding: 0 clamp(18px, 4vw, 42px);
}

.listings-filters {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.listings-filter-main {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(0, 0.9fr) auto;
  gap: 8px;
}

.listings-filters label {
  min-width: 0;
  min-height: 62px;
  padding: 9px 12px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.listings-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.listings-filter-actions .secondary-action,
.listings-filters .secondary-action {
  min-height: 100%;
  border-radius: var(--radius);
}

.listings-advanced {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.listings-advanced[hidden] {
  display: none;
}

.listings-advanced-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.listings-chips {
  margin: 0;
  padding-top: 2px;
}

.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.listings-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.listings-toolbar a,
.map-toggle {
  color: var(--red);
}

.map-toggle {
  min-height: var(--control-height-compact);
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.map-toggle:hover {
  border-color: var(--red);
}

.saved-search-status {
  display: none;
  margin: -2px 0 14px;
  padding: 12px 14px;
  background: rgba(141, 23, 33, 0.07);
  border: 1px solid rgba(141, 23, 33, 0.16);
  border-radius: var(--radius);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.saved-search-status.is-visible {
  display: block;
}

.listings-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.shortlist-panel {
  position: fixed;
  top: 88px;
  right: clamp(18px, 4vw, 42px);
  z-index: 30;
  display: none;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(22, 22, 22, 0.16);
}

.shortlist-panel.is-open {
  display: block;
}

.shortlist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.shortlist-head h2 {
  margin: 0;
  font-size: 30px;
}

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

.shortlist-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shortlist-item img {
  grid-row: span 3;
  width: 92px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
}

.shortlist-item span,
.shortlist-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.shortlist-item strong {
  color: var(--ink);
  line-height: 1.25;
}

.empty-shortlist {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.listings-layout.is-map-hidden {
  grid-template-columns: 1fr;
}

.listings-layout.is-map-hidden .listings-map-panel {
  display: none;
}

.listings-layout.is-map-hidden .listings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  padding-right: 0;
}

.listings-map-panel {
  position: sticky;
  top: 96px;
  min-height: 0;
}

.listings-map {
  min-height: 400px;
  height: min(48vh, 480px);
}

.split-section {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: clamp(34px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-grid article {
  min-height: 236px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 30px;
}

.service-grid h3 {
  color: var(--soft-ink);
  font-size: 19px;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.method-section {
  display: grid;
  align-items: center;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 7vw, 84px);
  padding-top: 0;
}

.method-visual {
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 250, 248, 0.3), rgba(251, 250, 248, 0.92)),
    url("assets/hero-lugano.png") center / cover;
  border-radius: var(--radius);
}

.map-card {
  display: grid;
  width: min(82%, 390px);
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(142, 23, 33, 0.22);
  border: 1px solid rgba(142, 23, 33, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-card span {
  min-height: 100px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
}

.method-copy {
  max-width: 610px;
}

.method-list {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.method-list span {
  padding: 14px;
  border-left: 3px solid var(--red);
  background: var(--white);
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.contact-band {
  display: grid;
  max-width: 1260px;
  margin: 0 auto clamp(34px, 5vw, 70px);
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(38px, 6vw, 66px) clamp(18px, 4vw, 42px);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.contact-band h2 {
  max-width: 580px;
}

.contact-band p {
  max-width: 500px;
}

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

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form .primary-action {
  grid-column: 1 / -1;
  border-radius: var(--radius);
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.privacy-consent input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.privacy-consent a {
  color: var(--red);
  text-decoration: none;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  background: rgba(141, 23, 33, 0.08);
  border: 1px solid rgba(141, 23, 33, 0.18);
  border-radius: var(--radius);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.valuation-form {
  align-content: start;
}

.valuation-result {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(141, 23, 33, 0.07);
  border: 1px solid rgba(141, 23, 33, 0.16);
  border-radius: var(--radius);
}

.valuation-result span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.valuation-result strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.valuation-result small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.sell-page {
  padding-top: 92px;
}

.sell-hero {
  display: grid;
  min-height: 580px;
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 110px) clamp(18px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.7)),
    url("assets/property-villa.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.sell-hero > div {
  max-width: 760px;
}

.sell-hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.7;
}

.sell-process {
  border-top: 0;
}

.admin-body {
  background: #f6f5f2;
  overflow-x: hidden;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
  font-family: var(--sans);
  letter-spacing: 0;
}

.admin-auth {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(251, 250, 248, 0.96), rgba(251, 250, 248, 0.88)),
    url("assets/hero-lugano.png") center / cover;
}

.is-admin-locked .admin-auth {
  display: grid;
}

.is-admin-locked .admin-topbar,
.is-admin-locked .admin-page {
  display: none;
}

.admin-auth-card {
  display: grid;
  width: min(100%, 460px);
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.admin-auth-card .brand-mark {
  width: 46px;
  height: 46px;
}

.admin-auth-card h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
}

.admin-auth-card p:not(.eyebrow):not(.form-status) {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.65;
}

.admin-auth-card label {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-auth-card label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-auth-card input {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-actions .secondary-action,
.admin-actions .primary-action,
.admin-actions .secondary-action {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-page {
  padding-top: 0;
}

.admin-console-page {
  min-height: calc(100vh - 72px);
}

.admin-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  margin: 0 auto;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: #f6f5f2;
  border-bottom: 1px solid var(--line);
}

.admin-console-head h1 {
  margin: 2px 0 5px;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 850;
  line-height: 1.1;
}

.admin-console-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.admin-hero {
  display: grid;
  max-width: 1480px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 42px) 26px;
  border-bottom: 1px solid var(--line);
}

.admin-hero.simple {
  align-items: end;
  padding-top: clamp(32px, 5vw, 54px);
}

.admin-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.6vw, 58px);
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.72;
}

.admin-actions,
.admin-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions {
  justify-content: flex-end;
}

.admin-shell {
  display: grid;
  max-width: 1480px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 42px) clamp(34px, 5vw, 62px);
}

.admin-shell.simple {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.admin-list-panel,
.admin-editor {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 31, 28, 0.05);
}

.admin-list-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 116px);
  padding: 16px;
  overflow: auto;
}

.admin-list-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
}

.admin-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-search {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  outline: 0;
}

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

.admin-list-item {
  display: grid;
  align-items: center;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf9;
}

.admin-list-item.is-active {
  background: var(--white);
  border-color: rgba(141, 23, 33, 0.35);
  box-shadow: 0 14px 28px rgba(89, 70, 53, 0.08);
}

.admin-list-item img {
  width: 68px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-list-item div {
  min-width: 0;
}

.admin-list-item span,
.admin-list-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-list-item strong {
  display: block;
  margin: 4px 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.25;
}

.admin-list-item button {
  grid-column: 1 / -1;
  min-height: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-editor {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.admin-editor.simple {
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.admin-edit-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 18px;
}

.admin-edit-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

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

.admin-editor-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-step,
.admin-advanced,
.admin-mini-details,
.admin-preview-card,
.admin-form-actions.sticky {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 31, 28, 0.05);
}

.admin-step,
.admin-advanced {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-step-head {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.admin-step-head > span {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 0 9px;
  background: rgba(141, 23, 33, 0.08);
  border-radius: 999px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
}

.admin-step-head h2 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
}

.admin-step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-editor label {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-field-large input {
  font-size: 17px;
}

.admin-field-large span {
  margin-bottom: 2px;
}

.admin-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.admin-photo-tools button {
  display: grid;
  gap: 10px;
  padding: 9px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-photo-tools img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.admin-upload {
  grid-column: 1 / -1;
  display: grid;
  min-height: 104px;
  align-content: center;
  text-align: center;
  cursor: pointer;
}

.admin-upload input {
  min-height: 44px;
  margin-top: 2px;
  padding: 12px;
  background: var(--white);
  border: 1px dashed rgba(141, 23, 33, 0.38);
  border-radius: 8px;
}

.admin-upload small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.admin-advanced summary {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.admin-mini-details {
  display: grid;
  padding: 13px;
  background: #fcfbf9;
  box-shadow: none;
}

.admin-mini-details summary {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-mini-details[open] summary {
  margin-bottom: 14px;
}

.admin-advanced[open] summary {
  margin-bottom: 8px;
}

.admin-editor .full {
  grid-column: 1 / -1;
}

.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  outline: 0;
}

.admin-editor textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-status {
  display: none;
  margin: 0;
}

.admin-status.is-visible {
  display: block;
}

.admin-feature-set {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-feature-set legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-feature-set label,
.admin-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 850;
}

.admin-feature-set input,
.admin-inline-check input {
  width: 14px;
  accent-color: var(--red);
}

.admin-preview-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.admin-preview-card h2 {
  margin: -4px 0 0;
  font-size: 18px;
  font-weight: 850;
}

.admin-preview {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
}

.admin-preview img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-preview span,
.admin-preview small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-preview strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.admin-preview p {
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.55;
}

.admin-form-actions {
  justify-content: flex-start;
}

.admin-form-actions.sticky {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
}

.admin-form-actions.sticky .primary-action,
.admin-form-actions.sticky .secondary-action {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
}

.secondary-action.danger {
  color: var(--red);
}

.legal-page {
  padding-top: 92px;
}

.legal-hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 42px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1;
}

.legal-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.7;
}

.legal-content {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 42px);
}

.legal-content article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
}

.legal-content p {
  max-width: 840px;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.75;
}

.legal-content a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(520px, calc(100vw - 36px));
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.cookie-banner strong {
  color: var(--ink);
  font-size: 15px;
}

.cookie-banner p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.cookie-link {
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-settings {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.cookie-settings label {
  display: grid;
  align-items: start;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: #fcfbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-settings input {
  margin-top: 2px;
  accent-color: var(--red);
}

.cookie-settings span {
  display: grid;
  gap: 3px;
}

.cookie-settings small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-actions button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-actions button:last-child {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.admin-management.is-hidden,
.admin-editor-view.is-hidden {
  display: none;
}

.admin-toast {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: 18px;
  z-index: 80;
  display: none;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 16px;
  background: #20232a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 18px 54px rgba(32, 35, 42, 0.22);
}

.admin-toast.is-visible {
  display: block;
}

.admin-wizard-app {
  min-height: calc(100vh - 64px);
  background: #f4f5f6;
}

.admin-management {
  display: grid;
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) clamp(18px, 4vw, 42px) 72px;
}

.admin-management-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dedbd6;
}

.admin-management-head h1,
.admin-editor-top h1,
.admin-step-title h2 {
  margin: 0;
  color: #20232a;
  font-family: var(--sans);
  font-weight: 850;
  line-height: 1.05;
}

.admin-management-head h1 {
  font-size: clamp(46px, 7vw, 90px);
}

.admin-management-head p:not(.eyebrow),
.admin-step-title p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #55585f;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

.admin-management-toolbar {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(260px, 520px) auto;
  gap: 16px;
}

.admin-search-field {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #dedbd6;
  border-radius: 8px;
}

.admin-search-field span,
.admin-field span,
.admin-upload > span {
  color: #76716b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-search-field input {
  min-height: 34px;
  border: 0;
  color: #20232a;
  font-size: 18px;
  font-weight: 750;
  outline: 0;
}

.admin-total {
  justify-self: end;
  color: #76716b;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-catalog-grid {
  display: grid;
  gap: 14px;
}

.admin-list-card {
  display: grid;
  align-items: center;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 148px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dedbd6;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(35, 31, 28, 0.05);
}

.admin-list-card.is-active {
  border-color: rgba(157, 22, 35, 0.35);
  box-shadow: 0 20px 46px rgba(157, 22, 35, 0.09);
}

.admin-list-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-list-card-copy {
  min-width: 0;
}

.admin-list-card-copy span,
.admin-list-card-copy small {
  display: block;
  color: #76716b;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-list-card-copy strong {
  display: block;
  margin: 8px 0;
  color: #20232a;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 850;
  line-height: 1.12;
}

.admin-list-card button {
  min-width: 132px;
  min-height: 50px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #dedbd6;
  border-radius: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-list-card button:hover {
  border-color: rgba(157, 22, 35, 0.45);
  background: #fbf6f6;
}

.admin-editor-view {
  background: #f4f5f6;
}

.admin-editor-top {
  position: sticky;
  top: 65px;
  z-index: 20;
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 42px);
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid #dedbd6;
  backdrop-filter: blur(16px);
}

.admin-editor-top > div {
  min-width: 0;
}

.admin-editor-top .eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

.admin-editor-top h1 {
  overflow: hidden;
  font-size: clamp(24px, 2.4vw, 34px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-height: var(--control-height-compact);
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #dedbd6;
  border-radius: var(--control-radius);
  color: #343840;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-editor-save {
  min-width: 112px;
  min-height: var(--control-height-compact);
  border-radius: var(--control-radius);
  box-shadow: none;
}

.admin-editor-save[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.admin-editor-save.has-unsaved {
  box-shadow: 0 12px 24px rgba(101, 16, 23, 0.14);
}

.admin-back-button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.admin-back-button:hover {
  background: #fbf6f6;
  border-color: rgba(157, 22, 35, 0.42);
  color: var(--red);
  transform: translateY(-1px);
}

.admin-wizard-form.admin-editor {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 141px);
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-wizard-form .admin-status {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 14px 18px;
  background: #fff7f1;
  border: 1px solid #ead3c5;
  border-radius: 8px;
  color: #6f3b22;
  font-weight: 800;
}

.admin-wizard-sidebar {
  position: sticky;
  top: 141px;
  align-self: start;
  display: grid;
  gap: 0;
  height: calc(100vh - 141px);
  min-height: 620px;
  padding: 12px 0 72px;
  background: #ffffff;
  border-right: 1px solid #d9dde3;
  overflow: auto;
}

.admin-wizard-step {
  display: grid;
  align-items: center;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  min-height: 72px;
  padding: 0 22px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #d9dde3;
  color: #323842;
  text-align: left;
  cursor: pointer;
}

.admin-wizard-step.is-active {
  background: #eef6fb;
}

.admin-wizard-step.is-complete .admin-step-state {
  background: #249f63;
  color: #ffffff;
  font-size: 10px;
}

.admin-step-state {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  background: #c91f38;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.admin-wizard-step strong,
.admin-wizard-step small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-wizard-step strong {
  font-size: 15px;
  font-weight: 850;
}

.admin-wizard-step small {
  margin-top: 3px;
  color: #5e6672;
  font-size: 12px;
  font-weight: 650;
}

.admin-sidebar-save {
  position: sticky;
  bottom: 16px;
  width: calc(100% - 36px);
  min-height: 56px;
  margin: auto 18px 0;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-wizard-main {
  display: grid;
  align-content: start;
  padding: clamp(24px, 3.6vw, 46px) clamp(18px, 5vw, 68px) 72px;
}

.admin-step-panel {
  display: none;
  width: min(100%, 820px);
  margin: 0 auto;
}

.admin-step-panel.is-active {
  display: grid;
  gap: 22px;
}

.admin-step-title h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.admin-wizard-card,
.admin-preview-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 24px);
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.admin-wizard-form .admin-field,
.admin-wizard-form .admin-upload {
  display: grid;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.admin-wizard-form .full {
  grid-column: 1 / -1;
}

.admin-two-fields,
.admin-three-fields {
  display: grid;
  gap: 10px;
}

.admin-two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-wizard-form input,
.admin-wizard-form select,
.admin-wizard-form textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 0 14px;
  background: linear-gradient(180deg, #ffffff, #fbfbfa);
  border: 1px solid #d8dde5;
  border-radius: var(--control-radius);
  color: #303640;
  font-size: 15px;
  font-weight: 650;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-wizard-form select,
.admin-wizard-form input[list] {
  background:
    linear-gradient(45deg, transparent 50%, #7b7f87 50%) right 20px center / 6px 6px no-repeat,
    linear-gradient(135deg, #7b7f87 50%, transparent 50%) right 14px center / 6px 6px no-repeat,
    #ffffff;
  padding-right: 42px;
}

.admin-wizard-form textarea {
  min-height: 132px;
  padding-top: 13px;
  line-height: 1.55;
  resize: vertical;
}

.admin-wizard-form input:focus,
.admin-wizard-form select:focus,
.admin-wizard-form textarea:focus {
  background: #ffffff;
  border-color: rgba(157, 22, 35, 0.55);
  box-shadow: 0 0 0 4px rgba(157, 22, 35, 0.08);
}

.admin-choice-block {
  display: grid;
  gap: 7px;
}

.admin-choice-block > span {
  color: #76716b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-choice-grid button {
  min-height: var(--control-height);
  padding: 0 13px;
  background: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: var(--control-radius);
  color: #343840;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
}

.admin-choice-grid.compact button {
  min-height: var(--control-height-compact);
  padding: 0 12px;
  font-size: 11px;
}

.admin-uniform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 7px;
}

.admin-uniform-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-uniform-grid button {
  width: 100%;
}

.admin-choice-grid button:hover,
.admin-choice-grid button.is-active {
  border-color: rgba(157, 22, 35, 0.48);
  box-shadow: 0 10px 24px rgba(32, 35, 42, 0.06);
  transform: translateY(-1px);
}

.admin-choice-grid button.is-active {
  background: #9d1623;
  border-color: #9d1623;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(101, 16, 23, 0.18);
}

.admin-money-field input {
  font-size: 17px;
  font-weight: 800;
}

.admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  border: 0;
}

.admin-feature-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: #76716b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-feature-grid label,
.admin-wizard-form .admin-wide-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--control-height-compact);
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: var(--control-radius);
  color: #343840;
  font-size: 12px;
  font-weight: 750;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-feature-grid label:hover,
.admin-wizard-form .admin-wide-check:hover {
  border-color: rgba(157, 22, 35, 0.36);
  box-shadow: 0 10px 24px rgba(32, 35, 42, 0.05);
  transform: translateY(-1px);
}

.admin-feature-grid label:has(input:checked),
.admin-wizard-form .admin-wide-check:has(input:checked) {
  background: #fbf6f6;
  border-color: rgba(157, 22, 35, 0.5);
  color: #9d1623;
  box-shadow: 0 12px 28px rgba(101, 16, 23, 0.08);
}

.admin-feature-grid input,
.admin-wizard-form .admin-wide-check input {
  width: 15px;
  min-height: 15px;
  padding: 0;
  accent-color: var(--red);
}

.admin-mini-details {
  padding: 18px;
  background: #f8f8f8;
  border: 1px solid #e2e2df;
  border-radius: 8px;
  box-shadow: none;
}

.admin-mini-details[open] {
  display: grid;
  gap: 14px;
}

.admin-pin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8f8f8;
  border: 1px solid #e2e2df;
  border-radius: 8px;
}

.admin-pin-card strong {
  display: block;
  margin-top: 5px;
  color: #303640;
  font-size: 15px;
  line-height: 1.45;
}

.admin-location-map {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 247, 246, 0.9), rgba(230, 236, 234, 0.9)),
    #eef1ef;
  border: 1px solid #d8dde5;
  border-radius: 8px;
}

.admin-location-map.map-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: #76716b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.admin-location-map.has-map-warning::after {
  content: "Base mappa non caricata. Il pin resta modificabile.";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 400;
  max-width: 260px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(157, 22, 35, 0.18);
  border-radius: 8px;
  color: #6f3b22;
  font-size: 11px;
  font-weight: 850;
}

.admin-map-help {
  margin: -2px 0 0;
  color: #76716b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.admin-location-marker span {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--red);
  border: 2px solid #ffffff;
  border-radius: 999px 999px 999px 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(101, 16, 23, 0.26);
  transform: rotate(-45deg);
}

.admin-location-marker b {
  transform: rotate(45deg);
  line-height: 1;
}

.admin-upload-zone {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 248, 0.95)),
    #f7f7f6;
  border: 1px dashed rgba(157, 22, 35, 0.35);
  border-radius: 8px;
  color: #2f3034;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-upload-zone:hover,
.admin-upload-zone.is-dragging {
  background: #fffdfc;
  border-color: var(--red);
  box-shadow: 0 18px 34px rgba(47, 48, 52, 0.08);
}

.admin-upload-zone div {
  display: grid;
  gap: 8px;
  max-width: 520px;
  pointer-events: none;
}

.admin-upload-zone span,
.admin-gallery-copy strong {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-upload-zone strong {
  font-size: 18px;
  line-height: 1.2;
}

.admin-upload-zone small,
.admin-gallery-copy small,
.admin-gallery-empty {
  color: #76716b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.admin-upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-upload input {
  min-height: 170px;
  padding: 52px 18px;
  border: 1px dashed #c9ced6;
  text-align: center;
}

.admin-photo-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-photo-tools button {
  border-radius: 8px;
}

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

.admin-gallery-empty {
  margin: 0;
  padding: 16px;
  background: #f8f8f8;
  border: 1px solid #e2e2df;
  border-radius: 8px;
}

.admin-gallery-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e4dfd8;
  border-radius: 8px;
}

.admin-gallery-item.is-cover {
  border-color: rgba(157, 22, 35, 0.34);
  box-shadow: 0 16px 30px rgba(75, 42, 30, 0.07);
}

.admin-gallery-item img {
  width: 108px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-gallery-copy {
  display: grid;
  gap: 4px;
}

.admin-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-gallery-actions button {
  min-height: 40px;
  padding: 0 13px;
  background: #ffffff;
  border: 1px solid #e4dfd8;
  border-radius: 8px;
  color: #303030;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-gallery-actions button:hover {
  border-color: rgba(157, 22, 35, 0.35);
  color: var(--red);
}

.admin-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.admin-wizard-nav .primary-action,
.admin-wizard-nav .secondary-action {
  min-width: 150px;
  min-height: var(--control-height);
  border-radius: var(--control-radius);
  justify-content: center;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
}

.admin-preview-card h3 {
  margin: 0;
  font-size: 23px;
}

.admin-preview img {
  height: 260px;
  border-radius: 8px;
}

.admin-preview-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  background: #f4f5f6;
  border: 1px dashed #c9ced6;
  border-radius: 8px;
  color: #76716b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.admin-technical-card {
  align-content: start;
}

.admin-final-save {
  width: 100%;
  min-height: var(--control-height);
  justify-content: center;
  border-radius: var(--control-radius);
}

.admin-simple-actions {
  display: grid;
  gap: 10px;
}

.admin-simple-actions .secondary-action {
  min-height: var(--control-height);
  justify-content: center;
  border-radius: var(--control-radius);
}

.admin-advanced-actions {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.admin-advanced-actions .admin-form-actions {
  margin-top: 2px;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-form-actions .primary-action,
.admin-form-actions .secondary-action {
  min-height: var(--control-height);
  justify-content: center;
}

@media (max-width: 980px) {
  .admin-management-head,
  .admin-management-toolbar,
  .admin-editor-top,
  .admin-wizard-form.admin-editor,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    top: 0;
  }

  .admin-wizard-sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #d9dde3;
  }

  .admin-wizard-main {
    padding-top: 28px;
  }

  .admin-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-list-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .admin-list-card button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .admin-management,
  .admin-wizard-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-management-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-list-card,
  .admin-two-fields,
  .admin-three-fields,
  .admin-feature-grid,
  .admin-gallery-item {
    grid-template-columns: 1fr;
  }

  .admin-list-card img {
    height: 210px;
  }

  .admin-gallery-item img {
    width: 100%;
    height: 190px;
  }

  .admin-gallery-actions {
    justify-content: stretch;
  }

  .admin-gallery-actions button {
    flex: 1 1 160px;
  }

  .admin-choice-grid button {
    flex: 1 1 calc(50% - 8px);
  }

  .admin-choice-grid.compact button {
    flex-basis: auto;
  }

  .admin-wizard-step {
    min-width: 220px;
    padding: 0 18px;
  }

  .admin-wizard-sidebar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    overflow-x: auto;
  }

  .admin-wizard-step {
    flex: 0 0 230px;
    min-height: 64px;
    border: 1px solid #d9dde3;
    border-radius: var(--control-radius);
  }

  .admin-sidebar-save {
    position: relative;
    bottom: auto;
    flex: 0 0 180px;
    width: auto;
    min-height: 64px;
    margin: 0;
  }

  .admin-wizard-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-wizard-nav .primary-action,
  .admin-wizard-nav .secondary-action {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .menu-button {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 10px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .hero,
  .hero-content {
    min-height: 740px;
  }

  .search-panel,
  .hero-actions,
  .filters,
  .market-strip,
  .home-path-grid,
  .catalog-layout,
  .property-grid,
  .private-section,
  .insight-grid,
  .split-section,
  .service-grid,
  .method-section,
  .neighborhood-grid,
  .trust-grid,
  .plan-section,
  .document-grid,
  .document-vault,
  .purchase-flow,
  .contact-band {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel .primary-action,
  .filters .secondary-action,
  .catalog-layout,
  .contact-band > div,
  .contact-form {
    grid-column: 1 / -1;
  }

  .map-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .property-title-row,
  .property-body,
  .plan-section,
  .related-grid,
  .listings-layout,
  .admin-hero,
  .admin-shell,
  .admin-edit-layout,
  .admin-preview {
    grid-template-columns: 1fr;
  }

  .home-featured-grid,
  .listings-filters,
  .admin-editor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .listings-filter-main {
    grid-template-columns: 1fr 1fr;
  }

  .listings-filter-actions {
    grid-column: 1 / -1;
  }

  .listings-advanced-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listings-grid {
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }

  .listings-layout.is-map-hidden .listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listings-map-panel {
    position: relative;
    top: auto;
  }

  .listings-map {
    height: 420px;
  }

  .property-contact-card {
    position: relative;
    top: auto;
  }

  .admin-list-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  .admin-side-panel {
    position: relative;
    top: auto;
  }

  .admin-form-actions.sticky {
    position: relative;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .neighborhood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel label:nth-child(2) {
    border-right: 0;
  }

  .section-heading.compact {
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .main-nav {
    top: 66px;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(251, 250, 248, 0.96), rgba(251, 250, 248, 0.72)),
      linear-gradient(0deg, rgba(251, 250, 248, 1), rgba(251, 250, 248, 0.1) 52%);
  }

  .hero-content {
    padding-top: 104px;
    justify-content: flex-end;
  }

  .search-panel,
  .hero-actions,
  .filters,
  .market-strip,
  .home-path-grid,
  .catalog-layout,
  .property-grid,
  .private-section,
  .insight-grid,
  .split-section,
  .service-grid,
  .method-section,
  .method-list,
  .neighborhood-grid,
  .trust-grid,
  .technical-grid,
  .cost-grid,
  .commercial-grid,
  .visit-grid,
  .document-grid,
  .document-vault,
  .purchase-flow,
  .contact-band,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .search-panel label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-filters {
    gap: 8px;
  }

  .chip-filter {
    width: calc(50% - 4px);
    justify-content: center;
    padding: 0 8px;
  }

  .market-strip {
    gap: 0;
  }

  .market-strip div {
    padding: 24px 0;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .property-content {
    min-height: auto;
  }

  .map-shell {
    min-height: 360px;
  }

  .real-map {
    min-height: 360px;
  }

  .detail-page {
    padding-top: 92px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .detail-gallery img,
  .detail-gallery .gallery-tile,
  .detail-gallery .gallery-tile:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

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

  .detail-list {
    grid-template-columns: 1fr;
  }

  .property-intro,
  .property-gallery-section,
  .property-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .property-title-copy h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .property-price-panel {
    padding: 18px;
  }

  .property-section h2 {
    font-size: 30px;
  }

  .property-contact-card {
    padding: 22px;
  }

  .gallery-open {
    right: 28px;
    bottom: 54px;
  }

  .shortlist-panel {
    top: 78px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .advanced-map-controls {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }

  .detail-map {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }

  .home-featured-grid,
  .listings-filters,
  .listings-layout,
  .admin-editor-grid,
  .admin-editor-grid.compact,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .listings-filter-main,
  .listings-advanced-fields {
    grid-template-columns: 1fr;
  }

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

  .listings-page {
    padding-top: 82px;
  }

  .listings-head {
    padding-top: 24px;
  }

  .listings-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .listings-toolbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .listings-layout.is-map-hidden .listings-grid {
    grid-template-columns: 1fr;
  }

  .listings-map {
    height: 360px;
    min-height: 360px;
  }

  .detail-actions .primary-action,
  .detail-actions .secondary-action {
    width: 100%;
  }

  .private-copy,
  .private-panel {
    padding: 24px;
  }

  .insight-grid article {
    min-height: 240px;
  }

  .insight-grid h3 {
    margin-top: 28px;
    font-size: 24px;
  }

  .service-grid article {
    min-height: 220px;
  }

  .method-visual {
    min-height: 360px;
  }

  .map-card span {
    min-height: 86px;
  }

  .sell-page {
    padding-top: 82px;
  }

  .admin-page {
    padding-top: 0;
  }

  .admin-hero {
    padding-top: 42px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .admin-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-step,
  .admin-advanced {
    padding: 20px;
  }

  .admin-preview img {
    height: 190px;
  }

  .admin-photo-tools {
    grid-template-columns: 1fr;
  }

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

  .admin-actions .primary-action,
  .admin-actions .secondary-action,
  .admin-form-actions .primary-action,
  .admin-form-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .sell-hero {
    min-height: 520px;
    padding: 72px 16px 54px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }

  .footer-links,
  .cookie-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

}

/* Final visual system normalization: one corner size, lighter depth. */
.search-panel,
.hero-actions a,
.home-path-grid a,
.filters label,
.contact-form label,
.chip-filter,
.map-panel,
.map-shell,
.real-map,
.map-toggle,
.map-tool,
.advanced-map-controls label,
.property-card,
.favorite-button,
.contract,
.property-meta span,
.private-form,
.private-note,
.neighborhood-card,
.neighborhood-grid article,
.neighborhood-visual,
.neighborhood-visual img,
.trust-card,
.insight-card,
.detail-gallery img,
.detail-gallery .gallery-tile,
.property-price-panel,
.property-contact-card,
.detail-contact-form label,
.detail-actions .primary-action,
.detail-actions .secondary-action,
.detail-map,
.listings-filters,
.listings-filters label,
.listings-filter-actions .secondary-action,
.listings-filters .secondary-action,
.listings-advanced,
.shortlist-panel,
.shortlist-item,
.listings-map-panel,
.saved-search-status,
.admin-auth-card,
.admin-toast,
.admin-search-field,
.admin-list-card,
.admin-list-card img,
.admin-list-card button,
.admin-editor-top,
.admin-back-button,
.admin-editor-save,
.admin-wizard-card,
.admin-preview-card,
.admin-wizard-form input,
.admin-wizard-form select,
.admin-wizard-form textarea,
.admin-choice-grid button,
.admin-feature-grid label,
.admin-wizard-form .admin-wide-check,
.admin-pin-card,
.admin-location-map,
.admin-upload-zone,
.admin-photo-tools button,
.admin-photo-tools img,
.admin-gallery-empty,
.admin-gallery-item,
.admin-gallery-item img,
.admin-gallery-actions button,
.admin-preview img,
.admin-preview-placeholder,
.admin-final-save,
.admin-simple-actions .secondary-action,
.cookie-banner,
.cookie-actions button {
  border-radius: var(--radius);
}

.site-header.is-scrolled,
.site-header.is-open,
.search-panel,
.home-path-grid a:hover,
.map-panel,
.property-card:hover,
.property-price-panel,
.property-contact-card,
.listings-filters,
.shortlist-panel,
.admin-list-card,
.admin-list-card.is-active,
.admin-toast,
.admin-auth-card,
.admin-upload-zone:hover,
.admin-upload-zone.is-dragging,
.admin-gallery-item.is-cover {
  box-shadow: var(--soft-shadow);
}

.primary-action,
.favorite-button,
.chip-filter:has(input:checked),
.admin-choice-grid button.is-active,
.admin-feature-grid label:has(input:checked),
.admin-wizard-form .admin-wide-check:has(input:checked),
.admin-editor-save.has-unsaved {
  box-shadow: none;
}

.primary-action:hover {
  box-shadow: 0 8px 18px rgba(101, 16, 23, 0.12);
}

.availability-dot,
.leaflet-price-marker span,
.leaflet-poi-marker span,
.detail-price-marker span,
.admin-step-state {
  border-radius: 999px;
}

.admin-location-marker span {
  border-radius: 999px 999px 999px 4px;
}
