/* Aurora Sauna Map Plugin Styles */
/* Version: 1.4 */

.leaflet-popup-content, 
.leaflet-popup-content h3 {
    margin-bottom: 0px;
    color: white !important;
}

/* Map overlay - dimmed overlay that disappears on interaction */
#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

#map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hide overlay when user location is available */
body.user-location-available #map-overlay {
    display: none !important;
}



.leaflet-popup-content p {
    font-size: 0.8em;
}

/* Updated popup styles */
.custom-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 324px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.popup-header {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.popup-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6), rgba(0,0,0,0.0));
    color: white;
    padding: 25px 12px 12px 12px;
    font-size: 16px !important;
    font-weight: 600;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 1;
}

.popup-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaflet-popup-content-wrapper {
    padding: 0px !important;
}

.leaflet-popup-content {
    margin: 0px !important;
}

.popup-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.popup-btn:hover {
    background: white;
    transform: scale(1.05);
}

.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 9px;
    right: 10px;
    border: none;
    text-align: center;
    width: 0px;
    height: 0px;
    font: 16px / 24px Tahoma, Verdana, sans-serif;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    background: #ffffff;
    padding: 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.popup-content {
    padding: 0 12px 12px 12px;
    background: white;
    margin: 0;
}

.popup-description {
    color: #313131;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-description-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.popup-book-btn {
    display: inline-block;
    background: #26767F;
    color: white !important;
    padding: 8px 24px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.popup-book-btn:hover {
    background: #1f5f66;
    color: white;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.popup-book-btn.coming-soon {
    background: #9CA3AF !important;
    color: white;
    pointer-events: none;
}

.popup-book-btn.coming-soon:hover {
    background: #9CA3AF !important;
    transform: none !important;
    text-decoration: none !important;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.popup-directions-btn {
    color: #26767F !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #26767F;
    border-radius: 20px;
    text-align: center;
    background: transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup-directions-btn:hover {
    background: #26767F !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.sauna-marker {
    background: transparent !important;
    border: none !important;
}

.sauna-marker:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}



/* Remove underlines from zoom controls */
.leaflet-control-zoom a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Attribution control margin */
.leaflet-container .leaflet-control-attribution {
    margin: 4px;
}

/* Hide expand/shrink map button */
#expand-map-btn {
    display: none !important;
}

/* Map container hover effect */
#map-container:hover #expand-map-btn {
    background: rgba(38, 118, 127, 1);
    transform: scale(1.05);
}

/* Simple dropdown popup styles */
.simple-dropdown-popup {
    background: white !important;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.simple-dropdown-leaflet-popup .leaflet-popup-content-wrapper {
    background: white !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
}

.simple-dropdown-leaflet-popup .leaflet-popup-content {
    margin: 0 !important;
    background: white !important;
    width: auto !important;
}

.simple-dropdown-leaflet-popup .leaflet-popup-tip {
    background: white !important;
    border: 1px solid #e5e7eb !important;
}



/* Desktop dropdown styles */
#sauna-dropdown {
    font-size: 16px;
    height: auto;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Make dropdown same size as desktop but more touch-friendly */
    #sauna-dropdown {
        padding: 15px 20px !important;
        padding-right: 50px !important;
        font-size: 16px !important;
        min-height: 56px !important;
        border-radius: 8px !important;
        line-height: 1.4 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
        background-position: right 15px center !important;
        background-repeat: no-repeat !important;
        background-size: 18px 14px !important;
    }
    
    /* Keep label same size */
    label[for="sauna-dropdown"] {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    /* Adjust map expand button for mobile */
    #expand-map-btn {
        padding: 10px 18px !important;
        font-size: 14px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    /* Better touch targets for buttons */
    .popup-book-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .popup-directions-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    

    
    /* Better spacing for dropdown container */
    #sauna-dropdown + div {
        margin-top: 20px !important;
    }
} 