:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --open-color: #10b981;
    --closed-color: #ef4444;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.glass-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-logo {
    height: 70px;
    width: 70px;
    max-width: 70px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .site-logo {
        height: 50px;
        width: 50px;
        max-width: 50px;
    }
}

main {
    flex: 1;
    padding: 3rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Grids */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.region-btn {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.2rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.region-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

/* Store Cards */
.store-card {
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.store-address {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.2);
    color: var(--open-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--closed-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.glass-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    min-width: 250px;
}

.glass-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-back:hover {
    color: var(--text-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: translateY(20px);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    margin: 0;
    text-align: left;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

.info-panel h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-panel p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#map {
    height: 300px;
    border-radius: 12px;
    width: 100%;
    border: 1px solid var(--glass-border);
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details.faq-item {
    padding: 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

details.faq-item summary {
    font-weight: 600;
    font-size: 1.1rem;
    outline: none;
    list-style: none; /* Hide default arrow in standard browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari */
}

details.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

details[open].faq-item summary::after {
    content: '−';
    transform: rotate(180deg);
}

details.faq-item p {
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .region-grid {
        grid-template-columns: 1fr;
    }
}
