@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f3f7fc;
  --panel: #ffffff;
  --panel-soft: #edf5ff;
  --text: #14243a;
  --muted: #63738a;
  --line: #d6e3f1;
  --accent: #007ffc;
  --accent-strong: #005fc7;
  --brand: #006bd6;
  --auction: #8a4b10;
  --direct: #007ffc;
  --danger: #9f2f2f;
  --shadow: 0 12px 30px rgba(20, 55, 96, 0.1);
  --site-nav-height: calc(68px + 0.6rem + env(safe-area-inset-top));
}

html {
  font-family: Inter, sans-serif;
  font-size: 14px;
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: calc(96px + env(safe-area-inset-top));
}

html:has(body.map-immersive-page) {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: var(--site-nav-height);
  position: relative;
}

button,
input,
select {
  font: inherit;
}

.site-nav {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1200;
}

.site-nav__toggle {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.site-nav__toggle span {
  background: #007ffc;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 20px;
}

.mobile-bottom-nav {
  display: none;
}

.site-nav a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.site-nav__start {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.site-nav__back {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  flex-shrink: 0;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}

.site-nav__back:hover {
  border-color: #b8cce2;
  color: var(--accent-strong);
}

.site-nav__page-title {
  color: var(--accent-strong);
  font-size: 1.02rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav__brand {
  align-items: center;
  color: var(--accent-strong) !important;
  display: inline-flex;
  font-size: 1.04rem;
  min-width: 0;
}

.site-nav__logo {
  display: block;
  height: 60px;
  object-fit: contain;
  width: auto;
}

.site-nav__logo--vertical {
  height: 60px;
}

.site-nav__greeting {
  display: none;
}

.site-nav__links {
  align-items: center;
  display: flex;
  gap: 24px;
}

.site-nav__login {
  background: var(--accent);
  border-radius: 8px;
  color: #ffffff !important;
  font-weight: 800;
  max-width: 180px;
  overflow: hidden;
  padding: 11px 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav__login:hover {
  background: var(--accent-strong);
  color: #ffffff !important;
}

#favoritosMenu {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

#favoritosMenu.is-active {
  color: var(--accent-strong);
}

.site-nav__links > .is-active {
  color: var(--accent-strong);
}

#favoritosCount {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-width: 24px;
  padding: 3px 7px;
}

.home-hero {
  padding: 24px 24px 0;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.home-hero__inner {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1220px;
}

.home-hero__banner {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #1188f7, #164a96);
  border-radius: 20px;
  color: #ffffff;
  padding: 32px 28px;
}

.home-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.home-hero__banner h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.08;
  margin-bottom: 14px;
  max-width: 640px;
}

.home-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0;
  max-width: 680px;
}

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

.home-hero__stat {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 14px;
  text-align: center;
}

.home-hero__stat-icon {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.home-hero__stat-icon svg {
  height: 20px;
  width: 20px;
}

.home-hero__stat strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.1;
}

.home-hero__stat > span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.topbar {
  background:
    linear-gradient(90deg, rgba(0, 127, 252, 0.92), rgba(0, 76, 159, 0.88)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.topbar__inner {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  min-height: 260px;
  padding: 48px 24px 34px;
}

.topbar--compact .topbar__inner {
  min-height: 190px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 0;
  max-width: 820px;
}

.topbar__metric {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  display: grid;
  min-width: 132px;
  padding: 16px;
  text-align: center;
}

.topbar__metric strong {
  font-size: 2rem;
  line-height: 1;
}

.topbar__metric span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.page {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1220px;
  padding: 24px;
}

.map-page {
  display: block;
  margin: 0 auto;
  max-width: 1220px;
  padding: 24px;
}

.map-immersive-page {
  background: #0b1f36;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  padding-top: 0;
}

.map-immersive-page .site-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(8, 24, 48, 0.12);
  flex-shrink: 0;
  position: fixed;
  z-index: 1200;
}

.map-page--immersive {
  flex: 1;
  margin: 0;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  margin-top: var(--site-nav-height);
  height: calc(100dvh - var(--site-nav-height));
}

.map-shell--fullscreen {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.map-canvas.map-canvas--immersive {
  background: linear-gradient(180deg, #0f2947 0%, #16365c 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100% !important;
  isolation: isolate;
  min-height: 0 !important;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 0;
}

.map-canvas.map-canvas--immersive.leaflet-container,
.map-canvas.map-canvas--immersive .leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

.map-overlay--stats {
  left: 16px;
  pointer-events: none;
  position: absolute;
  top: 16px;
  z-index: 900;
}

.map-stats-chip {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(8, 32, 62, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  padding: 10px 16px;
}

.map-stats-chip strong {
  color: #7ec4ff;
  font-size: 1.05rem;
}

.map-stats-chip span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
}

.map-filters-panel {
  backdrop-filter: blur(18px);
  background: rgba(8, 32, 62, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100dvh - var(--site-nav-height) - 32px);
  overflow: hidden;
  position: absolute;
  right: 16px;
  top: 16px;
  width: min(420px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  z-index: 950;
}

.map-filters-panel:not(.is-open) .map-filters-panel__body {
  display: none;
}

.map-filters-panel__header {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.map-filters-panel__header h2 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 4px 0 0;
}

.map-filters-panel__header .eyebrow {
  color: rgba(126, 196, 255, 0.92);
}

.map-filters-panel__toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
}

.map-filters-panel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  padding: 0 16px 16px;
}

.map-filters-panel__fields {
  display: grid;
  flex: 1;
  gap: 12px;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-color: rgba(126, 196, 255, 0.45) rgba(255, 255, 255, 0.08);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.map-filters-panel__fields::-webkit-scrollbar {
  width: 6px;
}

.map-filters-panel__fields::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.map-filters-panel__fields::-webkit-scrollbar-thumb {
  background: rgba(126, 196, 255, 0.38);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 999px;
}

.map-filters-panel__fields::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 196, 255, 0.58);
  background-clip: padding-box;
}

.map-filters-panel__fields > * {
  min-width: 0;
}

.map-filters-panel__actions {
  display: grid;
  flex-shrink: 0;
  gap: 10px;
}

.map-filters-panel__secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 100%;
}

.map-filters-panel__secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.map-filters-panel__fields[hidden] {
  display: none;
}

.field--map span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

.field--map {
  min-width: 0;
}

.field--map .select2-container {
  max-width: 100%;
  width: 100% !important;
}

.field--map .select2-container--default .select2-selection--multiple,
.field--map .select2-container--default .select2-selection--single {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  min-height: 42px;
}

.field--map .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
  padding-left: 12px;
  padding-right: 32px;
}

.field--map .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 8px;
  top: 0;
}

.field--map .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(255, 255, 255, 0.72) transparent transparent transparent;
}

.field--map-check {
  color: rgba(255, 255, 255, 0.88);
  flex-shrink: 0;
}

.field--map-check input {
  accent-color: var(--accent);
}

.field--map .select2-container--default .select2-selection__choice {
  background: rgba(0, 127, 252, 0.28);
  border: 1px solid rgba(126, 196, 255, 0.35);
  color: #ffffff;
}

.field--map .select2-container--default .select2-selection__placeholder,
.field--map .select2-container--default .select2-selection__rendered {
  color: rgba(255, 255, 255, 0.72);
}

.map-filters-panel__feedback {
  color: #ffb4b4;
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
}

.map-filters-panel__feedback a {
  color: #7ec4ff;
}

.map-filters-panel__submit {
  flex-shrink: 0;
  width: 100%;
}

.field--map input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.field--map input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.price-filter--map .price-filter__title {
  color: rgba(255, 255, 255, 0.88);
}

.map-error-toast {
  backdrop-filter: blur(12px);
  background: rgba(255, 245, 245, 0.95);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  left: 50%;
  max-width: min(420px, calc(100% - 32px));
  padding: 16px 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 980;
}

.map-error-toast[hidden] {
  display: none;
}

.map-city-sheet {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(214, 227, 241, 0.9);
  border-radius: 18px 18px 0 0;
  bottom: 0;
  box-shadow: 0 -18px 48px rgba(8, 24, 48, 0.22);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  left: 0;
  max-height: min(72vh, 640px);
  min-height: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  touch-action: pan-y;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  z-index: 960;
}

.map-city-sheet.is-open {
  transform: translateY(0);
}

.map-city-sheet[hidden] {
  display: none;
}

.map-city-sheet__handle {
  background: var(--line);
  border-radius: 999px;
  height: 4px;
  justify-self: center;
  margin-top: 10px;
  width: 42px;
}

.map-city-sheet__header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px 12px;
}

.map-city-sheet__header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.map-city-sheet__header p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 4px 0 0;
}

.map-city-sheet__actions {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.sort--compact {
  font-size: 0.78rem;
}

.map-city-sheet__close {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.map-city-sheet__body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
}

.map-city-sheet__grid {
  padding-bottom: 8px;
}

.map-loading--immersive {
  background: rgba(8, 32, 62, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.map-loading--immersive span {
  color: rgba(255, 255, 255, 0.78);
}

.map-canvas--immersive .leaflet-control-zoom a {
  background: rgba(8, 32, 62, 0.88);
  color: #ffffff;
}

.map-canvas--immersive .leaflet-control-attribution {
  display: none;
}

.city-marker.city-marker--immersive {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
}

.city-marker--immersive span {
  align-items: center;
  background: linear-gradient(180deg, #0094ff 0%, #006bd6 100%);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: none;
  color: #ffffff;
  display: flex;
  font-size: 0.86rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 8px;
}

.city-marker--label {
  background: rgba(8, 32, 62, 0.82);
  border: 1px solid rgba(126, 196, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
}

.city-marker--label strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-marker--label span {
  background: linear-gradient(180deg, #0094ff 0%, #006bd6 100%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.78rem;
  height: 24px;
  min-width: 24px;
  padding: 0 6px;
}

.property-marker {
  align-items: center;
  display: flex;
  justify-content: center;
}

.property-marker--immersive span {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 107, 214, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 40, 80, 0.22);
  color: #005fc7;
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-results {
  display: grid;
  gap: 18px;
  min-width: 0;
  position: relative;
  z-index: 0;
}

.map-results[hidden],
.map-setup[hidden] {
  display: none;
}

.map-setup {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  padding: 24px;
}

.map-setup h2 {
  margin: 4px 0 0;
}

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

.map-setup__fields[hidden] {
  display: none;
}

.map-setup__feedback a {
  color: var(--accent-strong);
  font-weight: 900;
}

.map-setup__feedback {
  color: var(--danger);
  font-weight: 800;
  margin: 0;
}

.map-setup__submit {
  justify-self: start;
  min-width: 180px;
}

.map-canvas:not(.map-canvas--immersive) {
  background: #edf5ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 0;
  isolation: isolate;
}

.map-shell {
  position: relative;
}

.map-loading {
  align-items: center;
  background: rgba(237, 245, 255, 0.86);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(214, 227, 241, 0.82);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(20, 55, 96, 0.18);
  color: var(--text);
  display: grid;
  gap: 8px;
  left: 50%;
  min-width: min(330px, calc(100% - 36px));
  padding: 22px;
  place-items: center;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.map-loading[hidden] {
  display: none;
}

.map-loading span {
  color: var(--muted);
  font-weight: 700;
}

.map-loading__spinner {
  animation: map-spin 0.85s linear infinite;
  border: 4px solid rgba(0, 127, 252, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  height: 42px;
  width: 42px;
}

@keyframes map-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-canvas .leaflet-container,
.map-canvas .leaflet-pane,
.map-canvas .leaflet-top,
.map-canvas .leaflet-bottom {
  z-index: 0 !important;
}

.map-canvas .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 10px 24px rgba(20, 55, 96, 0.15);
}

.map-canvas .leaflet-control-zoom a {
  border: 0;
  color: var(--brand);
}

.map-canvas .leaflet-control-attribution {
  display: none;
}

.city-marker:not(.city-marker--immersive) {
  align-items: center;
  background: rgba(0, 127, 252, 0.14);
  border: 1px solid rgba(0, 127, 252, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 95, 199, 0.2);
  display: flex;
  justify-content: center;
}

.city-marker:not(.city-marker--immersive) span {
  align-items: center;
  background: var(--accent);
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 76, 159, 0.3);
  color: #ffffff;
  display: flex;
  font-size: 0.86rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 7px;
}

.map-city-loading {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
}

.map-listing {
  display: grid;
  gap: 18px;
}

.map-listing__filters {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 320px);
  justify-content: end;
  padding: 16px;
}

.map-listing__title {
  margin-top: 0;
}

.mobile-filter-button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: none;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
}

.filter-icon {
  display: grid;
  gap: 3px;
  width: 18px;
}

.filter-icon::before,
.filter-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
}

.filter-icon::before {
  width: 18px;
}

.filter-icon::after {
  justify-self: end;
  width: 11px;
}

.filters,
.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filters {
  display: grid;
  gap: 16px;
  padding: 18px;
  position: sticky;
  top: 18px;
}

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

.filters h2,
.results h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--password {
  position: relative;
}

.field--password input {
  padding-right: 46px;
}

.field__toggle-password {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: auto;
  bottom: 0;
  width: 42px;
}

.field__toggle-password-icon--hide {
  display: none;
}

.field__toggle-password.is-visible .field__toggle-password-icon--show {
  display: none;
}

.field__toggle-password.is-visible .field__toggle-password-icon--hide {
  display: block;
}

.field span,
.price-filter__title,
.sort span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

select,
input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

select:focus,
input:focus,
button:focus-visible {
  outline: 3px solid rgba(0, 127, 252, 0.24);
  outline-offset: 2px;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text);
  line-height: 42px;
  padding-left: 12px;
  padding-right: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 8px;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 4px 7px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 127, 252, 0.15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--panel-soft);
  border: 0;
  border-radius: 6px;
  margin: 3px 5px 3px 0;
  padding: 4px 8px 4px 25px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border: 0;
  bottom: 0;
  color: var(--muted);
  padding: 0 7px;
  top: 0;
}

.select2-dropdown {
  border-color: var(--line);
  border-radius: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
}

.price-filter {
  display: grid;
  gap: 10px;
}

.price-filter__inputs {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 800;
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button--ghost {
  background: var(--panel-soft);
  color: var(--accent-strong);
}

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

.filter-apply {
  width: 100%;
}

.results {
  display: grid;
  gap: 18px;
}

.page-loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(214, 227, 241, 0.82);
  border-radius: 16px;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 260px;
  padding: 48px 20px;
  place-content: center;
  text-align: center;
  width: 100%;
}

.page-loading[hidden] {
  display: none;
}

.page-loading strong {
  font-size: 1rem;
}

.page-loading span {
  color: var(--muted);
  font-weight: 700;
}

.page-loading__spinner {
  animation: map-spin 0.85s linear infinite;
  border: 4px solid rgba(0, 127, 252, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
  height: 42px;
  width: 42px;
}

.page-booting .results__toolbar {
  opacity: 0.72;
  pointer-events: none;
}

.page-booting .home-hero__stat strong[data-loading="true"],
.page-booting .home-hero__stat #totalImoveisPlataforma {
  opacity: 0.45;
}

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

.search-filter-trigger {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: 1;
  font: inherit;
  gap: 10px;
  justify-content: flex-start;
  max-width: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 0 14px;
  text-align: left;
}

.search-filter-trigger__icon {
  color: var(--accent);
  flex-shrink: 0;
}

.search-filter-trigger__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filters-modal {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: visible;
  padding: 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.filters-modal .map-filters-panel--modal {
  overflow: visible;
}

body.filters-open .select2-container {
  z-index: 2147483002;
}

body.filters-open .select2-dropdown {
  z-index: 2147483003 !important;
}

.map-filters-panel--modal {
  left: auto;
  max-height: min(80vh, calc(100dvh - var(--site-nav-height) - 32px));
  position: relative;
  right: auto;
  top: auto;
  width: min(420px, 100%);
}

.sort-control {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.sort-control__label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.results__bar {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px;
}

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

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

.sort-icon-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--accent-strong);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.sort-icon-button__glyph {
  pointer-events: none;
}

.sort-icon-button__select {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 100%;
  inset: 0;
  margin: 0;
  min-height: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.sort {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 230px;
}

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

.infinite-scroll-sentinel {
  height: 2px;
  width: 100%;
}

.infinite-scroll-sentinel[hidden] {
  display: none;
}

.empty__login {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 46, 86, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.card__media {
  aspect-ratio: 4 / 3;
  background: #dcecff;
  max-height: 250px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  position: relative;
  width: 100%;
}

.card__media-frame {
  background: #edf5ff;
  border-radius: 0;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
}

.card__media-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.card__badge {
  background: #ffffff;
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  left: 12px;
  max-width: calc(100% - 88px);
  overflow: hidden;
  padding: 7px 10px;
  position: absolute;
  text-overflow: ellipsis;
  top: 12px;
  white-space: nowrap;
  z-index: 2;
}

.card__badge--auction {
  color: #8a4b10;
}

.card__badge--direct {
  color: var(--accent-strong);
}

.card__image {
  aspect-ratio: 4 / 3;
  background: #dcecff;
  overflow: hidden;
  position: relative;
}

.card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 12px;
  position: absolute;
  right: 64px;
  top: 12px;
}

.favorite-button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.12);
  color: #8a97a8;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  line-height: 0;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.favorite-button__icon {
  display: block;
  height: 18px;
  pointer-events: none;
  width: 18px;
}

@media (hover: hover) {
  .favorite-button:hover {
    color: #d12b4c;
  }
}

.favorite-button.is-favorite {
  color: #d12b4c;
  background: #ffffff;
}

.tag {
  backdrop-filter: blur(8px);
  background: rgba(23, 33, 31, 0.74);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 6px 9px;
}

.tag--auction {
  background: rgba(138, 75, 16, 0.86);
}

.tag--direct {
  background: rgba(0, 127, 252, 0.9);
}

.tag--occupied {
  background: rgba(159, 47, 47, 0.86);
}

.card__body {
  display: grid;
  flex: 1;
  gap: 12px;
  padding: 18px;
}

.card__title {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.card__location {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

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

.card__pricing-values {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.card__discount {
  color: #159957;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  max-width: 42%;
  text-align: right;
}

.card__meta {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card__type {
  align-items: center;
  background: #e8f1f8;
  border: 1px solid #d4e2ee;
  border-radius: 6px;
  color: #526b82;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  justify-self: start;
  line-height: 1.2;
  min-height: 28px;
  padding: 5px 9px;
}

.map-modal[hidden] {
  display: none;
}

.map-modal {
  inset: 0;
  isolation: isolate;
  position: fixed;
  z-index: 2147483000 !important;
}

.map-modal__backdrop {
  background: rgba(23, 33, 31, 0.46);
  inset: 0;
  position: absolute;
  z-index: 0;
}

.map-modal__card {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 33, 31, 0.26);
  display: grid;
  left: 50%;
  max-height: 80vh;
  max-width: 520px;
  overflow: auto;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  z-index: 2;
}

.map-modal__card img {
  aspect-ratio: 16 / 9;
  background: var(--panel-soft);
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.map-modal__body {
  background: var(--panel);
  display: grid;
  gap: 14px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.map-modal__body h2,
.map-modal__body p {
  margin: 0;
}

.map-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  font-size: 1.4rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

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

.detail-modal {
  inset: 0;
  position: fixed;
  z-index: 2147483000;
}

.detail-modal__backdrop {
  background: rgba(0, 0, 0, 0.85);
  inset: 0;
  position: absolute;
}

.detail-modal__card {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 33, 31, 0.28);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: 80vh;
  max-width: 760px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
}

.detail-modal__header {
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.detail-modal__header h2 {
  font-size: 1.35rem;
  margin: 0;
}

.detail-modal__body {
  color: var(--text);
  display: grid;
  gap: 12px;
  line-height: 1.5;
  overflow: auto;
  padding: 22px;
}

.detail-modal__body table {
  border-collapse: collapse;
  width: 100%;
}

.detail-modal__body td,
.detail-modal__body th {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.detail-modal__body img {
  max-width: 100%;
}

.detail-modal--property .detail-modal__card {
  border-radius: 22px;
  max-height: 80vh;
  max-width: 520px;
}

.detail-modal--property .detail-modal__header {
  padding: 16px 54px 14px 22px;
  text-align: center;
}

.detail-modal--property .detail-modal__header h2 {
  font-size: 1.05rem;
}

.detail-modal--property .detail-modal__body {
  gap: 16px;
  padding: 0 18px 18px;
}

.detail-modal--subscription .detail-modal__card {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(145deg, #1188f7, #164a96);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(17, 58, 112, 0.35);
  color: #ffffff;
  max-width: 420px;
  overflow: visible;
}

.detail-modal--subscription .detail-modal__header {
  display: none;
}

.detail-modal--subscription .detail-modal__body {
  color: #ffffff;
  gap: 0;
  padding: 48px 22px 22px;
}

.detail-modal--subscription .subscription-premium-card,
.detail-modal--subscription .subscription-premium-card h3,
.detail-modal--subscription .subscription-premium-card p,
.detail-modal--subscription .subscription-premium-card small {
  color: #ffffff;
}

.detail-modal--subscription .detail-modal__close {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.detail-modal--subscription .detail-modal__error {
  color: #ffffff;
}

.subscription-premium-card {
  color: #ffffff;
  display: grid;
  gap: 10px;
}

.subscription-premium-card small {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.subscription-premium-card h3 {
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0;
}

.subscription-premium-card p {
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  opacity: 0.94;
}

.subscription-premium-card__note {
  color: #ffffff;
  font-size: 0.92rem;
  opacity: 0.88;
}

.subscription-premium-card__cta {
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  color: #173a70;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 6px;
  min-height: 52px;
  text-decoration: none;
  width: 100%;
}

.property-detail {
  display: grid;
  gap: 16px;
}

.property-detail__media {
  aspect-ratio: 4 / 3;
  background: #dcecff;
  border-radius: 18px;
  min-height: 220px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.property-detail__media-frame {
  border-radius: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.property-detail__media-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.property-detail__media .card__badge {
  left: 12px;
  top: 12px;
}

.property-detail__intro {
  display: grid;
  gap: 6px;
}

.property-detail__title {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.property-detail__location {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.card__stats {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 2px;
  max-width: 150px;
}

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

.property-detail__stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 8px;
  text-align: center;
}

.property-detail__stat-icon {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.property-detail__stat-icon svg {
  height: 20px;
  width: 20px;
}

.property-detail__stat strong {
  display: block;
  font-size: 1.05rem;
}

.property-detail__stat small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
}

.property-detail__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 46, 86, 0.045);
  padding: 18px;
}

.property-detail__card--price {
  display: grid;
  gap: 6px;
}

.property-detail__card--price .price-from {
  font-size: 0.92rem;
}

.property-detail__card--price h4 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.property-detail__discount-badge {
  align-self: start;
  background: #e8f7ef;
  border: 1px solid rgba(21, 153, 87, 0.22);
  border-radius: 10px;
  color: #159957;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
  padding: 8px 12px;
}

.property-detail__card h4 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.property-detail__card h4:first-child {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.property-detail__card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.property-detail__economy {
  color: #159957;
  font-weight: 800;
}

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

.property-detail__cta {
  border-radius: 14px;
  min-height: 52px;
  width: 100%;
}

.property-detail__cta--secondary {
  background: var(--panel-soft);
  color: var(--accent-strong);
}

.property-detail__cta--secondary:hover {
  background: #dcecff;
}

.detail-modal__summary {
  display: grid;
  gap: 8px;
}

.detail-modal__summary p {
  margin: 0;
}

.detail-modal__summary strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.15;
}

.detail-modal__location,
.detail-modal__type {
  color: var(--brand);
  font-weight: 900;
}

.detail-modal__data {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.detail-modal__row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 180px) 1fr;
  padding: 10px 0;
}

.detail-modal__row dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-modal__row dd {
  margin: 0;
}

.detail-modal__external {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  justify-self: start;
  line-height: 1;
  margin-top: 6px;
  text-decoration: none;
  width: fit-content;
}

.detail-modal__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-modal__error {
  color: var(--danger);
  font-weight: 800;
  margin: 0;
  padding: 0 22px 22px;
}

.detail-modal__close {
  align-items: center;
  background: var(--panel-soft);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  font-size: 1.4rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

.card h3 {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

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

.facts {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 2px 0 0;
}

.facts div {
  background: var(--panel-soft);
  border-radius: 8px;
  min-width: 0;
  padding: 9px 10px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.facts dd {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.price {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.price-from {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: line-through;
}

.location {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
  text-align: left;
  overflow-wrap: anywhere;
}

.card__link {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  width: 100%;
}

.card__link--locked,
.card__link--locked:hover {
  background: #fff;
  border: 1px solid #ccc;
  color: #ccc;
  cursor: pointer;
  opacity: 1;
}

.plan-gate {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(145deg, #1188f7, #164a96);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: #ffffff;
  grid-column: 1 / -1;
  padding: 22px;
}

.empty {
  padding: 34px 18px;
  text-align: center;
}

.empty--error {
  border-color: rgba(159, 47, 47, 0.38);
}

.empty--error h3 {
  color: var(--danger);
}

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

.import-page {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 980px;
  padding: 34px 24px;
}

.import-panel,
.import-message {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.import-panel h1 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.import-panel p,
.import-message p {
  color: var(--muted);
  line-height: 1.55;
}

.import-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

.state-picker legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 8px;
}

.state-picker label {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 8px;
}

.state-picker input {
  min-height: auto;
  width: auto;
}

.state-picker span {
  font-weight: 900;
}

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

.csv-picker legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 8px;
}

.csv-picker label {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 48px;
  padding: 10px 12px;
}

.csv-picker input {
  min-height: auto;
  width: auto;
}

.csv-picker span {
  align-items: baseline;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.csv-picker strong {
  display: block;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csv-picker small {
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 800;
}

.import-message--error {
  border-color: rgba(159, 47, 47, 0.38);
}

.import-message--error h2 {
  color: var(--danger);
}

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

.import-stats div {
  background: var(--panel-soft);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.import-stats strong {
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
}

.import-stats span {
  color: var(--muted);
  font-weight: 800;
}

.import-errors {
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.preview-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.preview-table th,
.preview-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.preview-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.preview-table td {
  color: var(--text);
}

.auth-page {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 34px 24px;
}

.auth-intro {
  min-height: 0;
}

.auth-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
}

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

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

.auth-toggle {
  min-height: 48px;
  width: 100%;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.auth-card h2 {
  margin-bottom: 4px;
}

.auth-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.auth-row a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.auth-link-button {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

.auth-feedback {
  background: #e8f3ff;
  border: 1px solid #9bcaff;
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 800;
  margin: 0;
  padding: 14px 16px;
}

.auth-feedback--error {
  background: #fff1f1;
  border-color: #e7aaaa;
  color: var(--danger);
}

.auth-session {
  max-width: 560px;
}

.auth-grid[hidden],
.auth-session[hidden] {
  display: none;
}

.auth-session .button {
  justify-self: start;
}

.auth-terms {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.auth-terms h2,
.auth-terms h3,
.auth-terms p,
.auth-terms ul,
.auth-terms ol,
.auth-terms blockquote {
  margin: 0 0 14px;
}

.auth-terms ul,
.auth-terms ol {
  padding-left: 22px;
}

.auth-recovery-modal {
  max-width: 520px;
}

.auth-message-modal {
  max-width: 440px;
}

.auth-message-modal .detail-modal__body {
  gap: 18px;
}

.auth-message-modal__text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
}

.auth-message-modal--error .detail-modal__header h2 {
  color: #9f2f2f;
}

.auth-page--single {
  max-width: 620px;
}

.account-page {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 520px;
  padding: 18px 20px 40px;
}

.account-view {
  display: grid;
  gap: 16px;
}

.account-view[hidden] {
  display: none;
}

.account-profile-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 46, 86, 0.045);
  display: flex;
  gap: 16px;
  padding: 18px;
}

.account-avatar {
  align-items: center;
  background: linear-gradient(145deg, #1188f7, #5e4ae3);
  border-radius: 50%;
  color: #ffffff;
  display: grid;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  height: 58px;
  place-items: center;
  width: 58px;
}

.account-profile-card__info {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.account-profile-card__info strong {
  font-size: 1.05rem;
}

.account-profile-card__info span {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-icon-btn {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.35rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 42px;
}

.account-plan-status {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 46, 86, 0.045);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.account-plan-status small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.account-plan-status__value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.account-plan-status__value.is-inactive {
  color: #d92d20;
  font-size: 1.35rem;
}

.account-plan-status__value.is-active {
  color: #159957;
}

.account-plan-status p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

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

.account-advanced__link {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  justify-self: start;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-advanced__link--danger {
  color: #98a2b3;
}

.account-premium-banner {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(145deg, #1188f7, #164a96);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: grid;
  gap: 10px;
  padding: 22px;
}

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

.account-premium-banner small {
  font-size: 0.82rem;
  font-weight: 700;
}

.account-premium-banner h3 {
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0;
}

.account-premium-banner p {
  line-height: 1.5;
  margin: 0;
  opacity: 0.94;
}

.account-premium-banner__cta {
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  color: #173a70;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 6px;
  min-height: 52px;
  text-decoration: none;
  width: 100%;
}

.account-section-title {
  font-size: 1.15rem;
  margin: 6px 0 0;
}

.account-menu-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 46, 86, 0.045);
  overflow: hidden;
}

.account-menu-row {
  align-items: center;
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.account-menu-row:last-child {
  border-bottom: 0;
}

.account-menu-row__left {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.account-menu-row__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 22px;
}

.account-menu-row strong {
  display: block;
  font-size: 0.92rem;
}

.account-menu-row small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  margin-top: 2px;
}

.account-menu-row--static {
  cursor: default;
}

.account-menu-row--danger {
  border: 1px solid #ffd6d2;
  border-radius: 18px;
  color: #d92d20;
  margin-top: 4px;
}

.account-menu-row--danger strong,
.account-menu-row--danger span:last-child {
  color: #d92d20;
}

.account-logout {
  justify-self: center;
  margin-top: 4px;
}

.account-panel__header {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.account-panel__header h1 {
  font-size: 1.15rem;
  margin: 0;
  text-align: center;
}

.account-panel__body {
  display: grid;
  gap: 16px;
}

.account-panel__intro {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.account-panel__submit {
  width: 100%;
}

.account-info-box {
  background: var(--panel-soft);
  border-radius: 15px;
  color: #075faf;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 14px;
}

.account-info-box--danger {
  background: #fff1f0;
  color: #a3241e;
}

.account-support-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 46, 86, 0.045);
  padding: 18px;
  text-align: center;
}

.account-support-card h3 {
  margin: 0 0 8px;
}

.account-support-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.account-support-card a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.account-support-card__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.account-faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 18px;
}

.account-faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.account-faq details:last-child {
  border-bottom: 0;
}

.account-faq summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
}

.account-faq p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 10px 0 0;
}

.account-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.account-header h1 {
  margin: 0;
}

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

.account-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.account-grid[hidden] {
  display: none;
}

.account-grid.plans-disabled {
  grid-template-columns: minmax(0, 1fr);
}

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

.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.account-card h2 {
  margin: 0;
}

.account-card--danger {
  border-color: rgba(159, 47, 47, 0.28);
}

.account-card--danger p {
  color: var(--muted);
  margin: 0;
}

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

.button--danger:hover {
  background: #7d2020;
}

.account-form,
.account-fields,
.account-plan {
  display: grid;
  gap: 14px;
}

.account-plan__name {
  font-size: 1.35rem;
}

.account-plan__current,
.account-plan__option {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.account-plan__current {
  background: var(--soft);
}

.account-plan__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-plan__options {
  display: grid;
  gap: 14px;
}

.account-plan__description {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

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

.account-plan__prices section {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.account-plan__prices section.is-featured {
  background: var(--panel-soft);
  border-color: #9bc9f7;
}

.account-plan__prices span,
.account-plan__prices small {
  color: var(--muted);
  font-weight: 700;
}

.account-plan__prices strong {
  font-size: 1.35rem;
}

.account-plan__status {
  color: var(--muted);
  font-weight: 800;
}

.account-plan__status.is-active {
  color: var(--accent-strong);
}

.account-plan__details {
  border-top: 1px solid var(--line);
  display: grid;
  margin: 0;
}

.account-plan__details div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(100px, 1fr) 1fr;
  padding: 10px 0;
}

.account-plan__details dt {
  color: var(--muted);
  font-weight: 800;
}

.account-plan__details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.favorites-page {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 1320px;
  padding: 28px 24px;
}

.plans-page {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 520px;
  padding: 18px 20px 40px;
}

.plans-toolbar {
  text-align: center;
}

.plans-toolbar__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.plans-intro h2 {
  font-size: clamp(1.65rem, 5vw, 2rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.plans-intro p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.plans-billing-toggle {
  background: #d6e0eb;
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.plans-billing-toggle[hidden] {
  display: none;
}

.plans-billing-toggle__option {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 12px;
}

.plans-billing-toggle__option.is-active {
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(20, 55, 96, 0.08);
  color: var(--accent);
}

.plans-options {
  display: grid;
  gap: 18px;
}

.plans-loading {
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.plan-card,
.checkout-card,
.pix-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.plan-card {
  display: grid;
  gap: 18px;
}

.plan-card.is-selected {
  border-color: #9cc9fb;
  box-shadow: 0 14px 34px rgba(17, 136, 247, 0.12);
}

.plan-card__title {
  font-size: 1.15rem;
  margin: 0;
}

.plan-card__price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-card__price strong {
  background: linear-gradient(135deg, #007ffc 0%, #004aad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 8vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-card__price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.plan-card__price-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -8px 0 0;
}

.plan-card__features {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-card__features li {
  align-items: flex-start;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  line-height: 1.35;
}

.plan-card__features li::before {
  color: var(--muted);
  content: "✓";
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.plan-card__cta,
.checkout-submit.plan-card__cta {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #1188f7, #164a96);
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  min-height: 52px;
  width: 100%;
}

.plan-card__cta:hover,
.checkout-submit.plan-card__cta:hover {
  filter: brightness(1.03);
}

.plan-card__cta:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.72;
}

.checkout-card,
.checkout-form,
.checkout-card-fields,
.pix-result {
  display: grid;
  gap: 18px;
}
.checkout-card[hidden], .pix-result[hidden], .checkout-card-fields[hidden] { display: none; }
.checkout-methods { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-methods label { cursor: pointer; }
.checkout-methods input { opacity: 0; position: absolute; }
.checkout-methods span { align-items: center; border: 1px solid var(--line); border-radius: 8px; display: flex; font-weight: 900; justify-content: center; min-height: 52px; }
.checkout-methods input:checked + span { background: var(--panel-soft); border-color: var(--accent); color: var(--accent-strong); }
.checkout-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.checkout-summary { display: grid; gap: 6px; margin: 0; }
.checkout-summary #checkoutSummary { color: var(--text); font-size: 0.95rem; line-height: 1.45; margin: 0; }
.checkout-coupon__field { margin: 0; min-width: 0; }
.checkout-coupon__control {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
}
.checkout-coupon__control:focus-within {
  outline: 3px solid rgba(0, 127, 252, 0.24);
  outline-offset: 2px;
}
.checkout-coupon__control input {
  background: transparent;
  border: 0;
  flex: 1;
  min-height: 34px;
  min-width: 0;
  padding: 0 8px 0 10px;
}
.checkout-coupon__control input:focus {
  outline: none;
}
.checkout-coupon__apply {
  background: rgba(0, 127, 252, 0.12);
  border: 0;
  border-radius: 6px;
  color: var(--accent-strong);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}
.checkout-coupon__apply:hover {
  background: rgba(0, 127, 252, 0.18);
}
.checkout-coupon__apply:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.checkout-coupon__summary { color: var(--accent-strong); font-size: 0.92rem; font-weight: 700; margin: 0; }
.field input.is-invalid { border-color: #d64545; }
.checkout-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-card-fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
.checkout-card-inline { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-card-fields select,
.checkout-form > .field select {
  appearance: none;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
}
.checkout-card-number { grid-column: 1 / -1; }
.checkout-submit { min-height: 48px; }
.pix-result { justify-items: center; text-align: center; }
.pix-result img { max-width: 280px; width: 100%; }
.pix-result textarea { min-height: 110px; padding: 12px; resize: vertical; width: 100%; }

.favorites-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.favorites-header h1 {
  margin: 0;
}

.check-field {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.filter-save-option {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.legal-page {
  margin: 0 auto;
  max-width: 1080px;
  padding: 56px 24px 80px;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 8px 0 16px;
}

.legal-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.legal-grid {
  display: grid;
  gap: 22px;
}

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

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

.legal-card h2 {
  font-size: 1.55rem;
  margin: 0 0 18px;
}

.legal-content {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content p,
.legal-content li {
  margin: 0 0 14px;
}

.legal-content h2,
.legal-content h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 22px 0 12px;
}

.legal-content h2:first-child,
.legal-content h3:first-child {
  margin-top: 0;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .map-canvas:not(.map-canvas--immersive) {
    height: 68vh;
    min-height: 420px;
  }

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

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

  .filters {
    position: static;
  }

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

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

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

  .legal-grid--cards {
    grid-template-columns: 1fr;
  }

  .favorites-header {
    align-items: stretch;
    display: grid;
    gap: 16px;
  }
}

@media (min-width: 681px) {
  .site-nav__menu-item {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: inline-flex;
    gap: 0;
    min-height: 0;
    padding: 0;
  }

  .site-nav__menu-item svg,
  .site-nav__menu-badge {
    display: none;
  }

  .site-nav__menu-item--account {
    background: var(--accent);
    border-radius: 8px;
    box-shadow: none;
    color: #ffffff !important;
    justify-content: center;
    margin-top: 0;
    padding: 11px 16px;
  }

  .site-nav__menu-item--account .site-nav__menu-label {
    color: #ffffff;
  }
}

@media (max-width: 680px) {
  :root {
    --site-nav-height: calc(88px + env(safe-area-inset-top));
  }

  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  body.map-immersive-page {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  .map-page--immersive {
    flex: 1;
    min-height: 0;
  }

  .map-canvas--immersive .leaflet-bottom.leaflet-right {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .map-overlay--stats {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .map-stats-chip {
    max-width: calc(100% - 130px);
  }

  .map-filters-panel {
    left: max(12px, env(safe-area-inset-left));
    max-height: calc(100dvh - var(--site-nav-height) - env(safe-area-inset-bottom) - 84px);
    right: max(12px, env(safe-area-inset-right));
    top: 12px;
    width: auto;
  }

  .map-filters-panel--modal {
    left: auto;
    max-height: min(80vh, calc(100dvh - var(--site-nav-height) - 32px));
    right: auto;
    width: min(420px, 100%);
  }

  .map-filters-panel:not(.is-open) {
    width: auto;
  }

  .map-filters-panel:not(.is-open) .map-filters-panel__header {
    padding-bottom: 16px;
  }

  .map-city-sheet {
    bottom: calc(66px + env(safe-area-inset-bottom));
    max-height: min(78vh, 720px);
  }

  .map-city-sheet__grid {
    grid-template-columns: 1fr;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-nav {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-top: calc(0.6rem + env(safe-area-inset-top));
  }

  .site-nav__toggle {
    display: none;
  }

  .site-nav__start {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: calc(100% - 130px);
    min-width: 0;
  }

  .site-nav__greeting {
    background: var(--accent);
    border-radius: 8px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: min(42vw, 180px);
    overflow: hidden;
    padding: 10px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav__greeting:hover {
    background: var(--accent-strong);
    color: #ffffff !important;
  }

  .site-nav__logo,
  .site-nav__logo--vertical {
    height: 60px;
    max-width: 180px;
  }

  .site-nav__links {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
  }

  body.menu-open .site-nav__links {
    display: grid;
  }

  body.menu-open .site-nav {
    align-content: start;
    bottom: calc(66px + env(safe-area-inset-bottom));
    grid-template-rows: auto 1fr;
    left: 0;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 0;
  }

  body.menu-open .site-nav__links {
    align-content: start;
    background: var(--bg);
    gap: 8px;
    min-height: 100%;
    padding: 16px 16px 24px;
  }

  .site-nav__menu-item {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 46, 86, 0.04);
    display: flex;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
  }

  .site-nav__menu-item svg {
    color: var(--accent);
    flex-shrink: 0;
    height: 22px;
    width: 22px;
  }

  .site-nav__menu-label {
    flex: 1;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .site-nav__menu-badge {
    background: var(--panel-soft);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    min-width: 28px;
    padding: 4px 10px;
    text-align: center;
  }

  .site-nav__menu-item.is-active {
    background: var(--panel-soft);
    border-color: #b8d9fb;
    color: var(--accent-strong);
  }

  .site-nav__menu-item.is-active svg {
    color: var(--accent-strong);
  }

  .site-nav__menu-item--account {
    background: linear-gradient(145deg, #1188f7, #164a96);
    border: 0;
    box-shadow: 0 10px 24px rgba(17, 74, 150, 0.22);
    color: #ffffff !important;
    justify-content: center;
    margin-top: 8px;
  }

  .site-nav__menu-item--account svg,
  .site-nav__menu-item--account .site-nav__menu-label {
    color: #ffffff;
  }

  .site-nav__menu-item--account.is-active {
    background: linear-gradient(145deg, #007ffc, #124a96);
    color: #ffffff !important;
  }

  .site-nav__links a.site-nav__menu-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
  }

  .site-nav__links a.site-nav__menu-item--account {
    border: 0;
    padding: 14px 16px;
    text-align: center;
  }

  .site-nav__login {
    text-align: center;
  }

  .mobile-bottom-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1150;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: 0.66rem;
    font-weight: 800;
    gap: 3px;
    justify-content: center;
    min-height: 48px;
    padding: 6px 4px;
    text-align: center;
    text-decoration: none;
  }

  .mobile-bottom-nav svg {
    display: block;
    height: 20px;
    width: 20px;
  }

  .mobile-bottom-nav a.is-active,
  body.menu-open .mobile-bottom-nav [data-mobile-menu] {
    background: var(--panel-soft);
    color: #007ffc;
  }

  .home-hero {
    padding: 16px 16px 0;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .home-hero__banner {
    padding: 24px 20px;
  }

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

  .home-hero__stat {
    padding: 14px 8px;
  }

  .home-hero__stat strong {
    font-size: 1.1rem;
  }

  .home-hero__stat > span:last-child {
    font-size: 0.72rem;
  }

  .topbar__inner,
  .filters__header,
  .results__bar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__inner {
    min-height: 300px;
  }

  .page {
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .results,
  .results__toolbar,
  .grid,
  .sort-control {
    max-width: 100%;
    min-width: 0;
  }

  .sort-control__label {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-filter-button {
    display: none;
  }

  .filters:not(.filters--modal) {
    display: none;
  }

  .filters-modal .filters--modal {
    display: grid;
  }

  .price-filter__inputs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

  .sort {
    align-items: stretch;
    display: grid;
    min-width: 0;
  }

  .location {
    text-align: left;
  }

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

  .import-page {
    padding: 18px 16px;
  }

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

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

  .auth-page {
    padding: 18px 16px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-plan__prices {
    grid-template-columns: 1fr;
  }

  .plans-page {
    gap: 18px;
    padding: 14px 16px 32px;
  }

  .plans-options,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.app-store-banner {
  background: linear-gradient(135deg, #005fc7 0%, #007ffc 100%);
  box-shadow: 0 8px 24px rgba(0, 95, 199, 0.28);
  color: #ffffff;
  left: 0;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 2000;
}

body.has-app-store-banner {
  scroll-padding-top: calc(var(--site-nav-height) + 72px);
}

.app-store-banner__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 980px;
}

.app-store-banner__text {
  flex: 1 1 220px;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.app-store-banner__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-store-banner__cta {
  background: #ffffff;
  border-radius: 999px;
  color: #005fc7;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.app-store-banner__dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 9px 14px;
  white-space: nowrap;
}

.site-footer {
  background: #10233d;
  color: #ffffff;
  margin-top: 20px;
}

body.map-immersive-page .site-footer {
  display: none;
}

.site-footer__inner {
  margin: 0 auto;
  max-width: 1220px;
  padding: 40px 24px 24px;
}

.site-footer__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer__title {
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer__text {
  color: #c8d3df;
  line-height: 1.6;
  margin: 0;
}

.site-footer__col h3 {
  font-size: 16px;
  margin: 0 0 12px;
}

.site-footer__col a {
  color: #d6e0ea;
  display: block;
  margin: 9px 0;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: #ffffff;
}

.site-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-footer__chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dce6ef;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 11px;
}

.site-footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c5d2;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 28px;
  padding-top: 22px;
}

.site-footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aebdcb;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
}

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

@media (max-width: 620px) {
  .site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
