/**
 * Main stylesheet for MapOfArizona.com
 * Non-critical CSS that will be loaded after initial render
 */

:root {
    --primary: #D97706;
    --primary-light: #FDBA74;
    --secondary: #155E75;
    --secondary-light: #0891B2;
    --text: #1F2937;
    --text-light: #6B7280;
    --background: #F9FAFB;
    --white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;
}

/* ===== Layout & Containers ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 3rem 0;
}

.info, .faq-preview {
    background-color: var(--background);
}

/* ===== Map Styles ===== */
.map-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

/* Map Controls */
.leaflet-control-attribution {
    font-size: 10px;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    background-color: var(--white) !important;
    color: var(--secondary) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--background) !important;
}

/* Map Markers & Popups */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.6;
}

.leaflet-popup-content strong {
    color: var(--secondary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.leaflet-popup-content a {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.5rem;
    text-decoration: none;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

.capital-icon {
    color: var(--primary);
    font-size: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capital-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.county-label, .river-label, .desert-label {
    color: var(--secondary);
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    text-shadow: 1px 1px 0 white, -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white;
    background: none !important;
}

.park-icon, .national-park-icon, .state-park-icon {
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.national-park-icon {
    background-color: #228B22;
}

.state-park-icon {
    background-color: #6B8E23;
}

.interstate-shield {
    background-color: #FF0000;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.physical-icon {
    background-color: var(--secondary);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.physical-mountains {
    background-color: #8B4513;
}

.physical-river {
    background-color: #1E90FF;
}

.physical-lake {
    background-color: #1E90FF;
}

.physical-desert {
    background-color: #DAA520;
}

.info-box {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.info-box h4 {
    margin-top: 0;
    color: var(--secondary);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-top: 0;
    color: var(--secondary);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.text-muted {
    color: var(--text-light);
}

/* ===== Components ===== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.feature-card a:hover {
    text-decoration: underline;
}

.cta-box {
    background-color: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box h3 {
    color: var(--primary);
    margin-top: 0;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: #B45309;
}

.btn-more {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1.5rem;
}

.btn-more:hover {
    text-decoration: underline;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    margin-top: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
}

.faq-item.open h3::after {
    content: "−";
}

/* ===== Media Queries ===== */
@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .map-container {
        height: 80vh;
    }
}

/* ===== Utilities ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ===== Accessibility ===== */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Print styles */
@media print {
    .map-container {
        height: 500px !important;
        page-break-inside: avoid;
    }
    
    header, footer, .mobile-nav-toggle, #mobile-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
}