/* =====================================================
   MAP STYLES - Interactive Map Section
   Lurkaia Design System
   ===================================================== */

/* Map Section Container */
.map-section {
    margin-bottom: var(--space-3xl);
}

/* Map Container */
#map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1;
}

/* Override Leaflet default styles */
.leaflet-container {
    font-family: var(--font-main);
    border-radius: var(--radius-card);
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0;
}

.leaflet-popup-content {
    margin: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.leaflet-popup-tip {
    background: var(--color-card);
}

/* Remove default Leaflet close button styling */
.leaflet-popup-close-button {
    color: var(--color-text-muted) !important;
    font-size: 1.2rem !important;
}

.leaflet-popup-close-button:hover {
    color: var(--color-text) !important;
}

/* =====================================================
   PLACE INFO PANEL
   ===================================================== */
.place-info-panel {
    margin-top: var(--space-lg);
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 180px;
    transition: all var(--transition-base);
}

/* Default state message */
.place-info-default {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: var(--space-xl);
    text-align: center;
}

.place-info-default p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

/* Active state with content */
.place-info-content {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
}

.place-info-image {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.place-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.place-info-image:hover img {
    transform: scale(1.05);
}

.place-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.place-info-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.place-info-text p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.place-info-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    color: #f4623a;
    border: 2px solid #f4623a;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
    width: fit-content;
}

.place-info-btn:hover {
    background: #f4623a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 98, 58, 0.3);
}

.place-info-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.place-info-btn:hover svg {
    transform: translateX(4px);
}

/* =====================================================
   CUSTOM MARKER STYLES
   ===================================================== */
.custom-marker {
    background: #f4623a;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(244, 98, 58, 0.5);
}

.custom-marker.active {
    background: #e04a28;
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(244, 98, 58, 0.6);
}

/* Pulse animation for markers */
@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 98, 58, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(244, 98, 58, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 98, 58, 0);
    }
}

.custom-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: marker-pulse 2s infinite;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 768px) {
    #map-container {
        height: 350px;
        border-radius: var(--radius-md);
    }

    .place-info-content {
        flex-direction: column;
        padding: var(--space-lg);
    }

    .place-info-image {
        width: 100%;
        height: 200px;
    }

    .place-info-text h3 {
        font-size: 1.3rem;
    }

    .place-info-text p {
        font-size: 0.95rem;
    }

    .place-info-default {
        height: 120px;
        padding: var(--space-lg);
    }

    .place-info-default p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #map-container {
        height: 280px;
    }

    .place-info-image {
        height: 160px;
    }

    .place-info-btn {
        width: 100%;
        justify-content: center;
    }
}