:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6f69;
  --line: #dfe8e4;
  --surface: #ffffff;
  --page: #f2f6f4;
  --accent: #009b72;
  --accent-2: #ff4d36;
  --accent-3: #2368d1;
  --sun: #f6c944;
  --violet: #7657d8;
  --shadow: 0 18px 44px rgba(18, 31, 28, 0.1);
  --strong-shadow: 0 24px 70px rgba(18, 31, 28, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #f9fbfa 0, #eff5f3 420px, #f5f7f6 100%);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.user-topbar {
  padding: 22px 34px;
  border-bottom-color: #eeeeee;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(24, 32, 29, 0.12);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav-link:hover {
  border-color: rgba(0, 155, 114, 0.32);
  background: #f0fbf7;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  font-size: 17px;
}

.status-pill {
  min-width: 168px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.status-pill.ok {
  color: #0c5c4c;
  border-color: #9bc9bd;
  background: #eaf6f2;
}

.status-pill.warn {
  color: #814122;
  border-color: #e0b192;
  background: #fff3e9;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.geo-browser {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-areas:
    "summary summary"
    "controls map"
    "layers sample";
  gap: 18px;
  padding: 20px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.admin-shell {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 22px;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(22, 113, 95, 0.08), rgba(49, 93, 141, 0.08)),
    #ffffff;
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

.admin-hero::after {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 360px;
  height: 360px;
  border: 48px solid rgba(22, 113, 95, 0.08);
  border-radius: 50%;
  content: "";
}

.admin-hero-copy,
.admin-command-center {
  position: relative;
  z-index: 1;
}

.admin-hero .eyebrow,
.admin-hero p {
  color: var(--muted);
}

.admin-hero h2 {
  max-width: 760px;
  margin-top: 56px;
  color: #0d2f2a;
  font-size: 44px;
  line-height: 1.04;
}

.admin-hero p {
  max-width: 860px;
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.admin-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  max-width: 860px;
  margin-top: 28px;
}

.admin-hero-stat {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(22, 113, 95, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 32, 29, 0.08);
}

.admin-hero-stat span,
.admin-hero-stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-hero-stat strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
}

.admin-command-center {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(22, 113, 95, 0.12);
  border-radius: 10px;
  background: #f7fbf9;
  box-shadow: 0 18px 44px rgba(24, 32, 29, 0.08);
}

.admin-command-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-action-cards {
  display: grid;
  gap: 10px;
}

.admin-action-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(22, 113, 95, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #123f38;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.admin-action-card.primary {
  background: #ffffff;
}

.admin-action-card:hover {
  transform: translateY(-1px);
  background: #f2faf7;
}

.admin-action-card span {
  color: #16715f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-action-card strong {
  font-size: 18px;
  line-height: 1.1;
}

.admin-action-card small {
  color: #61716b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-hero .status-pill {
  border-color: #9bc9bd;
  background: #eaf6f2;
  color: #0c5c4c;
}

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

.admin-metric {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-metric span,
.admin-metric p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-metric strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
}

.admin-metric p {
  margin: 10px 0 0;
  line-height: 1.35;
}

.admin-metric.ok {
  border-color: #9bc9bd;
}

.admin-metric.accent {
  border-color: #aec4dc;
}

.admin-metric.warn {
  border-color: #e0b192;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

.admin-card-panel,
.admin-form-panel {
  min-width: 0;
}

.admin-form-panel {
  border-color: #9bc9bd;
}

.admin-form-panel.active {
  box-shadow: 0 18px 52px rgba(22, 113, 95, 0.16);
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-section-heading .eyebrow {
  margin-bottom: 3px;
}

.user-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-areas:
    "summary summary"
    "filters map"
    "filters properties"
    "publish publish";
  gap: 18px;
  padding: 20px;
}

.user-layout.publishing-mode {
  grid-template-areas:
    "summary summary"
    "publish publish"
    "filters map"
    "filters properties";
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.summary {
  grid-column: 1 / -1;
  grid-area: summary;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.user-hero {
  align-items: stretch;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  border-color: #ededed;
  background:
    linear-gradient(120deg, rgba(227, 17, 33, 0.06), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.user-hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 34px 38px;
}

.user-hero-copy h2 {
  max-width: 760px;
  color: #1f2523;
  font-size: 38px;
  line-height: 1.04;
}

.user-hero-copy p:last-child {
  max-width: 740px;
  margin-top: 13px;
  color: #65716d;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.user-hero-side {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 330px;
  padding: 28px;
  background: #f7f8f7;
  border-left: 1px solid #eceeed;
}

.user-hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.user-hero-metrics div {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #e6e9e7;
  border-radius: 8px;
  background: #ffffff;
}

.user-hero-metrics span {
  display: block;
  color: #68736f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-hero-metrics strong {
  display: block;
  margin-top: 7px;
  color: #202725;
  font-size: 20px;
  line-height: 1.1;
}

.controls-panel {
  grid-area: controls;
}

.layers-panel {
  grid-area: layers;
}

.sample-panel {
  grid-area: sample;
}

.user-summary {
  grid-area: summary;
}

.user-filters {
  grid-area: filters;
  align-self: start;
}

.user-map-panel {
  grid-area: map;
  align-self: start;
}

.user-publish-panel {
  grid-area: publish;
}

.account-panel {
  grid-column: 1 / -1;
}

.publishing-mode .user-publish-panel {
  border-color: #9bc9bd;
}

.property-panel {
  grid-area: properties;
}

.wide {
  grid-column: 1 / -1;
}

.summary p,
.map-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.section-heading .eyebrow {
  margin-bottom: 3px;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--accent), #087e73);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: linear-gradient(135deg, #00845f, #075f58);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button:hover {
  background: #f1f6f4;
}

.danger-button {
  border-color: #f0b7b0;
  color: #9a3327;
}

.danger-button:hover {
  background: #fff1ef;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 155, 114, 0.58);
  box-shadow: 0 0 0 4px rgba(0, 155, 114, 0.1);
  outline: none;
}

.rental-only-operation select {
  border-color: rgba(143, 31, 50, .28);
  background: #fff6f3;
  color: #7b2637;
}

.rental-only-operation small:not([hidden]) {
  display: block;
  margin-top: 6px;
  color: #7b5960;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

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

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.form-stack.compact {
  gap: 11px;
}

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

.publish-heading p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.form-grid-2,
.form-grid-3 {
  display: grid;
  gap: 10px;
}

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

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-shell {
  width: min(100%, 430px);
}

.auth-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.auth-user-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.notice {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notice.error {
  color: #9a3327;
}

.notice.ok {
  color: #12604f;
}

.address-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.address-actions button {
  flex: 0 0 auto;
}

.isochrone-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(227, 17, 33, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7f7, #ffffff);
}

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

#radiusFilterField[hidden] {
  display: none;
}

.isochrone-panel > [hidden] {
  display: none;
}

.place-autocomplete {
  position: relative;
  display: block;
  color: inherit !important;
  white-space: normal !important;
}

.place-autocomplete > input {
  width: 100%;
}

.place-suggestions {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dce6e1;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 42px rgba(27, 52, 44, 0.2);
}

.place-suggestions[hidden] {
  display: none;
}

.place-suggestions button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #26332f;
  text-align: left;
}

.place-suggestions button:hover,
.place-suggestions button:focus-visible {
  outline: none;
  background: #edf8f4;
}

.place-suggestions button > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.place-suggestions strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-suggestions small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-suggestion-pin {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #e6f6f0;
  color: #008f6a !important;
  font-size: 17px !important;
}

.place-suggestion-message {
  display: block;
  padding: 12px;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 750;
  line-height: 1.4;
  white-space: normal !important;
}

.isochrone-panel .address-actions {
  align-items: stretch;
}

.isochrone-panel .address-actions button {
  flex: 1 1 0;
}

.status-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.status-text.ok {
  color: #12604f;
}

.status-text.error {
  color: #9a3327;
}

.hierarchy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.level {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.level-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9f3ef;
  color: var(--accent);
  font-weight: 800;
}

.level strong {
  display: block;
}

.level span {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #e5f4ee;
  color: #12604f;
}

.map-panel {
  grid-area: map;
  min-height: 430px;
}

.real-map-panel {
  padding: 0;
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0ee;
  background: #ffffff;
}

.map-toolbar strong {
  display: block;
  color: #202725;
  font-size: 17px;
}

.map-toolbar span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-layer-toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 620px;
}

.map-layer-toggles label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #e2e7e4;
  border-radius: 999px;
  background: #ffffff;
  color: #394842;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.map-layer-toggles input {
  position: relative;
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  appearance: none;
  border: 2px solid var(--overlay-color, var(--accent));
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.map-layer-toggles input:checked {
  background: var(--overlay-color, var(--accent));
  box-shadow: inset 0 0 0 3px #ffffff;
}

.web-map,
.local-map {
  width: 100%;
  height: 620px;
  min-height: 520px;
  background: #dfe7e2;
}

.user-map-panel .web-map {
  height: 430px;
  min-height: 430px;
}

#geoMap {
  width: 100%;
  height: 100%;
  display: block;
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-layers,
.leaflet-bar a {
  border-color: rgba(24, 32, 29, 0.16) !important;
  box-shadow: 0 8px 22px rgba(24, 32, 29, 0.12);
}

.leaflet-control-attribution {
  font-size: 10px;
}

.geo-shape {
  cursor: pointer;
  transition: fill-opacity 120ms ease, stroke-width 120ms ease;
}

.geo-shape:hover {
  fill-opacity: 0.5;
  stroke-width: 4;
}

.geo-overlay {
  cursor: default;
}

.poi-marker {
  filter: drop-shadow(0 2px 4px rgba(24, 32, 29, 0.25));
}

.poi-pin {
  background: transparent;
  border: 0;
}

.poi-pin span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(24, 32, 29, 0.28);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.property-pin {
  background: transparent;
  border: 0;
}

.property-pin span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #111817;
  box-shadow: 0 5px 14px rgba(24, 32, 29, 0.32);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.draft-property-pin span {
  width: 34px;
  height: 34px;
  background: #b84a38;
}

.recommended-block-pin {
  background: transparent;
  border: 0;
}

.recommended-block-pin span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #fffaf2;
  border-radius: 10px 10px 10px 3px;
  background: linear-gradient(145deg, #c18a36, #8f1f32);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(74, 16, 29, .34);
  transform: rotate(-8deg);
}

.recommended-block-pin span::first-letter { transform: rotate(8deg); }

.recommended-block-tooltip {
  max-width: 330px;
  white-space: normal;
  line-height: 1.45;
}

.recommended-neighbourhood-label {
  padding: 5px 8px;
  border: 1px solid rgba(143, 31, 50, .18);
  border-radius: 8px;
  background: rgba(255, 250, 246, .94);
  color: #5b1221;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .015em;
  box-shadow: 0 4px 12px rgba(74, 16, 29, .14);
}

.recommended-neighbourhood-label::before { display: none; }

.map-shell {
  margin-top: 14px;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 32, 29, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(24, 32, 29, 0.06) 1px, transparent 1px),
    #f9fbfa;
  background-size: 40px 40px;
}

#bboxMap {
  width: 100%;
  height: 100%;
  display: block;
}

.layers {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.selector-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.selector-stack > label,
.proximity-grid > label {
  padding: 11px;
  border: 1px solid #edf0ee;
  border-radius: 8px;
  background: #fbfcfb;
}

.selector-stack select,
.selector-stack input {
  background: #ffffff;
}

.breadcrumb {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: #33443e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.map-toggles {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.map-toggles label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: #394842;
  font-size: 13px;
  font-weight: 800;
}

.map-toggles input {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  appearance: none;
  border: 2px solid var(--overlay-color, var(--accent));
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.map-toggles input:checked {
  background: var(--overlay-color, var(--accent));
  box-shadow: inset 0 0 0 3px #ffffff;
}

.map-toggles input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--overlay-color, var(--accent)) 28%, transparent);
  outline-offset: 2px;
}

.compact-layers {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.control-list,
.users-list,
.events-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.property-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.property-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 286px;
  padding: 16px;
  border: 1px solid #e7ebe9;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(24, 32, 29, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.property-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 17, 33, 0.28);
  box-shadow: 0 18px 44px rgba(24, 32, 29, 0.12);
}

.property-card-top,
.property-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.property-card strong,
.property-price {
  display: block;
  font-size: 16px;
}

.property-card span,
.property-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.property-main {
  display: grid;
  gap: 5px;
}

.property-main > strong {
  color: #1f2523;
  font-size: 19px;
  line-height: 1.18;
}

.property-location {
  color: #68736f;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #1f2523;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 950;
  text-transform: uppercase;
}

.operation-chip.sale {
  background: #e31121;
}

.operation-chip.rent {
  background: #16715f;
}

.property-price {
  color: #111715;
  font-size: 21px;
  font-weight: 900;
}

.property-price-row > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f5f4;
  color: #5f6a66;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.property-specs span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 50px;
  padding: 8px 6px;
  border: 1px solid #edf0ee;
  border-radius: 8px;
  background: #fafbfa;
  color: #33443e;
  font-size: 12px;
  font-weight: 800;
}

.property-specs span strong {
  color: #1f2523;
  font-size: 17px;
  line-height: 1;
}

.nearby-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nearby-pill {
  padding: 5px 7px;
  border-radius: 999px;
  background: #f3f6f4;
  color: #52645d;
  font-size: 12px;
  font-weight: 800;
}

.nearby-pill.iso {
  background: #ecf4fb;
  color: #315d8d;
}

.nearby-pill.park {
  background: #eef8f0;
  color: #24794e;
}

.nearby-pill.food {
  background: #fff1ef;
  color: #b13a2e;
}

.nearby-pill.school {
  background: #edf8f4;
  color: #2d8f73;
}

.nearby-pill.church {
  background: #f6f1ea;
  color: #6f5b44;
}

.nearby-pill.transport {
  background: #fceded;
  color: #bb2424;
}

.nearby-pill.shopping {
  background: #fff4e7;
  color: #a85a12;
}

.nearby-pill.health {
  background: #fdecef;
  color: #b52d3b;
}

.nearby-pill.university {
  background: #eaf1f8;
  color: #315d8d;
}

.nearby-pill.culture {
  background: #f5ecf8;
  color: #754184;
}

.property-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  min-height: 120px;
  align-content: center;
  background: #ffffff;
}

.property-empty strong {
  color: #1f2523;
}

.property-empty span {
  color: var(--muted);
  font-weight: 750;
}

.property-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.property-actions button {
  flex: 1 1 0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.account-grid form {
  margin-top: 0;
  padding: 16px;
  border: 1px solid #e8ecea;
  border-radius: 8px;
  background: #fbfcfb;
}

.account-grid h3 {
  margin: 0;
  color: #202725;
  font-size: 16px;
}

.danger-zone {
  border-color: #f0c0ba !important;
  background: #fff8f7 !important;
}

.danger-zone p {
  margin: 0;
  color: #7d4a43;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.proximity-grid {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

/* Modern user and geodata surfaces */
.user-page .topbar,
.geo-page .topbar {
  min-height: 82px;
}

.user-layout {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-areas:
    "summary summary"
    "filters map"
    "filters properties"
    "publish publish";
  gap: 20px;
  padding: 22px;
}

.panel {
  border-color: rgba(23, 33, 31, 0.09);
  box-shadow: var(--shadow);
}

.user-hero {
  min-height: 310px;
  border: 0;
  background:
    linear-gradient(105deg, rgba(0, 155, 114, 0.96) 0%, rgba(0, 125, 132, 0.92) 46%, rgba(35, 104, 209, 0.88) 100%),
    #00886d;
  color: #ffffff;
  box-shadow: var(--strong-shadow);
}

.user-hero-copy {
  padding: 42px 44px;
}

.user-hero-copy .eyebrow,
.user-hero-copy #userSummary {
  color: rgba(255, 255, 255, 0.84);
}

.user-hero-copy h2 {
  max-width: 850px;
  color: #ffffff;
  font-size: 44px;
}

.user-hero-copy #userSummary {
  max-width: 740px;
  margin-top: 13px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.5;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: #ffffff;
  color: #0d584a;
  font-weight: 900;
  text-decoration: none;
}

.hero-link.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.user-hero-side {
  min-width: 360px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.user-hero .status-pill {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.user-hero-metrics div {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.user-filters {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  overflow: auto;
  border-top: 5px solid var(--accent);
}

.filter-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #102b25;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.filter-group-title::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  content: "";
}

.selector-stack > label,
.proximity-grid > label {
  border-color: rgba(23, 33, 31, 0.08);
  background: #f8fbfa;
}

.selector-stack > label:hover,
.proximity-grid > label:hover {
  border-color: rgba(0, 155, 114, 0.26);
  background: #ffffff;
}

.user-map-panel {
  min-height: 620px;
  border: 0;
  box-shadow: var(--strong-shadow);
}

.user-map-panel .web-map {
  height: 560px;
  min-height: 560px;
}

.map-toolbar {
  min-height: 86px;
  background:
    linear-gradient(90deg, #ffffff 0%, #f8fbfa 62%, #eff8ff 100%);
}

.map-toolbar strong {
  font-size: 19px;
}

.map-layer-toggles label,
.map-toggles label {
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.map-layer-toggles label:hover,
.map-toggles label:hover {
  transform: translateY(-1px);
  border-color: var(--overlay-color, var(--accent));
  background: #ffffff;
}

.map-toolbar {
  position: relative;
  z-index: 510;
  overflow: visible;
}

.map-layer-picker {
  position: relative;
  flex: 0 0 auto;
}

.map-layer-picker summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #dce6e1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(35, 64, 54, 0.08);
  cursor: pointer;
  list-style: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.map-layer-picker summary::-webkit-details-marker {
  display: none;
}

.map-layer-picker summary:hover,
.map-layer-picker[open] summary {
  border-color: rgba(0, 155, 114, 0.45);
  box-shadow: 0 10px 26px rgba(0, 105, 82, 0.13);
}

.map-layer-trigger-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  background: #e8f7f1;
  color: #008f6a !important;
  font-size: 20px !important;
  line-height: 1;
}

.map-layer-trigger-copy {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
  color: inherit !important;
  white-space: normal !important;
}

.map-layer-trigger-copy strong {
  font-size: 13px;
  line-height: 1.15;
}

.map-layer-trigger-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.map-layer-chevron {
  color: #64736d !important;
  font-size: 18px !important;
  transition: transform 150ms ease;
}

.map-layer-picker[open] .map-layer-chevron {
  transform: rotate(180deg);
}

.map-layer-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid #dce6e1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(30, 52, 45, 0.2);
}

.map-layer-menu-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1ef;
}

.map-layer-menu-heading div {
  min-width: 0;
}

.map-layer-menu-heading strong {
  display: block;
  font-size: 15px;
}

.map-layer-menu-heading span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.map-layer-menu-heading button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #f7faf8;
  color: #53615c;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.map-layer-menu .map-layer-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: none;
}

.map-layer-menu .map-layer-toggles label {
  justify-content: flex-start;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 11px;
  cursor: pointer;
  white-space: normal;
}

.map-layer-menu .map-layer-toggles label:has(input:checked) {
  border-color: color-mix(in srgb, var(--overlay-color, var(--accent)) 48%, #dce6e1);
  background: color-mix(in srgb, var(--overlay-color, var(--accent)) 8%, #ffffff);
}

.map-layer-menu .map-layer-toggles input {
  border-radius: 5px;
}

.map-layer-menu .map-layer-toggles input::after {
  content: "✓";
  position: absolute;
  inset: -3px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  opacity: 0;
}

.map-layer-menu .map-layer-toggles input:checked {
  box-shadow: none;
}

.map-layer-menu .map-layer-toggles input:checked::after {
  opacity: 1;
}

.property-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.property-panel .section-heading {
  margin: 6px 0 14px;
  padding: 0 4px;
}

.property-list {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.property-card {
  min-height: 304px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(18, 31, 28, 0.09);
}

.property-card:nth-child(3n + 2) {
  border-top-color: var(--accent-2);
}

.property-card:nth-child(3n) {
  border-top-color: var(--accent-3);
}

.operation-chip.sale {
  background: var(--accent-2);
}

.operation-chip.rent {
  background: var(--accent);
}

.property-price {
  color: #0b463c;
  font-size: 23px;
}

.property-specs span {
  border-color: rgba(35, 104, 209, 0.14);
  background: #f7fbff;
}

.nearby-pill {
  border: 1px solid rgba(23, 33, 31, 0.06);
}

.user-publish-panel {
  border-top: 5px solid var(--accent-2);
}

.geo-browser {
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  grid-template-areas:
    "summary summary"
    "controls map"
    "layers map"
    "sample sample";
  gap: 20px;
  padding: 22px;
}

.geo-browser .summary {
  min-height: 150px;
  border: 0;
  background:
    linear-gradient(110deg, #102b25, #0b6151 54%, #2368d1);
  color: #ffffff;
  box-shadow: var(--strong-shadow);
}

.geo-browser .summary .eyebrow,
.geo-browser .summary p {
  color: rgba(255, 255, 255, 0.8);
}

.geo-browser .summary h2 {
  color: #ffffff;
  font-size: 32px;
}

.geo-browser .summary button {
  background: #ffffff;
  color: #0d584a;
}

.controls-panel,
.layers-panel {
  align-self: start;
}

.controls-panel {
  border-top: 5px solid var(--accent-3);
}

.layers-panel {
  border-top: 5px solid var(--sun);
}

.sample-panel {
  min-width: 0;
}

.geo-browser .map-panel {
  min-height: 720px;
  border: 0;
  box-shadow: var(--strong-shadow);
}

.geo-browser .web-map {
  height: 650px;
}

.onboarding-page {
  min-height: 100vh;
  background: #ffffff;
}

.onboarding-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 72px;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
}

.onboarding-brand,
.onboarding-topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.onboarding-brand {
  color: #1e2523;
  text-decoration: none;
}

.onboarding-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.onboarding-brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.onboarding-topbar nav a {
  color: #4f5e59;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.onboarding-shell {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 28px 72px;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 92px;
}

.ghost-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  background: #ffffff;
  color: #1f2925;
  font-size: 20px;
}

.ghost-button:hover {
  background: #f6f6f6;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f2f2;
}

.progress-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e31121;
  transition: width 180ms ease;
}

.onboarding-card {
  width: min(100%, 760px);
  margin: 42px auto 0;
  text-align: center;
}

.onboarding-card h1 {
  color: #1f2523;
  font-size: 34px;
  line-height: 1.15;
}

.onboarding-copy {
  max-width: 560px;
  margin: 12px auto 0;
  color: #6a7470;
  font-size: 15px;
  font-weight: 700;
}

.onboarding-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

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

.onboarding-option {
  display: grid;
  place-items: center;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 164px;
  border: 1px solid #e0e3e2;
  border-radius: 10px;
  background: #ffffff;
  color: #232927;
  box-shadow: none;
}

.onboarding-option:hover,
.onboarding-option.selected {
  border-color: #e31121;
  background: #fff8f8;
}

.onboarding-option-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f6f6f6;
  color: #7a7f7d;
  font-size: 27px;
  font-weight: 900;
}

.onboarding-option-text {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
}

.onboarding-option strong,
.onboarding-option small {
  max-width: 86%;
}

.onboarding-option strong {
  font-size: 17px;
  line-height: 1.25;
}

.onboarding-option small {
  color: #69726f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.onboarding-next {
  min-width: 180px;
  margin-top: 28px;
  background: #e31121;
}

.onboarding-next:hover {
  background: #c70e1c;
}

.onboarding-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.onboarding-number,
.onboarding-place {
  text-align: left;
}

.onboarding-number {
  padding: 18px;
  border: 1px solid #e0e3e2;
  border-radius: 10px;
}

.onboarding-place {
  max-width: 560px;
  margin: 28px auto 0;
}

.onboarding-final-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.new-user-page {
  background:
    linear-gradient(180deg, #ffffff 0, #f4faf7 360px, #f6f7fb 100%);
}

.onboarding-topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.onboarding-brand strong {
  color: #0f4f44;
  font-weight: 950;
}

.onboarding-topbar nav a {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
}

.onboarding-topbar nav a:hover {
  background: #f0fbf7;
  color: #0f4f44;
}

.new-user-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: stretch;
  gap: 24px;
  padding: 44px 0 18px;
}

.new-user-hero h1 {
  max-width: 720px;
  color: #102b25;
  font-size: 52px;
  line-height: 1;
}

.new-user-hero p:not(.eyebrow) {
  max-width: 670px;
  margin: 16px 0 0;
  color: #5b6d67;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.5;
}

.mini-map-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 260px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 33, 31, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 31, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #dff8ef, #eaf2ff 56%, #fff4d1);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--strong-shadow);
}

.mini-map-card::before {
  position: absolute;
  inset: 52px -20px auto -18px;
  height: 72px;
  border-top: 16px solid rgba(0, 155, 114, 0.28);
  border-bottom: 12px solid rgba(255, 77, 54, 0.24);
  transform: rotate(-13deg);
  content: "";
}

.mini-map-card::after {
  position: absolute;
  inset: auto -28px 72px 36px;
  height: 56px;
  border-top: 13px solid rgba(35, 104, 209, 0.28);
  transform: rotate(18deg);
  content: "";
}

.mini-map-card strong,
.mini-map-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.mini-map-card strong {
  color: #102b25;
  font-size: 28px;
}

.mini-map-card small {
  margin-top: 6px;
  color: #52645d;
  font-weight: 850;
}

.mini-pin {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 31, 28, 0.22);
}

.mini-pin.one {
  top: 58px;
  left: 28%;
  background: var(--accent-2);
}

.mini-pin.two {
  top: 116px;
  right: 26%;
  background: var(--accent-3);
}

.mini-pin.three {
  right: 42%;
  bottom: 92px;
  background: var(--accent);
}

.onboarding-progress {
  min-height: 70px;
}

.onboarding-progress span {
  color: #263b35;
  font-size: 13px;
  font-weight: 950;
}

.progress-track {
  background: #e6eeea;
}

.progress-track div {
  background: linear-gradient(90deg, var(--accent-2), var(--sun), var(--accent));
}

.onboarding-card {
  width: min(100%, 880px);
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.onboarding-card h1 {
  font-size: 38px;
}

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

.onboarding-option {
  justify-items: start;
  place-items: stretch;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.onboarding-option:hover,
.onboarding-option.selected {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 54, 0.7);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(18, 31, 28, 0.1);
}

.onboarding-option-icon {
  border-radius: 8px;
  background: #102b25;
  color: #ffffff;
}

.onboarding-option-text {
  justify-items: start;
}

.onboarding-option strong,
.onboarding-option small {
  max-width: 100%;
}

.onboarding-number {
  background: #ffffff;
}

.onboarding-next {
  background: linear-gradient(135deg, var(--accent-2), #e33759);
}

.onboarding-next:hover {
  background: linear-gradient(135deg, #d93624, #c42d50);
}

.auth-page {
  background:
    linear-gradient(135deg, rgba(0, 155, 114, 0.12), transparent 40%),
    linear-gradient(315deg, rgba(35, 104, 209, 0.12), transparent 38%),
    #f7faf9;
}

.auth-panel {
  border: 0;
  border-top: 5px solid var(--accent);
  box-shadow: var(--strong-shadow);
}

.control-row,
.user-row,
.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.control-row code {
  max-width: 58%;
  overflow: hidden;
  color: #33443e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row strong,
.event-row strong {
  display: block;
}

.user-row span,
.event-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

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

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.layer-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  text-align: left;
  color: var(--ink);
}

.layer-card:hover,
.layer-card.active {
  border-color: #82b9ac;
  background: #f1faf7;
}

.layer-card strong {
  display: block;
  font-size: 14px;
}

.layer-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#sampleHint {
  margin-top: 10px;
  color: var(--muted);
}

.sample {
  margin-top: 14px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  max-width: 220px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

th {
  background: #f7faf8;
  color: #394842;
  font-weight: 800;
}

.empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .topbar,
  .summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-topbar {
    padding: 20px;
  }

  .top-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .top-actions .nav-link,
  .top-actions button {
    flex: 1 1 150px;
    justify-content: center;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .geo-browser {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "controls"
      "map"
      "layers"
      "sample";
    padding: 14px;
  }

  .local-map {
    height: 520px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-shell {
    padding: 14px;
  }

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

  .admin-hero h2 {
    font-size: 28px;
  }

  .admin-command-center {
    min-width: 0;
  }

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

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

  .user-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "filters"
      "publish"
      "map"
      "properties";
    padding: 14px;
  }

  .user-hero {
    display: grid;
    min-height: 0;
  }

  .user-hero-copy {
    padding: 28px;
  }

  .user-hero-copy h2 {
    font-size: 30px;
  }

  .user-hero-side {
    width: 100%;
    min-width: 0;
    padding: 22px 28px 28px;
    border-top: 1px solid #eceeed;
    border-left: 0;
  }

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

  .user-layout.publishing-mode {
    grid-template-areas:
      "summary"
      "publish"
      "filters"
      "map"
      "properties";
  }

  .property-list,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .control-row,
  .user-row,
  .event-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-row code {
    max-width: 100%;
  }

  .address-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .map-layer-toggles {
    justify-content: flex-start;
    max-width: 100%;
  }

  .map-layer-picker,
  .map-layer-picker summary {
    width: 100%;
  }

  .map-layer-menu {
    right: auto;
    left: 0;
    width: min(430px, calc(100vw - 56px));
  }

  .onboarding-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .onboarding-progress {
    grid-template-columns: auto 1fr;
  }

  .progress-track {
    grid-column: 1 / -1;
  }

  .onboarding-card {
    margin-top: 28px;
  }

  .onboarding-card h1 {
    font-size: 28px;
  }

  .onboarding-options,
  .onboarding-options.compact,
  .onboarding-number-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-option {
    min-height: 122px;
  }

  .onboarding-final-actions {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .user-layout,
  .geo-browser {
    grid-template-columns: 1fr;
  }

  .user-layout {
    grid-template-areas:
      "summary"
      "map"
      "filters"
      "properties"
      "publish";
  }

  .user-layout.publishing-mode {
    grid-template-areas:
      "summary"
      "publish"
      "map"
      "filters"
      "properties";
  }

  .geo-browser {
    grid-template-areas:
      "summary"
      "map"
      "controls"
      "layers"
      "sample";
  }

  .user-filters {
    position: static;
    max-height: none;
  }

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

  .selector-stack .filter-group-title,
  .selector-stack .isochrone-panel,
  .selector-stack .proximity-grid {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 700px) {
  .topbar {
    position: static;
    padding: 18px;
  }

  .user-layout,
  .geo-browser {
    padding: 12px;
  }

  .user-hero-copy {
    padding: 28px 22px;
  }

  .user-hero-copy h2,
  .geo-browser .summary h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  .user-hero-side {
    padding: 20px 22px 24px;
  }

  .selector-stack,
  .proximity-grid {
    grid-template-columns: 1fr;
  }

  .map-layer-menu {
    padding: 14px;
  }

  .map-layer-menu-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .map-layer-menu-heading button {
    align-self: flex-start;
  }

  .map-layer-menu .map-layer-toggles {
    grid-template-columns: 1fr;
  }

  .user-map-panel .web-map,
  .geo-browser .web-map {
    height: 480px;
    min-height: 480px;
  }

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

  .new-user-hero {
    padding-top: 28px;
  }

  .new-user-hero h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .mini-map-card {
    min-height: 210px;
  }

  .onboarding-shell {
    padding: 0 14px 48px;
  }

  .onboarding-card {
    padding: 20px;
  }

  .onboarding-option {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .onboarding-option-text {
    justify-items: center;
  }
}

/* =========================================================
   TU UBI — product experience refresh
   ========================================================= */

:root {
  --tuubi-ink: #17352f;
  --tuubi-deep: #0d2924;
  --tuubi-green: #177a64;
  --tuubi-green-2: #1d9578;
  --tuubi-mint: #dff2ea;
  --tuubi-cream: #f5f1e8;
  --tuubi-paper: #fffdf8;
  --tuubi-orange: #ef6b45;
  --tuubi-gold: #e7b85d;
  --tuubi-line: rgba(23, 53, 47, 0.13);
  --tuubi-soft-shadow: 0 18px 60px rgba(13, 41, 36, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f6f2;
  color: var(--tuubi-ink);
}

a,
button,
input,
select,
textarea {
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 107, 69, 0.26);
  outline-offset: 2px;
}

button,
.primary-cta {
  border-radius: 12px;
}

button:hover,
.primary-cta:hover {
  transform: translateY(-1px);
}

.app-surface,
.user-page {
  background:
    radial-gradient(circle at 92% 3%, rgba(223, 242, 234, 0.8), transparent 32rem),
    #f4f6f2;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--tuubi-line);
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(18px);
}

.app-brand,
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--tuubi-deep);
  text-decoration: none;
}

.app-brand img,
.home-brand img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(13, 41, 36, 0.13);
}

.app-brand span {
  display: grid;
}

.app-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
}

.app-brand small {
  margin-top: 5px;
  color: #73847f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.app-nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #526761;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.app-nav a:hover,
.app-nav a.active {
  background: var(--tuubi-mint);
  color: var(--tuubi-deep);
}

.app-main {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
}

/* Home */

.home-page {
  background: var(--tuubi-paper);
  color: var(--tuubi-deep);
}

.home-header {
  position: relative;
  z-index: 50;
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.home-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-nav,
.home-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-header-actions {
  justify-content: flex-end;
}

.home-nav a,
.text-button {
  padding: 9px 12px;
  color: #4d625c;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.home-nav a:hover,
.text-button:hover {
  color: var(--tuubi-green);
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--tuubi-orange);
  color: white;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(239, 107, 69, 0.22);
}

.primary-cta.small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 12px;
  box-shadow: none;
}

.primary-cta:hover {
  background: #db5835;
  box-shadow: 0 16px 34px rgba(239, 107, 69, 0.28);
}

.secondary-cta {
  border-color: var(--tuubi-line);
  background: transparent;
  color: var(--tuubi-deep);
  box-shadow: none;
}

.secondary-cta:hover {
  border-color: rgba(23, 122, 100, 0.45);
  background: var(--tuubi-mint);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 90px);
  min-height: 690px;
  padding: 70px max(48px, calc((100vw - 1380px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 12%, rgba(231, 184, 93, 0.14), transparent 24rem),
    linear-gradient(135deg, #f8f4eb, #edf6f0);
}

.home-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: -210px;
  bottom: -240px;
  border: 70px solid rgba(23, 122, 100, 0.06);
  border-radius: 50%;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--tuubi-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-kicker span {
  width: 28px;
  height: 2px;
  background: var(--tuubi-orange);
}

.home-kicker.light {
  color: #cce9df;
}

.home-hero h1 {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 5.5vw, 82px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.home-hero h1 em {
  color: var(--tuubi-green);
  font-weight: 500;
}

.home-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: #5a6e68;
  font-size: 18px;
  line-height: 1.7;
}

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

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0;
  margin-top: 44px;
}

.home-proof div {
  display: grid;
  min-width: 130px;
  padding: 0 28px;
  border-left: 1px solid var(--tuubi-line);
}

.home-proof div:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-proof strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--tuubi-green);
  font-size: 28px;
}

.home-proof span {
  margin-top: 3px;
  color: #75857f;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-map-art {
  position: relative;
  min-height: 520px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  overflow: hidden;
  background: #dfe9df;
  box-shadow: 0 38px 90px rgba(13, 41, 36, 0.2);
  transform: rotate(1.2deg);
}

.map-art-top {
  position: absolute;
  z-index: 6;
  inset: 22px 22px auto;
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  color: #274d43;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.map-art-live {
  color: var(--tuubi-green);
}

.map-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 47%, rgba(255,255,255,.95) 48%, rgba(255,255,255,.95) 51%, transparent 52%),
    linear-gradient(108deg, transparent 36%, rgba(255,255,255,.8) 37%, rgba(255,255,255,.8) 40%, transparent 41%),
    linear-gradient(8deg, transparent 68%, rgba(255,255,255,.78) 69%, rgba(255,255,255,.78) 72%, transparent 73%),
    repeating-linear-gradient(95deg, rgba(49,91,78,.08) 0 1px, transparent 1px 55px),
    repeating-linear-gradient(7deg, rgba(49,91,78,.07) 0 1px, transparent 1px 64px),
    #e9eee7;
}

.hero-map-art .road,
.hero-map-art .park,
.hero-map-art .travel-zone,
.hero-map-art .map-pin,
.hero-map-art .origin-dot {
  position: absolute;
}

.hero-map-art .road {
  height: 5px;
  border-radius: 99px;
  background: #d4ba89;
  transform-origin: left center;
}

.hero-map-art .road-a { width: 90%; top: 42%; left: 4%; transform: rotate(-17deg); }
.hero-map-art .road-b { width: 76%; top: 71%; left: 8%; transform: rotate(-52deg); }
.hero-map-art .road-c { width: 70%; top: 24%; left: 22%; transform: rotate(61deg); }
.hero-map-art .park { border-radius: 45% 55% 52% 48%; background: #a8d5a8; }
.hero-map-art .park-a { width: 150px; height: 90px; top: 14%; right: 9%; transform: rotate(-13deg); }
.hero-map-art .park-b { width: 110px; height: 125px; left: 8%; bottom: 12%; transform: rotate(18deg); }

.hero-map-art .travel-zone {
  width: 280px;
  height: 250px;
  top: 27%;
  left: 29%;
  border: 3px solid rgba(23, 122, 100, 0.65);
  border-radius: 44% 56% 51% 49% / 52% 38% 62% 48%;
  background: rgba(23, 122, 100, 0.15);
  transform: rotate(-12deg);
}

.hero-map-art .origin-dot {
  top: 51%;
  left: 49%;
  width: 20px;
  height: 20px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--tuubi-orange);
  box-shadow: 0 5px 18px rgba(23, 53, 47, 0.32);
}

.hero-map-art .map-pin {
  z-index: 4;
  padding: 8px 11px;
  border: 3px solid white;
  border-radius: 11px 11px 11px 2px;
  background: var(--tuubi-deep);
  color: white;
  font-size: 11px;
  box-shadow: 0 10px 20px rgba(13, 41, 36, 0.22);
}

.hero-map-art .pin-a { top: 30%; left: 22%; }
.hero-map-art .pin-b { top: 57%; right: 15%; background: var(--tuubi-orange); }
.hero-map-art .pin-c { bottom: 18%; left: 36%; }

.map-result-card {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 24px;
  display: grid;
  min-width: 245px;
  padding: 17px 18px;
  border-radius: 16px;
  background: var(--tuubi-paper);
  box-shadow: var(--tuubi-soft-shadow);
}

.map-result-card small {
  color: var(--tuubi-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-result-card strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.map-result-card span {
  margin-top: 6px;
  color: #70817c;
  font-size: 11px;
}

.home-trust {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 24px max(48px, calc((100vw - 1380px) / 2));
  border-block: 1px solid var(--tuubi-line);
}

.home-trust p {
  margin: 0;
  color: #667973;
  font-size: 12px;
  font-weight: 800;
}

.home-trust div {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.home-trust span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4ef;
  color: #4d665f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.home-section {
  padding: 110px max(48px, calc((100vw - 1260px) / 2));
}

.home-section-heading {
  max-width: 740px;
  margin: 0 auto 60px;
  text-align: center;
}

.home-section-heading .home-kicker {
  justify-content: center;
}

.home-section h2,
.home-final-cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.home-section-heading > p:last-child {
  color: #687b75;
  font-size: 16px;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--tuubi-line);
}

.home-steps article {
  position: relative;
  min-height: 310px;
  padding: 40px;
  border-left: 1px solid var(--tuubi-line);
}

.home-steps article:first-child { border-left: 0; }
.step-number { position: absolute; top: 22px; right: 24px; color: #a4b1ad; font: 16px Georgia, serif; }
.step-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--tuubi-mint); color: var(--tuubi-green); font-size: 29px; }
.home-steps h3 { margin: 54px 0 12px; font: 26px Georgia, serif; }
.home-steps p { margin: 0; color: #687b75; line-height: 1.7; }

.inventory-section {
  background: var(--tuubi-deep);
  color: white;
}

.inventory-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}

.inventory-heading > div { max-width: 670px; }
.inventory-heading a { color: #d4eee5; font-size: 13px; font-weight: 800; text-decoration: none; }

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

.home-property-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #163a33;
}

.property-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 190px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(18,66,55,.18), rgba(18,66,55,.68)),
    radial-gradient(circle at 78% 28%, #e4c17f 0 9%, transparent 10%),
    linear-gradient(120deg, #6ca68e 0 44%, #d9ddd0 45% 65%, #789480 66%);
}

.property-visual.visual-2 { background: linear-gradient(145deg, rgba(27,60,52,.18), rgba(18,66,55,.68)), linear-gradient(35deg, #dec59b 0 34%, #85a996 35% 62%, #567d70 63%); }
.property-visual.visual-3 { background: linear-gradient(145deg, rgba(27,60,52,.18), rgba(18,66,55,.68)), linear-gradient(125deg, #b2c9ba 0 38%, #d6b277 39% 58%, #668b7d 59%); }
.property-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 5, 10, .08), transparent 50%, rgba(25, 5, 10, .3));
  pointer-events: none;
  z-index: 1;
}
.home-gallery-login {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  background: #32101a;
  color: white;
  text-decoration: none;
}
.home-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 220ms ease, transform 220ms ease;
}
.home-gallery-slide.active {
  opacity: 1;
  transform: scale(1);
}
.home-gallery-cta {
  position: absolute !important;
  right: 12px;
  bottom: 12px;
  z-index: 3 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px !important;
  background: rgba(50, 16, 26, .82) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 850;
  letter-spacing: .04em !important;
  backdrop-filter: blur(8px);
}
.home-gallery-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(50,16,26,.74);
  color: white;
  font: 24px/1 Georgia, serif;
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.home-gallery-arrow:hover { transform: translateY(-50%) scale(1.05); background: rgba(91,18,33,.92); }
.home-gallery-arrow.previous { left: 10px; }
.home-gallery-arrow.next { right: 10px; }
.home-gallery-count {
  position: absolute !important;
  z-index: 5 !important;
  left: 50%;
  bottom: 12px;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: rgba(20,7,11,.72) !important;
  color: #fff !important;
  font-size: 9px !important;
  letter-spacing: .04em !important;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}
.home-gallery-count b { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.property-visual > span:not(.home-gallery-count),
.property-visual > b { position: relative; z-index: 6; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--tuubi-deep); font-size: 9px; letter-spacing: .07em; }
.property-visual > b { background: rgba(13,41,36,.78); color: white; }

.home-property-body { padding: 22px; }
.home-property-body small { color: #9fc2b7; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-property-body h3 { min-height: 55px; margin: 10px 0 20px; font: 22px/1.15 Georgia, serif; }
.home-property-body > div { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.home-property-body strong { color: #f2d597; font-size: 18px; }
.home-property-body span { color: #a9c0b9; font-size: 11px; }
.home-property-skeleton { min-height: 330px; border-radius: 20px; background: linear-gradient(100deg, #163a33 20%, #1d493f 40%, #163a33 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.inventory-status { margin: 22px 0 0; color: #9eb9b1; font-size: 12px; }
.inventory-status.error { color: #ffc0ad; }
.inventory-status.ok { color: #bfe3d7; }
.home-inventory-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 250px; padding: 40px; border: 1px dashed rgba(255,255,255,.2); border-radius: 20px; text-align: center; }
.home-inventory-empty span { font-size: 42px; color: #f2d597; }
.home-inventory-empty strong { margin-top: 10px; font: 24px Georgia, serif; }
.home-inventory-empty p { color: #a9c0b9; }

.value-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.value-copy { position: sticky; top: 120px; }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.value-grid article { min-height: 240px; padding: 30px; border: 1px solid var(--tuubi-line); border-radius: 18px; background: #fbfaf5; }
.value-grid article > span { color: var(--tuubi-orange); font-size: 28px; }
.value-grid h3 { margin: 40px 0 10px; font: 23px Georgia, serif; }
.value-grid p { margin: 0; color: #667973; line-height: 1.65; }

.home-final-cta {
  display: grid;
  place-items: center;
  padding: 110px 24px;
  background: var(--tuubi-green);
  color: white;
  text-align: center;
}

.home-final-cta p { margin: 0 0 12px; color: #cce8df; }
.home-final-cta h2 { max-width: 750px; }
.primary-cta.inverse { margin-top: 30px; background: var(--tuubi-paper); color: var(--tuubi-deep); box-shadow: none; }
.home-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 34px max(48px, calc((100vw - 1380px) / 2)); background: #091e1a; color: #9fb5ae; }
.home-footer p { text-align: center; }
.home-footer div { display: flex; gap: 20px; }
.home-footer a { color: #d8e7e2; font-size: 12px; font-weight: 750; text-decoration: none; }

/* Auth */

.auth-page {
  position: relative;
  min-height: 100vh;
  padding: 44px;
  background:
    radial-gradient(circle at 12% 14%, rgba(239,107,69,.13), transparent 24rem),
    var(--tuubi-deep);
}

.auth-home-link {
  position: relative;
  z-index: 2;
  color: white;
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 510px);
  align-items: center;
  gap: 70px;
  width: min(1120px, 100%);
  min-height: calc(100vh - 130px);
  margin: 0 auto;
}

.auth-story { color: white; }
.auth-story h2 { max-width: 610px; font: 500 clamp(42px, 5vw, 68px)/1.02 Georgia, serif; letter-spacing: -.045em; }
.auth-story > p:last-of-type { max-width: 570px; color: #b6d1c9; font-size: 17px; line-height: 1.7; }
.auth-story-grid { display: flex; gap: 8px; margin-top: 38px; }
.auth-story-grid span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #d8e9e4; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.auth-panel { max-width: none; padding: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 22px; background: var(--tuubi-paper); box-shadow: 0 36px 90px rgba(0,0,0,.25); }
.auth-panel h1 { font: 500 38px Georgia, serif; letter-spacing: -.03em; }
.auth-copy { color: #6d7d78; line-height: 1.6; }
.auth-panel .form-stack { gap: 17px; margin-top: 26px; }
.auth-panel input { min-height: 51px; border-radius: 11px; background: white; }
.auth-panel button { min-height: 52px; margin-top: 4px; background: var(--tuubi-orange); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: #98a49f; font-size: 11px; font-weight: 750; }
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--tuubi-line); }
.auth-user-link { display: flex; justify-content: center; min-height: 46px; align-items: center; border: 1px solid var(--tuubi-line); border-radius: 11px; color: var(--tuubi-green); text-decoration: none; }

/* Profile */

.profile-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 64px;
  padding-block: 58px 100px;
}

.profile-identity {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 34px;
  border-radius: 22px;
  background: var(--tuubi-deep);
  color: white;
  box-shadow: var(--tuubi-soft-shadow);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--tuubi-orange);
  color: white;
  font: 26px Georgia, serif;
}

.profile-identity .eyebrow { color: #9fd5c5; }
.profile-identity h1 { margin-top: 8px; font: 34px Georgia, serif; }
.profile-identity > p:not(.eyebrow) { margin: 8px 0 0; color: #a9c2ba; word-break: break-word; }
.profile-role { display: inline-flex; margin-top: 18px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d5e9e3; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.profile-side-note { margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13); }
.profile-side-note strong { font: 19px Georgia, serif; }
.profile-side-note p { color: #a9c2ba; font-size: 13px; line-height: 1.6; }
.profile-map-link { width: 100%; margin-top: 24px; font-size: 12px; }

.profile-content { min-width: 0; }
.profile-heading { margin-bottom: 32px; }
.profile-heading h2 { font: 42px Georgia, serif; letter-spacing: -.035em; }
.profile-heading > p:last-child { color: #71817c; }
.profile-card { margin-top: 16px; padding: 30px; border: 1px solid var(--tuubi-line); border-radius: 18px; background: var(--tuubi-paper); box-shadow: 0 12px 38px rgba(13,41,36,.05); }
.profile-card-heading { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--tuubi-line); }
.profile-card-heading > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--tuubi-mint); color: var(--tuubi-green); font: 16px Georgia, serif; }
.profile-card-heading h3 { margin: 1px 0 4px; font: 23px Georgia, serif; }
.profile-card-heading p { margin: 0; color: #788783; font-size: 13px; }
.profile-card .form-grid-2 { margin-top: 24px; }
.profile-card input { min-height: 50px; border-radius: 10px; background: white; }
.profile-card-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.profile-card-actions button { min-width: 190px; }
.password-guidance { padding: 12px 14px; border-radius: 10px; background: #eef5f1; color: #657871; font-size: 12px; }
.profile-notice { position: sticky; bottom: 20px; margin-top: 20px; box-shadow: var(--tuubi-soft-shadow); }

/* Dashboard and admin polish */

.user-topbar {
  padding: 12px clamp(20px, 4vw, 58px);
}

.user-topbar .top-actions {
  gap: 8px;
}

.user-topbar .top-actions button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 11px;
}

.user-layout {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
  padding: 24px 0 80px;
}

.panel {
  border-color: var(--tuubi-line);
  border-radius: 16px;
  box-shadow: 0 14px 46px rgba(13,41,36,.065);
}

.user-hero {
  min-height: 390px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 17%, rgba(239,107,69,.28), transparent 17rem),
    linear-gradient(125deg, #0d2924 0 64%, #16463b 100%);
  box-shadow: 0 26px 70px rgba(13,41,36,.2);
}

.user-hero-copy h2 {
  max-width: 820px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -.045em;
}

.user-hero-copy #userSummary,
.user-hero-copy .eyebrow { color: #a9d7ca; }
.hero-link { border-radius: 10px; background: var(--tuubi-orange); }
.hero-link.secondary { color: #e0eee9; border-color: rgba(255,255,255,.24); background: transparent; }
.user-hero-metrics div { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.user-hero-metrics span { color: #a9c9c0; }
.user-hero-metrics strong { color: white; }
.user-hero .status-pill { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #d9ebe6; }
.user-filters { border-radius: 18px; background: #fffdf8; }
.user-map-panel { overflow: hidden; border-radius: 18px; }
.property-card { border-radius: 15px; background: #fffdf8; }
.property-card:hover { border-color: rgba(23,122,100,.28); box-shadow: 0 15px 42px rgba(13,41,36,.09); transform: translateY(-2px); }

.property-card .nearby-strip {
  align-items: flex-start;
  row-gap: 7px;
}

.property-card .nearby-pill {
  position: static;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 29px;
  white-space: normal;
}

.admin-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.admin-hero {
  min-height: 410px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 4% 110%, rgba(239,107,69,.25), transparent 22rem),
    linear-gradient(128deg, #0d2924, #15463a);
  box-shadow: 0 26px 70px rgba(13,41,36,.19);
}

.admin-hero::after { border-color: rgba(255,255,255,.05); }
.admin-hero .eyebrow,
.admin-hero p { color: #a9c9c0; }
.admin-hero h2 { max-width: 780px; color: white; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(42px, 4.2vw, 62px); letter-spacing: -.04em; }
.admin-hero-stat { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.08); box-shadow: none; }
.admin-hero-stat span,
.admin-hero-stat small { color: #9fc0b7; }
.admin-hero-stat strong { color: white; }
.admin-command-center { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); box-shadow: none; }
.admin-command-top > span { color: #bdd6cf; }
.admin-action-card { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.08); color: white; }
.admin-action-card span,
.admin-action-card small { color: #a6c3ba; }
.admin-action-card:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.12); }
.admin-action-card.primary { background: var(--tuubi-orange); border-color: var(--tuubi-orange); }
.admin-action-card.primary span,
.admin-action-card.primary small { color: #fff1ec; }
.admin-metric { border-radius: 15px; background: #fffdf8; }
.admin-form-panel,
.admin-card-panel { background: #fffdf8; }

@media (max-width: 1100px) {
  .app-header { grid-template-columns: auto 1fr; }
  .app-header > .top-actions,
  .app-header > .status-pill { grid-column: 2; justify-self: end; }
  .app-nav { justify-content: flex-end; flex-wrap: wrap; }
  .home-header { grid-template-columns: 1fr auto; }
  .home-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-map-art { width: min(780px, 100%); min-height: 460px; }
  .value-section { grid-template-columns: 1fr; gap: 45px; }
  .value-copy { position: static; }
  .profile-shell { grid-template-columns: 270px minmax(0,1fr); gap: 34px; }
}

@media (max-width: 780px) {
  .app-header { position: relative; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 18px; }
  .app-nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; order: 3; padding-top: 5px; }
  .app-nav a { white-space: nowrap; }
  .app-header > .top-actions { grid-column: auto; }
  .dashboard-nav + .top-actions #newPropertyButton { display: inline-flex; padding-inline: 10px; font-size: 12px; }
  .app-main,
  .user-layout,
  .admin-shell { width: min(100% - 24px, 1480px); }
  .home-header { width: calc(100% - 28px); }
  .home-header-actions .text-button { display: none; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 55px 22px 70px; }
  .home-hero h1 { font-size: 50px; }
  .home-proof { grid-template-columns: repeat(3, 1fr); }
  .home-proof div { min-width: 0; padding: 0 10px; }
  .hero-map-art { min-height: 390px; border-width: 6px; border-radius: 24px; }
  .travel-zone { width: 220px; height: 200px; left: 20%; }
  .home-trust { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .home-trust div { justify-content: flex-start; }
  .home-section { padding: 75px 22px; }
  .home-steps,
  .home-properties,
  .value-grid { grid-template-columns: 1fr; }
  .home-steps article { border-left: 0; border-top: 1px solid var(--tuubi-line); }
  .home-steps article:first-child { border-top: 0; }
  .inventory-heading { align-items: flex-start; flex-direction: column; }
  .home-footer { grid-template-columns: 1fr; padding: 36px 24px; }
  .home-footer p { text-align: left; }
  .auth-page { padding: 24px; }
  .auth-shell { grid-template-columns: 1fr; gap: 34px; padding-top: 55px; }
  .auth-story h2 { font-size: 42px; }
  .auth-panel { padding: 30px 24px; }
  .profile-shell { grid-template-columns: 1fr; padding-block: 24px 70px; }
  .profile-identity { position: static; }
  .profile-card { padding: 23px; }
  .profile-card .form-grid-2 { grid-template-columns: 1fr; }
  .profile-heading h2 { font-size: 35px; }
}

/* =========================================================
   TU UBI — identidad vinotinto
   Paleta inspirada en el blazer y los tonos cálidos del avatar.
   ========================================================= */

:root {
  --ink: #351f22;
  --muted: #766166;
  --line: #eadbdd;
  --surface: #fffdfb;
  --page: #f8f2f1;
  --accent: #8f1f32;
  --accent-2: #c83b32;
  --accent-3: #9d563d;
  --shadow: 0 18px 44px rgba(76, 18, 29, 0.1);
  --strong-shadow: 0 24px 70px rgba(76, 18, 29, 0.17);
  --tuubi-ink: #3c2025;
  --tuubi-deep: #4a101d;
  --tuubi-green: #8f1f32;
  --tuubi-green-2: #b92b36;
  --tuubi-mint: #f5e4e5;
  --tuubi-cream: #f7eee9;
  --tuubi-paper: #fffaf6;
  --tuubi-orange: #c83b32;
  --tuubi-gold: #c99867;
  --tuubi-line: rgba(86, 25, 36, 0.14);
  --tuubi-soft-shadow: 0 18px 60px rgba(74, 16, 29, 0.12);
}

body,
.home-page {
  background: #fffaf6;
  color: var(--tuubi-ink);
}

.app-surface,
.user-page {
  background:
    radial-gradient(circle at 92% 3%, rgba(201, 152, 103, 0.14), transparent 32rem),
    linear-gradient(180deg, #fffaf7, #f7efee);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(143, 31, 50, 0.3);
}

.app-header {
  background: rgba(255, 250, 246, 0.94);
}

.app-brand img,
.home-brand img {
  border: 2px solid rgba(143, 31, 50, 0.15);
  box-shadow: 0 8px 22px rgba(74, 16, 29, 0.16);
}

.home-nav a,
.text-button,
.app-nav a {
  color: #6f555a;
}

.home-nav a:hover,
.text-button:hover,
.app-nav a:hover,
.app-nav a.active {
  color: var(--tuubi-green);
}

.primary-cta,
.hero-link,
.admin-action-card.primary {
  background: linear-gradient(135deg, #a82432, #c83b32);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(143, 31, 50, 0.24);
}

.primary-cta:hover,
.hero-link:hover {
  background: linear-gradient(135deg, #871a2b, #b72e2f);
  box-shadow: 0 16px 34px rgba(143, 31, 50, 0.3);
}

button {
  background: linear-gradient(135deg, #941f31, #c83b32);
}

button:hover {
  background: linear-gradient(135deg, #7c1728, #ad292d);
}

.secondary-button,
#resetFiltersButton,
#clearMapLayers {
  border: 1px solid var(--tuubi-line);
  background: #fffaf6;
  color: var(--tuubi-ink);
}

.secondary-button:hover,
#resetFiltersButton:hover,
#clearMapLayers:hover {
  background: var(--tuubi-mint);
}

.hero-link {
  color: #ffffff;
}

.map-layer-picker summary:hover,
.map-layer-picker[open] summary {
  border-color: rgba(143, 31, 50, 0.42);
  box-shadow: 0 10px 26px rgba(74, 16, 29, 0.13);
}

.map-layer-trigger-icon,
.place-suggestion-pin {
  background: var(--tuubi-mint);
  color: var(--tuubi-green) !important;
}

.secondary-cta:hover {
  border-color: rgba(143, 31, 50, 0.38);
  background: var(--tuubi-mint);
}

.home-hero {
  background:
    radial-gradient(circle at 5% 12%, rgba(201, 152, 103, 0.2), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(143, 31, 50, 0.1), transparent 30rem),
    linear-gradient(135deg, #fff8f2, #f6e9e8);
}

.home-hero::before {
  border-color: rgba(143, 31, 50, 0.06);
}

.home-lead,
.home-section-heading > p:last-child,
.home-steps p,
.value-grid p {
  color: #765f63;
}

.home-hero-visual {
  position: relative;
  min-width: 0;
  padding-top: 34px;
}

.hero-avatar-card {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 28px;
  display: grid;
  grid-template-columns: 72px minmax(0, 190px);
  align-items: center;
  gap: 13px;
  padding: 9px 15px 9px 9px;
  border: 1px solid rgba(143, 31, 50, 0.12);
  border-radius: 19px;
  background: rgba(255, 250, 246, 0.96);
  box-shadow: 0 18px 45px rgba(74, 16, 29, 0.18);
  transform: rotate(-1.2deg);
}

.hero-avatar-card img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 18%;
}

.hero-avatar-card span,
.hero-avatar-card small,
.hero-avatar-card strong {
  display: block;
}

.hero-avatar-card small {
  margin-bottom: 5px;
  color: var(--tuubi-green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-avatar-card strong {
  color: var(--tuubi-deep);
  font: 16px/1.18 Georgia, "Times New Roman", serif;
}

.hero-map-art {
  background: #eadfdb;
  box-shadow: 0 38px 90px rgba(74, 16, 29, 0.22);
}

.map-lines {
  background:
    linear-gradient(32deg, transparent 47%, rgba(255,255,255,.95) 48%, rgba(255,255,255,.95) 51%, transparent 52%),
    linear-gradient(108deg, transparent 36%, rgba(255,255,255,.8) 37%, rgba(255,255,255,.8) 40%, transparent 41%),
    linear-gradient(8deg, transparent 68%, rgba(255,255,255,.78) 69%, rgba(255,255,255,.78) 72%, transparent 73%),
    repeating-linear-gradient(95deg, rgba(112,54,60,.08) 0 1px, transparent 1px 55px),
    repeating-linear-gradient(7deg, rgba(112,54,60,.07) 0 1px, transparent 1px 64px),
    #eee6e1;
}

.hero-map-art .travel-zone {
  border-color: rgba(143, 31, 50, 0.68);
  background: rgba(143, 31, 50, 0.14);
}

.home-trust span,
.step-icon {
  background: #f5e6e5;
  color: #842135;
}

.inventory-section,
.auth-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(201, 152, 103, 0.14), transparent 24rem),
    linear-gradient(135deg, #42101b, #651626);
}

.home-property-card {
  background: #5b1825;
}

.home-property-skeleton {
  background: linear-gradient(100deg, #541521 20%, #702033 40%, #541521 60%);
  background-size: 200% 100%;
}

.home-property-body small,
.inventory-status {
  color: #d6afb3;
}

.home-property-body span {
  color: #d9bdbe;
}

.home-property-body strong,
.home-inventory-empty span {
  color: #edc38f;
}

.value-grid article {
  background: #fff8f3;
}

.home-final-cta {
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 152, 103, 0.2), transparent 20rem),
    linear-gradient(120deg, #7a1b2c, #a62834 60%, #c33a32);
}

.home-final-cta .final-avatar {
  width: 104px;
  height: 104px;
  margin-bottom: 24px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 18px 42px rgba(54, 8, 18, 0.25);
}

.home-final-cta p {
  color: #f4d9d7;
}

.home-footer {
  background: #2b0a11;
  color: #c7aeb2;
}

.home-footer a {
  color: #f3dcda;
}

.user-hero,
.admin-hero {
  background:
    radial-gradient(circle at 88% 17%, rgba(201, 152, 103, 0.28), transparent 17rem),
    linear-gradient(125deg, #45101c 0 62%, #7a1a2d 100%);
  box-shadow: 0 26px 70px rgba(74, 16, 29, 0.22);
}

.user-hero-copy #userSummary,
.user-hero-copy .eyebrow,
.admin-hero .eyebrow,
.admin-hero p,
.admin-command-top > span,
.admin-action-card span,
.admin-action-card small {
  color: #e2bdc0;
}

.user-hero-metrics span,
.admin-hero-stat span,
.admin-hero-stat small {
  color: #d7adb2;
}

.user-hero .status-pill {
  color: #f5dfe0;
}

.user-filters,
.property-card,
.admin-metric,
.admin-form-panel,
.admin-card-panel,
.profile-card,
.auth-panel {
  background: var(--tuubi-paper);
}

.property-card:hover,
.layer-card:hover,
.layer-card.active {
  border-color: rgba(143, 31, 50, 0.3);
  box-shadow: 0 15px 42px rgba(74, 16, 29, 0.1);
}

.property-card-gallery {
  position: relative;
  width: calc(100% + 32px);
  height: 210px;
  min-height: 210px;
  margin: -16px -16px 2px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #351019;
}

.property-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #351019;
  transform: none;
}

.property-card-image:hover {
  background: #351019;
  transform: none;
}

.property-card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.property-card-slide.active {
  opacity: 1;
  transform: scale(1);
}

.property-card-open-gallery {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(69, 16, 28, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.property-card-gallery-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(69,16,28,.78);
  color: #fff;
  font: 24px/1 Georgia, serif;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.property-card-gallery-arrow:hover { background: rgba(111,24,42,.95); transform: translateY(-50%) scale(1.05); }
.property-card-gallery-arrow.previous { left: 9px; }
.property-card-gallery-arrow.next { right: 9px; }

.property-card-gallery-count {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20,7,11,.74);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.property-image-field {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px dashed var(--tuubi-line);
  border-radius: 13px;
  background: #fffaf6;
}

.property-image-field > div:first-child {
  display: grid;
  gap: 3px;
}

.property-image-field > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.property-image-picker {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--tuubi-line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.property-image-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.property-image-picker span {
  color: var(--tuubi-deep);
}

.property-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
}

.property-image-preview:empty {
  display: none;
}

.property-image-preview figure {
  position: relative;
  height: 92px;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #eadfda;
}

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

.property-image-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 27px;
  min-height: 27px;
  padding: 0;
  border-radius: 50%;
  background: rgba(69, 16, 28, .9);
}

.property-image-preview small {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--tuubi-deep);
  font-size: 9px;
  font-weight: 850;
}

.property-space-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.property-space-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tuubi-deep);
  font-size: 12px;
  font-weight: 800;
}

.property-space-options input {
  width: 18px;
  min-height: 18px;
}

.property-photo-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.property-photo-slot {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--tuubi-line);
  border-radius: 11px;
  background: #fff;
}

.property-photo-slot > div:first-child {
  display: grid;
  gap: 2px;
}

.property-photo-slot > div:first-child span {
  color: var(--muted);
  font-size: 10px;
}

.property-photo-slot figure {
  position: relative;
  height: 105px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.property-photo-slot figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-photo-slot figure button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 27px;
  min-height: 27px;
  padding: 0;
  border-radius: 50%;
  background: rgba(69, 16, 28, .9);
}

.property-photo-slot .property-image-picker {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.property-gallery-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: 92vh;
  padding: 22px;
  border: 0;
  border-radius: 20px;
  background: var(--tuubi-paper);
  box-shadow: 0 35px 90px rgba(50, 9, 18, .35);
}

.property-gallery-dialog::backdrop {
  background: rgba(30, 8, 14, .72);
  backdrop-filter: blur(4px);
}

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

.property-gallery-heading h2 {
  margin: 3px 0 0;
  font: 30px Georgia, "Times New Roman", serif;
}

.property-gallery-main {
  display: grid;
  gap: 8px;
  margin: 0;
}

.property-gallery-main img {
  width: 100%;
  height: min(58vh, 580px);
  object-fit: contain;
  border-radius: 13px;
  background: #2c171c;
}

.property-gallery-main figcaption {
  color: var(--tuubi-deep);
  font-weight: 850;
  text-align: center;
}

.property-gallery-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.property-gallery-thumbs button {
  display: grid;
  min-width: 110px;
  gap: 5px;
  padding: 5px;
  border: 2px solid transparent;
  background: #fff;
  color: var(--tuubi-deep);
}

.property-gallery-thumbs button.active {
  border-color: var(--tuubi-deep);
}

.property-gallery-thumbs img {
  width: 100px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
}

.property-gallery-thumbs span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Onboarding alineado con la identidad vinotinto */

.onboarding-page.new-user-page {
  background:
    radial-gradient(circle at 92% 4%, rgba(201, 152, 103, .18), transparent 30rem),
    linear-gradient(180deg, #fffaf6 0, #f8efee 100%);
  color: var(--tuubi-ink);
}

.onboarding-page .onboarding-topbar {
  border-bottom-color: var(--tuubi-line);
  background: rgba(255, 250, 246, .94);
}

.onboarding-page .onboarding-brand strong,
.onboarding-page .onboarding-topbar nav a:hover,
.onboarding-page .new-user-hero h1,
.onboarding-page .mini-map-card strong,
.onboarding-page .onboarding-card h1,
.onboarding-page .onboarding-progress span {
  color: var(--tuubi-deep);
}

.onboarding-page .onboarding-topbar nav a,
.onboarding-page .new-user-hero p:not(.eyebrow),
.onboarding-page .mini-map-card small,
.onboarding-page .onboarding-copy {
  color: var(--muted);
}

.onboarding-page .onboarding-topbar nav a:hover {
  background: var(--tuubi-mint);
}

.onboarding-page .mini-map-card {
  border-color: var(--tuubi-line);
  background:
    linear-gradient(90deg, rgba(86, 25, 36, .06) 1px, transparent 1px),
    linear-gradient(rgba(86, 25, 36, .06) 1px, transparent 1px),
    linear-gradient(135deg, #f5e4e5, #fff3ed 58%, #f4dfc8);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--tuubi-soft-shadow);
}

.onboarding-page .mini-map-card::before {
  border-top-color: rgba(143, 31, 50, .3);
  border-bottom-color: rgba(200, 59, 50, .22);
}

.onboarding-page .mini-map-card::after {
  border-top-color: rgba(157, 86, 61, .28);
}

.onboarding-page .mini-pin.one,
.onboarding-page .mini-pin.two,
.onboarding-page .mini-pin.three {
  background: var(--tuubi-green);
}

.onboarding-page .progress-track {
  background: #eadbdd;
}

.onboarding-page .progress-track div,
.onboarding-page .onboarding-next {
  background: linear-gradient(90deg, #8f1f32, #c83b32);
}

.onboarding-page .onboarding-next:hover {
  background: linear-gradient(90deg, #761526, #aa292d);
}

.onboarding-page .onboarding-card {
  border-color: var(--tuubi-line);
  border-radius: 18px;
  background: rgba(255, 250, 246, .96);
  box-shadow: var(--tuubi-soft-shadow);
}

.onboarding-page .onboarding-option,
.onboarding-page .onboarding-number {
  border-color: var(--tuubi-line);
  background: #fffdfb;
}

.onboarding-page .onboarding-option:hover,
.onboarding-page .onboarding-option.selected {
  border-color: rgba(143, 31, 50, .55);
  background: #fff5f3;
  box-shadow: 0 16px 38px rgba(74, 16, 29, .11);
}

.onboarding-page .onboarding-option-icon {
  background: var(--tuubi-deep);
}

.budget-picker {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--tuubi-line);
  border-radius: 16px;
  background: #fffdfb;
}

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

.budget-values > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--tuubi-line);
  border-radius: 11px;
  text-align: left;
}

.budget-values small,
.budget-scale {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.budget-values strong {
  color: var(--tuubi-deep);
  font-size: 18px;
}

.budget-range {
  position: relative;
  height: 34px;
}

.budget-range::before,
.budget-range-fill {
  position: absolute;
  top: 14px;
  height: 6px;
  border-radius: 999px;
  content: "";
}

.budget-range::before {
  right: 0;
  left: 0;
  background: #eadbdd;
}

.budget-range-fill {
  background: linear-gradient(90deg, #8f1f32, #c83b32);
}

.budget-range input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  appearance: none;
}

.budget-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.budget-range input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tuubi-green);
  box-shadow: 0 3px 12px rgba(74, 16, 29, .28);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
}

.budget-range input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.budget-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tuubi-green);
  box-shadow: 0 3px 12px rgba(74, 16, 29, .28);
  cursor: grab;
  pointer-events: auto;
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -12px;
}

.property-detail-field {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--tuubi-line);
  border-radius: 13px;
  background: #fffaf6;
}

.property-detail-field[hidden] { display: none; }

.property-detail-field > div:first-child {
  display: grid;
  gap: 3px;
}

.property-detail-field > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

.property-type-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--tuubi-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f5, #fffdfb);
}

.property-type-fields[hidden] { display: none; }

.property-type-fields > div:first-child {
  display: grid;
  gap: 4px;
}

.property-type-fields > div:first-child strong { color: var(--tuubi-deep); }
.property-type-fields > div:first-child span { color: var(--muted); font-size: 12px; }

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

.property-type-grid .type-detail-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--tuubi-line);
  border-radius: 10px;
  background: #fff;
  color: #644b50;
  font-size: 12px;
  font-weight: 750;
}

.property-type-grid .type-detail-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--tuubi-deep);
}

.property-type-detail-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-type-detail-strip span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f7e4df;
  color: #7d2937;
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 620px) {
  .property-type-grid { grid-template-columns: 1fr; }
}

.property-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-feature-strip span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tuubi-mint);
  color: var(--tuubi-green);
  font-size: 10px;
  font-weight: 850;
}

.property-feature-strip span.suitable {
  background: #f4e5d6;
  color: #7d442e;
}

@media (max-width: 620px) {
  .budget-picker { padding: 16px; }
  .budget-values { grid-template-columns: 1fr; }
}

.profile-card-heading > span,
.password-guidance {
  background: var(--tuubi-mint);
  color: var(--tuubi-green);
}

@media (max-width: 780px) {
  .home-hero-visual { padding-top: 45px; }
  .hero-avatar-card {
    right: 12px;
    grid-template-columns: 58px minmax(0, 160px);
    padding: 7px 12px 7px 7px;
  }
  .hero-avatar-card img { width: 58px; height: 58px; }
  .hero-avatar-card strong { font-size: 14px; }
}

/* Formulario comercial de interesados */

.advertiser-identity { margin: 0; padding: 20px; border: 1px solid var(--tuubi-line); border-radius: 14px; background: #f7faf8; }
.advertiser-identity legend { padding: 0 8px; color: var(--tuubi-deep); font-weight: 850; }
.advertiser-identity > p { margin: 0 0 16px; color: #667772; font-size: 12px; line-height: 1.55; }
.advertiser-identity [hidden] { display: none !important; }
.advertiser-rating { color: #80601d !important; font-size: 12px; font-weight: 750; }
.approved-contact { display: grid; gap: 5px; margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--tuubi-mint); }
.approved-contact a { color: var(--tuubi-deep); font-weight: 750; }
.rating-form { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(190px,1fr) auto; gap: 9px; align-items: end; margin-top: 12px; }
.rating-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 750; }
.rating-form input, .rating-form select, .rating-form button { min-height: 42px; }

@media (max-width: 720px) { .rating-form { grid-template-columns: 1fr; } }

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(143, 31, 50, 0.58);
  box-shadow: 0 0 0 4px rgba(143, 31, 50, 0.1);
}

.interest-action button {
  width: 100%;
  min-height: 46px;
}

.interest-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--tuubi-paper);
  color: var(--tuubi-ink);
  box-shadow: 0 32px 90px rgba(49, 8, 17, 0.35);
}

.interest-dialog::backdrop {
  background: rgba(42, 8, 15, 0.68);
  backdrop-filter: blur(5px);
}

.interest-form {
  display: grid;
  gap: 18px;
  padding: 32px;
}

.interest-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tuubi-line);
}

.interest-dialog-heading .eyebrow {
  margin: 0 0 6px;
}

.interest-dialog-heading h2 {
  margin: 0;
  font: 500 34px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.interest-dialog-heading > div > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--tuubi-line);
  border-radius: 50%;
  background: #fffaf6;
  color: var(--tuubi-deep);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--tuubi-mint);
}

.interest-form label > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.interest-form label small {
  color: var(--muted);
  font-weight: 700;
}

.interest-form input,
.interest-form textarea {
  margin-top: 7px;
  border-radius: 11px;
  background: #ffffff;
}

.interest-form input[readonly] {
  background: #f6efed;
  color: #765f63;
}

.interest-consent {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: #6f555a;
  font-size: 12px;
  line-height: 1.45;
}

.interest-consent input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--tuubi-green);
}

.interest-consent span {
  display: block !important;
}

.interest-notice {
  margin: 0;
}

.interest-form-actions {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  justify-content: end;
  gap: 10px;
}

.interest-form-actions button {
  min-height: 48px;
}

@media (max-width: 620px) {
  .interest-form { padding: 23px 20px; }
  .interest-dialog-heading h2 { font-size: 29px; }
  .interest-form .form-grid-2,
  .interest-form-actions { grid-template-columns: 1fr; }
  .interest-form-actions .secondary-button { order: 2; }
}

/* Historial personal de solicitudes */

.profile-requests-card {
  display: block;
}

.profile-requests-card[hidden] {
  display: none;
}

.profile-requests-card .profile-card-heading > div {
  flex: 1;
  min-width: 0;
}

.profile-requests-card > summary {
  cursor: pointer;
  list-style: none;
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-requests-card[open] > summary {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--tuubi-line);
}

.profile-requests-card > summary::-webkit-details-marker {
  display: none;
}

.profile-card-heading > .request-summary-count {
  display: grid;
  width: auto;
  min-width: 34px;
  height: 28px;
  flex: 0 0 auto;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tuubi-mint);
  color: var(--tuubi-green);
  font: 850 12px/1 system-ui, sans-serif;
}

.profile-card-heading > .request-summary-chevron {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--tuubi-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--tuubi-deep);
  font: 20px/1 system-ui, sans-serif;
  transition: transform 180ms ease;
}

.profile-requests-card[open] .request-summary-chevron {
  transform: rotate(180deg);
}

.profile-requests {
  display: grid;
  gap: 12px;
}

.profile-requests-card[open] .profile-requests {
  max-height: 620px;
  overflow-y: auto;
  margin-top: 20px;
  padding-right: 4px;
}

.request-card {
  padding: 20px;
  border: 1px solid var(--tuubi-line);
  border-radius: 14px;
  background: #ffffff;
}

.request-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.request-card small,
.request-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.request-card h4 {
  margin: 5px 0 0;
  color: var(--tuubi-deep);
  font: 22px/1.2 Georgia, "Times New Roman", serif;
}

.request-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8e9dc;
  color: #8d4b22;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.request-status.atendido,
.request-status.atendida {
  background: #e9f4ea;
  color: #337245;
}

.request-status.en-revisión,
.request-status.en-revision {
  background: var(--tuubi-mint);
  color: var(--tuubi-green);
}

.request-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.request-card dl div {
  padding: 11px 12px;
  border-radius: 10px;
  background: #faf4f1;
}

.request-card dd {
  margin: 5px 0 0;
  color: #573b40;
  font-size: 13px;
  font-weight: 750;
}

.request-card > p {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--tuubi-line);
  color: #6d555a;
  line-height: 1.55;
}

.request-card > p.request-no-message {
  color: var(--muted);
  font-style: italic;
}

.request-empty {
  display: grid;
  gap: 6px;
  min-height: 110px;
  align-content: center;
  padding: 20px;
  border: 1px dashed var(--tuubi-line);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.request-empty strong {
  color: var(--tuubi-deep);
  font: 20px Georgia, "Times New Roman", serif;
}

.request-empty.error {
  border-color: rgba(143, 31, 50, 0.26);
  background: #fff5f3;
}

@media (max-width: 620px) {
  .request-card-top { align-items: stretch; flex-direction: column; }
  .request-status { align-self: flex-start; }
  .request-card dl { grid-template-columns: 1fr; }
}

/* Gestión de solicitudes recibidas */

.admin-interests-panel .admin-section-heading > div > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.receiver-panel {
  grid-column: 1 / -1;
  padding: 26px;
  background: var(--tuubi-paper);
}

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

.receiver-panel .section-heading h2 {
  margin: 0;
  font: 30px Georgia, "Times New Roman", serif;
}

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

.admin-interest-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr) 180px;
  align-items: center;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--tuubi-line);
  border-radius: 14px;
  background: #ffffff;
}

.profile-requests .admin-interest-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
  gap: 16px;
}

.profile-requests .admin-interest-status {
  grid-column: 1 / -1;
}

.admin-interest-main small,
.admin-interest-status > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-interest-main h3 {
  margin: 5px 0 8px;
  color: var(--tuubi-deep);
  font: 22px Georgia, "Times New Roman", serif;
}

.admin-interest-main p {
  margin: 0;
  color: #6d555a;
  line-height: 1.5;
}

.admin-interest-contact {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--tuubi-line);
}

.admin-interest-contact span,
.admin-interest-contact small {
  color: var(--muted);
  font-size: 12px;
}

.admin-interest-status {
  display: grid;
  gap: 6px;
}

.admin-interest-status select {
  min-height: 43px;
  border-radius: 10px;
  background: #fffaf6;
  font-weight: 800;
}

.admin-alert-center {
  border-color: rgba(91, 18, 33, 0.16);
  background: linear-gradient(145deg, #fffdf9, #fff8f6);
}

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

.system-alert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--tuubi-line);
  border-radius: 14px;
  background: #fff;
}

.system-alert-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  background: #edf7f2;
  color: #247a58;
}

.system-alert.critical { border-color: rgba(166, 31, 52, 0.28); background: #fff7f7; }
.system-alert.critical .system-alert-icon { background: #a61f34; color: #fff; }
.system-alert.warning { border-color: rgba(185, 112, 20, 0.3); background: #fffaf0; }
.system-alert.warning .system-alert-icon { background: #f2dfb7; color: #7c4a08; }
.system-alert.info .system-alert-icon { background: #e8eef8; color: #315b8a; }

.system-alert-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.system-alert-copy > span {
  color: #8d5260;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.system-alert-copy strong { color: var(--tuubi-deep); }
.system-alert-copy p { margin: 0; color: #5e6e69; overflow-wrap: anywhere; }
.system-alert-copy small { margin-top: 3px; color: #7a555d; font-weight: 700; }
.request-summary-count.ok { background: #e2f4ea; color: #247a58; }

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(211, 58, 51, .18), transparent 28rem),
    linear-gradient(145deg, #4a101d, #741829);
}

.not-found-card {
  width: min(100%, 680px);
  padding: clamp(30px, 6vw, 64px);
  border-radius: 28px;
  background: #fffaf6;
  box-shadow: 0 30px 90px rgba(24, 4, 10, .3);
}

.not-found-card .home-brand { margin-bottom: 44px; }
.not-found-card h1 { margin: 8px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 7vw, 66px); line-height: 1; color: #4a101d; }
.not-found-card > p:not(.eyebrow) { max-width: 500px; color: #705d61; font-size: 17px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.not-found-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 900px) {
  .admin-interest-card { grid-template-columns: 1fr; gap: 15px; }
  .profile-requests .admin-interest-card { grid-template-columns: 1fr; }
  .admin-interest-contact { padding: 14px 0 0; border-top: 1px solid var(--tuubi-line); border-left: 0; }
}

/* Páginas legales y consentimiento */

.legal-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--tuubi-line);
  border-radius: 11px;
  background: #fffaf6;
  color: #6f555a;
  font-size: 12px;
  line-height: 1.5;
}

.legal-consent input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--tuubi-deep);
}

.legal-consent span { display: block !important; }
.legal-consent a,
.interest-consent a { color: var(--tuubi-deep); font-weight: 850; }
.publish-legal-consent { margin-top: 4px; }

.legal-page {
  --legal-max: 1240px;
  min-height: 100vh;
  background: #fffaf6;
  color: var(--tuubi-ink);
}

.legal-page a { text-underline-offset: 3px; }

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px max(28px, calc((100vw - var(--legal-max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(74, 16, 29, .96);
  backdrop-filter: blur(16px);
}

.legal-topbar .home-brand { color: #fff; }
.legal-topbar nav { display: flex; align-items: center; gap: 8px; }
.legal-topbar nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #eadbdd;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.legal-topbar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.legal-topbar nav a.legal-nav-cta { background: #fff4ee; color: var(--tuubi-deep); }

.legal-hero,
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: center;
  gap: 70px;
  min-height: 520px;
  padding: 78px max(28px, calc((100vw - var(--legal-max)) / 2));
  background:
    radial-gradient(circle at 88% 15%, rgba(200, 59, 50, .3), transparent 24rem),
    linear-gradient(128deg, #4a101d, #6e1629 62%, #3e0d18);
  color: #fff;
}

.legal-hero h1,
.contact-hero h1 {
  max-width: 820px;
  margin: 18px 0 22px;
  font: 500 clamp(42px, 5.6vw, 76px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}

.legal-hero > div > p:not(.home-kicker),
.contact-hero > div > p:not(.home-kicker) {
  max-width: 760px;
  margin: 0;
  color: #eedfe1;
  font-size: 18px;
  line-height: 1.7;
}

.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.legal-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f4e6e6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.legal-hero-card,
.contact-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 30px 70px rgba(30, 3, 10, .26);
  backdrop-filter: blur(14px);
}
.legal-hero-card img,
.contact-card img { width: 92px; height: 92px; border: 5px solid rgba(255,255,255,.18); border-radius: 50%; object-fit: cover; }
.legal-hero-card strong { display: block; margin-top: 22px; font: 500 28px/1.1 Georgia, "Times New Roman", serif; }
.legal-hero-card p { margin: 13px 0 0; color: #e9d4d8; line-height: 1.6; }

.legal-steps { padding: 78px max(28px, calc((100vw - var(--legal-max)) / 2)); background: #f5eae7; }
.legal-section-heading { max-width: 760px; }
.legal-section-heading h2 { margin-top: 8px; color: var(--tuubi-deep); font: 500 clamp(34px, 4vw, 52px)/1.05 Georgia, "Times New Roman", serif; }
.legal-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 42px; }
.legal-step-grid article,
.contact-reasons article { padding: 25px; border: 1px solid var(--tuubi-line); border-radius: 16px; background: #fffdfb; }
.legal-step-grid article > span,
.contact-reasons article > span { color: var(--tuubi-coral); font-size: 11px; font-weight: 900; }
.legal-step-grid h3,
.contact-reasons h3 { margin: 34px 0 9px; color: var(--tuubi-deep); font: 500 23px Georgia, "Times New Roman", serif; }
.legal-step-grid p,
.contact-reasons p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: 64px;
  padding: 84px 28px 110px;
}

.legal-index {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 4px;
  padding: 19px;
  border: 1px solid var(--tuubi-line);
  border-radius: 15px;
  background: #fff;
}
.legal-index strong { margin-bottom: 9px; color: var(--tuubi-deep); font-size: 12px; text-transform: uppercase; }
.legal-index a { padding: 8px 9px; border-radius: 7px; color: #765f63; font-size: 12px; font-weight: 750; text-decoration: none; }
.legal-index a:hover { background: #f8e9e9; color: var(--tuubi-deep); }

.legal-document { min-width: 0; }
.legal-document > section { padding: 44px 0; border-bottom: 1px solid var(--tuubi-line); scroll-margin-top: 100px; }
.legal-document > section:first-of-type { padding-top: 46px; }
.legal-document h2 { margin: 7px 0 20px; color: var(--tuubi-deep); font: 500 clamp(30px, 3vw, 42px)/1.08 Georgia, "Times New Roman", serif; }
.legal-document p,
.legal-document li { color: #654f53; font-size: 15px; line-height: 1.78; }
.legal-document p { margin: 0 0 15px; }
.legal-document ul,
.legal-document ol { display: grid; gap: 9px; margin: 18px 0; padding-left: 22px; }
.legal-document a { color: var(--tuubi-deep); font-weight: 800; }

.legal-alert,
.legal-warning { padding: 24px 26px; border-radius: 14px; }
.legal-alert { border-left: 5px solid var(--tuubi-coral); background: #f8e9e5; }
.legal-warning { margin-top: 24px; border: 1px solid #e7bfad; background: #fff2e9; }
.legal-alert strong,
.legal-warning strong { color: var(--tuubi-deep); }
.legal-alert p,
.legal-warning p { margin: 7px 0 0; }
.legal-sources { border-bottom: 0 !important; }

.contact-hero { min-height: 470px; }
.contact-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 22px; align-items: start; background: #fffaf6; color: var(--tuubi-ink); }
.contact-card img { width: 86px; height: 86px; border-color: #f1d9d7; }
.contact-card small { color: var(--tuubi-coral); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.contact-card h2 { margin: 6px 0; color: var(--tuubi-deep); font: 500 29px Georgia, "Times New Roman", serif; }
.contact-card a { overflow-wrap: anywhere; color: var(--tuubi-deep); font-size: 13px; font-weight: 850; }
.contact-card p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 36px max(28px, calc((100vw - var(--legal-max)) / 2)); background: #f5eae7; }
.contact-reasons h3 { margin-top: 20px; }
.privacy-title { padding-bottom: 38px; border-bottom: 2px solid var(--tuubi-deep); }
.privacy-title h2 { margin: 8px 0 12px; color: var(--tuubi-deep); font: 500 clamp(38px, 4vw, 58px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.privacy-title p:last-child { margin: 0; color: var(--muted); font-size: 12px; font-weight: 750; }

.legal-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px max(28px, calc((100vw - var(--legal-max)) / 2));
  background: #310b14;
  color: #cdb5ba;
}
.legal-footer .home-brand { color: #fff; }
.legal-footer p { margin: 0; text-align: center; }
.legal-footer div { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer div a { color: #eadbdd; font-size: 12px; font-weight: 800; text-decoration: none; }

@media (max-width: 960px) {
  .legal-hero,
  .contact-hero { grid-template-columns: 1fr; gap: 42px; }
  .legal-hero-card { max-width: 540px; }
  .legal-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: 1fr; max-width: 850px; margin: 0 auto; gap: 28px; }
  .legal-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-index strong { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .legal-topbar { align-items: flex-start; padding: 12px 18px; }
  .legal-topbar nav a:not(.legal-nav-cta) { display: none; }
  .legal-hero,
  .contact-hero { min-height: 0; padding: 58px 22px; }
  .legal-hero h1,
  .contact-hero h1 { font-size: 43px; }
  .legal-hero > div > p:not(.home-kicker),
  .contact-hero > div > p:not(.home-kicker) { font-size: 16px; }
  .legal-steps { padding: 56px 22px; }
  .legal-step-grid,
  .contact-reasons { grid-template-columns: 1fr; }
  .contact-reasons { padding: 24px 22px; }
  .contact-card { grid-template-columns: 62px minmax(0, 1fr); padding: 22px; }
  .contact-card img { width: 62px; height: 62px; }
  .contact-card h2 { font-size: 25px; }
  .legal-layout { padding: 48px 22px 80px; }
  .legal-index { grid-template-columns: 1fr; }
  .legal-index strong { grid-column: auto; }
  .legal-document > section { padding: 34px 0; }
  .legal-footer { grid-template-columns: 1fr; }
  .legal-footer p { text-align: left; }
}

/* Dashboard search workspace */

.user-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "summary"
    "filters"
    "map"
    "properties"
    "publish";
}

.user-layout.publishing-mode {
  grid-template-areas:
    "summary"
    "publish"
    "filters"
    "map"
    "properties";
}

.user-filters {
  position: static;
  max-height: none;
  padding: clamp(20px, 3vw, 30px);
  overflow: visible;
  border: 1px solid rgba(91, 18, 33, .12);
  border-top: 1px solid rgba(91, 18, 33, .12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(195, 58, 50, .08), transparent 25rem),
    #fffdf9;
}

.filter-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(91, 18, 33, .1);
}

.filter-panel-heading h2 {
  margin: 3px 0 0;
  color: #4a101d;
  font: 500 clamp(25px, 3vw, 34px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.filter-panel-heading > div:first-child > p:last-child {
  margin: 8px 0 0;
  color: #78666a;
  font-size: 13px;
}

.filter-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.active-filter-count {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #ead6d8;
  border-radius: 999px;
  background: #fff7f5;
  color: #7d3b49;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

#resetFiltersButton:disabled {
  opacity: .45;
  transform: none;
}

.filter-primary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.filter-primary-grid > label,
.environment-filters .proximity-grid > label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #eadfe0;
  border-radius: 13px;
  background: rgba(255,255,255,.86);
}

.filter-primary-grid > label:hover,
.environment-filters .proximity-grid > label:hover {
  border-color: rgba(143,31,50,.32);
  background: #fff;
}

.filter-primary-grid label > span,
.environment-filters .proximity-grid label > span {
  color: #71545a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.filter-primary-grid select,
.environment-filters select {
  min-width: 0;
  border: 0;
  padding-inline: 0 28px;
  background-color: transparent;
  box-shadow: none;
  color: #351019;
  font-size: 13px;
  font-weight: 780;
}

.filter-primary-grid select:focus,
.environment-filters select:focus {
  box-shadow: none;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.active-filter-summary[hidden] { display: none; }

.active-filter-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5e4e3;
  color: #7b2637;
  font-size: 10px;
  font-weight: 850;
}

.user-filters .isochrone-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e7cfd3;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143,31,50,.07), transparent 34%),
    linear-gradient(135deg, #fff8f6, #fffdfa);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.travel-search-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.travel-search-heading-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #8f1f32;
  color: #fff;
  font-size: 21px;
  box-shadow: 0 8px 20px rgba(91,18,33,.18);
}

.travel-search-heading > span:last-child {
  display: grid;
  gap: 2px;
}

.travel-search-heading strong { color: #4a101d; font-size: 15px; }
.travel-search-heading small { color: #806d71; font-size: 11px; font-weight: 700; }

.travel-location-fields {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(300px, 2fr);
  gap: 12px;
}

.travel-location-fields > [hidden] {
  display: none;
}

.travel-location-fields > label,
.travel-mode-fields > label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.travel-location-fields label > span:first-child,
.travel-mode-fields label > span:first-child {
  color: #71545a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.travel-location-fields select,
.travel-location-fields input,
.travel-mode-fields select {
  min-width: 0;
  height: 46px;
  border: 1px solid #dfcdd0;
  border-radius: 12px;
  background-color: rgba(255,255,255,.94);
  color: #351019;
  box-shadow: 0 4px 12px rgba(91,18,33,.035);
  font-size: 13px;
  font-weight: 760;
}

.travel-location-fields select:focus,
.travel-location-fields input:focus,
.travel-mode-fields select:focus {
  border-color: rgba(143,31,50,.55);
  box-shadow: 0 0 0 3px rgba(143,31,50,.09);
}

.travel-search-controls {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(310px, 1fr);
  align-items: end;
  gap: 14px;
}

.travel-mode-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(135px, 1fr));
  gap: 12px;
}

.user-filters .isochrone-panel .address-actions {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 10px;
}

.user-filters .isochrone-panel .address-actions button {
  min-height: 46px;
  border-radius: 12px;
}

#applyIsochroneButton {
  border-color: #8f1f32;
  background: linear-gradient(135deg, #a9263c, #6f1426);
  color: #fff;
  box-shadow: 0 9px 22px rgba(91,18,33,.2);
}

#applyIsochroneButton:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(91,18,33,.24); }
#applyIsochroneButton:disabled { opacity: .65; transform: none; cursor: wait; }

.user-filters .isochrone-panel .status-text {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 20px;
  padding-top: 2px;
  color: #71545a;
  font-size: 11px;
  font-weight: 750;
}

.user-filters .isochrone-panel .status-text::before {
  content: "i";
  display: grid;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #f1dfe0;
  color: #8f1f32;
  font-size: 10px;
  font-weight: 900;
}

.user-filters .isochrone-panel .status-text.ok::before { content: "✓"; background: #dff1ea; color: #12604f; }
.user-filters .isochrone-panel .status-text.error::before { content: "!"; background: #f8dedb; color: #a02f25; }

.environment-filters {
  margin-top: 15px;
  border: 1px solid #eadfe0;
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}

.environment-filters.has-active {
  border-color: rgba(143,31,50,.3);
  box-shadow: 0 9px 30px rgba(74,16,29,.06);
}

.environment-filters > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.environment-filters > summary::-webkit-details-marker { display: none; }
.environment-filters > summary::after { content: "+"; color: #8f1f32; font-size: 25px; font-weight: 400; }
.environment-filters[open] > summary::after { content: "−"; }

.environment-filters > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.environment-filters > summary strong { color: #4a101d; font-size: 14px; }
.environment-filters > summary small { color: #806d71; font-size: 11px; }

.environment-filter-count {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6e9e7;
  color: #833245;
  font-size: 10px;
  font-weight: 850;
}

.environment-filters .proximity-grid {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 10px;
  padding: 0 14px 16px;
}

.environment-filters .proximity-grid > .environment-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.environment-filters .proximity-grid > .environment-choice:hover {
  transform: translateY(-1px);
}

.environment-choice input[type="checkbox"] {
  appearance: none;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid #cfb5ba;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.environment-choice input[type="checkbox"]::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transform: scale(0);
  transition: transform .16s ease;
}

.environment-choice input[type="checkbox"]:checked {
  border-color: #8f1f32;
  background: #8f1f32;
  box-shadow: 0 0 0 3px rgba(143,31,50,.1);
}

.environment-choice input[type="checkbox"]:checked::after { transform: scale(1); }
.environment-choice input[type="checkbox"]:focus-visible { outline: 3px solid rgba(143,31,50,.2); outline-offset: 2px; }

.environment-filters .proximity-grid .environment-choice > span {
  color: #4d2029;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.environment-filters .proximity-grid > .environment-choice:has(input:checked) {
  border-color: rgba(143,31,50,.42);
  background: #fff4f2;
  box-shadow: 0 7px 18px rgba(91,18,33,.07);
}

@media (max-width: 1120px) {
  .filter-primary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .environment-filters .proximity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .travel-search-controls { grid-template-columns: minmax(280px, .9fr) minmax(280px, 1fr); }
}

@media (max-width: 760px) {
  .filter-panel-heading { align-items: flex-start; flex-direction: column; }
  .filter-heading-actions { width: 100%; justify-content: space-between; }
  .filter-primary-grid { grid-template-columns: 1fr 1fr; }
  .environment-filters .proximity-grid { grid-template-columns: 1fr 1fr; }
  .travel-location-fields,
  .travel-search-controls { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .filter-primary-grid { grid-template-columns: 1fr; }
  .environment-filters .proximity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-inline: 10px; }
  .environment-filters .proximity-grid > .environment-choice { min-height: 58px; padding: 9px; }
  .filter-heading-actions { align-items: stretch; flex-direction: column; }
  .active-filter-count,
  #resetFiltersButton { justify-content: center; width: 100%; }
  .environment-filters > summary { align-items: flex-start; }
  .environment-filter-count { display: none; }
  .user-filters .isochrone-panel { padding: 15px; }
  .travel-search-heading small { line-height: 1.35; }
  .travel-mode-fields { grid-template-columns: 1fr 1fr; }
  .user-filters .isochrone-panel .address-actions { grid-template-columns: minmax(0, 1fr) auto; }
  #clearIsochroneButton { padding-inline: 14px; }
}

/* Mobile header system */
@media (max-width: 780px) {
  .app-header {
    position: sticky;
    top: 0;
    z-index: 1300;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "navigation navigation";
    gap: 9px 12px;
    min-height: 0;
    padding: 9px 14px 0;
    background: rgba(255, 252, 248, .96);
    border-bottom: 1px solid rgba(91, 18, 33, .1);
    box-shadow: 0 8px 24px rgba(74, 16, 29, .07);
    backdrop-filter: blur(15px);
  }

  .app-header > .app-brand {
    grid-area: brand;
    min-width: 0;
    gap: 9px;
  }

  .app-header > .app-brand img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .app-header > .app-brand span { min-width: 0; }
  .app-header > .app-brand strong { font-size: 17px; }
  .app-header > .app-brand small {
    overflow: hidden;
    max-width: 145px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-header > .app-nav {
    grid-area: navigation;
    order: initial;
    width: calc(100% + 28px);
    margin: 0 -14px;
    padding: 5px 14px 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    border-top: 1px solid rgba(91, 18, 33, .07);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .app-header > .app-nav::-webkit-scrollbar { display: none; }

  .app-header > .app-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 13px;
    font-size: 11px;
    white-space: nowrap;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }

  .app-header > .top-actions,
  .app-header > .status-pill,
  .app-header > #logoutButton {
    grid-area: actions;
    align-self: center;
    justify-self: end;
  }

  .app-header > .top-actions {
    display: flex;
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .app-header > .top-actions .nav-link,
  .app-header > .top-actions button,
  .app-header > #logoutButton {
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 11px;
    justify-content: center;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .app-header > .status-pill {
    overflow: hidden;
    max-width: 118px;
    min-height: 40px;
    padding: 0 11px;
    align-items: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-header {
    position: sticky;
    top: 0;
    z-index: 1300;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 9px 14px;
    gap: 10px;
    background: rgba(255, 250, 246, .96);
    border-bottom: 1px solid rgba(91, 18, 33, .1);
    box-shadow: 0 8px 24px rgba(74, 16, 29, .06);
    backdrop-filter: blur(15px);
  }

  .home-header .home-brand {
    min-width: 0;
    gap: 8px;
  }

  .home-header .home-brand img {
    width: 42px;
    height: 42px;
  }

  .home-header .home-brand span { font-size: 17px; }
  .home-header .home-nav { display: none; }
  .home-header-actions { gap: 6px; }
  .home-header-actions .text-button { display: none; }
  .home-header-actions .primary-cta.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .onboarding-topbar {
    position: sticky;
    top: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
    padding: 9px 14px 0;
    background: rgba(255, 250, 246, .96);
    border-bottom: 1px solid rgba(91, 18, 33, .1);
    box-shadow: 0 8px 24px rgba(74, 16, 29, .06);
    backdrop-filter: blur(15px);
  }

  .onboarding-brand img {
    width: 40px;
    height: 40px;
  }

  .onboarding-topbar nav {
    display: flex;
    width: calc(100% + 28px);
    margin: 0 -14px;
    padding: 3px 14px 7px;
    gap: 5px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    border-top: 1px solid rgba(91, 18, 33, .07);
  }

  .onboarding-topbar nav::-webkit-scrollbar { display: none; }
  .onboarding-topbar nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .legal-topbar {
    min-height: 64px;
    padding: 9px 14px;
    gap: 10px;
  }

  .legal-topbar .home-brand img {
    width: 42px;
    height: 42px;
  }

  .legal-topbar nav a,
  .legal-topbar .legal-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 13px;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .legal-topbar nav a:not(.legal-nav-cta) { display: none; }
}

@media (max-width: 480px) {
  .user-topbar .top-actions #newPropertyButton {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .user-topbar .top-actions #newPropertyButton::before {
    content: "+";
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
  }

  .app-header > .app-brand small { max-width: 108px; }
  .app-header > #logoutButton { padding-inline: 10px; }
  .home-header-actions .primary-cta.small { padding-inline: 11px; }
}

@media (max-width: 350px) {
  .app-header > .app-brand small { display: none; }
  .home-header .home-brand span { font-size: 15px; }
  .home-header-actions .primary-cta.small { font-size: 10px; }
}

/* Empty filtered results */
.filter-empty-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(143, 31, 50, .2);
  border-radius: 17px;
  background: linear-gradient(135deg, #fff8f4, #f8ecea);
  box-shadow: 0 12px 34px rgba(74, 16, 29, .08);
  animation: filter-empty-in .22s ease-out both;
}

.map-canvas-shell {
  position: relative;
}

.map-canvas-shell > .filter-empty-notice {
  position: absolute;
  z-index: 700;
  top: 16px;
  right: 16px;
  left: 16px;
}

.filter-empty-notice[hidden] { display: none; }

.filter-empty-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #8f1f32;
  color: #ffffff;
  font: 800 16px/1 var(--font-sans);
}

.filter-empty-notice strong {
  display: block;
  margin-bottom: 3px;
  color: #4a101d;
  font-size: 14px;
}

.filter-empty-notice p {
  margin: 0;
  color: #735f64;
  font-size: 12px;
  line-height: 1.5;
}

.filter-empty-notice button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  white-space: nowrap;
}

.filter-empty-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.filter-empty-actions #emptyClearFiltersButton {
  border-color: #dbc7ca;
  background: #fffdfb;
  color: #6d2937;
}

.filter-empty-notice.has-recommendations {
  border-color: rgba(176, 118, 38, .3);
  background: linear-gradient(135deg, #fffaf0, #f8ecea);
}

.filter-empty-notice.has-recommendations .filter-empty-icon {
  background: #b17626;
}

.area-recommendation-dialog {
  position: relative;
  width: min(590px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid rgba(143, 31, 50, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(177, 118, 38, .13), transparent 36%),
    #fffaf6;
  color: #351019;
  box-shadow: 0 32px 90px rgba(49, 8, 17, .35);
}

.area-recommendation-dialog::backdrop {
  background: rgba(42, 8, 15, .62);
  backdrop-filter: blur(5px);
}

.area-recommendation-dialog .dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.area-recommendation-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #a8283e, #6c1425);
  color: #fff;
  font-size: 27px;
  box-shadow: 0 12px 28px rgba(91, 18, 33, .22);
}

.area-recommendation-dialog .eyebrow { margin: 0 0 7px; }

.area-recommendation-dialog h2 {
  max-width: 470px;
  margin: 0;
  font: 500 34px/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.area-recommendation-dialog > p:not(.eyebrow) {
  margin: 13px 0 0;
  color: #735f64;
  font-size: 14px;
  line-height: 1.6;
}

.area-recommendation-note {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid #ead7ca;
  border-radius: 13px;
  background: rgba(255, 255, 255, .68);
  color: #735f64;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.area-recommendation-dialog .dialog-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  margin-top: 24px;
}

.area-recommendation-dialog .dialog-actions button { min-height: 48px; border-radius: 12px; }

@keyframes filter-empty-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .map-canvas-shell > .filter-empty-notice {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .filter-empty-notice {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .filter-empty-notice button {
    width: 100%;
  }

  .filter-empty-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .area-recommendation-dialog { padding: 28px 20px 22px; }
  .area-recommendation-dialog h2 { padding-right: 32px; font-size: 29px; }
  .area-recommendation-dialog .dialog-actions { grid-template-columns: 1fr; }
}
[hidden] {
  display: none !important;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 86px;
}

.auth-panel .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: auto;
  min-width: 62px;
  min-height: 38px;
  margin: 0;
  padding: 7px 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: #f5e6e5;
  box-shadow: none;
  color: #7a1b2c;
  font-size: 13px;
  font-weight: 800;
}

.auth-panel .password-toggle:hover,
.auth-panel .password-toggle:focus-visible {
  background: #ead1d2;
  color: #5b1221;
}
