/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
.header {
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9rem;
    color: #f0a500;
    font-style: italic;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #f0a500;
}

/* Hero Section */
.hero {
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#searchInput {
    flex: 1;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

#searchBtn {
    padding: 18px 40px;
    background: #f0a500;
    color: #1a1a2e;
    border: none;
    border-radius: 0 50px 50px 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#searchBtn:hover {
    background: #ffb81c;
}

/* Stats Section */
.stats {
    background: white;
    padding: 60px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.stat-card h3 {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.1rem;
    color: #666;
}

/* Filters Section */
.filters {
    background: #f8f9fa;
    padding: 40px 0;
}

.filters h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.filter-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.filter-controls {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-select {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 220px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.reset-btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: 2px solid #f0a500;
    border-radius: 8px;
    background: #f0a500;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #ffb81c;
    border-color: #ffb81c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 165, 0, 0.3);
}

.results-info {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    color: #667eea;
}

/* Business Directory */
.directory {
    padding: 60px 0;
    background: white;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.business-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.business-card.featured {
    border: 3px solid #f0a500;
    background: linear-gradient(135deg, #fff9e6 0%, white 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #f0a500, #ffb81c);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(240, 165, 0, 0.4);
}

.business-tier {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.business-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    margin-top: 10px;
}

.business-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.business-address,
.business-phone,
.business-email,
.business-website,
.business-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #555;
}

.business-phone a,
.business-email a,
.business-website a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.business-phone a:hover,
.business-email a:hover,
.business-website a:hover {
    text-decoration: underline;
}

.business-promotion {
    background: linear-gradient(135deg, #fff3cd, #ffe999);
    border-left: 4px solid #f0a500;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.business-promotion strong {
    color: #d48806;
}

.affiliate-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: #999;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: #666;
}

/* Demographics Section */
.demographics {
    background: #f8f9fa;
    padding: 80px 0;
}

.demographics h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.demo-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.demo-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    text-align: center;
}

.demo-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.demo-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.year {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.value-small {
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.demo-arrow {
    font-size: 2rem;
    color: #f0a500;
    margin: 0 15px;
}

.demo-change {
    text-align: center;
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

/* History Section */
.history {
    padding: 80px 0;
    background: white;
}

.history h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
}

.history-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.history-text h4 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #667eea;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.history-text ul {
    list-style: none;
    padding: 0;
}

.history-text ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

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

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-style: italic;
}

/* About Section */
.about {
    background: #f8f9fa;
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.about > .container > p {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
}

.tier-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tier {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tier h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #667eea;
}

.tier p {
    font-size: 1.1rem;
    color: #666;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f0a500;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f0a500;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    #searchInput,
    #searchBtn {
        border-radius: 50px;
    }
    
    .history-content {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .filters h2,
    .demographics h2,
    .history h2,
    .about h2 {
        font-size: 1.8rem;
    }
}

/* ===================================
   PHOTO GALLERY SECTION
   =================================== */

.photo-gallery {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    padding: 80px 20px;
}

.photo-gallery h2 {
    text-align: center;
    color: #1a1a2e;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.gallery-intro {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-tab {
    background: white;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.gallery-tab:hover {
    background: #1a1a2e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-tab.active {
    background: #f0a500;
    color: white;
    border-color: #f0a500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: #f0a500;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-info p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
}

.gallery-caption {
    padding: 15px;
    text-align: center;
}

.era-tag {
    background: #1a1a2e;
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(240,165,0,0.9);
    transform: rotate(90deg);
}

.lightbox-caption {
    padding: 25px;
    background: white;
}

.lightbox-caption h3 {
    color: #1a1a2e;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.lightbox-caption p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lightbox-era {
    display: inline-block;
    background: #f0a500;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-tabs {
        gap: 10px;
    }
    
    .gallery-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-caption h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery h2 {
        font-size: 2rem;
    }
}

/* ===================================
   EVENTS CALENDAR
   =================================== */

.events-calendar {
    background: linear-gradient(135deg, #e8f4f8, #f0f8ff);
    padding: 80px 20px;
}

.events-calendar h2 {
    color: #1a1a2e;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 15px;
}

.events-intro {
    text-align: center;
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.events-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.event-filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #f0a500;
    border-radius: 25px;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.event-filter-btn:hover {
    background: #f0a500;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240,165,0,0.3);
}

.event-filter-btn.active {
    background: #f0a500;
    color: white;
    box-shadow: 0 5px 15px rgba(240,165,0,0.3);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #f0a500;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.event-header h3 {
    color: #1a1a2e;
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

.event-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.event-category.business {
    background: #4CAF50;
    color: white;
}

.event-category.community {
    background: #2196F3;
    color: white;
}

.event-category.entertainment {
    background: #9C27B0;
    color: white;
}

.event-category.historical {
    background: #FF9800;
    color: white;
}

.event-details {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.event-details p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95rem;
}

.event-date {
    font-weight: 600;
    color: #1a1a2e !important;
}

.event-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .events-filter {
        gap: 10px;
    }
    
    .event-filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-category {
        margin-top: 10px;
    }
}

