/* 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; }
