/* Map Container Styles */
.home-page-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Widget Container */
.home-page-map-widget-container {
    position: relative;
    width: 100%;
}

/* Overlay Message Styles */
.map-overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 80%;
    z-index: 100;
    transition: opacity 0.3s ease-in-out;
}

.map-overlay-message h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.map-overlay-message p {
    margin-bottom: 0;
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Search Box Styles */
.map-search {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background-color: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
    width: 80%;
    transition: all 0.3s ease;
}

.map-search:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

#map-search-input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
    background-color: transparent;
}

#map-search-btn {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

#map-search-btn:hover {
    background-color: #3367D6;
}

/* Info Window Styling */
.store-info-window {
    padding: 10px;
    max-width: 300px;
}

.store-info-window h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.store-info-window p {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.store-info-window div {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .map-search {
        width: 90%;
        top: 10px;
    }
    
    #map-search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    #map-search-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .map-overlay-message {
        padding: 15px;
        max-width: 90%;
    }
    
    .map-overlay-message h3 {
        font-size: 1.3em;
    }
    
    .map-overlay-message p {
        font-size: 1em;
    }
}

/* new code  */
.home-page-map-widget-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

#home-page-map {
    height: 560px !important;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
@media(max-width:767px){
#home-page-map {
    height: 450px !important;
}	
}
.map-search {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 5px;
}

.map-search input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 200px;
}

.map-search button {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #4285F4;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.map-search button:hover {
    background-color: #3367d6;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 20;
    font-weight: bold;
    text-align: center;
}

.no-stores-message {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    color: #856404;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 30;
    border: 1px solid #ffeeba;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.store-info {
    padding: 10px;
    max-width: 250px;
}

.store-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.store-info p {
    margin: 0;
    font-size: 14px;
}

/* Loading indicator */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    border-radius: 8px;
}

.map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* new code ends */