/* Еднакъв файл в Bus Plovdiv и Bus Varna (виж extra.js). */
/* 1. Лента с разрешения под горната лента: голям бутон за инсталиране и тънък ред с „Местоположение“ и „Известия“ */
.perm { position: sticky; top: 64px; z-index: 990; background: var(--md-surface); padding: 0 12px 6px; display: grid; gap: 6px; }
.perm .pr1, .perm .pr2 { display: flex; align-items: center; gap: 6px; max-width: 640px; width: 100%; margin: 0 auto; }
.perm .pinst { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border: 0; border-radius: 999px;
  background: var(--md-primary); color: var(--md-on-primary); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: var(--el1); }
.perm .pinst img { border-radius: 7px; background: #fff; }
.perm .pinst span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm .pinst.ok, .perm .pp.ok { background: var(--md-ok-container); color: var(--md-on-ok-container); }
.perm .pp { flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px;
  border: 0; background: var(--md-primary-container); color: var(--md-on-primary-container); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.perm .pp::after { content: ""; position: absolute; inset: -6px 0; } /* поле за пръста поне 44 px без по-висока лента */
.perm .pp span, .perm .pp small { overflow: hidden; text-overflow: ellipsis; }
.perm .pp small { font-weight: 500; opacity: .85; }
.perm .pp b { font-size: 16px; line-height: 1; }
.perm .pp.dis { background: var(--md-surface-high); color: var(--md-on-surface-variant); }
.perm .pp.den { background: var(--md-surface-high); color: var(--md-on-surface); }
.perm .px { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--md-on-surface-variant); cursor: pointer; }
.perm .px.sm { width: 32px; height: 32px; }
.perm.pulse .pinst, .perm.pulse .pp:not(.dis):not(.den) { animation: permGlow 1.6s ease-in-out 2; }
@keyframes permGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 0, 15, 0); } 50% { box-shadow: 0 0 0 6px rgba(179, 0, 15, .22); } }
@media (prefers-reduced-motion: reduce) { .perm.pulse .pinst, .perm.pulse .pp { animation: none; } }
html.big .perm .pp { font-size: 14px; }
.sheet .exo { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--md-outline-variant); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ios-g p { margin: 0 0 10px; }
.ios-arrow { position: fixed; left: 50%; transform: translateX(-50%); z-index: 2100; display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 34px; font-weight: 800; pointer-events: none; animation: iosBob 1.2s ease-in-out infinite; }
.ios-arrow.bottom { bottom: 6px; } .ios-arrow.top { top: 6px; right: 60px; left: auto; transform: none; flex-direction: column-reverse; }
.ios-arrow svg { width: 30px; height: 30px; background: #1a73e8; border-radius: 8px; padding: 3px; }
@keyframes iosBob { 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .ios-arrow { animation: none; } }

/* 2. Пътуване: картата на целия екран и компактен лист отдолу */
body.v-ride .fab, body.v-share .fab, body.v-share .perm, body.v-ride .perm { display: none !important; }
.ride { position: relative; margin: -8px -16px 0; }
.ride .rmap .map.full { height: calc(100dvh - 64px - var(--nav-h) - var(--vbar-h) - 270px); min-height: 200px; border-radius: 0; }
.rsheet { background: var(--md-surface-low); border-radius: 20px 20px 0 0; margin-top: -16px; position: relative; z-index: 500; padding: 12px 16px 8px; box-shadow: 0 -2px 8px rgba(0,0,0,.12); }
.rhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05em; margin-bottom: 6px; }
.rrow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--md-outline-variant); }
.rrow > .muted:first-child { min-width: 92px; font-size: .9em; }
.rrow.hot b { color: var(--md-primary); }
.rhot, .ralert { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: var(--md-primary); color: var(--md-on-primary); font-weight: 800; }
.rhot.ok { background: var(--md-ok-container); color: var(--md-on-ok-container); }
.ralert { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); }
.rbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rbtns .btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.rsheet .small { font-size: .85em; margin: 6px 0 0; }
.me-dot { width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.35); position: relative; box-sizing: border-box; }
.me-dot i { position: absolute; left: 50%; top: -12px; margin-left: -6px; width: 0; height: 0; border: 6px solid transparent; border-bottom: 10px solid #1a73e8; transform-origin: 6px 21px; }
.rpick .item { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.ride-chip { position: fixed; left: 50%; transform: translateX(-50%); top: 70px; z-index: 1200; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: var(--el3); white-space: nowrap; }
/* малките до големия бутон: на тесен екран само иконка в кръгче с точка */
.perm .pr1 .pp.ic { flex: none; height: 44px; }
@media (max-width: 559px) {
  .perm .pr1 .pp.ic { width: 44px; padding: 0; }
  .perm .pr1 .pp.ic span, .perm .pr1 .pp.ic small, .perm .pr1 .pp.ic b { display: none; }
  .perm .pr1 .pp.ic:not(.dis):not(.den)::before { content: ""; position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--md-primary); }
  .perm .pr1 .pinst { font-size: 14px; gap: 8px; }
}
/* тесен екран: в реда без инсталиране само иконка и името, без „Как?“ (иначе текстът се реже) */
@media (max-width: 400px) { .perm .pr2 .pp small { display: none; } .perm .pr2 .pp { padding: 0 8px; } }
