﻿#map {
    height: 300px;
    /* width: calc(100% - 20px); */
    /* margin: 10px; */
    position: relative;
    border-radius: 15px;
    /* overflow: hidden; */
}
}

@media (max-width: 768px) {
    #map {
        height: 400px;
    }
}

@media (max-width: 576px) {
    #map {
        height: 300px;
    }
}

#marker {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 60px; /* Normal width */
    height: 60px; /* Normal height */
    transform: translate(-50%, -100%);
    pointer-events: none; /* Make sure the marker doesn't interfere with map interactions */
    z-index: 1000; /* Ensure the marker is above the map */
    transition: width 0.3s, height 0.3s; /* Smooth transition for resizing */
}

    #marker.dragging {
        width: 80px; /* Enlarged width */
        height: 80px; /* Enlarged height */
    }

#search-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100; /* Ensure the search box is above the marker */
    width: 80%; /* Adjust the width as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#search-box-container {
    display: flex;
    width: 100%;
}

.error {
    border-color: red;
}

#error-message {
    color: red;
    display: none;
    text-align: center;
    margin-top: 10px;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    #error-message.show {
        display: block;
        opacity: 1;
    }

    #error-message.hide {
        display: block;
        opacity: 0;
    }

#locate-user-modal-map {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1100;
}

    #locate-user-modal-map i {
        font-size: 24px;
        color: #007bff;
    }
