* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: transparent;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

#sdk-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* POI Marker */
.poi-marker {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.poi-marker:hover {
    transform: scale(1.2);
}

/* Popup styling */
.maplibregl-popup-content {
    padding: 0;
    border-radius: var(--border-radius-md, 8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.poi-popup {
    padding: 12px 16px;
    min-width: 200px;
    max-width: 300px;
}

.poi-popup h3 {
    margin: 0 0 8px 0;
    font-size: var(--font-heading-sm-size, 16px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-primary, #000);
}

.poi-popup p {
    margin: 4px 0;
    font-size: var(--font-text-sm-size, 14px);
    color: var(--color-text-secondary, #666);
}

.poi-popup .address {
    color: var(--color-text-primary, #000);
}

.poi-popup .phone {
    font-family: var(--font-mono, monospace);
}

.poi-popup .categories {
    font-style: italic;
    color: var(--color-text-tertiary, #999);
}

.poi-popup a {
    color: var(--color-accent, #3b82f6);
    text-decoration: none;
}

.poi-popup a:hover {
    text-decoration: underline;
}

/* Close button styling */
.maplibregl-popup-close-button {
    padding: 4px 8px;
    font-size: 18px;
    color: var(--color-text-secondary, #666);
}

.maplibregl-popup-close-button:hover {
    background: transparent;
    color: var(--color-text-primary, #000);
}

/* ── Reachable Range Options Panel ── */
.range-options {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-size: 13px;
    color: #333;
}

.range-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid #e53935;
}

.range-options-header .chevron {
    transition: transform 0.2s;
}

.range-options-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.range-options-body {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range-options-body label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 500;
    font-size: 12px;
    color: #555;
}

.range-options-body select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: auto;
    appearance: auto;
}

.range-options-body select:hover {
    border-color: #999;
}

.range-options-body select:focus {
    border-color: #e53935;
}

.range-options-body select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.range-section {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.range-section-title {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.range-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.range-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #eee;
    border-bottom-color: #e53935;
    border-radius: 50%;
    animation: range-spin 0.8s linear infinite;
}

@keyframes range-spin {
    to { transform: rotate(360deg); }
}
