/* ==============================================
   Individual Store Location Pages
   ============================================== */

/* Hero */
.hero-header {
    background: linear-gradient(135deg, #1a3270 0%, #1d4ed8 65%, #3b82f6 100%);
    color: #fff;
    padding: 1.5em 0 4.5em 0;
}
.hero-header .container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
}
.hero-breadcrumb a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875em;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}
.hero-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}
.hero-header h1 {
    font-size: 2.4em;
    font-weight: 800;
    margin: 0.15em 0 0 0;
    line-height: 1.1;
}
.hero-address {
    font-size: 1.05em;
    opacity: 0.88;
    margin: 0;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65em;
    margin-top: 0.5em;
}
.hero-btn {
    display: inline-block;
    padding: 0.55em 1.35em;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.hero-btn:active { transform: scale(0.97); }
.hero-btn-call {
    background: #10b981;
    color: #fff;
}
.hero-btn-call:hover {
    background: #059669;
    color: #fff;
}
.hero-btn-directions {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.45);
}
.hero-btn-directions:hover {
    background: rgba(255,255,255,0.22);
    border-color: #fff;
    color: #fff;
}

/* Main */
.store-main {
    background: #f1f5f9;
    padding: 0 0 4em 0;
    min-height: 40vh;
}
.store-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Info card — overlaps hero */
.store-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(30,58,138,0.11), 0 1px 4px rgba(30,58,138,0.06);
    padding: 2em 2em 1.75em 2em;
    margin-top: -3em;
    position: relative;
    z-index: 2;
}
.store-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    align-items: flex-start;
}
.store-info-left {
    flex: 2 1 300px;
    min-width: 240px;
}
.store-info-right {
    flex: 1 1 240px;
    min-width: 210px;
}

/* Section headings inside card */
.store-info-card h2 {
    color: #1e3a8a;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.7em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e8edf8;
}
.store-info-card ul {
    margin: 0 0 1.5em 0;
    padding-left: 1.1em;
    color: #374151;
    line-height: 1.7;
}
.vendors-list {
    columns: 2;
    column-gap: 1.5em;
    margin-bottom: 0.5em !important;
}

/* Map */
.map-embed {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30,58,138,0.13);
}
.map-embed iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}
.directions-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    margin-top: 0.75em;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
}
.directions-link:hover {
    text-decoration: underline;
}

/* Gallery */
.store-gallery {
    margin: 2em 0 0 0;
}
.store-gallery h2 {
    color: #1e3a8a;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e8edf8;
}
.store-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1em;
}
.store-gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(30,58,138,0.09);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Responsive */
@media (max-width: 680px) {
    .hero-header {
        padding-bottom: 3.5em;
    }
    .hero-header h1 {
        font-size: 1.7em;
    }
    .store-info-card {
        padding: 1.25em 1em 1em 1em;
        margin-top: -2em;
        border-radius: 12px;
    }
    .vendors-list {
        columns: 1;
    }
    .map-embed iframe {
        height: 210px;
    }
}

/* Locations List Grid and Card Styles */
.locations-list-section {
    padding: 2em 0 3em 0;
    background: #f8fafc;
}

.locations-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2em;
    max-width: 1100px;
    margin: 0 auto;
}

.location-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(30,58,138,0.07), 0 1.5px 6px rgba(30,58,138,0.04);
    padding: 1.5em 1.25em 1.25em 1.25em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #e5e7eb;
    /* anchor reset */
    text-decoration: none;
    color: inherit;
}
.location-card:hover {
    box-shadow: 0 6px 24px rgba(30,58,138,0.13), 0 2px 8px rgba(30,58,138,0.08);
    transform: translateY(-2px) scale(1.02);
}
.location-card h3 {
    font-size: 1.2em;
    color: #1e3a8a;
    margin: 0 0 0.5em 0;
    font-weight: 700;
}
.location-card p {
    margin: 0.2em 0;
    color: #334155;
    font-size: 1em;
}
.location-card .store-details-link {
    display: inline-block;
    margin-top: 1em;
    color: #1e3a8a;
    font-weight: 600;
}
.location-card:hover .store-details-link {
    text-decoration: underline;
}
/* Locations Page Styles - Google Store Locator */

/* Store Locator Section */
.store-locator-section {
    padding: 2rem 0;
    background-color: #f8fafc;
}

.locator-container {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    position: relative;
}

/* Google Maps Extended Component Library overrides */
gmpx-store-locator {
    width: 100% !important;
    height: 100% !important;
}

/* Custom styling for the store locator to match brand */
gmpx-store-locator::part(panel) {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

gmpx-store-locator::part(map) {
    border-radius: 8px;
}

gmpx-store-locator::part(search-input) {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
}

gmpx-store-locator::part(search-input):focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

gmpx-store-locator::part(location-list-item) {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

gmpx-store-locator::part(location-list-item):hover {
    background-color: #f8fafc;
}

gmpx-store-locator::part(location-title) {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1.125rem;
}

gmpx-store-locator::part(location-address) {
    color: #475569;
    font-size: 0.9375rem;
}

gmpx-store-locator::part(directions-button) {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

gmpx-store-locator::part(directions-button):hover {
    background-color: #2563eb;
}

gmpx-store-locator::part(call-button) {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

gmpx-store-locator::part(call-button):hover {
    background-color: #059669;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .store-locator-section {
        padding: 1rem 0;
    }

    .locator-container {
        height: 600px;
        margin: 1rem;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Mobile layout adjustments for Google Store Locator */
    gmpx-store-locator {
        --gmpx-fixed-panel-height-column-layout: 50% !important;
    }
}

@media (max-width: 480px) {
    .locator-container {
        height: 500px;
        margin: 0.5rem;
    }
}

/* Loading state styling */
gmpx-store-locator::part(loading-spinner) {
    border-color: #3b82f6;
}

/* Error state styling */
gmpx-store-locator::part(error-message) {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #fecaca;
}