/* Explain: Stílusok a buszos utazástervezőhöz, térképhez és kapcsolatfelvételhez. */
/* A buszos utazástervező, térkép, járműgaléria és kapcsolatfelvétel közös elemei. */
.fkk-field {
    display: grid;
    min-width: 0;
    gap: .48rem;
    font-size: .84rem;
    font-weight: 650;
    color: var(--text-color);
}
.fkk-field :is(input, select, textarea) {
    min-height: 2.9rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: .65rem;
    background-color: var(--field-bg);
    color: var(--text-color);
    font: inherit;
    font-weight: 500;
}
.fkk-field :is(input, select, textarea):focus-visible,
.fleet-thumb:focus-visible,
.map-viewport:focus-visible,
.network-link:focus-visible,
.btn:is(.fkk-primary, .fkk-secondary, .fkk-gold, .fkk-dark-outline):focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
.btn:is(.fkk-primary, .fkk-secondary, .fkk-gold, .fkk-dark-outline) {
    min-height: 2.75rem;
    height: auto;
    padding: .7rem 1.1rem;
    border-radius: 2rem;
    line-height: 1.35;
    white-space: normal;
}
.btn.fkk-primary { background: var(--primary-color); color: var(--text-on-dark); border-color: var(--primary-color); }
.btn.fkk-secondary { background: var(--surface-color); color: var(--primary-color); border-color: var(--border-color); }
.btn.fkk-gold { background: var(--accent-color); color: var(--primary-deep); border-color: var(--accent-color); }
.btn.fkk-dark-outline { background: transparent; color: var(--text-on-dark); border-color: var(--border-on-dark); }
.btn.fkk-secondary:hover, .btn.fkk-dark-outline:hover { border-color: var(--accent-color); }
.btn.fkk-primary:hover { background: var(--primary-dark); }
.btn.fkk-gold:hover { background: var(--accent-bright); }
.network-link { color: var(--primary-color); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.trip-leg { margin-top: 1rem; padding-left: 1rem; border-left: 3px solid var(--accent-color); }
.map-viewport {
    position: relative;
    height: clamp(22rem, 52vh, 38rem);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border-color);
    border-radius: .85rem;
    background-color: var(--background-color);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 16px 16px;
    scrollbar-color: var(--text-muted) var(--surface-soft);
    cursor: grab;
}
.map-viewport:active { cursor: grabbing; }
#busMap { display: block; max-width: none; margin: auto; user-select: none; }
.map-line, .map-node { cursor: pointer; }
.map-hit { fill: none; stroke: transparent; stroke-width: 22; }
.map-track { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.map-line-name, .map-station-name {
    font: 700 14px var(--font-body);
    fill: var(--text-color);
    text-anchor: middle;
    paint-order: stroke;
    stroke: var(--background-color);
    stroke-width: 5;
    stroke-linejoin: round;
}
.map-line-name { fill: currentColor; }
.map-target { fill: transparent; }
.map-dot { fill: var(--surface-color); stroke: var(--primary-deep); stroke-width: 2.5; }
.map-dim { opacity: .27; }
.map-picked .map-track, .map-line:focus-visible .map-track { stroke-width: 8; }
.map-picked .map-dot, .map-node:focus-visible .map-dot { fill: var(--accent-bright); }
.map-line:focus-visible, .map-node:focus-visible { outline: 2px dashed var(--primary-color); }
.map-stops { border-left: 2px solid var(--accent-color); padding-left: 1rem; }
.map-stops button { min-height: 2.75rem; text-align: left; }
.fleet-thumb { overflow: hidden; border: 1px solid var(--border-color); border-radius: .75rem; background: var(--surface-soft); }
.fleet-thumb img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.fleet-stage { display: grid; place-items: center; min-height: 12rem; border-radius: 1rem; background: var(--primary-deep); color: var(--text-on-dark); }
.fleet-stage img { max-height: 60vh; width: 100%; object-fit: contain; }
#fleetLightbox::backdrop { background: color-mix(in srgb, var(--primary-deep) 78%, transparent); }