:root {
    --brand-color: #F04E40;
    --brand-dark: #d94438;
    --brand-light: #fdeeea;
    --brand-soft: #fff5f4;
}

/*body {
    font-family: 'Almarai', sans-serif;
    background-color: #f8f9fa;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
}*/

.bg-brand { background-color: var(--brand-color); }
.text-brand { color: var(--brand-color); }
.border-brand { border-color: var(--brand-color); }
.bg-brand-soft { background-color: var(--brand-soft); }
.bg-warning-soft { background-color: #fff9e6; }
.bg-success-soft { background-color: #e6f4ea; }
.bg-orange-soft { background-color: #fff7ed; }
.text-orange { color: #f97316; }

.sidebar {
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
}

.map-view {
    height: calc(100vh - 64px);
    background-color: #e5e3df;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.05);
}

#map-scroller {
    width: 100%;
    height: 100%;
    overflow: auto; /* The actual scroller */
}

#map-container {
    width: 3000px; /* Large map area */
    height: 2000px;
    position: relative;
    cursor: grab;
    background-color: #e5e3df;
}

#map-container:active {
    cursor: grabbing;
}

/* Simulated Map Grid */
.map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        linear-gradient(#000 1px, transparent 1px),
        linear-gradient(90deg, #000 1px, transparent 1px);
    background-size: 50px 50px;
}

.station-card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #dee2e6;
    background: white;
}

.station-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: var(--brand-color);
}

.station-card.active {
    border-color: var(--brand-color);
    background-color: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand-color);
}

.marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.marker.active {
    transform: translate(-50%, -100%) scale(1.2);
    z-index: 100;
}

.marker-label {
    border: 1px solid #f1f3f4;
    white-space: nowrap;
}

.detail-card {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
    border-radius: 1.5rem !important;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.fuel-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
}

.fuel-91 { background-color: #e6f4ea; color: #1e7e34; border: 1px solid #c3e6cb; }
.fuel-95 { background-color: #fce8e6; color: #d93025; border: 1px solid #f5c6cb; }
.fuel-diesel { background-color: #f1f3f4; color: #3c4043; border: 1px solid #dee2e6; }
.fuel-ev { background-color: #e8f0fe; color: #1967d2; border: 1px solid #d2e3fc; }

.search-input {
    border-radius: 0.75rem;
    padding-left: 3rem !important;
    border: 2px solid transparent;
    background-color: var(--brand-soft);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--brand-color);
    box-shadow: none;
    background-color: white;
}

.smart-search-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-color);
    z-index: 5;
}

.btn-brand {
    background-color: var(--brand-color);
    color: white;
}
.btn-brand:hover {
    background-color: var(--brand-dark);
    color: white;
}

.btn-white {
    background-color: white;
    color: #333;
    border: 1px solid #eee;
}
.btn-white:hover {
    background-color: #f8f9fa;
}

.btn-close-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 20;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-close-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

.btn-close-circle i {
    font-size: 1.5rem;
    color: #333;
    line-height: 1;
}

@media (max-width: 768px) {
    body { overflow-y: auto; height: auto; }
    .sidebar { height: auto; border-left: none; }
    .map-view { height: 60vh; overflow: hidden; }
    .detail-card { top: 1rem; z-index: 2000;}
}
