/* SPDX-License-Identifier: AGPL-3.0-or-later · Sprint 300: de puerta a puerta */
.pp-form { position: relative; }
.pp-row { display: flex; gap: 6px; }
.pp-row input { flex: 1; }
.pp-f > label { font-weight: 600; font-size: .92em; }
.pp-ic, .pp-swap { min-width: 44px; min-height: 44px; border: 1px solid var(--line, #d7dde6); border-radius: 10px; background: var(--card, #fff); color: inherit; font-size: 1.2em; cursor: pointer; }
.pp-swap { justify-self: end; margin: -4px 0; min-height: 36px; }
.pp-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pp-fbtn { min-height: 44px; }
.pp-filters { border: 1px solid var(--line, #d7dde6); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.pp-filters legend { font-weight: 600; padding: 0 4px; }
.pp-filters label { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.pp-filters small { flex-basis: 100%; color: var(--muted, #5b6573); }
.pp-sug li { display: grid; grid-template-columns: 26px 1fr; gap: 0 6px; }
.pp-sug li small { grid-column: 2; color: var(--muted, #5b6573); font-size: .85em; }
.pp-sug li.pp-h { display: block; padding: 4px 12px; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5b6573); cursor: default; }
.pp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.pp-head b { font-size: 1.15em; font-variant-numeric: tabular-nums; }
.pp-tag { font-size: .8em; padding: 2px 8px; border-radius: 999px; background: var(--hover, #eef3fb); }
.pp-tag.warn { background: #fff3d6; color: #6b4a00; }
.pp-tag.best { background: #dff3e6; color: #11592c; }
.pp-leg { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; margin: 6px 0; }
.pp-leg small { grid-column: 2; color: var(--muted, #5b6573); }
.pp-leg.wait { color: var(--muted, #5b6573); }
.pp-leg.wait.night span:last-child { color: #8a5a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp-tag.warn { background: #3a2e10; color: #ffd98a; } :root:not([data-theme="light"]) .pp-tag.best { background: #123522; color: #9be2b4; } }
:root[data-theme="dark"] .pp-tag.warn { background: #3a2e10; color: #ffd98a; }
:root[data-theme="dark"] .pp-tag.best { background: #123522; color: #9be2b4; }
/* Sprint 301: puerta de embarque */
.pp-gate { margin-top: 4px; }
.pp-gbtn { min-height: 36px; padding: 4px 12px; font-size: .95em; }
/* Sprint 303: dormir y comer cerca */
.pp-leg .pp-near { grid-column: 1 / -1; display: block; margin-top: 6px; color: inherit; }
.pp-nbtn { min-height: 36px; padding: 4px 12px; font-size: .95em; }
.pp-nh { margin: 10px 0 4px; font-weight: 600; color: var(--text, inherit); }
.pp-pls { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-pl { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.pp-pl div { display: grid; gap: 2px; min-width: 0; }
.pp-leg .pp-pl small { grid-column: auto; display: block; color: var(--muted, #5b6573); overflow-wrap: anywhere; }
.pp-pl-ic { width: 64px; height: 64px; display: grid; place-items: center; font-size: 28px; border-radius: 10px; background: var(--hover, #eef3fb); }
.pp-pl-ph img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
/* Sprint 306: compartir y enlace patrocinado */
.pp-share { background: none; border: 0; padding: 0; color: var(--link, #1f6fd1); text-decoration: underline; font: inherit; cursor: pointer; }
.pp-spon { font-size: .8em; padding: 0 4px; border: 1px solid var(--line, #d7dde6); border-radius: 4px; }
.pp-chip { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: .85em; background: var(--hover, #eef3fb); }
/* Sprint 311 · «Salgo a las / Quiero llegar a las» */
.pp-timef .pp-by { display: block; width: auto; max-width: 100%; margin: 0 0 4px; padding: 0 18px 0 0; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-appearance: menulist; appearance: menulist; min-height: 0; box-shadow: none; }
.pp-timef .pp-by:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; border-radius: 4px; }

/* Sprint 314: avisos de rutas que pueden no circular */
.pp-warn { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; font-size: .9em; line-height: 1.4; background: #fff3d6; color: #5a3e00; border-left: 4px solid #d9a400; }
.pp-warn.high { background: #fde4e2; color: #6d1a14; border-left-color: #d93a32; }
.pp-warn p { margin: 2px 0; }
.pp-warn a { color: inherit; text-decoration: underline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp-warn { background: #3a2e10; color: #f3d48a; } :root:not([data-theme="light"]) .pp-warn.high { background: #3d1715; color: #ffb4ae; } }
:root[data-theme="dark"] .pp-warn { background: #3a2e10; color: #f3d48a; }
:root[data-theme="dark"] .pp-warn.high { background: #3d1715; color: #ffb4ae; }

/* Sprint 315: mapa esquemático de cada opción */
.pp-card.has-map .pp-head { cursor: pointer; }
.pp-mapbtn { border: 0; cursor: pointer; font: inherit; font-size: .8em; color: var(--blue, #1f6fd1); }
.pp-mapbtn[aria-expanded="true"] { background: var(--blue, #1f6fd1); color: #fff; }
.pp-map { margin: 8px 0 10px; border-radius: 10px; overflow: hidden; background: #eaf1f9; border: 1px solid var(--line, #dde3ec); }
.pp-map svg { display: block; width: 100%; height: auto; max-height: 320px; }
.pp-m-land { fill: #ffffff; stroke: #c9d3e0; stroke-width: .8; }
.pp-map polyline, .pp-map path:not(.pp-m-land) { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.pp-m-train { stroke: #1f6fd1; }
.pp-m-plane { stroke: #7b4fd6; stroke-dasharray: 8 6; stroke-width: 3 !important; }
.pp-m-car { stroke: #6b7686; stroke-dasharray: 6 5; stroke-width: 3 !important; }
.pp-m-walk { stroke: #12935c; stroke-dasharray: 1 6; stroke-width: 4 !important; }
.pp-m-bus { stroke: #e07b00; }
.pp-m-metro { stroke: #d93a32; }
.pp-m-ferry { stroke: #0f8b8d; stroke-dasharray: 10 6; }
.pp-m-dot { fill: #fff; stroke: #1b2433; stroke-width: 2; }
.pp-m-end { fill: #1b2433; stroke: #fff; stroke-width: 2.5; }
.pp-m-lab { font: 600 12px system-ui, sans-serif; fill: #1b2433; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.pp-m-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px 8px; font-size: .8em; background: var(--panel, #fff); border-top: 1px solid var(--line, #dde3ec); }
.pp-m-key { display: inline-flex; align-items: center; gap: 5px; }
.pp-m-sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: #6b7686; }
.pp-m-sw.train { background: #1f6fd1; } .pp-m-sw.plane { background: #7b4fd6; } .pp-m-sw.walk { background: #12935c; } .pp-m-sw.bus { background: #e07b00; } .pp-m-sw.metro { background: #d93a32; } .pp-m-sw.ferry { background: #0f8b8d; }
.pp-m-note { color: var(--muted, #6b7686); margin-left: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pp-map { background: #0e1726; border-color: #25324a; }
  :root:not([data-theme="light"]) .pp-m-land { fill: #1a2539; stroke: #34476a; }
  :root:not([data-theme="light"]) .pp-m-lab { fill: #e8eef7; stroke: #0e1726; }
  :root:not([data-theme="light"]) .pp-m-end { fill: #e8eef7; stroke: #0e1726; }
  :root:not([data-theme="light"]) .pp-m-dot { fill: #0e1726; stroke: #e8eef7; }
}
:root[data-theme="dark"] .pp-map { background: #0e1726; border-color: #25324a; }
:root[data-theme="dark"] .pp-m-land { fill: #1a2539; stroke: #34476a; }
:root[data-theme="dark"] .pp-m-lab { fill: #e8eef7; stroke: #0e1726; }
:root[data-theme="dark"] .pp-m-end { fill: #e8eef7; stroke: #0e1726; }
:root[data-theme="dark"] .pp-m-dot { fill: #0e1726; stroke: #e8eef7; }
@media (max-width: 600px) { .pp-m-note { margin-left: 0; width: 100%; } }
