.wc300-ahead {
    border: 1px solid #d8ded8;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    color: #1d2822;
    font-family: inherit;
}

.wc300-ahead * {
    box-sizing: border-box;
}

.wc300-ahead__header h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.wc300-ahead__header p {
    margin: 0 0 14px;
    color: #53635a;
}

.wc300-ahead__actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.wc300-ahead__actions--wrap {
    flex-wrap: wrap;
}

.wc300-ahead__filters {
    display: grid;
    gap: 12px;
    margin: 12px 0;
}

.wc300-ahead__filter-group {
    display: grid;
    gap: 7px;
}

.wc300-ahead__filter-heading {
    color: #53635a;
    font-size: .92rem;
    font-weight: 700;
}

.wc300-ahead__filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc300-ahead__button {
    min-height: 40px;
    border: 1px solid #24483a;
    border-radius: 6px;
    padding: 8px 12px;
    background: #24483a;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.wc300-ahead__button:hover,
.wc300-ahead__button:focus {
    background: #183227;
}

.wc300-ahead__button--choice {
    background: #eef4f1;
    color: #1d2822;
}

.wc300-ahead__button--choice:hover,
.wc300-ahead__button--choice:focus,
.wc300-ahead__button--choice.is-selected {
    background: #24483a;
    color: #fff;
}

.wc300-ahead__status,
.wc300-ahead__summary {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #eef4f1;
}

.wc300-ahead__places {
    display: grid;
    gap: 10px;
}

.wc300-ahead__card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    border: 1px solid #e0e5e1;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.wc300-ahead__card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    background: #eef4f1;
}

.wc300-ahead__image-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 6px;
    background: #eef4f1;
}

.wc300-ahead__card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.25;
}

.wc300-ahead__card p {
    margin: 0;
    color: #53635a;
    font-size: .92rem;
}

.wc300-ahead__test {
    margin-top: 16px;
    border-top: 1px solid #e0e5e1;
    padding-top: 12px;
}

.wc300-ahead__test summary {
    cursor: pointer;
    font-weight: 700;
}

.wc300-ahead__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.wc300-ahead__grid label {
    display: grid;
    gap: 4px;
    font-size: .9rem;
}

.wc300-ahead__grid .wc300-ahead__check {
    grid-template-columns: auto 1fr;
    align-content: end;
    align-items: center;
}

.wc300-ahead__grid input,
.wc300-ahead__grid select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #c9d2cc;
    border-radius: 6px;
    padding: 7px 9px;
    font: inherit;
}

.wc300-ahead__control-panel {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e0e5e1;
    border-radius: 8px;
    background: #f8fbf9;
}

.wc300-ahead__control-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #53635a;
    font-size: .92rem;
}

.wc300-ahead__control-heading strong {
    color: #1d2822;
}

.wc300-ahead__segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc300-ahead__range-label {
    display: grid;
    gap: 6px;
    font-size: .9rem;
}

.wc300-ahead__range-label input {
    width: 100%;
    accent-color: #24483a;
}

.wc300-ahead__route-distance {
    color: #53635a;
    font-size: .9rem;
}

.wc300-ahead__debug-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.wc300-ahead__map-panel {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.wc300-ahead__map-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #53635a;
    font-size: .92rem;
}

.wc300-ahead__map {
    width: 100%;
    height: 560px;
    border: 1px solid #c9d2cc;
    border-radius: 8px;
    overflow: hidden;
    background: #eef4f1;
}

.wc300-ahead__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #53635a;
    font-size: .86rem;
}

.wc300-ahead__legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wc300-ahead__legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
}

.wc300-ahead__legend-dot--you {
    background: #0b5fff;
}

.wc300-ahead__legend-dot--snap {
    background: #fff;
    border: 2px solid #111915;
}

.wc300-ahead__legend-dot--ahead {
    background: #d86a1f;
}

.wc300-ahead__legend-dot--passed {
    background: #a4ada8;
}

.wc300-ahead__debug-panel pre {
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border-radius: 6px;
    background: #111915;
    color: #dce8e1;
    font-size: 12px;
}

.wc300-ahead__card.is-highlighted {
    border-color: #d86a1f;
    box-shadow: 0 0 0 2px rgba(216, 106, 31, .2);
}

.wc300-ahead-map-marker {
    cursor: pointer;
}

.wc300-ahead-marker-pin {
    min-width: 86px;
    min-height: 28px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    background: #0b5fff;
    color: #fff;
    font: 700 12px/1 inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.wc300-ahead-current-marker {
    position: relative;
    width: 128px;
    height: 62px;
    display: grid;
    justify-items: center;
    align-items: end;
    pointer-events: none;
}

.wc300-ahead-current-marker__pulse {
    position: absolute;
    bottom: 4px;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(11, 95, 255, .45);
    border-radius: 999px;
    animation: wc300-ahead-pulse 1.4s ease-out infinite;
}

.wc300-ahead-current-marker__dot {
    position: absolute;
    bottom: 12px;
    width: 26px;
    height: 26px;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #0b5fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}

.wc300-ahead-current-marker__label {
    position: absolute;
    bottom: 43px;
    min-width: 92px;
    border-radius: 999px;
    padding: 5px 9px;
    background: #0b5fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

@keyframes wc300-ahead-pulse {
    0% {
        transform: scale(.65);
        opacity: .9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.wc300-ahead-marker-pin--muted {
    width: 14px;
    height: 14px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 999px;
    background: #585f5a;
    opacity: .55;
}

.wc300-ahead-marker-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: block;
    background: #fff;
    border: 3px solid #111915;
    box-shadow: 0 0 0 4px rgba(17, 25, 21, .15);
}

.wc300-ahead__map-panel[hidden] {
    display: none;
}

.wc300-ahead-place-pin {
    appearance: none;
    box-sizing: border-box;
    width: 28px !important;
    height: 28px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #d86a1f;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .28);
    font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1;
    pointer-events: auto;
    text-align: center;
    user-select: none;
}

.wc300-ahead-place-pin span {
    display: block;
    width: auto;
    height: auto;
    pointer-events: none;
}

.wc300-ahead-map-marker--passed .wc300-ahead-place-pin {
    background: #8d9992;
    opacity: .62;
}

.wc300-ahead-marker-skipped {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: block;
    background: #8d9992;
    opacity: .58;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}

.wc300-ahead-popup {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 8px;
    align-items: center;
    color: #1d2822;
    font-family: inherit;
}

.wc300-ahead-popup img,
.wc300-ahead-popup__placeholder {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: #eef4f1;
}

.wc300-ahead-popup strong,
.wc300-ahead-popup span {
    display: block;
    line-height: 1.25;
}

.wc300-ahead-popup span {
    margin-top: 3px;
    color: #53635a;
    font-size: 12px;
}

:root {
    --wc300-primary: #0B3C5D;
    --wc300-secondary: #95C11F;
    --wc300-text: #1A1A1A;
    --wc300-accent: #1FA3A6;
    --wc300-accent-2: #F2C576;
    --wc300-bg: #FBF9EF;
    --wc300-muted: #667085;
    --wc300-border: rgba(11, 60, 93, 0.14);
    --wc300-shadow-soft: 0 10px 30px rgba(11, 60, 93, 0.18);
    --wc300-shadow-card: 0 8px 22px rgba(11, 60, 93, 0.10);
    --wc300-radius-lg: 28px;
    --wc300-radius-md: 20px;
    --wc300-radius-pill: 999px;
}

.wc300-ahead-public {
    position: relative;
    z-index: 999;
    color: var(--wc300-text);
    font-family: Roboto, Arial, sans-serif;
}

.wc300-ahead-public h2,
.wc300-ahead-public h3 {
    margin: 0;
    color: var(--wc300-primary);
}

.wc300-ahead-public h2 {
    font-family: "Roboto Serif", Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.wc300-ahead-public h3 {
    font-family: "Roboto Serif", Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.15;
}

.wc300-ahead-public button {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
}

.wc300-ahead-floating-button {
    position: fixed;
    right: 18px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 36px) !important;
    height: auto !important;
    min-height: 50px !important;
    max-height: 54px !important;
    padding: 8px 8px 8px 16px !important;
    border: 0;
    border-radius: var(--wc300-radius-pill) !important;
    background: linear-gradient(135deg, #0B3C5D, #062f49) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(11, 60, 93, 0.28);
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.wc300-ahead-floating-icon {
    flex: 0 0 auto;
    opacity: 0.92;
}

.wc300-ahead-floating-label {
    flex: 0 1 auto;
    white-space: nowrap;
}

.wc300-ahead-floating-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: var(--wc300-radius-pill) !important;
    background: #1FA3A6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.wc300-ahead-test-floating-button,
.wc300-ahead-test-location-pill {
    position: fixed;
    right: 18px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1003;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 36px) !important;
    min-height: 38px !important;
    max-height: 42px !important;
    padding: 7px 13px !important;
    border: 1px solid rgba(11, 60, 93, 0.16);
    border-radius: var(--wc300-radius-pill) !important;
    background: rgba(251, 249, 239, 0.92) !important;
    color: var(--wc300-primary) !important;
    box-shadow: 0 8px 22px rgba(11, 60, 93, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.wc300-ahead-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 22, 34, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wc300-ahead-panel {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1001;
    width: min(92vw, 480px);
    max-height: min(78vh, 720px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: var(--wc300-radius-lg);
    background: rgba(251, 249, 239, 0.94);
    box-shadow: var(--wc300-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.wc300-ahead-public.is-open .wc300-ahead-floating-button,
.wc300-ahead-public.is-open .wc300-ahead-test-floating-button {
    display: none;
}

.wc300-ahead-backdrop[hidden],
.wc300-ahead-panel[hidden],
.wc300-ahead-test-modal[hidden],
.wc300-ahead-empty[hidden],
.wc300-ahead-view-all[hidden] {
    display: none;
}

.wc300-ahead-handle {
    width: 54px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: var(--wc300-radius-pill);
    background: rgba(11, 60, 93, 0.18);
}

.wc300-ahead-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.wc300-ahead-route-context {
    margin: 7px 0 0;
    color: var(--wc300-muted);
    font-size: 14px;
    line-height: 1.35;
}

.wc300-ahead-route-context span:last-child {
    color: var(--wc300-accent);
    font-weight: 600;
}

.wc300-ahead-header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.wc300-ahead-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(11, 60, 93, 0.10);
    border-radius: var(--wc300-radius-pill) !important;
    background: rgba(255, 255, 255, 0.84) !important;
    color: var(--wc300-primary) !important;
    box-shadow: 0 5px 16px rgba(11, 60, 93, 0.10);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wc300-ahead-location-row {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.wc300-ahead-location-button {
    width: fit-content;
    min-height: 36px !important;
    padding: 0 15px !important;
    border: 0;
    border-radius: var(--wc300-radius-pill) !important;
    background: var(--wc300-accent) !important;
    color: #fff !important;
    box-shadow: 0 5px 13px rgba(31, 163, 166, 0.18);
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    cursor: pointer;
}

.wc300-ahead-status {
    margin: 0;
    color: var(--wc300-muted);
    font-size: 15px;
    line-height: 1.45;
}

.wc300-ahead-test-label {
    width: fit-content;
    margin: 0;
    padding: 4px 8px;
    border: 1px dashed rgba(11, 60, 93, 0.14);
    border-radius: var(--wc300-radius-pill);
    background: rgba(255, 255, 255, 0.44);
    color: var(--wc300-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.wc300-ahead-test-label[hidden] {
    display: none;
}

.wc300-ahead-chip-section {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
}

.wc300-ahead-chip-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0;
    width: 64px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(251, 249, 239, 0), rgba(251, 249, 239, 0.58) 48%, rgba(251, 249, 239, 0.94) 100%);
}

.wc300-ahead-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 64px 5px 2px;
    scrollbar-width: none;
    scroll-padding-right: 64px;
    -webkit-overflow-scrolling: touch;
}

.wc300-ahead-chip-row::-webkit-scrollbar {
    display: none;
}

.wc300-ahead-chip {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid var(--wc300-border);
    border-radius: var(--wc300-radius-pill) !important;
    background: rgba(255, 255, 255, 0.70) !important;
    color: var(--wc300-primary) !important;
    box-shadow: 0 3px 10px rgba(11, 60, 93, 0.05);
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.wc300-ahead-chip.is-active {
    border-color: transparent;
    background: var(--wc300-accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(31, 163, 166, 0.20);
}

.wc300-ahead-time-chip {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding-inline: 16px !important;
}

.wc300-ahead-window-label {
    margin: 2px 0 10px;
    color: var(--wc300-muted);
    font-size: 13px;
    font-weight: 500;
}

.wc300-ahead-results {
    display: grid;
    gap: 10px;
}

.wc300-ahead-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(11, 60, 93, 0.08);
    border-radius: var(--wc300-radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--wc300-shadow-card);
    color: inherit;
    text-decoration: none;
}

.wc300-ahead-card-image-wrap {
    position: relative;
    width: 132px;
    height: 108px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.12), rgba(31, 163, 166, 0.16));
}

.wc300-ahead-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc300-ahead-time-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: var(--wc300-radius-pill);
    background: rgba(11, 60, 93, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.wc300-ahead-card-body {
    min-width: 0;
    align-self: center;
}

.wc300-ahead-card-type {
    margin: 4px 0 0;
    color: var(--wc300-accent);
    font-size: 13px;
    font-weight: 600;
}

.wc300-ahead-card-meta {
    margin: 4px 0 0;
    color: var(--wc300-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.wc300-ahead-card-meta strong {
    color: var(--wc300-accent);
    font-weight: 700;
}

.wc300-ahead-card-chevron {
    align-self: center;
    justify-self: center;
    color: var(--wc300-primary);
    font-size: 24px;
    line-height: 1;
    opacity: 0.58;
}

.wc300-ahead-empty {
    padding: 18px;
    border: 1px solid var(--wc300-border);
    border-radius: var(--wc300-radius-md);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.wc300-ahead-empty p {
    margin: 0 0 4px;
    color: var(--wc300-primary);
    font-weight: 600;
}

.wc300-ahead-empty span {
    color: var(--wc300-muted);
    font-size: 14px;
}

.wc300-ahead-view-all {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 0;
    border-radius: var(--wc300-radius-pill);
    background: transparent;
    color: var(--wc300-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.wc300-ahead-test-modal {
    position: fixed;
    inset: 0;
    z-index: 1003;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 22, 34, 0.26);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wc300-ahead-test-card {
    width: min(90vw, 360px);
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--wc300-shadow-soft);
}

.wc300-ahead-test-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.wc300-ahead-test-card p {
    margin: 0 0 10px;
    color: var(--wc300-muted);
    font-size: 14px;
    line-height: 1.4;
}

.wc300-ahead-test-card button {
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
    border: 0;
    border-radius: var(--wc300-radius-pill);
    background: rgba(11, 60, 93, 0.06);
    color: var(--wc300-primary);
    font-weight: 600;
    cursor: pointer;
}

.wc300-ahead-test-card header button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    border-radius: 50%;
    background: rgba(11, 60, 93, 0.08);
    font-size: 20px;
}

.wc300-ahead-real-location {
    background: var(--wc300-primary) !important;
    color: #fff !important;
}

@media (max-width: 380px) {
    .wc300-ahead-panel {
        width: calc(100vw - 20px);
        padding: 14px;
    }

    .wc300-ahead-card {
        grid-template-columns: 112px minmax(0, 1fr) 16px;
    }

    .wc300-ahead-card-image-wrap {
        width: 112px;
        height: 102px;
    }

    .wc300-ahead-public h2 {
        font-size: 30px;
    }
}

.wc300-ahead-map-marker.is-highlighted .wc300-ahead-place-pin,
.wc300-ahead-map-marker.is-highlighted .wc300-ahead-marker-pin,
.wc300-ahead-map-marker.is-highlighted .wc300-ahead-marker-skipped {
    transform: scale(1.25);
    opacity: 1;
    z-index: 5;
    box-shadow: 0 0 0 5px rgba(216, 106, 31, .25), 0 3px 10px rgba(0, 0, 0, .35);
}

.wc300-home-route-map-card {
    position: relative;
    width: min(100%, 1180px);
    min-height: 360px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(11, 60, 93, 0.14);
    border-radius: clamp(22px, 3vw, 34px);
    background:
        radial-gradient(circle at 22% 18%, rgba(149, 193, 31, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(251, 249, 239, 0.96), rgba(240, 250, 249, 0.92));
    box-shadow: 0 24px 70px rgba(8, 32, 48, 0.18);
    isolation: isolate;
}

.wc300-home-route-map-card__map {
    width: 100%;
    height: clamp(360px, 54vw, 620px);
    background: linear-gradient(145deg, rgba(11, 60, 93, 0.08), rgba(31, 163, 166, 0.08));
}

.wc300-home-route-map-card--fallback {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 32px;
    text-align: center;
}

.wc300-home-route-map-card--fallback p {
    max-width: 32rem;
    margin: 0;
    color: var(--wc300-primary);
    font-weight: 700;
    line-height: 1.4;
}

.wc300-home-route-map-card .mapboxgl-ctrl-logo {
    opacity: 0.56;
}

.wc300-home-route-map-card .mapboxgl-ctrl-attrib {
    opacity: 0.64;
    font-size: 10px;
}

.wc300-home-route-map__marker {
    position: relative;
    display: grid;
    place-items: center;
    opacity: .56;
    transition: opacity 260ms ease, filter 260ms ease;
}

.wc300-home-route-map__marker-badge {
    display: grid;
    width: clamp(28px, 3vw, 38px);
    height: clamp(28px, 3vw, 38px);
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 249, 248, 0.86));
    box-shadow: 0 10px 26px rgba(8, 32, 48, 0.2), inset 0 0 0 2px rgba(31, 163, 166, 0.16);
    color: var(--wc300-primary);
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 900;
    line-height: 1;
    transition: background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.wc300-home-route-map__marker-label {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    width: max-content;
    max-width: 170px;
    padding: 5px 9px;
    border: 1px solid rgba(26, 26, 26, 0.9);
    border-radius: 999px;
    background: rgba(251, 249, 239, 0.9);
    box-shadow: 0 10px 24px rgba(8, 32, 48, 0.18);
    color: var(--wc300-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.15;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 4px);
    transition: opacity 220ms ease, transform 220ms ease;
    white-space: nowrap;
}

.wc300-home-route-map__marker.is-active {
    opacity: 1;
    filter: saturate(1.1);
    z-index: 4;
}

.wc300-home-route-map__marker.is-active .wc300-home-route-map__marker-badge {
    background: linear-gradient(145deg, #fbf9ef, #e6f4b7);
    box-shadow: 0 14px 34px rgba(8, 32, 48, 0.28), 0 0 0 6px rgba(149, 193, 31, 0.24), inset 0 0 0 2px rgba(149, 193, 31, 0.42);
    transform: scale(1.18);
}

.wc300-home-route-map__marker.is-active .wc300-home-route-map__marker-label {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wc300-home-route-map__marker.is-completed {
    opacity: .42;
    filter: saturate(.65) blur(.1px);
}

.wc300-home-route-map__segment-label {
    position: absolute;
    top: clamp(14px, 2vw, 22px);
    left: clamp(14px, 2vw, 24px);
    z-index: 3;
    max-width: min(58%, 360px);
    padding: 8px 12px;
    border: 1px solid rgba(26, 26, 26, 0.9);
    border-radius: 999px;
    background: rgba(251, 249, 239, .86);
    box-shadow: 0 12px 30px rgba(8, 32, 48, .16);
    color: var(--wc300-primary);
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 900;
    line-height: 1.2;
    pointer-events: none;
}

.wc300-home-route-map__vehicle {
    position: relative;
    width: 54px;
    height: 54px;
    z-index: 6;
    pointer-events: none;
}

.wc300-home-route-map__vehicle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 28%, #164d6d, #0b3c5d 62%, #082b43);
    box-shadow: 0 14px 30px rgba(8, 32, 48, 0.34), 0 0 0 8px rgba(11, 60, 93, 0.2);
    color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 120ms linear;
}

.wc300-home-route-map__vehicle-icon svg {
    display: block;
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 720px) {
    .wc300-home-route-map-card {
        border-radius: 24px;
    }

    .wc300-home-route-map-card__map {
        height: min(96vw, 500px);
        min-height: 340px;
    }

    .wc300-home-route-map__vehicle {
        width: 46px;
        height: 46px;
    }

    .wc300-home-route-map__vehicle-icon {
        width: 40px;
        height: 40px;
    }

    .wc300-home-route-map__vehicle-icon svg {
        width: 25px;
        height: 25px;
    }

    .wc300-home-route-map__marker-label {
        display: none;
    }

    .wc300-home-route-map__segment-label {
        display: none;
    }
}

@media (max-width: 720px) {
    .wc300-ahead {
        padding: 14px;
    }

    .wc300-ahead__grid {
        grid-template-columns: 1fr;
    }

    .wc300-ahead__card {
        grid-template-columns: 72px 1fr;
    }

    .wc300-ahead__card img {
        width: 72px;
        height: 72px;
    }

    .wc300-ahead__map {
        height: 400px;
    }

    .wc300-ahead__map-heading {
        display: grid;
    }

    .wc300-ahead__control-heading {
        display: grid;
    }
}
