/* Map Container */
#leafletMap {
    width: 100%;
    height: 500px;
    border: 1px solid black;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Marker */
.custom-marker {
    position: relative;
}

.marker-pin {
    width: 30px;
    height: 30px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: bounce 1s infinite;
}

.custom-marker i {
    position: absolute;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Map Controls */
.custom-map-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 20px !important;
    margin-bottom: 20px !important;
}

.control-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 8px;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.control-btn.directions-btn {
    background: #667eea;
    color: white;
}

.control-btn.directions-btn:hover {
    background: #4c5eea;
}

/* Zoom Controls */
.leaflet-control-zoom {
    border: none !important;
    margin-right: 20px !important;
    margin-bottom: 80px !important;
}

.leaflet-control-zoom a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    color: #333 !important;
    background: white !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom-in {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 8px 8px !important;
}

.leaflet-control-zoom a:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Popup Styles */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    width: 300px !important;
}

.map-popup {
    padding: 20px;
}

.map-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.map-popup p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.popup-button {
    margin-top: 15px;
}

.popup-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.popup-button a:hover {
    background: #4c5eea;
    transform: translateY(-2px);
}

/* Animation */
@keyframes bounce {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-5px);
    }
}
