/**
 * EM-Serv Maps Styles
 * Mobile-first responsive design
 */

/* Map wrapper - Mobile first (4:3 aspect ratio) */
.emserv-maps-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.emserv-map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Google Maps InfoWindow content positioning */
.gm-style .gm-style-iw-d {
    overflow: scroll;
    position: relative;
    top: -20px;
    padding: 0 6px;
}

/* Info window content */
.emserv-map-info {
    width: 220px;
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
    line-height: 1.3;
}

.emserv-map-info strong {
    display: block;
    font-size: 16px;
    font-weight: 400 !important;
    color: #000;
    letter-spacing: 0.02em;
}

.emserv-map-info br + a {
    display: inline-block;
    margin-top: 8px;
}

/* Juhised link - exact Google Maps CSS */
.emserv-map-info a {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.0125rem;
    color: #014f5a;
    text-decoration: none;
}

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

/* Tablet: 16:9 aspect ratio */
@media screen and (min-width: 768px) {
    .emserv-maps-wrapper {
        padding-bottom: 56.25%; /* 16:9 */
    }
}

/* Desktop: fixed height */
@media screen and (min-width: 1024px) {
    .emserv-maps-wrapper {
        padding-bottom: 0;
        height: auto;
        max-height: 600px;
    }
    
    .emserv-map-container {
        position: relative;
        height: 500px;
    }
}

/* Loading state */
.emserv-maps-wrapper:empty::before {
    content: 'Loading map...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}
