:root {
  --natural-light: #f9f8f5;
  --white: #ffffff;
  --grey-01: #c5c6ca;
  --grey-02: #818284;
  --grey-03: #4f5054;
  --grey-inactive: #94a3b8;
  --blue: #002fa6;
  --navy: #2f3b4e;
  --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.07);
  --shadow-soft: 0 4px 4px rgba(0, 0, 0, 0.05);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #e5e5e5;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.app {
  max-width: 402px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--natural-light);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.app.page-visible {
  opacity: 1;
  /* "none" (no translateY(0) scale(1)): cualquier transform, aunque sea
     la identidad, convierte a .app en el contenedor de referencia para
     los elementos position:fixed (tabbar, botones, overlays), y como
     .app mide lo mismo que el contenido (no el viewport), quedarían mal
     ubicados o fuera de vista en vez de fijos a la pantalla. */
  transform: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--natural-light);
  padding: calc(20px + env(safe-area-inset-top)) 18px 8px;
}

.logo {
  height: 25px;
  width: auto;
}

/* Explorar: el logo, el buscador, los filtros y "Viaje más viable" quedan
   fijos arriba como un solo bloque; solo los resultados/destinos de más
   abajo scrollean por detrás. */
.explorar-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--natural-light);
}

.explorar-sticky-body {
  padding: 0 16px;
}

/* Content */

.content {
  padding: 0 16px calc(110px + env(safe-area-inset-bottom));
}

/* Search bar */

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 13px 12px;
  margin-top: 12px;
}

.search-bar .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-02);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--navy);
}

.search-bar input::placeholder {
  color: var(--grey-02);
}

/* Filter chips */

.chips-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 0.8px dashed var(--grey-02);
  border-radius: 9999px;
  padding: 7px 13px;
  color: var(--grey-02);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chip-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.chip.active {
  border: 0.8px solid var(--blue);
  color: var(--blue);
  background: rgba(0, 47, 166, 0.06);
}

.chip.active .chip-icon {
  filter: invert(13%) sepia(84%) saturate(4747%) hue-rotate(217deg) brightness(83%) contrast(107%);
}

.chip-plus {
  width: 40px;
  justify-content: center;
  font-size: 14px;
}

/* CTA */

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 39px;
  box-shadow: var(--shadow-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-bottom: 24px;
}

.cta-icon {
  width: 18px;
  height: 18px;
}

/* Sections */

.section {
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 18px;
  color: var(--grey-03);
  margin: 0 0 12px;
}

.section-title span {
  color: var(--grey-02);
  font-weight: 400;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  display: block;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.card-image {
  width: 100%;
  aspect-ratio: 179 / 150;
  background: var(--grey-01);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  padding: 10px 11px 11px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-family: var(--font-rounded);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.5px;
  color: var(--grey-02);
  margin: 2px 0 0;
}

/* Tab bar */

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: calc(100% - 32px);
  max-width: 368px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px 8px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  color: var(--grey-inactive);
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab:active {
  transform: scale(0.9);
}

.tab-icon {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.tab span {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 14px;
}

.tab.active {
  color: var(--blue);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: min(90vw, 340px);
  text-align: center;
  line-height: 1.4;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal: Viaje más viable */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 100;
  transition: background 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.open {
  background: rgba(20, 22, 30, 0.5);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--natural-light);
  border-radius: 25px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  padding: 22px 18px 18px;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.modal-overlay.open .modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 22px;
  line-height: 1;
  color: var(--grey-02);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-header-icon {
  width: 26px;
  height: 26px;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  color: var(--blue);
}

/* Accordion */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.accordion-section {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  text-align: left;
}

.accordion-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.accordion-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  color: #272727;
}

.accordion-summary {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--grey-02);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* El resumen de presupuesto es persistente como el resto (mismo gris por
   default); mientras dura el aviso de "Mínimo recomendado" pasa a azul con
   una transición suave en vez de cambiar de golpe. */
#summary-presupuesto {
  transition: color 0.3s ease;
}

#summary-presupuesto.aviso-minimo {
  color: var(--blue);
}

.accordion-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--grey-02);
  transition: transform 0.25s ease;
}

.accordion-section.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-section.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body-inner {
  overflow: hidden;
  padding: 0 16px;
}

.accordion-section.open .accordion-body-inner {
  padding: 0 16px 16px;
}

/* Budget slider */

.budget-box {
  padding: 4px 0 6px;
}

.budget-value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--grey-03);
  letter-spacing: 0.1px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.budget-value.sobre-minimo {
  color: var(--blue);
}

.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(to right, var(--grey-inactive) 0%, var(--grey-inactive) 0%, var(--natural-light) 0%, var(--natural-light) 100%);
  outline: none;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grey-inactive);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
}

.budget-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grey-inactive);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
}

.budget-slider::-moz-range-track {
  height: 4px;
  border-radius: 10px;
  background: transparent;
}

/* Calendar */

.calendar-box {
  padding: 4px 0 2px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-nav {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.calendar-nav:hover {
  background: var(--natural-light);
}

.calendar-month {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--grey-01);
  letter-spacing: 0.1px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}

.calendar-weekdays span {
  font-family: var(--font-rounded);
  font-size: 10px;
  color: var(--grey-02);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--font-rounded);
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.selected {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Interests grid inside modal */

/* Cada chip mide lo que ocupa su propio contenido (no una columna pareja),
   con el mismo padding interno para todos; se acomodan solos en filas. */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 7px;
  overflow: visible;
  margin: 0;
  padding: 4px 0 2px;
}

/* "¿Ya tenés algo en mente?" field */

.mente-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--natural-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 4px 0 2px;
}

.attach-btn {
  flex-shrink: 0;
  display: flex;
  transform: rotate(-45deg);
}

.mente-field input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--navy);
}

.mente-field input[type="text"]::placeholder {
  color: var(--grey-01);
}

.modal-submit {
  width: 100%;
}

/* ===== Pantalla: Viaje Recomendado ===== */

.reco-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--natural-light);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(20px + env(safe-area-inset-top)) 16px 8px;
}

.back-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.back-btn img {
  width: 11px;
  height: auto;
  transform: scaleX(-1);
}

.reco-header-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  color: var(--blue);
}

.reco-content {
  padding-top: 4px;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

.reco-destination {
  margin: 8px 0 16px;
  font-family: var(--font-rounded);
  font-weight: 600;
  font-size: 21px;
  color: var(--grey-03);
  letter-spacing: 0.1px;
}

.reco-stats {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 14px;
}

.reco-stat {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.reco-stat-label {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--grey-02);
}

.reco-stat-value {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--grey-03);
  letter-spacing: 0.1px;
}

.reco-interest-icons {
  display: flex;
  gap: 6px;
}

.reco-interest-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--grey-03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reco-interest-icon img {
  width: 13px;
  height: 13px;
}

.reco-divider {
  border: none;
  border-top: 1px solid var(--grey-01);
  margin: 0 0 16px;
}

/* Carrusel de fotos: pila apilada por profundidad (sin inclinación), con la
   foto del frente destacada y el resto detrás, asomando apenas a los costados;
   medidas tomadas 1:1 del diseño de Figma (el frame del diseño mide 402px,
   igual que nuestro ancho de app). */

.carousel {
  position: relative;
  height: 406px;
  margin: 0 -16px 20px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 225px;
  height: 363px;
  margin-top: -181.5px;
  margin-left: -112.5px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--grey-01);
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 75%);
}

.carousel-user {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.carousel-time {
  font-family: var(--font-display);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
}

.carousel-username {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tarjetas de vuelo / alojamiento */

.reco-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.reco-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 13px 14px 12px;
  min-width: 0;
}

.reco-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.reco-card-icon {
  width: 14px;
  height: 14px;
}

.reco-card-label {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--grey-02);
}

.reco-card-title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--grey-03);
  letter-spacing: 0.08px;
}

.reco-card-sub {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--grey-03);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reco-card-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reco-card-detail img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.reco-card-detail span {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--grey-inactive);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botones de acción */

.reco-actions {
  position: fixed;
  left: 50%;
  bottom: calc(89px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 368px;
  z-index: 50;
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.reco-actions .cta-button {
  width: auto;
  flex: 1;
  margin-bottom: 0;
}

.reco-btn-otras {
  background: var(--grey-inactive);
}

/* Loader: buscando el viaje más viable */

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(249, 248, 245, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loader-overlay[hidden] {
  display: none;
}

.loader-overlay.show {
  opacity: 1;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 0 40px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.5s ease;
}

.loader-overlay.show .loader-content {
  transform: scale(1);
}

/* Spinner clásico de rayitas radiales (como el de iOS): 12 barras grises fijas
   por las que va "pasando" el azul una por una, en loop. */

.loader-spinner {
  position: relative;
  width: 44px;
  height: 44px;
}

.loader-spinner-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 10px;
  margin: -13px 0 0 -1.5px;
  border-radius: 1.5px;
  background: var(--grey-inactive);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-12px);
  animation: loader-spinner-fade 1.2s linear infinite;
  animation-delay: calc(var(--i) * -0.1s);
}

@keyframes loader-spinner-fade {
  0% { background: var(--blue); }
  25% { background: var(--grey-inactive); }
  100% { background: var(--grey-inactive); }
}

.loader-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-03);
}

/* ===== Pantalla: Detalle del viaje ("Me interesa") ===== */

/* Encabezado fijo: header, destino, barra de precio y el divisor no scrollean;
   solo "Lo esencial" y "Lo más compartido" se mueven debajo. */
.detalle-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--natural-light);
}

.detalle-sticky-body {
  padding: 0 16px;
}

.detalle-content {
  padding-top: 14px;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.price-label {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--grey-03);
}

.price-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 16px 18px 20px;
  margin-bottom: 20px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.price-current {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--blue);
}

.price-max {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--grey-01);
}

.price-track {
  position: relative;
  height: 8px;
  border-radius: 10px;
  background: #bfbfbf;
}

.price-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: var(--blue);
  transition: width 0.4s ease;
}

.section-subtitle {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--grey-03);
}

/* Vuelo / Alojamiento */

.esencial-card {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.esencial-refresh {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  z-index: 2;
}

.esencial-refresh img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.esencial-refresh.spinning img {
  transform: rotate(360deg);
}

.esencial-row {
  position: relative;
  padding-right: 90px;
}

.esencial-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.esencial-icon {
  width: 15px;
  height: 15px;
}

.esencial-icon-flip {
  transform: rotate(180deg) scaleY(-1);
}

.esencial-label span {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--grey-02);
}

.esencial-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: #272727;
}

.esencial-sub {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 12px;
  color: #272727;
}

.esencial-detail {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--grey-02);
}

.esencial-sep {
  border: none;
  border-top: 1px solid var(--natural-light);
  margin: 14px 0;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 12px;
  border: 0.8px solid var(--blue);
  border-radius: 26px;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.price-pill-fixed {
  position: absolute;
  top: 30px;
  right: 0;
}

.price-pill.selected {
  background: rgba(47, 59, 78, 0.15);
  color: var(--blue);
  font-weight: 600;
}

/* Foto del alojamiento */

.esencial-photo {
  margin-top: 14px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-01);
}

.esencial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lo más compartido */

.shared-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 16px 0 18px;
  margin-bottom: 14px;
}

.shared-header {
  padding: 0 18px;
  margin-bottom: 12px;
}

.shared-header span {
  font-family: var(--font-rounded);
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--grey-02);
}

.shared-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px;
  scrollbar-width: none;
}

.shared-scroll::-webkit-scrollbar {
  display: none;
}

.shared-item {
  flex: 0 0 auto;
  width: 140px;
}

.shared-item-image {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-01);
  margin-bottom: 8px;
}

.shared-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-item-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: #272727;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-item .price-pill {
  width: 100%;
}

.detalle-guardar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 368px;
  z-index: 50;
  margin-bottom: 0;
}

/* Overlay: viaje guardado */

.saved-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 30, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  z-index: 150;
  transition: background 0.6s ease;
}

.saved-overlay[hidden] {
  display: none;
}

.saved-overlay.open {
  background: rgba(20, 22, 30, 0.45);
}

.saved-card {
  width: 100%;
  max-width: 368px;
  background: var(--natural-light);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(120%);
  transition: transform 0.6s cubic-bezier(0.22, 0.68, 0.2, 1);
}

.saved-overlay.open .saved-card {
  transform: translateY(0);
}

.saved-check {
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.saved-check circle {
  transform-origin: center;
}

.saved-check.show {
  opacity: 1;
  transform: translateY(0);
}

.saved-title {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 24px;
  letter-spacing: 0.16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.saved-title.show {
  opacity: 1;
  transform: translateY(0);
}

.saved-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  border-radius: 39px;
  background: var(--white);
  box-shadow: var(--shadow-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.saved-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.saved-btn + .saved-btn {
  margin-top: 12px;
}

.saved-btn-primary {
  border: 0.8px solid var(--blue);
  color: var(--blue);
}

.saved-btn-secondary {
  border: 0.8px solid var(--grey-01);
  color: var(--grey-02);
}

/* Mis viajes */

/* El logo, el título "Mis viajes" y los filtros quedan fijos arriba; solo
   .mv-body (las cards de cada pestaña) scrollea, como en Explorar. */
.mv-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.mv-title {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 24px;
  margin: 0 0 16px;
  padding: 0 16px;
}

.mv-segmented {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: 9999px;
  box-shadow: var(--shadow-light);
  padding: 4px;
  margin: 0 16px 20px;
}

.mv-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(110px + env(safe-area-inset-bottom));
}

.mv-segment {
  flex: 1;
  padding: 8px 0;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--grey-03);
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.mv-segment.active {
  background: var(--grey-inactive);
  color: var(--white);
  font-weight: 500;
}

.mv-empty {
  color: var(--grey-02);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 32px 8px;
}

.mv-entry {
  margin-bottom: 22px;
}

.mv-card {
  position: relative;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 12px 17px 12px 9px;
}

.mv-delete-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.15s ease;
}

.mv-delete-btn:active {
  transform: scale(0.85);
}

.mv-delete-btn img {
  width: 18px;
  height: 18px;
}

.mv-card-top {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.mv-card-photo {
  width: 116px;
  min-height: 116px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey-01);
}

.mv-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mv-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.mv-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.136px;
  color: var(--grey-03);
  margin: 0;
  padding-right: 20px;
}

.mv-card-dates {
  font-size: 12px;
  line-height: 16px;
  color: var(--grey-02);
  margin: 0;
}

.mv-card-sub {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 14px;
  color: var(--grey-02);
  margin: 8px 0 16px;
}

.mv-card-diff {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  color: var(--blue);
}

.mv-card-stats {
  display: flex;
  align-items: center;
  border: 0.5px solid var(--grey-01);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 0;
}

.mv-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.mv-stat-label {
  font-family: var(--font-rounded);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--grey-02);
}

.mv-stat-value {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 24px;
  letter-spacing: 0.168px;
  color: var(--grey-03);
}

.mv-stat-divider {
  width: 1px;
  height: 32px;
  flex-shrink: 0;
  background: var(--grey-01);
  margin: 0 14px;
}

.mv-reservar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border: 0.8px solid var(--blue);
  border-radius: 39px;
  background: var(--white);
  box-shadow: var(--shadow-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* Confirmación: eliminar viaje guardado */

.mv-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  transition: background 0.28s ease;
}

.mv-confirm-overlay[hidden] {
  display: none;
}

.mv-confirm-overlay.open {
  background: rgba(20, 22, 30, 0.45);
}

.mv-confirm-card {
  width: 100%;
  max-width: 280px;
  background: var(--natural-light);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mv-confirm-overlay.open .mv-confirm-card {
  opacity: 1;
  transform: scale(1);
}

.mv-confirm-title {
  margin: 0;
  padding: 22px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  text-align: center;
}

.mv-confirm-actions {
  display: flex;
  border-top: 1px solid var(--grey-01);
}

.mv-confirm-btn {
  flex: 1;
  padding: 13px 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--grey-03);
  transition: background 0.15s ease;
}

.mv-confirm-btn:active {
  background: rgba(0, 0, 0, 0.04);
}

.mv-confirm-btn + .mv-confirm-btn {
  border-left: 1px solid var(--grey-01);
}

.mv-confirm-btn-destructive {
  color: var(--blue);
  font-weight: 600;
}

/* Otras opciones */

/* El header y la descripción quedan fijos; solo .oo-body (el "frame Body"
   del diseño) scrollea, acotado a la altura real de la pantalla. */
.oo-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.oo-description {
  margin: 0;
  padding: 0 16px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-03);
}

.oo-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(110px + env(safe-area-inset-bottom));
}

.oo-empty {
  color: var(--grey-02);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 32px 8px 0;
}

.oo-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 14px;
  margin-bottom: 20px;
}

.oo-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.136px;
  color: var(--grey-03);
}

.oo-card-dates {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--grey-02);
}

.oo-card-photo {
  margin-top: 12px;
  height: 145px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-01);
}

.oo-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oo-card-stats {
  display: flex;
  align-items: center;
  border: 0.5px solid var(--grey-01);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 12px;
}

.oo-card-diff {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--blue);
}

.oo-btn-interesa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: 0.8px solid var(--blue);
  border-radius: 39px;
  background: var(--white);
  box-shadow: var(--shadow-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.oo-btn-editar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  margin-top: 20px;
  border: 0.8px solid var(--grey-01);
  border-radius: 39px;
  background: var(--white);
  box-shadow: var(--shadow-light);
  color: var(--grey-02);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
