/**
 * Location & FAQ Section Component - Isolated Styles (BEM Naming)
 * Component prefix: ee-location-faq-section
 */

/* Component Root - Isolated from global styles */
.ee-location-faq-section {
    /* Reset inherited styles */
    all: initial;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Component styles */
    background: #f8f9fa;
    padding: 0.875rem 0; /* var(--spacing-md) */
    margin-bottom: 0;
}

.ee-location-faq-section--has-bg {
    background: transparent;
    padding: 0;
}

.ee-location-faq-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Full-section band: entire section has background (image or color) – same pattern as sponsor/schedule */
.ee-location-faq-section__band {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    min-height: 200px;
    padding: 2.25rem 0;
    background-image: var(--location-section-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--location-section-bg-color, transparent);
}

.ee-location-faq-section__band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ee-location-faq-section--has-bg-image .ee-location-faq-section__band::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.5) 100%);
}

.ee-location-faq-section__band-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.ee-location-faq-section__loading {
    text-align: center;
    padding: 2rem;
    color: #333;
}

/* Single column – legacy-style location only; centered */
.ee-location-faq-section__content {
    display: block;
    text-align: center;
}

.ee-location-faq-section__location {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Section header style: match Event Schedule / products / sponsor (default section header font) */
.ee-location-faq-section__location-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-align: center;
}

.ee-location-faq-section__band .ee-location-faq-section__location-title {
    color: #fff;
    font-size: 2.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 0 24px rgba(0,0,0,0.2);
}

.ee-location-faq-section__location-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 1rem 1.25rem;
}

.ee-location-faq-section__band .ee-location-faq-section__location-card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ee-location-faq-section__location-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.ee-location-faq-section__location-address {
    font-size: 0.9375rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Embedded Google Map iframe */
.ee-location-faq-section__map-embed-wrap {
    margin-bottom: 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.ee-location-faq-section__map-iframe {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
}

.ee-location-faq-section__map-image-wrap {
    margin-bottom: 0.75rem;
}

.ee-location-faq-section__map-link {
    display: block;
}

.ee-location-faq-section__map-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ee-location-faq-section__maps-button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.ee-location-faq-section__maps-button:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* FAQ Column */
.ee-location-faq-section__faq {
    flex: 1;
}

.ee-location-faq-section__faq-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.ee-location-faq-section__accordion {
    /* Bootstrap accordion styles will be inherited, but we can override if needed */
}

.ee-location-faq-section__accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

.ee-location-faq-section__accordion-button {
    background: white;
    font-weight: 600;
    color: #2c3e50;
    padding: 0.75rem 1rem;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.ee-location-faq-section__accordion-button:hover {
    background: #f8f9fa;
}

.ee-location-faq-section__accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #007bff;
}

.ee-location-faq-section__accordion-body {
    padding: 1rem;
    color: #495057;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ee-location-faq-section {
        padding: 1rem 0;
    }
    
    .ee-location-faq-section__location-title {
        font-size: 1.25rem;
    }
    
    .ee-location-faq-section__band .ee-location-faq-section__location-title {
        font-size: 1.5rem;
    }
    
    .ee-location-faq-section__band {
        padding: 1.5rem 0;
    }
    
    .ee-location-faq-section__location-card {
        padding: 0.875rem 1rem;
    }
    
    .ee-location-faq-section__map-iframe {
        height: 220px;
    }
}
