/* ==========================================================
   Qué visitar — explorador con filtros y mapa propio
   Usa las variables de style.css (--sea, --sun, --ink…)
   ========================================================== */
.qvx { --qvx-cult: #002e64; --qvx-exp: #b4530f; --qvx-pue: #2f6f5e; --qvx-sea: #cfe1ec; }
.qvx .container { display: flex; flex-direction: column; gap: 24px; }

/* Cabecera del bloque */
.qvx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.qvx-head h2 { margin: 0; }
.qvx-head p { margin: 4px 0 0; color: var(--ink-soft); }
.qvx-reset { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--sea); font: 800 15px/1 var(--font-body); text-decoration: underline; cursor: pointer; }

/* Filtros */
.qvx-filters { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; }
.qvx-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.qvx-group__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.qvx-row { display: flex; gap: 8px; flex-wrap: wrap; }
.qvx-chip { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 2px solid #e2d9c6; background: #fff; color: var(--ink); font: 800 15px/1.1 var(--font-body); cursor: pointer; transition: background .15s, border-color .15s; }
.qvx-chip:hover { border-color: var(--sea); }
.qvx-chip.is-on { background: var(--sea); border-color: var(--sea); color: #fff; }
.qvx-chip__n { min-width: 24px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--sand); color: var(--ink-soft); }
.qvx-chip.is-on .qvx-chip__n { background: var(--sun); color: var(--sea); }
.qvx-segs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid #e2d9c6; border-radius: 999px; flex-wrap: wrap; }
.qvx-seg { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 800 14px/1 var(--font-body); cursor: pointer; }
.qvx-seg.is-on { background: var(--sun); color: var(--sea); }

/* Distribución: lista a la izquierda, mapa a la derecha */
.qvx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.qvx-sidewrap { position: relative; align-self: stretch; min-height: 420px; }
.qvx-side, .qvx-ficha { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.qvx-side { display: flex; flex-direction: column; gap: 12px; padding-right: 6px; }
.qvx.has-ficha .qvx-side { visibility: hidden; }
.qvx-side::-webkit-scrollbar, .qvx-ficha::-webkit-scrollbar { width: 8px; }
.qvx-side::-webkit-scrollbar-thumb, .qvx-ficha::-webkit-scrollbar-thumb { background: var(--sand-dark); border-radius: 8px; }

/* Tarjeta de la lista */
.qvx-card { width: 100%; flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border: 2px solid transparent; border-radius: 20px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.qvx-card:hover { border-color: #e2d9c6; }
.qvx-card.is-on { border-color: var(--sun); box-shadow: 0 14px 30px -20px rgba(35,48,47,.6); }
.qvx-card__media { width: 132px; height: 112px; flex-shrink: 0; border-radius: 14px; overflow: hidden; display: block; }
.qvx-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qvx-card__tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.qvx-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.qvx-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qvx-tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.qvx-card__town { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.qvx-card__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--sea); }
.qvx-card__desc { font-size: 14px; line-height: 1.45; color: #3d4a49; }
.qvx-card__time { width: 76px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--sea); text-align: center; }
.qvx-card__time strong { font-family: var(--font-head); font-size: 18px; line-height: 1.1; }
.qvx-card__time small { font-size: 12px; font-weight: 600; color: var(--ink-soft); }

.qvx-empty { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.qvx-empty strong { font-family: var(--font-head); font-size: 22px; color: var(--sea); }
.qvx-empty p { margin: 0; color: var(--ink-soft); }

/* Botones */
.qvx-btn { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 2px solid var(--sea); background: var(--sea); color: #fff; font: 800 15px/1 var(--font-body); text-decoration: none; cursor: pointer; box-sizing: border-box; }
.qvx-btn:hover { background: var(--sun); border-color: var(--sun); color: var(--sea); }
.qvx-btn--ghost { background: transparent; color: var(--sea); }

/* Ficha del lugar */
.qvx-ficha { background: #fff; border-radius: 22px; }
.qvx-ficha[hidden] { display: none; }
.qvx-gal { position: relative; height: 320px; background: #e8e1d2; }
.qvx-gal > img, .qvx-gal > .qvx-card__tile { width: 100%; height: 100%; object-fit: cover; display: flex; }
.qvx-back__prev, .qvx-back__x { display: inline-flex; }
.qvx-back__x { display: none; }
.qvx-back { position: absolute; left: 14px; top: 14px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--sea); font: 800 14px/1 var(--font-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.qvx-gal__arrow { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--sea); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qvx-gal__arrow--prev { left: 14px; }
.qvx-gal__arrow--next { right: 14px; }
.qvx-gal__count { position: absolute; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(20,30,40,.72); color: #fff; font-size: 13px; font-weight: 800; }
.qvx-gal__thumbs { display: flex; gap: 8px; padding: 12px 20px 0; }
.qvx-gal__thumb { width: 76px; height: 56px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .8; background: none; }
.qvx-gal__thumb.is-on { border-color: var(--sun); opacity: 1; }
.qvx-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qvx-gal__credit { margin: 0; padding: 8px 20px 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.qvx-gal__credit a { color: var(--ink-soft); text-decoration: underline; }
.qvx-ficha__body { padding: 16px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.qvx-ficha__body h3 { margin: 0; font-size: 32px; line-height: 1.05; color: var(--sea); }
.qvx-ficha__body h3:focus { outline: none; }
.qvx-ficha__time { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--sea); font-weight: 800; font-size: 15px; }
.qvx-ficha__text { margin: 0; font-size: 16px; line-height: 1.65; color: #3d4a49; text-wrap: pretty; }
.qvx-ficha__actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.qvx-ficha__host { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* Mapa propio */
.qvx-mapcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qvx-views { display: flex; gap: 4px; padding: 4px; background: #fff; border-radius: 999px; overflow-x: auto; scrollbar-width: none; align-self: flex-start; max-width: 100%; }
.qvx-views::-webkit-scrollbar { display: none; }
.qvx-view { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 800 13px/1 var(--font-body); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.qvx-view.is-on { background: var(--sea); color: #fff; }
.qvx-map { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; background: var(--qvx-sea); box-shadow: 0 20px 44px -30px rgba(35,48,47,.6); }
.qvx-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.qvx-map svg path, .qvx-map svg rect { vector-effect: non-scaling-stroke; }
.qvx-sea { fill: var(--qvx-sea); }
.qvx-halo { fill: none; stroke: #bfd8e8; stroke-linejoin: round; }
.qvx-land { fill: #f4efe3; stroke: #86adc6; stroke-width: 1.4; stroke-linejoin: round; }
.qvx-r1 { fill: #e6e9d2; } .qvx-r2 { fill: #d9e0c1; } .qvx-r3 { fill: #cbd5ae; }
.qvx-urban { fill: #ebe2d0; fill-opacity: .85; }
.qvx-lake { fill: var(--qvx-sea); stroke: #86adc6; stroke-width: 1; }
.qvx-river { fill: none; stroke: #9cc3dc; stroke-linecap: round; stroke-linejoin: round; }
.qvx-road { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.qvx-hw-case { fill: none; stroke: #dcbc92; stroke-linecap: round; stroke-linejoin: round; }
.qvx-hw { fill: none; stroke: #fbe6c4; stroke-linecap: round; stroke-linejoin: round; }
.qvx-rail { fill: none; stroke: #6b7675; stroke-dasharray: 4 3; }
.qvx-layer { position: absolute; inset: 0; }

.qvx-lbl { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; z-index: 1; }
.qvx-lbl--city { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--ink); }
.qvx-lbl--town { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4f5c5b; }
.qvx-lbl--range { font-size: 13px; font-weight: 700; font-style: italic; color: #5d6b45; }
.qvx-lbl--sea { font-size: 15px; font-style: italic; letter-spacing: .3em; text-transform: uppercase; color: #3f6690; }

.qvx-pin, .qvx-camp { position: absolute; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 999px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; box-sizing: border-box; }
.qvx-pin { width: 34px; height: 34px; z-index: 2; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); transition: transform .15s; }
.qvx-pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.qvx-pin--cluster { width: 42px; height: 42px; background: var(--ink); font: 800 15px/1 var(--font-body); }
.qvx-pin.is-sel { width: 46px; height: 46px; z-index: 5; box-shadow: 0 0 0 5px rgba(236,126,40,.55), 0 10px 22px -8px rgba(0,0,0,.45); }
.qvx-camp { width: 48px; height: 48px; z-index: 3; background: var(--sun); color: var(--sea); box-shadow: 0 0 0 6px rgba(236,126,40,.25), 0 8px 18px -8px rgba(0,0,0,.5); }
.qvx-camp__n { position: absolute; right: -8px; top: -8px; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--sea); color: #fff; border: 2px solid #fff; font: 800 12px/1 var(--font-body); display: flex; align-items: center; justify-content: center; }
.qvx-cap { position: absolute; transform: translate(-50%, 27px); white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; pointer-events: none; z-index: 4; background: rgba(255,255,255,.95); color: var(--sea); }
.qvx-cap--camp { transform: translate(-50%, 32px); background: var(--sea); color: #fff; z-index: 3; }
.qvx-cap--sel { transform: translate(-50%, 30px); background: var(--sea); color: #fff; }
.qvx-pin:focus-visible, .qvx-camp:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.qvx-hint { position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px; background: rgba(255,255,255,.94); border-radius: 18px; font-size: 13px; font-weight: 700; color: var(--ink); }
.qvx-scale { position: absolute; right: 16px; bottom: 56px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; font-weight: 800; color: var(--ink); pointer-events: none; }
.qvx-scale__bar { display: block; height: 6px; box-sizing: border-box; border: 2px solid var(--ink); border-top: 0; background: rgba(255,255,255,.6); }
.qvx-badge { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; background: rgba(255,255,255,.94); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.qvx-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 700; color: var(--ink); }
.qvx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.qvx-legend i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.qvx-credits { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* ---------- Móvil y tablet ---------- */
@media (max-width: 899px) {
  .qvx-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qvx-mapcol { order: -1; }
  .qvx-sidewrap { min-height: 0; }
  .qvx-side { position: static; overflow: visible; padding-right: 0; }
  .qvx.has-ficha .qvx-side { visibility: visible; }
  .qvx-row, .qvx-segs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 32px); }
  .qvx-row::-webkit-scrollbar, .qvx-segs::-webkit-scrollbar { display: none; }
  .qvx-chip, .qvx-seg { flex-shrink: 0; white-space: nowrap; }
  .qvx-ficha { position: fixed; inset: 0; z-index: 1000; border-radius: 0; }
  .qvx-gal { height: 42vh; min-height: 240px; }
  .qvx-back__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qvx-back__prev { display: none; }
  .qvx-back__x { display: inline-flex; }
  .qvx-back { width: 44px; padding: 0; justify-content: center; }
  .qvx-ficha__body h3 { font-size: 28px; }
  .qvx-ficha__actions .qvx-btn { flex: 1 1 100%; }
  .qvx-card { gap: 12px; padding: 10px; }
  .qvx-card__media { width: 96px; height: 88px; }
  .qvx-card__desc { display: none; }
  .qvx-card__name { font-size: 18px; }
  .qvx-card__time { width: auto; min-width: 64px; }
  .qvx-card__time strong { font-size: 16px; white-space: nowrap; }
  .qvx-pin { width: 30px; height: 30px; }
  .qvx-pin svg { width: 14px; height: 14px; }
  .qvx-pin--cluster { width: 36px; height: 36px; font-size: 14px; }
  .qvx-pin.is-sel { width: 40px; height: 40px; }
  .qvx-camp { width: 40px; height: 40px; }
  .qvx-camp svg { width: 18px; height: 18px; }
  .qvx-cap { font-size: 11px; transform: translate(-50%, 24px); }
  .qvx-cap--camp { transform: translate(-50%, 27px); }
  .qvx-lbl--city { font-size: 15px; }
  .qvx-lbl--town { font-size: 10px; }
  .qvx-lbl--range { font-size: 11px; }
  .qvx-lbl--sea { font-size: 11px; letter-spacing: .2em; }
  .qvx-hint { display: none; }
  .qvx-scale { right: auto; left: 12px; bottom: 12px; align-items: flex-start; }
  .qvx-badge { right: 10px; bottom: 10px; padding: 5px 10px; font-size: 11px; }
  html.qvx-lock, html.qvx-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .qvx-pin, .qvx-chip, .qvx-card { transition: none; } }
