/* Only REVE presentation. Mounted next to the planner title.
   Leaflet controls reach 1000 inside the planner's stacking context (0).
   The public header remains above that entire context. */
.reve-price-heading-group { min-width: 0; }
.reve-price-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.reve-price {
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  width: max-content;
  max-width: calc(100vw - 24px);
  color: var(--text, #0b1f3a);
  font: 12px/1.45 var(--lp-font-body, "Segoe UI", sans-serif);
  isolation: isolate;
}
.reve-price *, .reve-price *::before, .reve-price *::after { box-sizing: border-box; }
.reve-price [hidden] { display: none !important; }
.reve-price button { font: inherit; cursor: pointer; }
.reve-price button:focus-visible { outline: 3px solid #078a52; outline-offset: 3px; }
.reve-price__content:focus-visible { outline: 2px solid #078a52; outline-offset: -2px; }
.reve-price__trigger {
  display: flex; align-items: center; gap: 8px;
  min-height: 35px; padding: 5px 12px;
  border: 2px solid #48e39821; border-radius: 17px;
  background: #0b2234; color: #fff;
  box-shadow: 0 3px 12px rgb(7 24 46 / 18%);
}
.reve-price__trigger strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.reve-price__bolt { padding-right: 8px; border-right: 1px solid #315066; color: #80f1b5; font-size: 22px; line-height: 1; }
.reve-price__flag { display: inline-block; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.reve-price__chevron { filter: brightness(0) invert(1); opacity: .8; transition: transform .16s ease; }
.reve-price__trigger[aria-expanded="true"] .reve-price__chevron { transform: rotate(180deg); }
.reve-price__panel {
  display: flex; flex-direction: column;
  position: absolute; top: calc(100% + var(--reve-panel-offset, 8px)); left: 0;
  width: min(304px, calc(100vw - 24px));
  max-height: min(420px, calc(100dvh - 100px));
  overscroll-behavior: contain;
  padding: 12px 15px 14px;
  border: 1px solid var(--border-strong, #dce6e1); border-radius: 14px;
  background: var(--panel, #fff);
  box-shadow: 0 14px 35px rgb(7 24 46 / 22%);
  animation: reve-price-in .16s ease-out;
}
.reve-price__heading { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.reve-price__panel--above { top: auto; bottom: calc(100% + 8px); }
.reve-price__heading, .reve-price__source, .reve-price__footer { flex-shrink: 0; }
.reve-price__content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.reve-price__heading h2 { margin: 0; flex: 1; font-size: 14px; font-weight: 750; line-height: 1.3; letter-spacing: -.2px; }
.reve-price__fold { flex-shrink: 0; width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted, #526173); font-size: 20px !important; }
.reve-price__country { display: flex; align-items: center; justify-content: center; gap: 8px; width: 130px; min-height: 38px; border: 1px solid #48e398; border-radius: 8px; background: #e2faeb; color: #0b3c2c; font-weight: 600; }
.reve-price__value { margin: 8px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -1.6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.reve-price__value span { font-size: 36px; }
.reve-price__scope { margin: 4px 0 0; color: var(--muted, #526173); font-size: 12px; }
.reve-price__sample { margin: 2px 0 12px; color: var(--muted, #526173); font-size: 11px; }
.reve-price__statistics { display: grid; gap: 4px; margin: 0 0 13px; padding: 11px 10px; border-radius: 8px; background: var(--bg, #f0f4f7); }
.reve-price__statistics div { display: flex; flex-wrap: wrap; gap: 6px; }
.reve-price__statistics dt { color: var(--muted, #526173); }
.reve-price__statistics dd { margin: 0; font-weight: 600; }
.reve-price__source { margin: 0 0 2px; color: var(--muted, #526173); font-size: 11px; }
.reve-price__footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted, #526173); font-size: 11px; }
.reve-price__footer p { margin: 0; }
.reve-price__dismiss { padding: 4px 0; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.reve-price__restore { width: 44px; min-height: 44px; padding: 0; border: 1px solid #078a52; border-radius: 50%; background: var(--panel, #fff); color: #078a52; box-shadow: 0 3px 12px rgb(7 24 46 / 12%); font-size: 22px !important; }
@keyframes reve-price-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .reve-price-heading-group { grid-column: 1 / -1; }
  .reve-price-heading-group + .workspace-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .reve-price__fold { width: 44px; min-height: 44px; }
  .reve-price__dismiss { min-height: 44px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reve-price__panel { animation: none; }
  .reve-price__chevron { transition: none; }
}
@media print { .reve-price { display: none; } }
/* =========================================================
   REVE · Variante verde suave ElectroRuta
   Solo paleta visual. No modifica layout ni comportamiento.
   ========================================================= */

.reve-price {
  --reve-green: #178a4c;
  --reve-green-strong: #0d6f3d;
  --reve-green-soft: #e9f7ee;
  --reve-green-softer: #f5fbf7;

  --reve-navy: #0b1f3a;
  --reve-muted: #607368;

  --reve-border: #91d3aa;
  --reve-divider: rgba(23, 138, 76, 0.16);

  --reve-shadow-soft: 0 7px 22px rgba(17, 83, 52, 0.14);
  --reve-shadow-panel: 0 14px 34px rgba(17, 83, 52, 0.17);

  color: var(--reve-navy);
}


/* ---------- Estado compacto ---------- */

.reve-price__trigger {
  border-color: var(--reve-border);
  background: linear-gradient(
    180deg,
    #f8fdf9 0%,
    var(--reve-green-soft) 100%
  );
  color: var(--reve-navy);
  box-shadow: var(--reve-shadow-soft);
}

.reve-price__trigger:hover,
.reve-price__trigger:focus-visible,
.reve-price__trigger[aria-expanded="true"] {
  border-color: var(--reve-green);
  background: #e3f5e9;
}

.reve-price__trigger strong {
  color: var(--reve-navy);
}

.reve-price__bolt {
  border-right-color: var(--reve-divider);
  color: var(--reve-green);
}

.reve-price__chevron {
  /* El icono deja de ser blanco */
  filter: none;
  opacity: .68;
}


/* ---------- Tarjeta desplegada ---------- */

.reve-price__panel {
  border-color: var(--reve-border);

  background:
    linear-gradient(
      180deg,
      #f8fdf9 0%,
      #edf8f1 100%
    );

  color: var(--reve-navy);
  box-shadow: var(--reve-shadow-panel);
}


/* ---------- Cabecera ---------- */

.reve-price__heading h2 {
  color: var(--reve-navy);
}

.reve-price__fold {
  color: var(--reve-muted);
}

.reve-price__fold:hover,
.reve-price__fold:focus-visible {
  color: var(--reve-green-strong);
  background: rgba(23, 138, 76, 0.08);
}


/* ---------- País ---------- */

.reve-price__country {
  border-color: var(--reve-border);
  background: rgba(255, 255, 255, 0.58);
  color: var(--reve-green-strong);
}


/* ---------- Precio ---------- */

.reve-price__value,
.reve-price__value span {
  color: var(--reve-green-strong);
}


/* ---------- Textos secundarios ---------- */

.reve-price__scope,
.reve-price__sample,
.reve-price__source,
.reve-price__footer {
  color: var(--reve-muted);
}


/* ---------- Estadísticas ---------- */

.reve-price__statistics {
  border: 1px solid rgba(23, 138, 76, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.reve-price__statistics dt {
  color: var(--reve-muted);
}

.reve-price__statistics dd {
  color: var(--reve-navy);
}


/* ---------- Cerrar / restaurar ---------- */

.reve-price__dismiss {
  color: var(--reve-muted);
}

.reve-price__dismiss:hover,
.reve-price__dismiss:focus-visible {
  color: var(--reve-green-strong);
}

.reve-price__restore {
  border-color: var(--reve-border);
  background: var(--reve-green-softer);
  color: var(--reve-green-strong);
  box-shadow: var(--reve-shadow-soft);
}

.reve-price__restore:hover,
.reve-price__restore:focus-visible {
  border-color: var(--reve-green);
  background: var(--reve-green-soft);
}


/* ---------- Focus accesible ---------- */

.reve-price button:focus-visible {
  outline-color: var(--reve-green);
}

.reve-price__content:focus-visible {
  outline-color: var(--reve-green);
}