/**
 * Location Map Block Styles
 */

.wildapricot-location-map-block {
    margin: 2rem 0;
}

.location-map-container {
    width: 100%;
}

.location-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Map wrapper styling */
.location-map-wrapper {
    width: 100%;
}

.location-map-iframe,
.location-map-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-map-iframe iframe,
.location-map-image img {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 8px;
    object-fit: cover;
}

/* Placeholder styling */
.location-map-placeholder {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.placeholder-content {
    text-align: center;
    color: #666;
}

/* Location content styling - left aligned on desktop */
.location-details {
    padding: 2rem 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 300px;
}

.location-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.location-icon img {
    max-width: 80px;
    height: auto;
}

.location-info {
    width: 100%;
}

.location-company {
    color: var(--wa-purple, #6f42c1);
    font-family: 'Georama', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-align: left;
}

.location-address {
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

.location-address p {
    margin: 0;
}

/* Mobile responsive - centered on mobile */
@media (max-width: 768px) {
    .location-map-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-details {
        padding: 1.5rem 0.5rem;
        justify-content: center;
    }
    
    .location-content {
        align-items: center;
        text-align: center;
    }
    
    .location-icon {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .location-company {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .location-address {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .location-icon img {
        max-width: 60px;
    }
}

/* Tablet responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .location-map-grid {
        gap: 1.5rem;
    }
    
    .location-details {
        padding: 1.5rem 1rem;
    }
}

/* Ensure iframe and image responsiveness */
.location-map-iframe iframe,
.location-map-image img {
    max-width: 100%;
    height: auto;
    min-height: 300px;
}

@media (max-width: 768px) {
    .location-map-iframe iframe,
    .location-map-image img {
        min-height: 250px;
    }
}
