:root {
  --map-background: #F6F3F1;
  --street: #DDDAD8;
  --route: #CAED42;
  --ink: #424140;
  --panel: #fffefd;
  --muted: #76716d;
  --line: #ded9d4;
  --red: #d94b42;
  --orange: #ef8d3c;
  --yellow: #e3c83d;
  --green: #3aa861;
  --signal-low: var(--red);
  --signal-mid: var(--orange);
  --signal-high: var(--yellow);
  --signal-prime: var(--green);
  --route-ink: #28311b;
  --route-glow: rgba(202, 237, 66, 0.34);
  --glass: rgba(255, 254, 253, 0.72);
  --glass-strong: rgba(255, 254, 253, 0.88);
  --glass-border: rgba(66, 65, 64, 0.12);
  --shadow-float: 0 18px 48px rgba(35, 33, 31, 0.14);
  --shadow-lift: 0 24px 68px rgba(35, 33, 31, 0.18);
  --focus-ring: rgba(202, 237, 66, 0.58);
  --control-blur: 24px;
  --control-inset: 24px;
  --control-top: 20px;
  --control-gap: 16px;
}

/* Base de pagina: el mapa ocupa toda la primera pantalla. */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--map-background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.map-shell {
  background: var(--map-background);
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

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

.language-switcher {
  position: absolute;
  right: var(--control-inset);
  top: var(--control-top);
  z-index: 8;
}

.language-button {
  align-items: center;
  backdrop-filter: blur(var(--control-blur)) saturate(1.35);
  background: linear-gradient(135deg, rgba(255, 254, 253, 0.88), rgba(255, 254, 253, 0.58));
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  gap: 10px;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 15px 0 17px;
  transition: background 180ms ease, box-shadow 180ms ease;
  width: auto;
  min-width: 132px;
}

.language-button::after {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  flex: 0 0 auto;
  height: 6px;
  opacity: 0.64;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease, opacity 180ms ease;
  width: 6px;
}

.language-button[aria-expanded="true"]::after {
  opacity: 0.9;
  transform: translateY(2px) rotate(225deg);
}

.language-button:hover,
.language-button:focus-visible {
  background: rgba(255, 254, 253, 0.92);
  box-shadow: var(--shadow-lift);
}

.language-current-short {
  display: none;
}

.language-options {
  align-items: center;
  backdrop-filter: blur(var(--control-blur)) saturate(1.35);
  background: rgba(255, 254, 253, 0.82);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  display: flex;
  gap: 4px;
  margin-top: 8px;
  padding: 5px;
  position: absolute;
  right: 0;
  transform-origin: top right;
  width: max-content;
  animation: language-pop 160ms ease both;
}

.language-options[hidden] {
  display: none;
}

.language-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  min-width: 42px;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: color 160ms ease;
}

.language-option::after {
  background: var(--route);
  border-radius: 999px;
  bottom: 6px;
  box-shadow: 0 0 12px rgba(202, 237, 66, 0.32);
  content: "";
  height: 2px;
  left: 12px;
  opacity: 0;
  position: absolute;
  right: 12px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease, opacity 170ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--ink);
}

.language-option.is-active {
  color: var(--ink);
}

.language-option:hover::after,
.language-option:focus-visible::after,
.language-option.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-option-code {
  color: inherit;
  font-size: 11px;
  font-weight: inherit;
  opacity: 1;
}

.language-option-label {
  display: none;
}

@keyframes language-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }

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

.contact-open {
  align-items: center;
  backdrop-filter: blur(var(--control-blur)) saturate(1.35);
  background:
    linear-gradient(135deg, rgba(255, 254, 253, 0.84), rgba(255, 254, 253, 0.56)),
    rgba(255, 254, 253, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 24px rgba(66, 65, 64, 0.04),
    var(--shadow-float);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  bottom: var(--control-inset);
  gap: 8px;
  justify-content: center;
  left: auto;
  min-height: 44px;
  padding: 0 18px;
  position: absolute;
  right: var(--control-inset);
  transition: none;
  width: auto;
  z-index: 8;
}

.contact-open::after {
  background: var(--route);
  border-radius: 999px;
  bottom: 9px;
  box-shadow: 0 0 14px rgba(202, 237, 66, 0.36);
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0;
}

.contact-open::before {
  content: none;
}

.contact-open:hover,
.contact-open:focus-visible,
.contact-open:active {
  color: var(--ink);
}

.contact-open:hover::after,
.contact-open:focus-visible::after,
.contact-open:active::after {
  opacity: 1;
  transform: scaleX(1);
}

.contact-open:focus-visible {
  outline: none;
}

.app-section {
  inset: 0;
  position: absolute;
}

.app-section[hidden] {
  display: none;
}

.map-canvas {
  background: var(--map-background);
  height: 100%;
  width: 100%;
}

.maplibregl-canvas {
  background: var(--map-background);
}

.maplibregl-ctrl-group {
  backdrop-filter: blur(var(--control-blur)) saturate(1.35);
  background: rgba(255, 254, 253, 0.78);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.maplibregl-ctrl-bottom-left {
  bottom: var(--control-inset);
  left: var(--control-inset);
}

.maplibregl-ctrl-bottom-left .maplibregl-ctrl {
  margin: 0;
}

.maplibregl-ctrl-group button {
  background-color: transparent;
  transition: background-color 160ms ease;
}

.maplibregl-ctrl-group button:hover {
  background-color: rgba(66, 65, 64, 0.06);
}

.maplibregl-ctrl-bottom-right {
  bottom: var(--control-inset);
  right: calc(var(--control-inset) + 168px);
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl {
  margin: 0;
}

.maplibregl-ctrl-attrib {
  backdrop-filter: blur(var(--control-blur)) saturate(1.25);
  background: rgba(255, 254, 253, 0.76);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(35, 33, 31, 0.10);
  color: var(--ink);
  font-size: 11px;
  padding: 3px 8px;
}

.maplibregl-ctrl-attrib a {
  color: var(--ink);
}

.filter-hud {
  display: contents;
}

.map-filters {
  align-items: center;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 34px rgba(35, 33, 31, 0.09);
  color: var(--ink);
  column-gap: 14px;
  display: grid;
  grid-template-columns: minmax(196px, 1fr) minmax(134px, 0.72fr) max-content;
  left: var(--control-inset);
  padding: 10px 16px;
  position: absolute;
  right: auto;
  top: var(--control-top);
  transition: background 180ms ease;
  width: min(450px, calc(100vw - 48px));
  z-index: 6;
}

.map-filters:hover,
.map-filters:focus-within {
  background: rgba(255, 255, 255, 0.62);
}

.filter-group {
  align-items: center;
  border-right: 1px solid rgba(66, 65, 64, 0.10);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  min-height: 28px;
  min-width: 0;
  padding: 0 14px 0 0;
}

.filter-group:first-child {
  padding-left: 0;
}

.filter-group-gym {
  padding-left: 0;
  padding-right: 14px;
}

.filter-label {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(66, 65, 64, 0.50);
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0;
  min-height: 26px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-options {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 7px;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
}

.filter-chip,
.filter-clear {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  justify-content: flex-start;
  line-height: 1;
  min-height: 26px;
  min-width: 20px;
  padding: 0 1px;
  position: relative;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: rgba(66, 65, 64, 0.72);
}

.filter-chip.is-active {
  color: var(--ink);
  font-weight: 760;
}

.filter-chip.is-active::after {
  background: var(--route);
  border-radius: 999px;
  bottom: 2px;
  content: "";
  height: 2px;
  left: 50%;
  opacity: 0.95;
  position: absolute;
  transform: translateX(-50%);
  width: 14px;
}

.filter-options-stars .filter-chip.is-active::after {
  width: 9px;
}

.filter-options-gym .filter-chip.is-active::after {
  width: 16px;
}

.filter-clear {
  color: rgba(66, 65, 64, 0.48);
  font-weight: 760;
  justify-self: start;
  margin-left: 0;
  min-height: 28px;
  min-width: auto;
  padding: 0;
}

.filter-clear:not(:disabled) {
  color: rgba(66, 65, 64, 0.72);
}

.filter-clear:not(:disabled):hover,
.filter-clear:not(:disabled):focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(202, 237, 66, 0.82);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.filter-clear:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.38;
}

.filter-clear:disabled:hover {
  background: transparent;
  text-decoration: none;
  transform: none;
}

.app-section-contact {
  align-items: center;
  backdrop-filter: blur(5px) saturate(1.08);
  background: rgba(246, 243, 241, 0.34);
  display: grid;
  justify-items: center;
  overflow-y: auto;
  padding: 84px 24px 44px;
  scrollbar-gutter: stable;
  z-index: 10;
}

.app-section-contact.is-active {
  animation: contact-scrim-in 180ms ease both;
}

.contact-card {
  backdrop-filter: blur(30px) saturate(1.38);
  background:
    linear-gradient(145deg, rgba(255, 254, 253, 0.91), rgba(255, 254, 253, 0.70)),
    rgba(255, 254, 253, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(35, 33, 31, 0.22);
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 34px;
  position: relative;
  width: min(680px, calc(100vw - 48px));
}

.contact-card::before {
  content: none;
}

.app-section-contact.is-active .contact-card {
  animation: contact-card-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.contact-back {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 18px;
  transition: color 160ms ease;
}

.contact-back::before,
.contact-link::before {
  background: var(--route);
  border-radius: 999px;
  bottom: 2px;
  box-shadow: 0 0 14px rgba(202, 237, 66, 0.34);
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease, opacity 170ms ease;
}

.contact-back:hover,
.contact-back:focus-visible,
.contact-back:active {
  color: var(--ink);
}

.contact-back:hover::before,
.contact-back:focus-visible::before,
.contact-back:active::before,
.contact-link:hover::before,
.contact-link:focus-visible::before,
.contact-link:active::before {
  opacity: 1;
  transform: scaleX(1);
}

.contact-card .contact-back:focus-visible,
.contact-card .contact-link:focus-visible {
  outline: none;
}

.contact-content {
  display: grid;
  gap: 22px;
  max-width: none;
  padding-top: 28px;
  text-align: left;
  width: 100%;
}

.contact-title {
  color: var(--route);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 11ch;
  text-shadow:
    0 1px 0 rgba(40, 49, 27, 0.18),
    0 18px 38px rgba(202, 237, 66, 0.22);
}

.contact-title::after {
  content: none;
}

.contact-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
}

.contact-copy {
  display: grid;
  gap: 12px;
  max-width: 58ch;
}

.contact-details {
  border-top: 1px solid rgba(66, 65, 64, 0.14);
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 18px 0 0;
}

.contact-content .contact-details-heading {
  color: var(--route);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-details-body {
  max-width: 54ch;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 4px;
}

.contact-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  min-height: 28px;
  overflow-wrap: anywhere;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition: color 160ms ease;
}

.contact-link::after {
  content: none;
}

.contact-link:hover,
.contact-link:focus-visible,
.contact-link:active {
  color: var(--ink);
}

@keyframes contact-scrim-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes contact-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

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

/* Panel lateral: muestra los datos densos del hotel seleccionado. */
.hotel-panel {
  background: var(--panel);
  border-left: 1px solid var(--line);
  bottom: 0;
  box-shadow: -20px 0 44px rgba(66, 65, 64, 0.14);
  max-width: 440px;
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 34px 32px 48px;
  position: absolute;
  right: 0;
  scrollbar-gutter: stable;
  top: 0;
  transform: translateX(102%);
  transition: transform 180ms ease;
  width: min(92vw, 420px);
  z-index: 9;
}

.hotel-panel.is-open {
  transform: translateX(0);
}

.panel-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
}

.panel-close::before,
.panel-close::after {
  background: var(--ink);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 18px;
}

.panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.panel-close:hover,
.panel-close:focus-visible {
  background: rgba(66, 65, 64, 0.06);
}

.panel-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 48px 12px 0;
  text-transform: uppercase;
}

.hotel-name {
  font-size: 30px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 42px 28px 0;
  overflow: visible;
}

.hotel-name-link {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 170ms ease;
}

.location-link[href]::after {
  background: var(--route);
  border-radius: 999px;
  bottom: -3px;
  box-shadow: 0 0 14px rgba(202, 237, 66, 0.34);
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease, opacity 170ms ease;
}

.hotel-name-link[href]:hover,
.hotel-name-link[href]:focus-visible,
.hotel-name-link[href]:active {
  text-decoration-color: var(--route);
}

.location-link[href]:hover::after,
.location-link[href]:focus-visible::after,
.location-link[href]:active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hotel-name-link[href]:focus-visible,
.location-link[href]:focus-visible {
  outline: none;
}

.hotel-name-link.is-disabled {
  cursor: default;
}

.hotel-metrics {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
}

.hotel-metrics div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hotel-metrics dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 7px;
}

.hotel-metrics dd {
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.15;
  margin: 0;
}

.hotel-stars-wrap {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hotel-stars {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
}

.hotel-stars:empty {
  display: none;
}

.location-link {
  color: var(--ink);
  display: inline-block;
  position: relative;
  text-decoration: none;
}

.location-link.is-disabled {
  color: var(--muted);
  cursor: default;
}

.booking-link {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fffefd;
  display: inline-flex;
  font-size: 15px;
  font-weight: 760;
  margin-bottom: 8px;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.booking-link:hover {
  background: #2f2e2d;
}

.booking-link.is-disabled {
  background: transparent;
  color: var(--muted);
  pointer-events: none;
}

/* Score lens: umbral runner y lectura del resultado en un unico control. */
.score-lens {
  align-items: center;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 34px rgba(35, 33, 31, 0.09);
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(160px, 1fr);
  left: var(--control-inset);
  min-height: 46px;
  padding: 9px 14px;
  position: absolute;
  top: calc(var(--control-top) + 58px);
  transition: background 180ms ease;
  width: min(450px, calc(100vw - 48px));
  z-index: 5;
}

.score-lens:hover,
.score-lens:focus-within {
  background: rgba(255, 255, 255, 0.62);
}

.score-lens-header {
  align-items: center;
  display: contents;
}

.score-lens-title,
.score-lens-count {
  display: none;
  color: rgba(66, 65, 64, 0.50);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.score-lens-value {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.score-lens-control {
  align-items: center;
  display: block;
  min-width: 0;
}

.score-lens-edge {
  display: none;
  color: rgba(66, 65, 64, 0.58);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.score-lens-range {
  --score-lens-progress: 0%;
  -webkit-appearance: none;
  appearance: none;
  background:
    linear-gradient(
      90deg,
      var(--signal-low) 0%,
      var(--signal-mid) 42%,
      var(--signal-high) 72%,
      var(--signal-prime) 100%
    );
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(35, 33, 31, 0.18);
  cursor: pointer;
  display: block;
  height: 7px;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.score-lens-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  height: 7px;
}

.score-lens-range::-moz-range-track {
  background: transparent;
  border: 0;
  height: 7px;
}

.score-lens-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 254, 253, 0.98);
  border: 1px solid rgba(66, 65, 64, 0.82);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.62),
    0 6px 14px rgba(35, 33, 31, 0.18);
  height: 17px;
  margin-top: -5px;
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: 17px;
}

.score-lens-range::-moz-range-thumb {
  background: rgba(255, 254, 253, 0.98);
  border: 1px solid rgba(66, 65, 64, 0.82);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.62),
    0 6px 14px rgba(35, 33, 31, 0.18);
  height: 14px;
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: 14px;
}

.score-lens-range:hover::-webkit-slider-thumb,
.score-lens-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 2px rgba(66, 65, 64, 0.14),
    0 8px 18px rgba(35, 33, 31, 0.20);
  transform: scale(1.03);
}

.score-lens-range:hover::-moz-range-thumb,
.score-lens-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 2px rgba(66, 65, 64, 0.14),
    0 8px 18px rgba(35, 33, 31, 0.20);
  transform: scale(1.03);
}

/* Mensaje de error visible cuando fallan datos, libreria de mapa o teselas. */
.map-error {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 700;
  inset: 24px;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 7;
}

/* En movil, el panel baja al borde inferior para no tapar todo el mapa. */
@media (max-width: 720px) {
  .map-shell {
    min-height: 100svh;
  }

  .language-switcher {
    right: 10px;
    top: 12px;
    z-index: 9;
  }

  .language-button {
    font-size: 12px;
    min-height: 40px;
    min-width: 62px;
    padding: 0 12px;
  }

  .language-current-full {
    display: none;
  }

  .language-current-short {
    display: inline;
  }

  .language-options {
    align-items: stretch;
    border-radius: 22px;
    flex-direction: column;
    margin-top: 7px;
    padding: 4px;
  }

  .language-option {
    font-size: 12px;
    min-height: 32px;
    min-width: 39px;
    padding: 0 9px;
  }

  .maplibregl-ctrl-bottom-left {
    display: none;
  }

  .hotel-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    bottom: 0;
    max-height: calc(100vh - 62px);
    max-width: none;
    overflow-y: auto;
    padding: 12px 12px 14px;
    top: auto;
    transform: translateY(102%);
    width: 100%;
  }

  .hotel-panel.is-open {
    transform: translateY(0);
  }

  .app-section-contact {
    align-items: end;
    background: rgba(246, 243, 241, 0.28);
    display: grid;
    overflow-y: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .contact-card {
    border-radius: 28px;
    max-height: calc(100svh - 20px);
    padding: 18px 16px 16px;
    width: 100%;
  }

  .contact-content {
    gap: 16px;
    padding-top: 42px;
  }

  .contact-title {
    font-size: 30px;
    line-height: 1;
    max-width: 12ch;
  }

  .contact-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .contact-details {
    border-radius: 0;
    padding: 14px 0 0;
  }

  .contact-links {
    display: flex;
    gap: 16px;
  }

  .contact-link {
    min-width: 0;
    padding: 0;
  }

  .filter-hud {
    display: contents;
  }

  .map-filters {
    align-items: center;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 20px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      0 12px 30px rgba(35, 33, 31, 0.09);
    color: var(--ink);
    column-gap: 16px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto;
    left: 10px;
    max-width: none;
    overflow: visible;
    padding: 9px 10px 8px;
    position: absolute;
    right: auto;
    row-gap: 4px;
    scrollbar-width: none;
    top: 10px;
    width: calc(100vw - 98px);
    z-index: 7;
  }

  .map-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-group {
    display: contents;
    flex: initial;
    gap: 6px;
    min-height: 24px;
    padding: 0;
  }

  .filter-group-stars .filter-label {
    grid-column: 1;
    grid-row: 1;
  }

  .filter-group-stars .filter-options {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .filter-group-gym {
    border-left: 0;
    border-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .filter-group-gym .filter-label {
    grid-column: 1;
    grid-row: 2;
  }

  .filter-group-gym .filter-options {
    grid-column: 2;
    grid-row: 2;
  }

  .filter-label {
    font-size: 11.5px;
    min-height: 24px;
    padding: 0;
  }

  .filter-options {
    gap: clamp(10px, 3vw, 16px);
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
  }

  .filter-options-stars {
    column-gap: clamp(8px, 3vw, 16px);
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-content: space-between;
    width: min(190px, 100%);
  }

  .filter-options-gym {
    gap: clamp(20px, 9vw, 36px);
    justify-content: flex-start;
  }

  .filter-chip {
    font-size: 11.5px;
    justify-content: flex-start;
    line-height: 1;
    min-height: 24px;
    min-width: 0;
    padding: 0;
    text-align: left;
  }

  .filter-chip.is-active::after {
    bottom: 1px;
  }

  .filter-options-gym .filter-chip {
    min-width: 24px;
    padding: 0;
  }

  .filter-clear {
    border-left: 0;
    flex: 0 0 auto;
    font-size: 11.5px;
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    line-height: 1;
    margin-left: 0;
    min-height: 24px;
    min-width: auto;
    padding: 0;
  }

  .contact-open {
    bottom: 10px;
    font-size: 0;
    gap: 0;
    left: auto;
    min-height: 42px;
    min-width: 42px;
    padding: 0;
    right: 10px;
    width: 42px;
    z-index: 6;
  }

  .contact-open::after {
    content: none;
  }

  .contact-open::before {
    align-items: center;
    background: rgba(255, 255, 255, 0.20);
    border: 1.4px solid rgba(66, 65, 64, 0.58);
    border-radius: 999px;
    box-shadow: none;
    color: var(--ink);
    content: "i";
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 860;
    height: 18px;
    justify-content: center;
    margin: 0;
    transform: none;
    width: 18px;
  }

  .contact-open:hover::before,
  .contact-open:focus-visible::before {
    content: "i";
    transform: none;
  }

  .contact-back {
    font-size: 0;
    gap: 0;
    justify-content: center;
    min-height: 28px;
    padding: 0;
    right: 14px;
    top: 14px;
  }

  .contact-back::after {
    content: attr(data-mobile-label);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  .panel-close {
    right: 6px;
    top: 4px;
  }

  .panel-kicker {
    display: none;
  }

  .hotel-name {
    display: block;
    font-size: 20px;
    line-height: 1.18;
    margin: 0 42px 10px 0;
    max-height: none;
    overflow: visible;
  }

  .hotel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 0 0 12px;
  }

  .hotel-metrics div {
    min-width: 0;
    padding-top: 8px;
  }

  .hotel-metric-stars,
  .hotel-metric-coordinates {
    grid-column: 1 / -1;
  }

  .hotel-metrics dt {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .hotel-metrics dd {
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .hotel-stars-wrap {
    align-items: center;
  }

  .hotel-stars {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .location-link {
    font-size: 13px;
  }

  .booking-link {
    font-size: 13px;
    justify-content: center;
    margin-bottom: 0;
    min-height: 38px;
    width: 100%;
  }

  .score-lens {
    align-items: center;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(255, 255, 255, 0.56);
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      0 12px 30px rgba(35, 33, 31, 0.09);
    display: grid;
    gap: 5px 8px;
    grid-template-columns: auto minmax(0, 1fr);
    left: 10px;
    margin: 0;
    max-width: none;
    min-height: 42px;
    min-width: 0;
    padding: 5px 8px;
    position: absolute;
    right: auto;
    top: auto;
    width: calc(100vw - 82px);
    z-index: 4;
  }

  .maplibregl-ctrl-bottom-right {
    bottom: 54px;
    right: 10px;
  }

  .score-lens-header {
    display: contents;
  }

  .score-lens-title,
  .score-lens-count,
  .score-lens-edge {
    display: none;
  }

  .score-lens-value {
    font-size: 11px;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    padding: 0;
  }

  .score-lens-control {
    display: block;
    min-width: 0;
  }

  .score-lens-range {
    height: 12px;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .map-filters {
    column-gap: 12px;
    padding: 8px 9px 7px;
    width: calc(100vw - 90px);
  }

  .filter-group {
    gap: 5px;
    padding: 0;
  }

  .filter-group-gym {
    margin-left: 0;
    padding-left: 0;
  }

  .filter-options {
    gap: 8px;
    justify-content: flex-start;
  }

  .filter-label {
    font-size: 11px;
    padding: 0;
  }

  .filter-chip {
    font-size: 11px;
    min-width: 0;
    padding: 0;
  }

  .filter-options-stars .filter-chip {
    min-width: 0;
    padding: 0;
  }

  .filter-options-gym .filter-chip {
    min-width: 24px;
    padding: 0;
  }

  .filter-clear {
    font-size: 11px;
    margin-left: 0;
    min-width: auto;
    padding: 0;
  }

  .filter-options-stars {
    column-gap: 8px;
    justify-content: space-between;
    width: min(168px, 100%);
  }

  .contact-open::after,
  .contact-back::after {
    font-size: 10.5px;
  }

  .score-lens {
    max-width: none;
    width: calc(100vw - 72px);
  }

  .score-lens-value {
    font-size: 10.5px;
    min-width: 0;
    padding: 0;
  }

  .score-lens-range {
    min-width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
