/* Map Section Specific Styles */
.map-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.map-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Map Filters */
.map-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.map-filters .filter-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
}

.map-filters .filter-group h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.map-filters .filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-filters .filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* Map Container */
#map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    background: #fff;
}

/* Station Popup Styles */
.station-popup {
    padding: 0;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.station-popup .station-header {
    background: linear-gradient(135deg, #F15E23, #ff7b47);
    color: white;
    padding: 15px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.station-popup .station-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.station-popup .station-brand {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.station-popup .station-brand img {
    height: 30px;
    margin-right: 10px;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

.station-popup .station-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
    position: relative;
    z-index: 1;
}

.station-popup .station-address,
.station-popup .station-city {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.station-popup .station-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-top: 8px;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}

.station-popup .station-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

.station-popup .station-info {
    padding: 12px;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.station-popup .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #555;
}

.station-popup .info-item i {
    color: #F15E23;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.station-popup .station-sections {
    padding: 12px;
    background: #f8f9fa;
    overflow-y: auto;
    max-height: 400px;
}

.station-popup .section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-popup .section-title i {
    color: #F15E23;
    font-size: 14px;
}

.station-popup .station-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 12px;
    width: 100%;
}

.station-popup .station-fuels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 12px;
    width: 100%;
}

.station-popup .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 9px;
    text-align: center;
    color: #666;
    min-height: 36px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.station-popup .fuel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 10px;
    text-align: center;
    color: #666;
    min-height: 38px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.station-popup .service-item.active,
.station-popup .fuel-item.active {
    background: #fff3ef;
    border-color: #F15E23;
    color: #F15E23;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(241, 94, 35, 0.1);
}

.station-popup .service-item i {
    font-size: 12px;
    color: #F15E23;
}

.station-popup .fuel-item i {
    font-size: 12px;
    color: #F15E23;
}

.station-popup .service-item span {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

.station-popup .fuel-item span {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

/* Remove any horizontal scrolling */
.station-popup .scroll-container {
    display: none;
}

.station-popup .station-sections::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.station-popup .station-sections::-webkit-scrollbar-track {
    background: rgba(241, 94, 35, 0.05);
    border-radius: 3px;
}

.station-popup .station-sections::-webkit-scrollbar-thumb {
    background: rgba(241, 94, 35, 0.2);
    border-radius: 3px;
}

.station-popup .navigation-buttons {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.station-popup .nav-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.station-popup .nav-button.google-maps {
    background: #4285F4;
}

.station-popup .nav-button.osm {
    background: #7EBC6F;
}

.station-popup .nav-button i {
    font-size: 14px;
}

.station-popup .nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Custom popup styles */
.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.leaflet-popup-content {
    margin: 0;
    width: 320px !important;
}

.leaflet-popup-tip {
    background: #F15E23;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-close-button {
    width: 26px !important;
    height: 26px !important;
    font-size: 18px !important;
    padding: 3px !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.leaflet-popup-close-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Custom Marker Styles */
.custom-marker-icon {
    background: transparent;
    border: none;
}

.custom-marker {
    width: 28px;
    height: 28px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.95;
    box-shadow: 0 0 0 4px rgba(241, 94, 35, 0.2);
    transition: all 0.3s ease;
    animation: markerPulse 2s infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 94, 35, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(241, 94, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(241, 94, 35, 0);
    }
}

/* Custom Cluster Styles */
.custom-cluster-icon {
    background: transparent;
    border: none;
}

.custom-cluster {
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #F15E23, #ff7b47);
    border-radius: 50%;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(241, 94, 35, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.custom-cluster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
}

.custom-cluster:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(241, 94, 35, 0.15);
}

.custom-cluster span {
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Custom map tile styles */
.leaflet-tile-pane {
    filter: grayscale(0%) brightness(100%);
}

.leaflet-container {
    background: #fff;
}

/* Marker Cluster Size and Style */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster span {
    line-height: 30px;
}

/* Custom zoom control styles */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    background: #fff !important;
    color: #333 !important;
    border: none !important;
}

.leaflet-control-zoom a:hover {
    background: #f8f9fa !important;
    color: #F15E23 !important;
}

/* Custom attribution styles */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 4px !important;
}

/* Smooth zoom animation */
.leaflet-fade-anim .leaflet-tile,
.leaflet-fade-anim .leaflet-popup {
    transition: opacity 0.2s linear;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
    transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}

/* Custom Div Icon */
.custom-div-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .map-filters {
        flex-direction: column;
    }
    
    .map-filters .filter-group {
        width: 100%;
    }
    
    #map {
        height: 400px;
        border-radius: 8px;
    }

    .station-popup .station-services {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }

    .station-popup .station-fuels {
        gap: 4px;
    }

    .station-popup .service-item {
        min-height: 32px;
        padding: 3px 2px;
    }

    .station-popup .fuel-item {
        min-height: 34px;
        padding: 4px 2px;
        font-size: 9px;
    }

    .station-popup .service-item i {
        font-size: 11px;
    }

    .station-popup .fuel-item i {
        font-size: 11px;
    }

    .station-popup .service-item span {
        font-size: 8px;
    }

    .station-popup .fuel-item span {
        font-size: 8px;
    }

    .station-popup .nav-button {
        padding: 8px;
        font-size: 11px;
    }

    .map-section .container {
        padding: 0 5px;
    }
}

.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    padding: 60px 0 0;
    color: #fff;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0));
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.footer-contact li i {
    color: #F15E23;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F15E23;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a i {
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a:hover::before {
    transform: translateY(0);
}

.social-links a:hover i {
    color: #F15E23;
}

.footer-bottom {
    background: transparent;
    padding: 15px 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.footer-bottom-links {
    display: none;
}

@media (max-width: 768px) {
    .footer-bottom .container {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 15px;
        gap: 30px;
    }
    
    .footer-bottom .container::-webkit-scrollbar {
        display: none;
    }
    
    .footer-bottom-links {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-info {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-info .social-links {
        justify-content: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-services,
    .footer-contact {
        margin: 0 auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Solutions Section Styles */
.solutions-section {
    padding: 40px 0;
    background: #fff;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.solution-link {
    text-decoration: none;
    color: inherit;
}

.solution-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.solution-card i {
    font-size: 32px;
    color: #F15E23;
    margin-bottom: 15px;
}

.solution-card h3 {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.solution-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .solutions-section {
        margin-top: -40px;
        padding: 30px 0;
    }

    .solution-card {
        padding: 20px 15px;
    }
} 