/* Home map, search, controls and map cards. */
.home-map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height));
  width: 100%;
  padding: 0;
}

.home-map__shell {
  width: 100%;
  height: calc(100dvh - var(--header-height));
  display: flex;
  justify-content: center;
}

.home-map__stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(66, 96, 124, 0.2) 0%, rgba(23, 33, 45, 0.08) 30%, rgba(11, 17, 24, 0) 56%),
    linear-gradient(180deg, #eef2f5 0%, #dde3e8 100%);
}

.home-map__stage::before {
  content: "";
  display: none;
}

.home-map__toolbar {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}

:root {
  --home-search-width-desktop: 440px;
}

.home-map-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 48px;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 3px;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 999px;
  background: var(--liquid-glass-surface);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  overflow: visible;
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-rotate-x: 0deg;
  --glass-rotate-y: 0deg;
  transform: perspective(640px) rotateX(var(--glass-rotate-x)) rotateY(var(--glass-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  isolation: isolate;
}

.home-map__toolbar .home-map-search {
  width: min(100%, var(--home-search-width-desktop));
}

.home-map-notifications {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 999px;
  background: var(--liquid-glass-surface);
  box-shadow: var(--liquid-glass-shadow);
  color: var(--theme-text, #101722);
  cursor: pointer;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  isolation: isolate;
}

.home-map-notifications[hidden] {
  display: none !important;
}

.home-map-notifications::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--liquid-glass-top-sheen);
  pointer-events: none;
}

.home-map-notifications:hover,
.home-map-notifications:focus-visible,
.home-map-notifications[aria-expanded="true"] {
  box-shadow: var(--liquid-glass-shadow-reactive);
  transform: translateY(-1px);
}

.home-map-notifications:focus-visible {
  outline: 2px solid rgba(80, 118, 255, 0.44);
  outline-offset: 3px;
}

.home-map-notifications__icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
  -webkit-filter: brightness(0) invert(0.96);
  filter: brightness(0) invert(0.96);
}

.home-map-notifications .notification-entry-badge {
  top: 9px !important;
  right: 9px !important;
  z-index: 2;
}

.home-map-search::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--liquid-glass-top-sheen);
  pointer-events: none;
}

.home-map-search::after,
.home-map-search__submit::after,
.home-map-search-suggestion::after {
  content: "";
  position: absolute;
  inset: -32%;
  pointer-events: none;
  opacity: 0;
  background: var(--liquid-glass-spot);
  transition: opacity 0.16s ease;
}

.home-map-search__submit.is-reactive,
.home-map-search-suggestion.is-reactive {
  box-shadow: var(--liquid-glass-shadow-reactive);
}

.home-map-search__submit.is-reactive::after,
.home-map-search-suggestion.is-reactive::after {
  opacity: 1;
}

.home-map-search__field {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px 0 18px;
  background: transparent;
}

.home-map-search__field input {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  color: #263446;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 620;
  line-height: 1.1;
  outline: none;
  transform: translateY(6px);
  caret-color: currentColor;
}

.home-map-search__field input::placeholder {
  color: rgba(68, 82, 99, 0.68);
  opacity: 1;
}

.home-map-search__submit {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
  width: 36px;
  height: 36px;
  margin: 0 4px 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--liquid-glass-surface-strong);
  border: 1px solid var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-shadow-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  cursor: default;
  overflow: hidden;
  color: #ffffff;
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-rotate-x: 0deg;
  --glass-rotate-y: 0deg;
  transform: perspective(640px) rotateX(var(--glass-rotate-x)) rotateY(var(--glass-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  isolation: isolate;
}

.home-map-search__submit-icon {
  position: relative;
  width: 16px;
  height: 16px;
  mix-blend-mode: difference;
}

.home-map-search__submit-icon::before,
.home-map-search__submit-icon::after {
  content: "";
  position: absolute;
  display: block;
  transform-origin: center;
  transition: transform 0.18s ease, width 0.18s ease, height 0.18s ease, border-width 0.18s ease, background 0.18s ease;
}

.home-map-search__submit-icon::before {
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2.3px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transform: translate(0, 0);
}

.home-map-search__submit-icon::after {
  top: 10px;
  left: 10px;
  width: 7px;
  height: 2.7px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.home-map-search__submit.is-clear-mode .home-map-search__submit-icon::before,
.home-map-search__submit.is-clear-mode .home-map-search__submit-icon::after {
  top: 50%;
  left: 50%;
  width: 17px;
  height: 2.9px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.home-map-search__submit.is-clear-mode .home-map-search__submit-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.home-map-search__submit.is-clear-mode .home-map-search__submit-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.home-map-search-suggestions {
  position: absolute;
  top: 86px;
  left: 20px;
  z-index: 8;
  width: min(440px, calc(100% - 40px));
}

.home-map-search-suggestions[hidden] {
  display: none;
}

.home-map-search-suggestions__surface {
  max-height: min(560px, calc(100dvh - 138px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  background: rgba(248, 251, 255, 0.9);
  box-shadow: 0 24px 54px rgba(18, 26, 36, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: homeSearchPanelIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-map-search-suggestions__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 10px;
  color: rgba(38, 52, 70, 0.72);
}

.home-map-search-suggestions__header span {
  color: #1c2938;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-map-search-suggestions__header small {
  font-size: 0.76rem;
  font-weight: 560;
}

.home-map-search-suggestions__section + .home-map-search-suggestions__section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 47, 66, 0.08);
}

.home-map-search-suggestions__section-title {
  padding: 0 8px 6px;
  color: rgba(45, 58, 74, 0.56);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-map-search-suggestion {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #1d2b39;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-rotate-x: 0deg;
  --glass-rotate-y: 0deg;
  transform: perspective(640px) rotateX(var(--glass-rotate-x)) rotateY(var(--glass-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.home-map-search-suggestion:hover,
.home-map-search-suggestion:focus-visible {
  outline: none;
  background: rgba(237, 242, 248, 0.9);
}

.home-map-search-suggestion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(226, 233, 243, 0.88);
  color: #223144;
  font-size: 16px;
  flex: 0 0 auto;
}

.home-map-search-suggestion__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.home-map-search-suggestion__label {
  display: block;
  overflow: hidden;
  color: #172230;
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-map-search-suggestion__meta {
  display: block;
  overflow: hidden;
  color: rgba(39, 52, 70, 0.62);
  font-size: 0.78rem;
  font-weight: 560;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-map-search-empty {
  display: grid;
  gap: 5px;
  padding: 16px 14px;
  color: rgba(38, 52, 70, 0.72);
}

.home-map-search-empty strong {
  color: #172230;
  font-size: 0.96rem;
}

.home-map-search-empty span {
  font-size: 0.84rem;
}

.home-map-search-suggestion--skeleton {
  cursor: default;
  pointer-events: none;
}

.home-map-search-suggestion__icon--skeleton,
.home-map-search-suggestion__line {
  position: relative;
  overflow: hidden;
  background: #eef1f7;
}

.home-map-search-suggestion__icon--skeleton::after,
.home-map-search-suggestion__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: messagesSkeletonShift 1.4s ease-in-out infinite;
}

.home-map-search-suggestion__line {
  display: block;
  width: var(--skeleton-width, 70%);
  height: 11px;
  border-radius: 999px;
}

.home-map-search-suggestion__line.is-meta {
  height: 9px;
}

@keyframes homeSearchPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
:root[data-theme="night"] .home-map__stage {
  background: linear-gradient(180deg, #030712 0%, #07111f 48%, #09172c 100%);
}

:root[data-theme="night"] .home-map__stage::before {
  display: none;
}

:root[data-theme="night"] .home-map-search__field input {
  color: rgba(232, 241, 255, 0.94);
}

:root[data-theme="night"] .home-map-search__field input::placeholder {
  color: rgba(198, 212, 231, 0.66);
}

:root[data-theme="night"] .home-map-notifications {
  color: #eef4fb;
}

:root[data-theme="night"] .home-map-notifications__icon {
  -webkit-filter: brightness(0) invert(0.96);
  filter: brightness(0) invert(0.96);
}

:root[data-theme="night"] .home-map-search-suggestions__surface {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 29, 0.88);
  box-shadow: 0 22px 50px rgba(2, 8, 17, 0.34);
}

:root[data-theme="night"] .home-map-search-suggestions__header {
  color: rgba(204, 218, 238, 0.68);
}

:root[data-theme="night"] .home-map-search-suggestions__header span,
:root[data-theme="night"] .home-map-search-empty strong {
  color: rgba(240, 246, 255, 0.95);
}

:root[data-theme="night"] .home-map-search-suggestions__section + .home-map-search-suggestions__section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="night"] .home-map-search-suggestions__section-title,
:root[data-theme="night"] .home-map-search-empty {
  color: rgba(204, 218, 238, 0.62);
}

:root[data-theme="night"] .home-map-search-suggestion {
  color: rgba(236, 242, 252, 0.94);
}

:root[data-theme="night"] .home-map-search-suggestion:hover,
:root[data-theme="night"] .home-map-search-suggestion:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="night"] .home-map-search-suggestion__label {
  color: rgba(244, 248, 255, 0.96);
}

:root[data-theme="night"] .home-map-search-suggestion__meta {
  color: rgba(204, 218, 238, 0.64);
}

:root[data-theme="night"] .home-map-search-suggestion__icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(236, 242, 252, 0.88);
}

:root[data-theme="night"] .home-map-search-suggestion__icon--skeleton,
:root[data-theme="night"] .home-map-search-suggestion__line {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="night"] .home-map-search-suggestion__icon--skeleton::after,
:root[data-theme="night"] .home-map-search-suggestion__line::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

:root[data-theme="night"] .home-map__canvas .maplibregl-ctrl-attrib {
  color: rgba(220, 231, 245, 0.55);
  background: rgba(12, 21, 34, 0.36);
}

.home-map__canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.home-map__canvas.is-ready {
  opacity: 1;
}

.home-map__canvas .maplibregl-canvas,
.home-map__canvas .maplibregl-canvas-container,
.home-map__canvas .maplibregl-map {
  width: 100%;
  height: 100%;
}

.home-map__canvas .maplibregl-canvas {
  border-radius: 0;
  cursor: grab;
}

.home-map__canvas:not(.is-active),
.home-map__canvas:not(.is-active) .maplibregl-canvas,
.home-map__canvas:not(.is-active) .maplibregl-canvas-container {
  touch-action: pan-y;
}

.home-map__canvas.is-active .maplibregl-canvas {
  cursor: grab;
}

.home-map__canvas.is-active .maplibregl-canvas:active {
  cursor: grabbing;
}

.home-map__canvas .maplibregl-ctrl-group {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
}

.home-map__canvas .maplibregl-ctrl-top-right,
.home-map__canvas .maplibregl-ctrl-top-left,
.home-map__canvas .maplibregl-ctrl-bottom-right {
  display: none;
}

.home-map__canvas .maplibregl-ctrl-bottom-left {
  left: 6px;
  bottom: 4px;
  z-index: 1;
}

.home-map__canvas .maplibregl-ctrl-attrib {
  color: rgba(64, 78, 91, 0.42);
  background: rgba(208, 210, 212, 0.28);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(3px);
  padding: 2px 7px;
  font-size: 9px;
  line-height: 1.1;
  opacity: 0.72;
}

.home-map__canvas .maplibregl-ctrl-attrib.maplibregl-compact {
  padding-right: 7px;
}

.home-map__canvas .maplibregl-ctrl-attrib-button {
  display: none;
}

.home-map__canvas .maplibregl-ctrl-attrib a {
  color: inherit;
}

.home-map__marker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 36px;
  min-height: 34px;
  padding: 2px 4px 3px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1)), rgba(156, 100, 45, 0.46);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 10px 24px rgba(64, 37, 11, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  cursor: pointer;
  opacity: 1;
  z-index: 3;
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.home-map__marker img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}

.home-map__marker span {
  display: block;
  font-size: 7.8px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.home-map__marker--country {
  min-width: 34px;
  min-height: 34px;
  padding: 6px;
}

.home-map__marker.is-hidden {
  display: none;
  pointer-events: none;
}

.home-map__visitor-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
}

.home-map__visitor-marker.is-hidden {
  display: none;
}

.home-map__visitor-marker-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 8px 18px rgba(16, 24, 40, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.home-map__visitor-marker-dot {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(21, 70, 146, 0.18);
}

.home-map-desktop-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.home-map-desktop-controls__cluster {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

.home-map-desktop-controls__zoom-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 999px;
  background: var(--liquid-glass-surface-strong);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  position: relative;
}

.home-map-desktop-controls__zoom-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--liquid-glass-top-sheen);
  pointer-events: none;
}

.home-map-desktop-controls__zoom-group::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: rgba(23, 34, 48, 0.14);
  pointer-events: none;
}

.home-map-desktop-controls__zoom-segment {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.home-map-desktop-controls__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 999px;
  background: var(--liquid-glass-surface-strong);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: #172230;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: default;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.home-map-desktop-controls__button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--liquid-glass-top-sheen);
  pointer-events: none;
}

.home-map-desktop-controls__button.is-active {
  box-shadow: var(--liquid-glass-shadow-reactive);
}

.home-map-desktop-controls__button *,
.home-map-desktop-controls__zoom-segment {
  cursor: default;
}

.home-map-desktop-controls__button--mode {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.home-map-desktop-controls__locate-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.home-map-desktop-controls__locate-icon::before,
.home-map-desktop-controls__locate-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.home-map-desktop-controls__locate-icon::before {
  width: 2px;
  height: 21px;
}

.home-map-desktop-controls__locate-icon::after {
  width: 21px;
  height: 2px;
}

.home-map-desktop-controls__locate-dot {
  position: relative;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.home-map-desktop-controls__button--locate.is-cut .home-map-desktop-controls__locate-icon::before {
  width: 3px;
  height: 24px;
  transform: rotate(45deg);
}

.home-map-desktop-controls__button--locate.is-cut .home-map-desktop-controls__locate-icon::after {
  opacity: 0;
}

.home-map-desktop-controls__measure-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: center / contain no-repeat url("../imagens/icones/ruler.webp");
  filter: brightness(0) saturate(100%);
}

.home-map-desktop-controls__building-measure-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat url("../imagens/icones/building measurments.webp");
  filter: brightness(0) saturate(100%);
}

.home-map-desktop-controls__building-measure-confirm {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.home-map-desktop-controls__measure-confirm {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.home-map-desktop-controls__measure-confirm::after,
.home-map-desktop-controls__building-measure-confirm::after {
  content: "";
  width: 8px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-1px) rotate(45deg) scale(0.72);
}

.home-map-desktop-controls__button--measure.is-confirm-mode .home-map-desktop-controls__measure-icon {
  display: none;
}

.home-map-desktop-controls__button--measure.is-confirm-mode .home-map-desktop-controls__measure-confirm {
  display: inline-flex;
}

.home-map-desktop-controls__button--building-measure.is-confirm-mode .home-map-desktop-controls__building-measure-icon {
  display: none;
}

.home-map-desktop-controls__button--building-measure.is-confirm-mode .home-map-desktop-controls__building-measure-confirm {
  display: inline-flex;
}

.home-map-desktop-controls__compass-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.home-map-desktop-controls__compass-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 11px solid #f04f45;
  transform: translate(-50%, -58%) rotate(var(--map-compass-bearing, 0deg));
  transform-origin: center 72%;
}

.home-map-desktop-controls__compass-needle::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 9px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 7px solid rgba(23, 34, 48, 0.8);
}

.home-map-location-toast {
  position: absolute;
  left: calc(-1 * min(440px, 38vw) - 20px);
  bottom: 0;
  min-width: 280px;
  max-width: min(440px, 38vw);
  padding: 18px 20px;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 18px;
  background: var(--liquid-glass-surface-strong);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: var(--theme-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.home-map-location-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-map-mobile-controls {
  display: none;
}

#homeMap.is-ruler-active,
#homeMap.is-ruler-active .maplibregl-canvas,
#homeMap.is-building-measure-active,
#homeMap.is-building-measure-active .maplibregl-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 5.25v17.5' stroke='rgba(240,248,255,0.92)' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M5.25 14h17.5' stroke='rgba(240,248,255,0.92)' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 14 14, crosshair;
}

#homeMap.is-measurement-tool-dragging,
#homeMap.is-measurement-tool-dragging .maplibregl-canvas {
  cursor: grabbing !important;
}

.home-map-measure-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.home-map-measure-overlay__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-map-measure-overlay__line {
  stroke: url(#homeMapMeasureStroke);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.96;
  filter:
    drop-shadow(0 8px 18px rgba(32, 46, 78, 0.18))
    drop-shadow(0 2px 6px rgba(255, 255, 255, 0.22));
}

.home-map-measure-overlay__label {
  position: absolute;
  transform: translate(-50%, 0);
  padding: 7px 12px;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 999px;
  background: var(--liquid-glass-surface-strong);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.home-map-measure-overlay__point {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--liquid-glass-border);
  border-radius: 999px;
  background: var(--liquid-glass-surface-strong);
  box-shadow:
    var(--liquid-glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}

.home-map-measure-overlay__point::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--liquid-glass-top-sheen);
  pointer-events: none;
}

.home-map-measure-overlay__point::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: rgba(116, 146, 210, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.home-map-measure-overlay__point:active {
  cursor: grabbing;
}

.home-map-measure-overlay__point--preview {
  pointer-events: none;
  width: 20px;
  height: 20px;
  opacity: 0.92;
  transition:
    left 0.08s ease,
    top 0.08s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.home-map-measure-overlay__point--preview.is-snapped {
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(74, 122, 214, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.home-map-measure-overlay__point--preview.is-snapped::after {
  background: rgba(90, 142, 255, 0.96);
}

.home-map-building-measure-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.home-map-building-measure-overlay__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-map-building-measure-overlay__outline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-map-building-measure-overlay__outline--base {
  stroke: #000000;
  stroke-width: 0.95;
}

.home-map-building-measure-overlay__outline--hidden {
  stroke-dasharray: 5 4;
  opacity: 0.9;
}

.home-map-building-measure-overlay__label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
}

.home-map-building-measure-overlay__label--edge {
  transform: translate(-50%, 8px) rotate(var(--edge-angle, 0deg)) scale(var(--edge-label-scale, 1));
  transform-origin: center center;
}

.home-map-building-measure-overlay__label--height {
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -145%);
}

.home-map-building-measure-overlay__label--height::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: currentColor;
  -webkit-mask: url("../imagens/icones/height.webp") center / contain no-repeat;
  mask: url("../imagens/icones/height.webp") center / contain no-repeat;
}

.home-map-building-measure-overlay__selection--hover.home-map-building-measure-overlay__outline--base {
  stroke: #000000;
  stroke-width: 0.85;
}

:root[data-theme="night"] .home-map-measure-overlay__line {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.42));
}

:root[data-theme="night"] .home-map-measure-overlay__label {
  color: #eef4fb;
}

:root[data-theme="night"] .home-map-desktop-controls__button {
  color: #eef4fb;
}

:root[data-theme="night"] .home-map-desktop-controls__measure-icon {
  filter: brightness(0) invert(1);
}

:root[data-theme="night"] .home-map-desktop-controls__building-measure-icon {
  filter: brightness(0) invert(1);
}

:root[data-theme="night"] body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle {
  color: #eef4fb;
  filter:
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 10px rgba(238, 244, 251, 0.14));
}

:root[data-theme="night"] .home-map-mobile-controls__button .home-map-desktop-controls__measure-icon,
:root[data-theme="night"] .home-map-mobile-controls__button .home-map-desktop-controls__building-measure-icon {
  filter: brightness(0) invert(1);
}

:root[data-theme="night"] .home-map-desktop-controls__zoom-group::after {
  background: rgba(238, 244, 251, 0.18);
}

:root[data-theme="night"] .home-map-desktop-controls__compass-needle::after {
  border-top-color: rgba(238, 244, 251, 0.86);
}

@keyframes homeMapMobileControlsPanelIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .home-map-desktop-controls {
    display: none;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls {
    position: absolute;
    top: 72px;
    right: 19px;
    bottom: auto;
    z-index: 7;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    pointer-events: none;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42px;
    gap: 8px;
    pointer-events: auto;
    transform-origin: top center;
    animation: homeMapMobileControlsPanelIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__panel[hidden] {
    display: none !important;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls .home-map-location-toast--mobile {
    left: auto;
    right: calc(100% + 10px);
    top: 217px;
    bottom: auto;
    width: min(258px, calc(100vw - 112px));
    min-width: 0;
    max-width: none;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.22;
    transform: translate(6px, -50%) scale(0.98);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls .home-map-location-toast--mobile.is-visible {
    transform: translate(0, -50%) scale(1);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid var(--liquid-glass-border);
    border-radius: 999px;
    background: var(--liquid-glass-surface-strong);
    box-shadow: var(--liquid-glass-shadow);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    color: #172230;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--liquid-glass-top-sheen);
    pointer-events: none;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button.is-active {
    box-shadow: var(--liquid-glass-shadow-reactive);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button > * {
    position: relative;
    z-index: 1;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__measure-icon,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__building-measure-icon,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__locate-icon,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__compass-icon {
    flex: 0 0 auto;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__building-measure-icon {
    width: 24px;
    height: 24px;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__measure-confirm,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__building-measure-confirm {
    display: none;
    flex: 0 0 auto;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button.is-confirm-mode .home-map-desktop-controls__measure-icon,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button.is-confirm-mode .home-map-desktop-controls__building-measure-icon {
    display: none;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button.is-confirm-mode .home-map-desktop-controls__measure-confirm,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button.is-confirm-mode .home-map-desktop-controls__building-measure-confirm {
    display: inline-flex;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__label {
    display: none;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle {
    position: relative;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: rgba(23, 34, 48, 0.88);
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    filter:
      drop-shadow(0 6px 16px rgba(18, 27, 40, 0.26))
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle-icon {
    position: absolute;
    inset: 0;
    display: block;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle-icon::before,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle-icon::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform-origin: center;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle-icon::before {
    transform: translate(calc(-50% - 4px), -50%) rotate(45deg);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle-icon::after {
    transform: translate(calc(-50% + 4px), -50%) rotate(-45deg);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle.is-open .home-map-mobile-controls__toggle-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle.is-open .home-map-mobile-controls__toggle-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle:focus-visible,
  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__toggle:active {
    outline: none;
    box-shadow: none;
    background: transparent;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button--mode {
    width: 42px;
    color: #172230;
    font-size: 12px;
    letter-spacing: 0.01em;
    text-indent: 0;
    overflow: hidden;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button--mode::after {
    content: none;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button--mode .home-map-mobile-controls__label {
    display: inline;
    color: currentColor;
  }

  :root[data-theme="night"] body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button,
  :root[data-theme="night"] body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button--mode {
    color: #eef4fb;
  }

  :root[data-theme="night"] body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__locate-icon,
  :root[data-theme="night"] body.has-mobile-tabbar:not(.checkout-page) .home-map-mobile-controls__button .home-map-desktop-controls__locate-dot {
    color: #eef4fb;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map__toolbar {
    left: 12px;
    right: 12px;
    gap: 8px;
    justify-content: flex-start;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map__toolbar .home-map-search {
    width: 100%;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map__toolbar:has(.home-map-notifications:not([hidden])) .home-map-search {
    width: calc(100% - 56px);
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-notifications {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body.has-mobile-tabbar:not(.checkout-page) .home-map-search-suggestions {
    left: 12px;
    width: calc(100% - 24px);
  }

  .home-map__toolbar {
    top: 12px;
    left: 0;
    right: 0;
    gap: 8px;
    justify-content: center;
  }

  .home-map__toolbar .home-map-search {
    width: calc(100% - 24px);
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 48px;
    min-height: 0;
    border-width: 1px;
    border-radius: 999px;
  }

  .home-map-search__field {
    min-height: 36px;
    padding: 0 14px;
  }

  .home-map-search__field input {
    font-size: 16px;
  }

  .home-map-search__submit {
    width: 36px;
    height: 36px;
    margin-right: 4px;
  }

  .home-map-search-suggestions {
    top: 66px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .maplibregl-popup.home-map-popup .maplibregl-popup-tip {
    display: none;
  }

  .home-map__canvas .maplibregl-ctrl-bottom-left,
  .home-map__canvas .maplibregl-ctrl-attrib {
    display: none;
  }
}

@media (max-width: 575px) {
  .home-map {
    min-height: calc(100dvh - var(--header-height));
    padding: 0;
  }

  .home-map__stage {
    width: 100%;
    height: calc(100dvh - var(--header-height));
    min-height: 320px;
  }
}

:root[data-theme="night"] .home-map-building-measure-overlay__label {
  text-shadow: none;
}

:root[data-theme="night"] .home-map-building-measure-overlay__label--height {
  color: #000000;
}

.maplibregl-popup.home-map-popup .maplibregl-popup-content {
  position: relative;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.maplibregl-popup.home-map-popup .maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.96);
}

.home-map-banner-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.home-map-banner {
  position: absolute;
  pointer-events: auto;
}

.home-map-card {
  display: grid;
  grid-template-columns: 182px minmax(0, 206px);
  width: min(388px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 26px;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--liquid-glass-border);
  background: var(--liquid-glass-surface);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-rotate-x: 0deg;
  --glass-rotate-y: 0deg;
  --glass-tilt-scale: 0.38;
  transform: perspective(640px) rotateX(var(--glass-rotate-x)) rotateY(var(--glass-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.home-map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--liquid-glass-top-sheen);
  z-index: 0;
}

.home-map-card::after {
  content: "";
  position: absolute;
  inset: -32%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0) 58%);
  transition: opacity 0.16s ease;
  z-index: 0;
}

.home-map-card.is-reactive {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.home-map-card.is-reactive::after {
  opacity: 1;
}

.home-map-card__media {
  position: relative;
  display: block;
  width: 182px;
  min-height: 182px;
  overflow: hidden;
}

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

.home-map-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(205, 220, 233, 0.74);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(43, 58, 74, 0.2);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.home-map-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 12px;
  position: relative;
  z-index: 1;
}

.home-map-card__title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.home-map-card__body h3 {
  margin: 0;
  color: #212a34;
  font-size: 18px;
  line-height: 1.1;
}

.home-map-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #4d5965;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.home-map-card__rating span {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
}

.home-map-card__location {
  margin: 6px 0 8px;
  color: #7b848d;
  font-size: 13px;
  line-height: 1.2;
}

.home-map-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: #4d5965;
  font-size: 12px;
}

.home-map-card__details span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-map-card__detail-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.home-map-card__details img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.home-map-card__price {
  display: block;
  margin-top: 8px;
  color: #2a333d;
  font-size: 14px;
  font-weight: 600;
}

.home-map-card__cta.contact-btn {
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 14px;
  text-decoration: none;
}

.maplibregl-popup.home-map-popup.home-map-popup--location .maplibregl-popup-tip {
  border-top-color: rgba(237, 243, 249, 0.92);
}

.home-map-location-prompt {
  width: min(276px, calc(100vw - 36px));
  padding: 14px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--liquid-glass-border);
  background: var(--liquid-glass-surface);
  box-shadow: var(--liquid-glass-shadow);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-rotate-x: 0deg;
  --glass-rotate-y: 0deg;
  transform: perspective(640px) rotateX(var(--glass-rotate-x)) rotateY(var(--glass-rotate-y));
}

.home-map-location-prompt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--liquid-glass-top-sheen);
  z-index: 0;
}

.home-map-location-prompt::after {
  content: "";
  position: absolute;
  inset: -28%;
  pointer-events: none;
  opacity: 0;
  background: var(--liquid-glass-spot);
  transition: opacity 0.16s ease;
  z-index: 0;
}

.home-map-location-prompt__title,
.home-map-location-prompt__action {
  position: relative;
  z-index: 1;
}

.home-map-location-prompt__title {
  margin: 0;
  color: #1f2a34;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.home-map-location-prompt__action {
  width: 100%;
  margin-top: 14px;
  min-height: 46px;
  border: 1px solid var(--liquid-glass-border);
  border-radius: 16px;
  background: var(--liquid-glass-surface-strong);
  box-shadow: var(--liquid-glass-shadow-soft);
  color: #1f2a34;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-rotate-x: 0deg;
  --glass-rotate-y: 0deg;
  transform: perspective(640px) rotateX(var(--glass-rotate-x)) rotateY(var(--glass-rotate-y));
}

.home-map-location-prompt__action:hover {
  box-shadow: var(--liquid-glass-shadow-reactive);
}

:root[data-theme="night"] .maplibregl-popup.home-map-popup.home-map-popup--location .maplibregl-popup-tip {
  border-top-color: rgba(188, 204, 221, 0.72);
}

:root[data-theme="night"] .home-map-location-prompt__title,
:root[data-theme="night"] .home-map-location-prompt__action {
  color: #eef4fb;
}
