/* World Map Section Styles */
.world-map-section {
    padding: 20px 0;
    background: #fff;
    width: 100%;
}

.stats-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.country-stats-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.total-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 10px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.1);
}

.stat-item i {
    color: #1a237e;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.stat-item span:first-of-type {
    font-size: 1.4em;
    font-weight: 600;
    color: #1a237e;
    margin: 2px 0;
}

.stat-item span:last-of-type {
    font-size: 0.8em;
    color: #666;
}

.country-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.country-stat-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(26, 35, 126, 0.08);
    cursor: pointer;
}

.country-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.flag-container {
    position: relative;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.country-flag {
    width: 30px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.station-count {
    position: absolute;
    top: -4px;
    right: 8px;
    background: #1a237e;
    color: #ffffff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 600;
    padding: 0 4px;
}

.country-name {
    color: #1a237e;
    font-size: 0.75em;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#world-map {
    height: 800px;
    width: 100%;
    border-radius: 12px;
}

.map-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-header h2 {
    color: var(--primary-gradient-start);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.map-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.map-controls {
    position: relative;
    margin: 0 auto 1rem;
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eef2f6;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-gradient-start);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 29, 81, 0.1);
}

.map-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #eef2f6;
    color: var(--primary-gradient-start);
}

.filter-btn.active {
    background: var(--primary-gradient-start);
    color: #ffffff;
}

#world-map:active {
    cursor: grabbing;
}

.info-window {
    padding: 20px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-window h3 {
    color: var(--primary-gradient-start);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-window p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.direction-btn {
    display: inline-block;
    background: var(--primary-gradient-start);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 15px;
}

.direction-btn:hover {
    background: var(--primary-gradient-middle);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(11, 29, 81, 0.2);
}

/* Leaflet marker cursor fixes */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-interactive {
    cursor: pointer !important;
}

.leaflet-marker-pane img,
.leaflet-shadow-pane img {
    cursor: pointer !important;
}

/* Existing marker styles */
.custom-marker,
.custom-cluster-marker {
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-marker:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marker-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.marker-dot.active {
    background: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
}

.marker-dot.coming {
    background: #FFC107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
}

.marker-dot .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Cluster Marker Styles */
.custom-cluster-marker:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.cluster-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient-start);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cluster-marker.small {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    transform: scale(0.9);
}

.cluster-marker.medium {
    background: linear-gradient(45deg, #2196F3, #64B5F6);
    transform: scale(1);
}

.cluster-marker.large {
    background: linear-gradient(45deg, #FF5722, #FF8A65);
    transform: scale(1.1);
}

.cluster-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Station Popup Styles */
.station-popup {
    padding: 15px;
    min-width: 250px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.coming {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.popup-content {
    margin: 10px 0;
}

.popup-content p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-content i {
    color: var(--primary-gradient-start);
    width: 16px;
}

.legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.dot.coming-soon {
    background: #FFC107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.legend-item span {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

/* Modern Popup Styles */
.modern-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-popup .leaflet-popup-content {
    margin: 0;
    width: 360px !important;
}

.station-popup {
    background: #fff;
}

/* Header Styles */
.popup-header {
    padding: 20px;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    position: relative;
}

.popup-header.coming {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.status-indicator i {
    font-size: 14px;
}

.station-name {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.station-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.info-item i {
    font-size: 16px;
}

/* Content Styles */
.popup-content {
    padding: 15px;
    max-height: 360px;
    overflow-y: auto;
}

.popup-content::-webkit-scrollbar {
    width: 4px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.section {
    margin-bottom: 20px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-header i {
    font-size: 20px;
    color: #2d3436;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
}

/* Service and Fuel Items */
.service-items,
.fuel-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 6px;
}

.map-service-item,
.map-fuel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    min-height: 52px;
}

.map-service-item i,
.map-fuel-item i {
    font-size: 1em;
    color: #666;
}

.map-service-item span,
.map-fuel-item span {
    font-size: 0.7em;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.map-service-item.active,
.map-fuel-item.active {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.map-service-item.active i,
.map-fuel-item.active i {
    color: #4CAF50;
}

.map-service-item.inactive,
.map-fuel-item.inactive {
    opacity: 0.5;
    background-color: rgba(158, 158, 158, 0.05);
    border: 1px solid rgba(158, 158, 158, 0.1);
}

.map-service-item:hover,
.map-fuel-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Footer Styles */
.popup-footer {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #eef0f2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
}

.nav-button i {
    font-size: 16px;
}

.nav-button.google {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.2);
}

.nav-button.google:hover {
    background: rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.1);
}

.nav-button.osm {
    color: #7ebc6f;
    background: rgba(126, 188, 111, 0.1);
    border: 1px solid rgba(126, 188, 111, 0.2);
}

.nav-button.osm:hover {
    background: rgba(126, 188, 111, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(126, 188, 111, 0.1);
}

@media (max-width: 480px) {
    .popup-footer {
        padding: 10px;
        gap: 6px;
    }

    .nav-button {
        padding: 8px;
        font-size: 12px;
    }

    .nav-button i {
        font-size: 14px;
    }
}

/* Close Button */
.modern-popup .leaflet-popup-close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    color: white !important;
    opacity: 0.8;
    transition: all 0.2s ease;
    z-index: 1;
}

.modern-popup .leaflet-popup-close-button:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Popup Tip */
.modern-popup .leaflet-popup-tip {
    background: #f8f9fa;
}

@media (max-width: 480px) {
    .service-items,
    .fuel-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .modern-popup .leaflet-popup-content {
        width: 300px !important;
    }

    .map-service-item,
    .map-fuel-item {
        min-height: 48px;
    }
}

/* Popup geçiş efektleri */
.leaflet-popup {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
}

.leaflet-popup.leaflet-zoom-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Modern scrollbar */
.leaflet-popup-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.leaflet-popup-content::-webkit-scrollbar {
    width: 6px;
}

.leaflet-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.leaflet-popup-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Fuel2Go Station Services and Fuel Types Section */
.f2g-station-features {
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin: 2rem 0;
}

.f2g-features-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.f2g-features-header h2 {
    color: #150b3b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.f2g-features-header p {
    color: #666;
    font-size: 1rem;
}

.f2g-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.f2g-features-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.f2g-features-box h3 {
    color: #150b3b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.f2g-features-box h3 i {
    color: #00E676;
    font-size: 1.2rem;
}

.f2g-features-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
}

.f2g-feature-card,
.f2g-fuel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.f2g-feature-card:hover,
.f2g-fuel-card:hover {
    background: #f8f9fa;
    border-color: #00E676;
    transform: translateX(5px);
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.08);
}

.f2g-feature-card i,
.f2g-fuel-card i {
    font-size: 1.4rem;
    color: #150b3b;
    transition: all 0.3s ease;
}

.f2g-feature-card:hover i,
.f2g-fuel-card:hover i {
    color: #00E676;
    transform: scale(1.1);
}

.f2g-feature-card span,
.f2g-fuel-card span {
    font-size: 0.85rem;
    color: #495057;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.f2g-feature-card:hover span,
.f2g-fuel-card:hover span {
    color: #150b3b;
}

/* İkon düzeltmeleri için özel sınıflar */
.f2g-feature-card[id="f2g-service-carwash"] i::before {
    content: "\f5e4"; /* Font Awesome car wash ikonu */
}

.f2g-feature-card[id="f2g-service-tire"] i::before {
    content: "\f634"; /* Font Awesome tire ikonu */
}

@media (max-width: 768px) {
    .f2g-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .f2g-features-header h2 {
        font-size: 1.5rem;
    }

    .f2g-features-items {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.8rem;
    }

    .f2g-feature-card,
    .f2g-fuel-card {
        padding: 0.6rem;
    }

    .f2g-feature-card i,
    .f2g-fuel-card i {
        font-size: 1rem;
    }

    .f2g-feature-card span,
    .f2g-fuel-card span {
        font-size: 0.75rem;
    }
}