/* Frontend map styles */
.pmmm-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    overflow: hidden;
}

/* Override Google Maps font to prevent font loading errors */
.pmmm-map-container .gm-style {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.pmmm-map-container .gm-style button,
.pmmm-map-container .gm-style-cc,
.pmmm-map-container .gm-style-mtc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.pmmm-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
}

/* Tooltip styles - matches the screenshot */
.pmmm-tooltip {
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pmmm-tooltip h3 {
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    white-space: nowrap;
}

/* Info window styles */
.pmmm-info-window {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 5px;
    min-width: 250px;
}

.pmmm-info-window h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.pmmm-info-window p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.pmmm-info-window .pmmm-address {
    color: #666;
    font-style: italic;
}

.pmmm-info-window .pmmm-phone {
    color: #333;
}

.pmmm-info-window .pmmm-custom-text {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.pmmm-info-window .pmmm-custom-text a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.pmmm-info-window .pmmm-custom-text a:hover {
    text-decoration: underline;
}

.pmmm-directions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.pmmm-directions-link {
    display: inline-block;
    padding: 6px 12px;
    background: #4285f4;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.pmmm-directions-link:hover {
    background: #3367d6;
    color: #fff;
    text-decoration: none;
}

/* Override Google Maps info window styles */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.15) !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-t::after {
    box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.15) !important;
}

.gm-ui-hover-effect {
    opacity: 0.8 !important;
}

.gm-ui-hover-effect:hover {
    opacity: 1 !important;
}

/* Responsive styles */
@media (max-width: 480px) {
    .pmmm-info-window {
        min-width: 200px;
    }
    
    .pmmm-info-window h3 {
        font-size: 14px;
    }
    
    .pmmm-info-window p {
        font-size: 13px;
    }
}