﻿
.marker-wrapper1 {
    position: absolute;
    transform: translate(0%, -100%);
}

.pm-flag {
    position: relative;
    line-height: 25px;
    text-align: left;
    padding-left: 5px;
    min-width: 90px;
    min-height: 25px;
    border-radius: 5px 5px 5px 0;
    color: #fff;
    background: var(--flag-color);
}

.pm-flag::after {
    content: '';
    position: absolute;
    width: 0;
    border-style: solid;
    border-width: 13px 13px 0px 0;
    border-color: var(--flag-color) transparent transparent transparent;
    bottom: -12px;
    left: 0%;
}

.pm-flag.hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, .5)
}

.pm-flag.hover::after {
}

.driver-icon {
    background: url(../images/courier-driver.png);
    background-size: cover;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border-style: solid;
    border-color: black;
    background-color: var(--driver-color);
}

.driver-icon::before {
    content: '';
    position: absolute;
    bottom: -8.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 18px solid black;
    border-color: black transparent transparent transparent;
}

.driver-icon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 14px solid black;
    border-color: var(--driver-color) transparent transparent transparent;
}

.driver-icon.hover {
    background-color: var(--sprinttek-secondary) !important;
}

.driver-icon.hover::after {
    border-color: var(--sprinttek-secondary) transparent transparent transparent;
}

.flag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}

.flag-label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.expand-btn, .showlist-btn {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.expand-btn {
    border-radius: 4px 0 0 4px;
}

.expand-btn:hover, .showlist-btn :hover {
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.stop-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 24px;
    padding: 0 6px;
    color: #fff;
    background-color: var(--flag-color);
    border-radius: 5px 5px 0 0;
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
}

.stop-bubble::after {
    content: '';
    position: absolute;
    bottom: -11px;
    inset-inline: 0;
    margin-inline: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 12px 0 12px;
    border-color: var(--flag-color) transparent transparent transparent;
}


.marker-wrapper .stop-bubble.hover {
    background-color: var(--sprinttek-secondary) !important;
    border-color: var(--sprinttek-darkgrey);
}

.marker-wrapper .stop-bubble.hover::before {
    border-color: var(--sprinttek-darkgrey) transparent transparent transparent;
}

.marker-wrapper .stop-bubble.hover::after {
    border-color: var(--sprinttek-secondary) transparent transparent transparent;
}


.driver-legends:hover {
    cursor: pointer;
}

.notif-bubble {
    position: relative;
    background: #24A9F0;
    color: white;
    padding: 8px 12px;
    width: 180px;
    border-radius: 10px;
    margin-bottom: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.notif-title {
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.notif-title .icon {
    margin-right: 5px;
}

.notif-message {
    font-size: 11px;
    margin-top: 2px;
}

.notif-close {
    position: absolute;
    right: 6px;
    top: 4px;
    cursor: pointer;
}

.info-card {
    font-family: Arial, sans-serif;
    max-width: 300px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.info-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #2c3e50;
}

.info-sub {
    font-size: 14px;
    margin-bottom: 8px;
    color: #34495e;
}

.info-body p {
    margin: 4px 0;
    font-size: 13px;
    color: #555;
}

.info-actions {
    text-align: right;
    margin-top: 10px;
}

.badge-waiting {
    background-color: #ffedd5;
    color: #9a3412;
}

.badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-latest {
    background-color: #e0f2fe;
    color: #075985;
}

.badge-ontime {
    background-color: #f0fdf4;
    color: #14532d;
}

.stat-box {
    background: #f3f4f6;
    border-radius: .5rem;
    padding: .75rem 0;
    font-weight: 600;
}

.info-window-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;
    border-radius: 8px 8px 0 0;
    padding: 16px;
    color: white;
}

.header-overlay {
    position: relative;
    z-index: 2;
}

.info-window-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

.btn-close-white {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.btn-close-white:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.info-window-body {
    background: white;
    border-radius: 0 0 8px 8px;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.badge-active {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-latest {
    background: #cce5ff;
    color: #004085;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-ontime {
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-waiting {
    background: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .info-window-header {
        min-height: 100px;
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }
}
