@charset "UTF-8";
/* CSS Document */

/* ─── Design Tokens (live-editable via design panel) ────────────────────── */
:root {
  --rp-card-pad-v: 14px;
  --rp-card-pad-h: 18px;
  --rp-card-radius: 14px;
  --rp-card-gap: 20px;
  --rp-name-size: 16px;
  --rp-name-weight: 600;
  --rp-name-color: #333333;
  --rp-name-spacing: 0px;
  --rp-pill-size: 14px;
  --rp-pill-weight: 500;
  --rp-dur-size: 24px;
  --rp-dur-weight: 700;
  --rp-dur-color: #007AC9;
  --rp-leave-size: 12px;
  --rp-leave-color: #666666;
  --rp-row-pad-v: 16px;
  --rp-row-gap: 12px;
}

@font-face {
    font-family: "HCo Gotham Rounded";
    src:          url("../fonts/GothamRnd-Book_Web.woff2") format("woff2"),
         url("../fonts/GothamRnd-Book_Web.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "HCo Gotham Rounded";
    src:          url("../fonts/GothamRnd-Medium_Web.woff2") format("woff2"),
         url("../fonts/GothamRnd-Medium_Web.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "HCo Gotham Rounded";
    src:          url("../fonts/GothamRnd-Bold_Web.woff2") format("woff2"),
         url("../fonts/GothamRnd-Bold_Web.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "HCo Gotham XNarrow";
    src:          url("../fonts/GothamXNarrow-Book_Web.woff2") format("woff2"),
         url("../fonts/GothamXNarrow-Book_Web.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "HCo Gotham XNarrow";
    src:          url("../fonts/GothamXNarrow-Medium_Web.woff2") format("woff2"),
         url("../fonts/GothamXNarrow-Medium_Web.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "HCo Gotham XNarrow";
    src:          url("../fonts/GothamXNarrow-Bold_Web.woff2") format("woff2"),
         url("../fonts/GothamXNarrow-Bold_Web.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

html, body {
    background-color: white;
    margin: 0;
    padding: 0;
}

body {
    font-family: "HCo Gotham Rounded";
    background-color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
    min-width: 350px;
}

/* ─── Views ──────────────────────────────────────────────────────────────── */
.view {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f7;
}

.view[hidden] {
    display: none !important;
}

/* ─── Simple Header (Koti / Lisää) ──────────────────────────────────────── */
.simple-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 56px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    max-width: 100%;
}

.simple-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ─── Splash Screen ──────────────────────────────────────────────────────── */
.splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #f0f0f0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.splash-content {
    font-weight: 500;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    width: 60%;
    gap: 20px;
    margin: 10px auto 60px;
    justify-content: center;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
}

.color-option.color-1  { background-color: #007ac9; }
.color-option.color-2  { background-color: #f092cd; }
.color-option.color-3  { background-color: #00985f; }
.color-option.color-4  { background-color: #8c4799; }
.color-option.color-5  { background-color: #ff6319; }
.color-option.color-6  { background-color: #00b9e4; }
.color-option.color-7  { background-color: #64be1e; }
.color-option.color-10 { background-color: #fed100; }
.color-option.color-11 { background-color: #dc0451; }

.color-option.selected { border-color: #333; }

.zone-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.zone-option {
    background-color: #007ac9;
    width: 15%;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
}

.zone-option.selected {
    border-color: #007ac9;
    background-color: #bee4f8;
}

.done-button {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    background-color: #007ac9;
    color: white;
    border: none;
    width: 100px;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Ticket View (view-liput) ───────────────────────────────────────────── */
/* Must NOT be a flex container — ticket layout relies on body-level flow */
#view-liput {
    display: block;
    background-color: #f5f5f5;
    width: 100%;
}

/* Ensure liput view hides correctly when navigating away */
#view-liput[hidden] {
    display: none !important;
}

.header {
    position: fixed;
    z-index: 100;
    justify-content: space-around;
    background-color: white;
    display: flex;
    width: 100%;
    min-height: 55px;
    margin-bottom: 10px;
    box-sizing: border-box;
    padding: 0 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.1));
}

.header-button {
    width: 120px;
    height: 65px;
    color: #007ac9;
    background-color: transparent;
    font-family: "HCo Gotham Rounded";
    border: none;
    font-size: 15px;
    letter-spacing: -3%;
    font-weight: 500;
    cursor: pointer;
    margin-top: auto;
}

.header-button-active {
    color: #2C2C2C;
    border-bottom: 3px solid #007ac9;
    border-top: none;
    border-left: none;
    border-right: none;
}

.container {
    position: relative;
    padding: 20px;
    width: 370px;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96%;
    height: 97%;
    z-index: -1;
    border-radius: 25px;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.2));
}

.qr-code {
    position: relative;
    z-index: 15;
    text-align: center;
    margin-top: 15px;
}

.qr-code img { height: 140px; }

.qr-code-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.qr-code-numbers span { font-size: 13px; color: #333; }

.ticket-type {
    position: relative;
    color: #474747;
    border-top: .5px solid #ccc;
    border-bottom: .5px solid #ccc;
    letter-spacing: -3%;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 15px 10px;
    z-index: 20;
}

.ticket-type img {
    height: 15px;
    margin-right: 2px;
    transform: translateY(7%);
}

.validity {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: -373px;
    background-color: white;
    height: 53px;
    z-index: 5;
    padding: 0 10px 5px;
}

.validity-label,
.customer-group-label {
    font-family: "HCo Gotham Rounded";
    color: #A2A2A2;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 3px;
    letter-spacing: -3%;
}

.customer-group { text-align: right; }

.validity-time,
.customer-group {
    font-size: 18px;
    font-weight: 500;
    color: #474747;
    letter-spacing: -3%;
}

.validity-time {
    position: relative;
    padding-left: 20px;
}

.validity-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #64be1e;
}

.hsl-spin {
    position: relative;
    top: 145px;
    z-index: 0;
    left: 47%;
    transform: translateX(-50%);
}

.hsl-spin img {
    animation: spin-counterclockwise 7s linear infinite;
    width: 107%;
    height: auto;
    transform-origin: center center;
}

.zone {
    z-index: 1;
    background-color: #FAFAFA;
    border-radius: 15px;
    height: 130px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
}

.zone-left {
    background-color: #ff6319;
    width: 42%;
    box-sizing: border-box;
}

.zone-right {
    color: #3A3A3A;
    box-sizing: border-box;
    width: 58%;
    pointer-events: auto;
}

.zone-label {
    font-family: "HCo Gotham Rounded";
    position: relative;
    z-index: 100;
    font-size: 75px;
    display: flex;
    justify-content: center;
    letter-spacing: -3%;
    top: 25px;
    margin-bottom: 12px;
    font-weight: 700;
}

.zone-info {
    position: relative;
    display: flex;
    z-index: 100;
    font-weight: 500;
    font-size: 13px;
    justify-content: center;
}

.zone-info img {
    height: 13px;
    margin-right: 5px;
    transform: translateY(20%);
}

.popup-window-container {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-window {
    background-color: white;
    width: 85%;
    padding: 40px;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
}

.popup-window-title {
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 35px;
}

.popup-window-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 6px;
}

.popup-window-text {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: -3%;
    font-weight: 500;
    text-align: left;
}

.popup-window-text p1 { color: #007ac9; }

.popup-window-close {
    font-family: "HCo Gotham Rounded";
    background-color: transparent;
    color: #2D2D2D;
    border: 1px solid #595959;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.buy-another-button {
    font-family: "HCo Gotham Rounded";
    background-color: #007ac9;
    color: white;
    border: none;
    padding: 12px 10px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    width: 55%;
    max-width: 235px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.friend-purchases {
    margin-top: 15px;
    font-weight: 400;
    text-align: center;
    font-size: 15px;
    color: #666;
}

.previous-purchases {
    margin-top: 35px;
    text-align: center;
    font-size: 17px;
    color: #666;
    padding: 20px 0;
}

.history {
    text-align: center;
    font-size: 20px;
    color: #007ac9;
    font-weight: 500;
    margin-bottom: 140px;
}

/* ─── Bottom Navigation ──────────────────────────────────────────────────── */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.1), 0 -2px 8px rgba(0,0,0,0.06);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.3px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 12px;
    transition: color 0.15s;
}

.nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    opacity: 0.45;
    transition: opacity 0.15s;
}

.nav-item.nav-item-active {
    color: #007ac9;
}

.nav-item.nav-item-active img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(33%) sepia(91%) saturate(500%) hue-rotate(180deg) brightness(95%);
}

/* ─── KOTI View ──────────────────────────────────────────────────────────── */
.koti-wrap {
    padding: 76px 16px 100px;
    width: 100%;
    box-sizing: border-box;
}

.koti-ticket-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    margin-bottom: 24px;
}

.koti-color-bar {
    width: 8px;
    background: #007ac9;
    flex-shrink: 0;
}

.koti-ticket-body {
    flex: 1;
    padding: 16px;
}

.koti-ticket-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.koti-ticket-zone {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 4px;
}

.koti-ticket-valid {
    font-size: 13px;
    color: #64be1e;
    font-weight: 600;
}

.koti-ticket-open {
    background: none;
    border: none;
    color: #007ac9;
    font-family: "HCo Gotham Rounded";
    font-size: 14px;
    font-weight: 600;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
}

.koti-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.koti-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.koti-action-btn {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 16px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-family: "HCo Gotham Rounded";
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: transform 0.1s;
}

.koti-action-btn:active { transform: scale(0.96); }

.koti-action-btn img {
    width: 28px;
    height: 28px;
}

.koti-info-strip {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #bbb;
    justify-content: center;
    margin-top: 8px;
}

/* ─── Smurffitutka full-page view ────────────────────────────────────────── */
.smurff-view {
    background: #0D62B8;
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
}

.smurff-view[hidden] { display: none !important; }

.smurff-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 14px;
    flex-shrink: 0;
}

.smurff-page-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.smurff-page-refresh {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.smurff-page-feed {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 110px;
}

.smurff-loading {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    text-align: center;
    padding: 40px 0;
}

.smurff-msg {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.smurff-msg-text {
    color: white;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.smurff-msg-meta {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 6px;
}

.smurff-sender {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.smurff-color-banner {
    padding: 16px 0;
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.smurff-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}

/* ─── REITTIOPAS View ────────────────────────────────────────────────────── */
.rp-wrap {
    padding: 16px 16px 110px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

/* ─── One-time destination search ───────────────────────────────────────── */
.rp-search-box {
    background: white;
    border-radius: 26px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.rp-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-search-icon {
    font-size: 16px;
    color: #007ac9;
    font-weight: 700;
    flex-shrink: 0;
}

.rp-search-input {
    flex: 1;
    font-family: "HCo Gotham Rounded";
    font-size: 15px;
    font-weight: 600;
    border: none;
    outline: none;
    color: #1a1a1a;
    background: transparent;
    min-width: 0;
}

.rp-search-input::placeholder { color: #ccc; font-weight: 400; }

.rp-search-clear {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rp-search-map-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.75;
}
.rp-search-map-btn:active { opacity: 1; }

/* Route destination map picker */
.route-picker-bottom {
    background: white;
    padding: 12px 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.route-picker-addr {
    font-size: 13px;
    color: #555;
    text-align: center;
    min-height: 18px;
}

/* Stop direction sub-picker */
.stop-dir-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start !important;
}
.stop-dir-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stop-dir-arrow {
    color: #007ac9;
    font-weight: 700;
}
.stop-dir-headsign {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}
.stop-dir-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 18px;
}

.rp-search-suggestions {
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
}

.rp-search-suggestion {
    font-family: "HCo Gotham Rounded";
    background: none;
    border: none;
    text-align: left;
    padding: 9px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    border-bottom: 1px solid #f8f8f8;
}

.rp-search-suggestion:last-child { border-bottom: none; }
.rp-search-suggestion:active { background: #f5f5f7; color: #007ac9; }

.rp-onetime-results { margin-bottom: 4px; }

.rp-onetime-loading {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.rp-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 16px;
    padding: 11px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    /* Sticky at top of page */
    position: sticky;
    top: 0;
    z-index: 20;
}

.rp-location-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-location-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64be1e;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(100,190,30,0.2);
}

.rp-location-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.rp-location-sub {
    font-size: 11px;
    color: #aaa;
    margin-top: 1px;
}

.rp-refresh-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    transition: background 0.15s;
}

.rp-refresh-btn:active { background: #e0e0e0; }

.rp-refresh-btn.spinning svg {
    animation: spin-counterclockwise 0.8s linear infinite;
}

.rp-api-notice {
    background: #fff8e1;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: #7a6000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.rp-api-notice button {
    background: none;
    border: none;
    color: #007ac9;
    font-family: "HCo Gotham Rounded";
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.rp-section-title {
    font-size: 11px;
    
    color: #aaa;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* ─── Route Cards ────────────────────────────────────────────────────────── */
.rp-card {
    background: white;
    border-radius: var(--rp-card-radius);
    padding: var(--rp-card-pad-v) var(--rp-card-pad-h);
    margin-bottom: var(--rp-card-gap);
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    transition: transform 0.1s;
}

.rp-card:active { transform: scale(0.99); }

.rp-card-loading {
    opacity: 0.6;
}

.rp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    min-width: 0;
}

/* .rp-card-name moved to rp-card-name-row section below */

.rp-card-duration {
    font-size: 24px;
    font-weight: 700;
    color: #007ac9;
    line-height: 1;
}

.rp-card-duration small {
    font-size: 13px;
    font-weight: 500;
    color: #007ac9;
}

.rp-card-spinner {
    font-size: 16px;
    color: #ccc;
    letter-spacing: 2px;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.rp-card-remove {
    background: none;
    border: none;
    color: #ddd;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.rp-card-remove:active { color: #e74c3c; }

.rp-card-legs {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rp-pill {
    display: inline-flex;
    align-items: center;
    font-size: var(--rp-pill-size);
    font-weight: var(--rp-pill-weight);
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
    line-height: 1;
}

.rp-pill-walk {
    background: #f0f0f0;
    color: #555;
}

.rp-pill-transit {
    color: white;
}

.rp-pill-wait {
    background: #fff3e0;
    color: #b84800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
}

.rp-departure {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    flex-wrap: wrap;
}

.rp-departure-badge {
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.rp-departure-info {
    color: #555;
}

.rp-departure-info strong {
    color: #1a1a1a;
}

.rp-departure-stop {
    color: #aaa;
    font-size: 12px;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.rp-card-upd {
    font-size: 10px;
    color: #ccc;
    text-align: right;
    margin-top: 6px;
}

.rp-card-error {
    font-size: 13px;
    color: #aaa;
    padding: 4px 0 6px;
    text-align: center;
}

.rp-card-error small {
    display: block;
    font-size: 11px;
    color: #ccc;
    margin-top: 2px;
    word-break: break-word;
}

.rp-add-btn {
    font-family: "HCo Gotham Rounded";
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px dashed #007ac9;
    border-radius: 20px;
    color: #007ac9;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    transition: background 0.15s;
}

.rp-add-btn:active { background: #f0f8ff; }

.rp-save-dest-btn[hidden] { display: none !important; }

.rp-save-dest-btn {
    font-family: "HCo Gotham Rounded";
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: #f0f8ff;
    border: 1.5px solid #007ac9;
    border-radius: 12px;
    color: #007ac9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 6px 0 10px;
    text-align: center;
    transition: background 0.15s;
}
.rp-save-dest-btn:active { background: #dbeeff; }
.rp-save-dest-btn:disabled { color: #64be1e; border-color: #64be1e; background: #f0fff0; cursor: default; }

.rp-add-btn span {
    font-size: 20px;
    line-height: 1;
}

/* ─── LISÄÄ / Settings View ──────────────────────────────────────────────── */
.lisaa-wrap {
    padding: 76px 16px 100px;
    width: 100%;
    box-sizing: border-box;
}

.settings-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
    margin: 20px 0 8px 4px;
}

.settings-section-title:first-child { margin-top: 0; }

.settings-card {
    background: white;
    border-radius: 16px;
    padding: 4px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}

.settings-row-info {
    flex: 1;
}

.settings-row-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.settings-row-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.settings-row-btn {
    font-family: "HCo Gotham Rounded";
    background: none;
    border: 1px solid #007ac9;
    color: #007ac9;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

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

.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.modal-sheet {
    position: relative;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    z-index: 1;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.modal-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-input {
    font-family: "HCo Gotham Rounded";
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 26px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.modal-input:focus { border-color: #007ac9; }

.modal-search-btn {
    font-family: "HCo Gotham Rounded";
    background: #007ac9;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.modal-map-pick-btn {
    padding: 12px 14px;
    flex-shrink: 0;
}

.modal-back-btn {
    font-family: "HCo Gotham Rounded";
    background: none;
    border: none;
    color: #007ac9;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 10px;
}

.modal-status {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
    min-height: 18px;
}

.modal-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    max-height: 240px;
    overflow-y: auto;
}

.add-dest-result {
    font-family: "HCo Gotham Rounded";
    text-align: left;
    background: #f5f5f7;
    border: none;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.12s;
}

.add-dest-result:active { background: #e8f4ff; color: #007ac9; }

.modal-primary-btn {
    font-family: "HCo Gotham Rounded";
    width: 100%;
    padding: 14px;
    background: #007ac9;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.modal-cancel-btn {
    font-family: "HCo Gotham Rounded";
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.map-picker-container {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 10px;
    border: 1px solid #e0e0e0;
}

.map-picker-addr {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    min-height: 20px;
}

.modal-confirm-btn {
    font-family: "HCo Gotham Rounded";
    width: 100%;
    padding: 13px;
    background: #007ac9;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: opacity 0.15s;
}

.modal-confirm-btn:disabled {
    background: #ccc;
    cursor: default;
}

/* ─── Section row (title + edit toggle) ─────────────────────────────────── */
.rp-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rp-section-row .rp-section-title { margin-bottom: 0; }

.rp-edit-btn {
    font-family: "HCo Gotham Rounded";
    background: none;
    border: 1px solid #ccc;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.rp-edit-btn-active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* ─── Drag handle — always visible, subtle ───────────────────────────────── */
.rp-drag-handle {
    display: block;
    font-size: 13px;
    color: #ddd;
    cursor: grab;
    padding: 2px 8px 2px 0;
    touch-action: none;
    flex-shrink: 0;
    line-height: 1;
    letter-spacing: 1px;
}

.rp-drag-handle:active { cursor: grabbing; }

.rp-drag-placeholder { visibility: hidden; }

/* ─── Card action buttons — appear on long-press ────────────────────────── */
.rp-card { position: relative; touch-action: manipulation; }

.rp-card-actions {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    align-items: center;
    gap: 4px;
    z-index: 10;
    background: rgba(255,255,255,0.97);
    border-radius: 10px;
    padding: 4px 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}

/* Reveal on long-press */
.rp-card.card-editing .rp-card-actions { display: flex; }
/* Dim card content while editing */
.rp-card.card-editing .rp-card-body { opacity: 0.4; }

.rp-action-btn {
    background: none;
    border: none;
    font-size: 17px;
    padding: 4px 7px;
    cursor: pointer;
    line-height: 1;
    border-radius: 7px;
    transition: background 0.12s;
}

.rp-action-btn:active { background: #f0f0f0; }

.rp-pin-btn       { opacity: 0.5; }
.rp-pin-btn.pinned { opacity: 1; }
.rp-rename-btn    { opacity: 0.7; }
.rp-remove-btn    { color: #e74c3c; }
.rp-remove-btn:active { opacity: 0.7; }

/* ─── Pinned card indicator ──────────────────────────────────────────────── */
.rp-card-pinned {
    border-left: 3px solid #fed100;
}

/* ─── Inline rename input ────────────────────────────────────────────────── */
.rp-name-input {
    font-family: "HCo Gotham Rounded";
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    border: none;
    border-bottom: 2px solid #007ac9;
    background: transparent;
    outline: none;
    padding: 0 2px;
    width: 120px;
    min-width: 60px;
    max-width: 180px;
}

/* ─── Place card clickable ───────────────────────────────────────────────── */
.rp-card-place {
    cursor: pointer;
}
.rp-card-place:active { transform: scale(0.98); }

.rp-card-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.rp-card-name {
    font-size: var(--rp-name-size);
    font-weight: var(--rp-name-weight);
    color: var(--rp-name-color);
    letter-spacing: var(--rp-name-spacing);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-card-badge {
    font-size: 10px;
    font-weight: 700;
    color: #00985f;
    background: #e8f7ee;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.rp-card-map-hint {
    font-size: 11px;
    color: #007ac9;
    font-weight: 600;
}

/* ─── Route rows (saved destination cards) ───────────────────────────────── */
.rp-route-row {
    display: flex;
    flex-direction: column;
    gap: var(--rp-row-gap);
    padding: var(--rp-row-pad-v) 0;
}

.rp-route-row + .rp-route-row {
    border-top: 1px solid #f0f0f0;
}

.rp-route-alt { opacity: 1; }

.rp-route-clickable {
    cursor: pointer;
    border-radius: 8px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    transition: background 0.15s;
}

.rp-route-clickable:active { background: #f0f0f0; }

/* Top row: pills on left, arrival time on right */
.rp-route-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rp-route-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

/* Total travel time */
.rp-route-dur {
    font-size: var(--rp-dur-size);
    font-weight: var(--rp-dur-weight);
    color: var(--rp-dur-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.rp-route-dur small {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
}

/* Leave line */
.rp-route-leave {
    font-size: var(--rp-leave-size);
    font-weight: 400;
    color: var(--rp-leave-color);
}

/* ─── Stop card departures ───────────────────────────────────────────────── */
.rp-card-stop { cursor: default; }

.stop-deps {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 6px;
}

.stop-dep-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stop-dep-line {
    color: white;
    font-weight: 500;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 8px;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.stop-dep-dest {
    font-size: 12px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stop-dep-times {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.stop-dep-min {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.stop-dep-min.realtime { color: #00985f; }

.stop-dep-clock {
    font-size: 11px;
    color: #aaa;
}

.stop-empty {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 8px 0;
}

/* ─── HSL Departure Board ────────────────────────────────────────────────── */

.rp-card-stop,
.rp-card-board {
    background: #0D62B8;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.rp-card-stop .rp-card-header,
.rp-card-board .rp-card-header {
    padding: 10px 14px 8px;
    background: #0D62B8;
    border-bottom: none;
    margin-bottom: 0;
}

.rp-card-stop .rp-card-name,
.rp-card-board .rp-card-name {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rp-card-stop .rp-card-badge,
.rp-card-board .rp-card-badge {
    background: rgba(255,255,255,0.18);
    color: white;
    border: none;
}

.rp-card-stop .rp-drag-handle,
.rp-card-board .rp-drag-handle {
    color: rgba(255,255,255,0.45);
}

.rp-card-stop .rp-card-spinner,
.rp-card-board .rp-card-spinner {
    color: rgba(255,255,255,0.6);
}

.rp-card-stop .rp-card-duration,
.rp-card-board .rp-card-duration {
    background: white;
    color: #0D62B8;
    font-size: 15px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 2px;
    line-height: 1.4;
    min-width: unset;
}

.rp-card-stop .rp-card-duration small,
.rp-card-board .rp-card-duration small {
    display: none;
}

.rp-card-stop.card-editing .rp-card-body,
.rp-card-board.card-editing .rp-card-body {
    opacity: 0.25;
}

.rp-card-stop .rp-action-btn,
.rp-card-board .rp-action-btn {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
}

.rp-card-stop .rp-action-btn:active,
.rp-card-board .rp-action-btn:active {
    background: rgba(255,255,255,0.25);
}

.rp-card-stop.rp-card-pinned,
.rp-card-board.rp-card-pinned {
    border-left: 4px solid #fed100;
    background: #0D62B8;
}

.hsl-colheader {
    display: flex;
    align-items: center;
    background: #0D62B8;
    padding: 4px 14px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.hsl-col-linja {
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 72px;
    flex-shrink: 0;
}

.hsl-col-dest {
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex: 1;
}

.hsl-col-time {
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.hsl-rows {
    padding-bottom: 4px;
}

.hsl-row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    min-height: 56px;
    gap: 0;
}

.hsl-row-clickable { cursor: pointer; }
.hsl-row-clickable:active { background: rgba(255,255,255,0.07); }

.hsl-dep-linecode {
    color: white;
    font-size: 22px;
    font-weight: 500;
    width: 72px;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-transform: none;
}

.hsl-dep-info {
    flex: 1;
    min-width: 0;
}

.hsl-dep-headsign {
    color: white;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hsl-dep-via {
    color: white;
    font-size: 12px;
    font-weight: 400;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.hsl-leg-badge {
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hsl-via-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hsl-dep-time {
    color: white;
    font-size: 32px;
    font-weight: 500;
    width: 60px;
    text-align: right;
    flex-shrink: 0;
    line-height: 1;
}

.hsl-dep-time.hsl-time-clock {
    font-size: 19px;
}

.hsl-sep {
    margin: 0 14px;
    border-top: 2px dotted rgba(255,255,255,0.22);
}

.hsl-board-empty {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-align: center;
    padding: 18px 14px;
}

.hsl-board-upd {
    color: rgba(255,255,255,0.38);
    font-size: 10px;
    text-align: right;
    padding: 2px 14px 8px;
}

/* ─── Add destination modal ─────────────────────────────────────────────── */
.modal-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modal-field-opt {
    font-weight: 400;
    text-transform: none;
    color: #bbb;
}

.modal-type-toggle {
    display: flex;
    gap: 8px;
    margin: 14px 0 12px;
}

.type-btn {
    font-family: "HCo Gotham Rounded";
    flex: 1;
    padding: 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
}

.type-btn-active {
    border-color: #007ac9;
    color: #007ac9;
    background: #f0f8ff;
}

.result-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.result-id {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

/* ─── Map Modal ──────────────────────────────────────────────────────────── */
.modal-map-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    background: white;
}

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

.map-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top));
    background: white;
    border-bottom: 1px solid #f0f0f0;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.map-back-btn {
    background: #f5f5f7;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
}

.map-topbar span {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#map-container {
    flex: 1;
    width: 100%;
    min-height: 200px;
}

#route-picker-map {
    flex: 1;
    width: 100%;
    min-height: 200px;
}

/* Destination pin on map */
.map-dest-pin {
    background: #1a1a1a;
    color: white;
    font-family: "HCo Gotham Rounded", sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-dest-pin::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}

/* ─── Map Stop List ──────────────────────────────────────────────────────── */
.map-stop-list {
    height: 240px;
    overflow-y: auto;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.stop-list-separator {
    padding: 7px 16px;
    background: #f0f0f0;
    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #e0e0e0;
}

.stop-list-transit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 2px;
}

.stop-list-badge {
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

.stop-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.stop-list-board,
.stop-list-alight {
    font-weight: 600;
    color: #1a1a1a;
}

.stop-list-intermediate {
    color: #666;
    padding-left: 24px;
    font-size: 12px;
}

.stop-list-more {
    color: #aaa;
    font-size: 12px;
    padding-left: 24px;
    font-style: italic;
}

.stop-list-time {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.stop-list-rt {
    color: #007ac9;
    font-weight: 600;
}

/* ─── Map live badge ─────────────────────────────────────────────────────── */
.map-live-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}
.map-live-badge.live-connecting { background: #f5f5f5; color: #888; }
.map-live-badge.live-active     { background: #e6f9ee; color: #00985f; }
.map-live-badge.live-failed     { background: #fef0f0; color: #c0392b; }

/* ─── Vehicle marker label ───────────────────────────────────────────────── */
.map-vehicle-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: white !important;
    padding: 0 !important;
}

/* ─── RT badge ────────────────────────────────────────────────────────────── */
.rp-rt-badge {
    background: #007ac9;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

/* ─── Language toggle ────────────────────────────────────────────────────── */
.lang-toggle {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lang-btn-active {
    background: #007ac9;
    color: white;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes spin-counterclockwise {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── Dark mode: force light theme ──────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    html, body, .view:not(.smurff-view), #view-liput {
        background-color: white !important;
        color: black !important;
    }
}

