/*
Custom Css
*/
<style>
.osm-contact-map {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.map-container {
    flex: 2;
    min-width: 600px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

#openstreetmap {
    height: 700px;
    width: 100%;
    z-index: 1;
}

.map-controls {
    position: absolute;
    top: 600px;
    right: 15px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ddd;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.map-footer {
    padding: 10px 15px;
    background: #f1f3f5;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.map-footer a {
    color: #4a90e2;
    text-decoration: none;
}

.map-footer a:hover {
    text-decoration: underline;
}

.action-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.directions-btn {
    background: linear-gradient(135deg, #4a90e2, #2a6fc1);
    color: white;
}

.directions-btn:hover {
    background: linear-gradient(135deg, #3a7bc8, #1a5fa7);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.copy-btn {
    background: #34c759;
    color: white;
}

.copy-btn:hover {
    background: #28a745;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 199, 89, 0.3);
}

.preset-locations {
    margin-top: 25px;
}

.preset-locations h4 {
    margin-top: 0;
    color: #222;
    font-size: 18px;
    margin-bottom: 15px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.preset-btn {
    padding: 10px 15px;
    background: #f0f3f5;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #e1e7ec;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.preset-btn:active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .osm-contact-map {
        flex-direction: column;
    }

    .map-container, .address-panel {
        width: 100%;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .coordinates-display {
        flex-direction: column;
        align-items: stretch;
    }

    .coord-input-group {
        min-width: 100%;
    }
}

/* Leaflet map custom styles */
.leaflet-control-attribution {
    font-size: 11px !important;
}

.leaflet-popup-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-marker {
    background: #4a90e2;
    border: 3px solid white;
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
</style>
