--- ---

/* Ensure full viewport map */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#map {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 100vh;
}

/* Marker container */
.custom-alpr-marker {
    background: transparent;
    border: none;
}

/* Rotated camera wrapper */
.alpr-rotated {
    transform-origin: 32px 48px;
    width: 64px;
    height: 64px;
}

/* Dot marker (no direction) */
.alpr-dot {
    width: 14px;
    height: 14px;
    background-color: #dc2626;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Popup styling */
.alpr-popup {
    font-family: sans-serif;
    min-width: 180px;
}

.alpr-popup h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

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

.alpr-popup .osm-link {
    display: inline-block;
    margin-top: 10px;
    color: #0078A8;
    text-decoration: none;
    font-weight: bold;
}

.alpr-popup .osm-link:hover {
    text-decoration: underline;
}

/* Routing Panel */
.route-control-container {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    font-family: sans-serif;
    width: 280px;
    position: relative;
    cursor: auto;
}

.route-header {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

.route-header:after {
    content: '▼';
    font-size: 12px;
}

.route-control-container.collapsed .route-header:after {
    content: '▲';
}

.route-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.route-control-container.collapsed .route-body {
    display: none;
}

.route-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.route-input-group input {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
    background: #f0f0f0;
}

.route-options {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    color: #000;
}

.route-checkbox {
    appearance: auto;
    -webkit-appearance: auto;
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0078A8;
}

.route-btn {
    padding: 8px;
    background-color: #0078A8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.route-btn:hover {
    background-color: #005a7d;
}

.route-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.route-info {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    font-size: 13px;
    color: darkred;
}
