/* ================================================
   Interactive Map Styles - Verda Urla
   ================================================ */

.interactive-map-section {
    position: relative;
    overflow: hidden;
}

.interactive-map-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Map Image Container */
.map-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.map-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Interactive Pins */
.map-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.map-pin:hover {
    transform: scale(1.3);
    z-index: 100;
    box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

.map-pin.active {
    transform: scale(1.4);
    z-index: 100;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(0,0,0,0.5);
    }
    50% {
        box-shadow: 0 8px 35px rgba(0,0,0,0.7), 0 0 0 10px rgba(255,255,255,0.3);
    }
}

/* Pin Categories Colors */
.map-pin.category-merkez { background: linear-gradient(135deg, #d32f2f, #e53935); }
.map-pin.category-deniz { background: linear-gradient(135deg, #1976d2, #2196f3); }
.map-pin.category-saglik { background: linear-gradient(135deg, #388e3c, #4caf50); }
.map-pin.category-egitim { background: linear-gradient(135deg, #f57c00, #ff9800); }
.map-pin.category-sosyal { background: linear-gradient(135deg, #7b1fa2, #9c27b0); }

/* Tooltip */
.map-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.map-tooltip.show {
    opacity: 1;
}

.map-tooltip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.map-tooltip small {
    color: #ffab40;
    font-weight: 500;
}

/* Location List */
.location-list-wrapper {
    flex: 0 0 450px;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 10px;
}

.location-list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.location-list-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.location-list-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.location-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.location-category {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-header i {
    font-size: 20px;
}

.category-header.merkez { background: linear-gradient(135deg, #d32f2f, #e53935); }
.category-header.deniz { background: linear-gradient(135deg, #1976d2, #2196f3); }
.category-header.saglik { background: linear-gradient(135deg, #388e3c, #4caf50); }
.category-header.egitim { background: linear-gradient(135deg, #f57c00, #ff9800); }
.category-header.sosyal { background: linear-gradient(135deg, #7b1fa2, #9c27b0); }

.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.location-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: var(--category-color);
}

.location-item.active {
    transform: translateX(12px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    border-color: var(--category-color);
    background: #f8f9fa;
}

.location-item .pin-number {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.location-item.merkez .pin-number { background: linear-gradient(135deg, #d32f2f, #e53935); --category-color: #d32f2f; }
.location-item.deniz .pin-number { background: linear-gradient(135deg, #1976d2, #2196f3); --category-color: #1976d2; }
.location-item.saglik .pin-number { background: linear-gradient(135deg, #388e3c, #4caf50); --category-color: #388e3c; }
.location-item.egitim .pin-number { background: linear-gradient(135deg, #f57c00, #ff9800); --category-color: #f57c00; }
.location-item.sosyal .pin-number { background: linear-gradient(135deg, #7b1fa2, #9c27b0); --category-color: #7b1fa2; }

.location-info {
    flex: 1;
}

.location-info .name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.location-info .distance {
    font-size: 13px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .location-list-wrapper {
        flex: 0 0 380px;
    }
}

@media (max-width: 992px) {
    .interactive-map-container {
        flex-direction: column;
    }

    .location-list-wrapper {
        flex: 1;
        width: 100%;
        max-height: none;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .interactive-map-container {
        gap: 20px;
    }

    .map-pin {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-width: 2px;
    }

    .location-list-wrapper {
        padding-right: 0;
    }

    .location-item {
        padding: 10px 12px;
    }

    .category-header {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .map-pin {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .location-item .pin-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .location-info .name {
        font-size: 14px;
    }

    .location-info .distance {
        font-size: 12px;
    }
}
