/* Guia Vacaciones — mobile-first */
:root {
  --gv-primary: #1a4d8f;   /* azul GuiaVacaciones */
  --gv-primary-dark: #143d72;
  --gv-accent: #F59F00;    /* sol */
  --gv-bg: #F8FAFB;
}
body { background: var(--gv-bg); -webkit-tap-highlight-color: transparent; }

.gv-navbar { background: var(--gv-primary); }
.gv-lang {
  color: rgba(255,255,255,.7); text-decoration: none; font-size: .8rem;
  font-weight: 600; padding: .25rem .5rem; border-radius: .4rem;
}
.gv-lang.active, .gv-lang:hover { color: #fff; background: rgba(255,255,255,.15); }
.gv-nav-guest { white-space: nowrap; }
/* En pantallas chicas, dejar solo el ícono para que no se amontone */
@media (max-width: 480px) {
  .gv-nav-guest .gv-nav-label { display: none; }
}

.gv-hero {
  background: linear-gradient(135deg, var(--gv-primary) 0%, var(--gv-primary-dark) 100%);
  padding: 3rem 0;
}
.gv-card {
  background: #fff; border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(11,114,133,.08);
}
.gv-icon { font-size: 2rem; margin-bottom: .75rem; }
.gv-footer { background: #fff; border-top: 1px solid #e9ecef; }

/* Botones táctiles grandes (principio UX del proyecto) */
.btn { min-height: 44px; }
@media (max-width: 576px) { .btn-lg { width: 100%; } }

/* Sprint 3 — panel del viajero */
.gv-card-active {
  background: linear-gradient(135deg, var(--gv-primary) 0%, var(--gv-primary-dark) 100%);
  color: #fff;
}
.gv-card-next { border-left: 4px solid var(--gv-accent); }
a .gv-card { transition: transform .08s ease; }
a .gv-card:active { transform: scale(.985); }
.badge.text-bg-light { border: 1px solid #e9ecef; }

/* Sprint 4 — actividades */
.gv-drag { cursor: grab; color: #adb5bd; font-size: 1.1rem; padding-top: .1rem; touch-action: none; }
.gv-act.sortable-ghost { opacity: .4; }
.gv-act.status-done { opacity: .65; }
.gv-act.status-done .fw-semibold { text-decoration: line-through; }
.gv-act.status-cancelled { opacity: .5; }
.gv-badge-idea      { background: #f1f3f5; color: #495057; }
.gv-badge-planned   { background: #e7f5ff; color: #1971c2; }
.gv-badge-booked    { background: #fff3bf; color: #997404; }
.gv-badge-paid      { background: #e6fcf5; color: #087f5b; }
.gv-badge-confirmed { background: #d3f9d8; color: #2b8a3e; }
.gv-badge-done      { background: #d3f9d8; color: #2b8a3e; }
.gv-badge-cancelled { background: #ffe3e3; color: #c92a2a; }

/* Sprint 5 — buscador de lugares y mapa */
.gv-place-results {
  position: absolute; z-index: 1050; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid #dee2e6; border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto;
}
.gv-place-item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: .6rem .9rem; border-bottom: 1px solid #f1f3f5;
}
.gv-place-item:hover, .gv-place-item:active { background: #f8f9fa; }
.gv-pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .8rem;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.gv-pin span { transform: rotate(45deg); display:block; }

/* Sprint 6 — billetera */
.gv-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: .5rem; flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.gv-viewer { background: #111; min-height: 100vh; margin: -0rem 0 0; }
.gv-viewer + footer, body:has(.gv-viewer) .gv-footer { display: none; }
.gv-bigcode { color: #fff; font-size: 1.6rem; letter-spacing: .15em; }

/* Sprint 8 — MI DÍA / timeline */
.gv-tl-stop { display: flex; gap: .75rem; align-items: flex-start; }
.gv-tl-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #e9ecef; color: #495057; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; margin-top: .35rem;
}
.gv-tl-dot.done { background: #2b8a3e; color: #fff; }
.gv-tl-dot.next { background: var(--gv-accent); color: #fff; }
.gv-tl-connector {
  margin: .15rem 0 .15rem 9px; padding-left: 1.6rem; font-size: .82rem; color: #868e96;
  border-left: 2px dashed #dee2e6; min-height: 1.6rem; display: flex; align-items: center;
}

/* Sprint 9 — PWA */
.gv-update {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2000;
  background: #212529; color: #fff; border-radius: .75rem;
  padding: .7rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Logo de marca en la barra: recuadro blanco redondeado, buen tamaño y responsivo */
.gv-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
@media (max-width: 575.98px) {
  .gv-logo {
    height: 40px;
    max-width: 160px;
    padding: 5px 9px;
    border-radius: 10px;
  }
}

/* El input de ciudad nunca debe quedar bloqueado aunque Places falle */
#city_name { background-color: #fff !important; opacity: 1 !important; pointer-events: auto !important; }
/* El dropdown de Google Places por encima de todo */
.pac-container { z-index: 2000 !important; }

/* Portada: banda de agencias */
.gv-agency-band {
  background: linear-gradient(135deg, #0f2b46 0%, #0a1f33 100%);
}
.gv-agency-band, .gv-agency-band h2, .gv-agency-band h3, .gv-agency-band p { color: #ffffff; }
.gv-agency-band .gv-agency-card h3 { color: #ffffff !important; }
.gv-agency-band .gv-agency-card p { color: rgba(255,255,255,.8) !important; }
.gv-agency-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  transition: background .15s;
}
.gv-agency-card:hover { background: rgba(255,255,255,.1); }
/* Tarjetas de herramientas: hover sutil */
a.gv-card { transition: transform .12s, box-shadow .12s; }
a.gv-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
