:root {
  --ink: #081114;
  --paper: #f2f0e9;
  --blue: #009fca;
  --light: #73daf2;
  --muted: #69767c;
  --line: rgba(8, 17, 20, 0.13);
  --display: "Arial Black", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
}
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.topbar {
  position: fixed;
  z-index: 2000;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  width: min(1440px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(8, 17, 20, 0.76);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-copy {
  display: grid;
  gap: 2px;
}
.brand-copy strong {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.brand-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}
.nav {
  display: flex;
  gap: 23px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a.active {
  color: var(--light);
}
.back {
  justify-self: end;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}
.hero {
  position: relative;
  min-height: 62svh;
  padding: 150px 0 70px;
  color: white;
  background:
    radial-gradient(circle at 84% 20%, rgba(0, 159, 202, 0.5), transparent 31%),
    linear-gradient(125deg, #050809, #112027 58%, #00627d);
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.65fr;
  align-items: end;
  gap: 48px;
  width: min(1320px, calc(100% - 36px));
  margin: auto;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 8.2rem);
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}
h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
}

h1 .hero-title-base {
  display: inline;
  color: inherit;
  -webkit-text-stroke: 0;
}
.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-info {
  display: grid;
  gap: 12px;
}
.hero-info article {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.07);
}
.hero-info span {
  display: block;
  margin-bottom: 7px;
  color: var(--light);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-info strong {
  font-size: 0.87rem;
  line-height: 1.5;
}
.content {
  width: min(1320px, calc(100% - 36px));
  margin: auto;
  padding: 46px 0 84px;
}
.map-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  gap: 18px;
}
.map-wrap,
.side {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.07);
}
.map-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
#map {
  flex: 1;
  min-height: 760px;
}
#map .leaflet-top,
#map .leaflet-bottom {
  z-index: 400;
}
.map-attribution {
  margin: 0;
  padding: 7px 12px 8px;
  color: #43565d;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  line-height: 1;
  text-align: right;
}
.map-attribution a {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.side {
  padding: 24px;
}
.status {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  color: white;
  background: var(--ink);
}
.status span {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.status strong {
  font-size: 0.92rem;
  line-height: 1.5;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  cursor: pointer;
  font-weight: 900;
}
.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.finder-form {
  display: grid;
  gap: 14px;
}
.finder-form > label,
.finder-row label {
  display: grid;
  gap: 7px;
}
.finder-form label > span,
.feature-filter legend {
  color: #34474e;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.finder-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
}
.finder-form input,
.finder-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.82rem;
}
.finder-form input:focus,
.finder-form select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 159, 202, 0.13);
}
.finder-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.secondary-action {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(8, 17, 20, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 850;
}
.secondary-action:disabled {
  opacity: 0.55;
  cursor: wait;
}
.feature-filter {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature-filter legend {
  padding: 0 6px;
}
.feature-filter label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34474e;
  font-size: 0.76rem;
}
.feature-filter input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}
.finder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nearest {
  display: none;
  gap: 13px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.nearest.show {
  display: grid;
}
.match-number {
  color: var(--blue);
  font-family: var(--display);
  font-size: 4rem;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.distance {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nearest h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
}
.nearest p,
.note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.note {
  margin-top: 20px;
  font-size: 0.72rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 72px 0 22px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}
.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.results-summary {
  min-height: 22px;
  margin: -4px 0 16px;
  color: #43565d;
  font-size: 0.76rem;
  font-weight: 800;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
}
.card.is-recommended {
  border-color: rgba(0, 159, 202, 0.65);
  box-shadow: 0 14px 38px rgba(0, 159, 202, 0.13);
}
.photo {
  min-height: 225px;
  background: center/cover;
}
.card-body {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 22px;
}
.tag {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.card-badges,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.match-badge,
.card-meta span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 850;
}
.match-badge {
  color: #07536a;
  background: rgba(0, 159, 202, 0.14);
}
.card-meta span {
  color: #40545c;
  background: rgba(8, 17, 20, 0.06);
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.card button {
  width: max-content;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 5px;
}
.map-note {
  margin: 18px 0 0;
  padding: 15px 17px;
  border: 1px solid rgba(0, 159, 202, 0.2);
  border-radius: 14px;
  color: #35525c;
  background: rgba(0, 159, 202, 0.07);
  font-size: 0.75rem;
  line-height: 1.55;
}
.finder-empty {
  grid-column: 1 / -1;
  margin-top: 0;
}
.modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  transition: 0.18s;
}
.modal.open {
  visibility: visible;
  opacity: 1;
}
.panel {
  width: min(920px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border-radius: 26px;
  background: var(--paper);
}
.modal-photo {
  position: relative;
  min-height: 350px;
  background: center/cover;
}
.modal-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8));
}
.close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.modal-title {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 23px;
  left: 25px;
  color: white;
}
.modal-title span {
  color: var(--light);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.modal-title h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 27px;
}
.modal-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
dl {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}
dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}
dd {
  margin: 0;
  font-weight: 750;
}
.user-pin {
  width: 24px;
  height: 24px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 9px rgba(0, 159, 202, 0.22);
}
.pg-pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 8px;
  color: white;
  background: var(--ink);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
}
.pg-pin span {
  font-size: 0.68rem;
  font-weight: 950;
  transform: rotate(45deg);
}
.pg-pin.near {
  background: var(--blue);
}
.popup-btn {
  margin-top: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  cursor: pointer;
  font-weight: 800;
}
.back-to-top {
  position: fixed;
  z-index: 1900;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(8, 17, 20, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.back-to-top span {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}
.back-to-top:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(0, 159, 202, 0.38);
  outline-offset: 3px;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
footer {
  padding: 32px 18px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink);
  text-align: center;
  font-size: 0.75rem;
}
@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .nav {
    display: none;
  }
  .hero-inner,
  .map-layout {
    grid-template-columns: 1fr;
  }
  .hero-info {
    grid-template-columns: 1fr 1fr;
  }
  #map {
    min-height: 560px;
  }
}
@media (max-width: 760px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
  }
  .brand-copy span {
    display: none;
  }
  .back {
    padding: 0 12px;
    font-size: 0.68rem;
  }
  .hero {
    padding: 130px 0 52px;
    min-height: auto;
  }
  .hero-inner,
  .content {
    width: calc(100% - 24px);
  }
  .hero-info {
    grid-template-columns: 1fr;
  }
  #map {
    min-height: 460px;
  }
  .side {
    padding: 18px;
  }
  .finder-actions {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    margin-top: 55px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    grid-template-columns: 1fr;
  }
  .photo {
    min-height: 225px;
  }
  .modal {
    padding: 0;
  }
  .panel {
    width: 100%;
    min-height: 100svh;
    max-height: 100svh;
    border-radius: 0;
  }
  .modal-content {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* Layout responsivo */
@media (max-width: 780px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg,
  video,
  iframe,
  canvas {
    max-width: 100%;
  }

  button,
  a,
  input,
  select,
  textarea {
    min-width: 0;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  span,
  strong,
  a,
  button,
  label,
  dd {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 780px) {
  .topbar {
    top: 8px;
    width: calc(100% - 16px);
    padding: 8px;
    gap: 7px;
    border-radius: 17px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
  .brand-copy {
    min-width: 0;
  }
  .brand-copy strong {
    font-size: 0.78rem;
  }
  .brand-copy span {
    display: none;
  }
  .back {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.61rem;
    letter-spacing: 0.03em;
  }
  .hero {
    padding: 108px 0 46px;
  }
  .hero-inner,
  .content {
    width: calc(100% - 20px);
  }
  .hero-inner {
    gap: 20px;
  }
  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.64rem;
    line-height: 1.4;
  }
  h1 {
    font-size: clamp(2.85rem, 14vw, 4.5rem);
    line-height: 0.84;
  }
  .lead {
    margin-top: 18px;
    font-size: 0.93rem;
    line-height: 1.58;
  }
  .hero-info {
    gap: 9px;
  }
  .hero-info article {
    padding: 14px;
    border-radius: 15px;
  }
  .hero-info strong {
    font-size: 0.85rem;
  }
  .content {
    padding: 24px 0 56px;
  }
  .map-layout {
    gap: 12px;
  }
  .map-wrap,
  .side {
    border-radius: 18px;
  }
  .map-attribution {
    padding: 6px 9px 7px;
    font-size: 0.55rem;
  }
  #map {
    min-height: 380px;
  }
  .side {
    padding: 15px;
  }
  .finder-row,
  .finder-inline {
    grid-template-columns: 1fr;
  }
  .finder-inline .secondary-action {
    width: 100%;
  }
  .status {
    padding: 14px;
    border-radius: 14px;
  }
  .status strong {
    font-size: 0.86rem;
  }
  .primary {
    width: 100%;
    min-height: 47px;
  }
  .nearest {
    gap: 11px;
  }
  .match-number {
    font-size: 3.1rem;
  }
  .nearest h2 {
    font-size: 1.15rem;
  }
  .section-head {
    gap: 13px;
    margin: 50px 0 19px;
  }
  .section-head h2 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }
  .section-head > p {
    font-size: 0.9rem;
    line-height: 1.58;
  }
  .grid {
    gap: 11px;
  }
  .card {
    border-radius: 18px;
  }
  .photo {
    min-height: 210px;
  }
  .card-body {
    padding: 18px 16px;
  }
  .card h3 {
    font-size: 1.35rem;
  }
  .card p {
    font-size: 0.8rem;
  }
  .card button {
    width: 100%;
    min-height: 42px;
    text-align: left;
  }
  .map-note {
    padding: 13px 14px;
    font-size: 0.7rem;
  }
  .modal-photo {
    min-height: 285px;
  }
  .modal-title {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }
  .modal-title h2 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }
  .modal-content {
    gap: 19px;
    padding: 19px 15px 28px;
  }
  .modal-content > p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  dl div {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 9px;
  }
  footer {
    padding: 27px 15px;
    font-size: 0.7rem;
    line-height: 1.5;
  }
  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }
}
@media (max-width: 390px) {
  .back {
    max-width: 94px;
    text-align: center;
    line-height: 1.15;
  }
  h1 {
    font-size: 2.75rem;
  }
  #map {
    min-height: 350px;
  }
}
