ff/* Regional Page Styles */

/* Hero Section */
.region-page .hero-section {
    padding: 80px 0 60px;
    position: relative;
}

.region-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 5;
}

.region-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.region-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Regional CTA Buttons */
.region-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.region-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.region-cta-primary {
    background: white;
    color: #533483 !important;
    border: 2px solid white;
}

.region-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: #f0f0f0;
    color: #533483 !important;
}

.region-cta-secondary {
    background: #2ecc71 !important;
    color: white !important;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.region-cta-secondary:hover {
    background: #27ae60 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white !important;
}

/* Regional Overview Section */
.region-overview-section {
    padding: 60px 0;
    background: #ffffff;
}

/* Regional Summary Section */
.region-summary-section {
    padding: 60px 0;
    background: #ffffff;
}

.region-summary-section .summary-content {
    max-width: 900px;
    margin: 0 auto;
    color: #2c3e50;
    line-height: 1.8;
}

.region-summary-section .summary-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: left;
}

.region-summary-section .summary-content p:last-child {
    margin-bottom: 0;
}

.region-summary-section .summary-content strong {
    color: #533483;
    font-weight: 600;
}

/* Regional Overview Section */
.region-overview-section {
    padding: 60px 0;
    background: #ffffff;
}

/* Regional Crime Statistics Section */
.region-stats {
    padding: 60px 0;
    background: #ffffff;
}

.stats-loading,
.stats-error {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.stats-loading i {
    font-size: 32px;
    color: #533483;
    margin-bottom: 15px;
}

.stats-error i {
    font-size: 32px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.stats-grid {
    display: none; /* Hidden by default, shown by JavaScript */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.stats-error {
    display: none; /* Hidden by default, shown on error */
}

.stat-card {
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card-primary {
    border-left: 4px solid #533483;
}

.stat-card-secondary {
    border-left: 4px solid #3498db;
}

.stat-card-tertiary {
    border-left: 4px solid #2ecc71;
}

.stat-card-quaternary {
    border-left: 4px solid #e74c3c;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-card-primary .stat-icon {
    color: #533483;
}

.stat-card-secondary .stat-icon {
    color: #3498db;
}

.stat-card-tertiary .stat-icon {
    color: #2ecc71;
}

.stat-card-quaternary .stat-icon {
    color: #e74c3c;
}

.stat-content h3 {
    margin: 8px 0 4px 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.stat-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* Crime Breakdown Section */
.region-crime-breakdown {
    padding: 60px 0;
    background: #ffffff;
}

.crime-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

#crimeStatsSection {
    display: none; /* Hidden by default, shown by JavaScript when data loads */
}

.crime-stat-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.crime-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.crime-stat-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.crime-stat-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #533483;
    margin-bottom: 12px;
}

.crime-stat-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.crime-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #533483 0%, #6b4694 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Crime Comparison Section */
.region-comparison-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

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

.region-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
}

.region-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.region-overview-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #533483;
}

.region-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.region-card-icon {
    color: #533483;
    font-size: 28px;
    margin-right: 15px;
}

.region-card-title {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

.region-card-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Cities Section */
.region-cities-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.region-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.region-city-card {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.region-city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.region-city-name {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #533483;
    font-weight: 600;
}

.region-city-icon {
    margin-right: 8px;
    font-size: 0.9rem;
}

.region-city-description {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Features Section */
.region-features-section {
    padding: 60px 0;
    background: #ffffff;
}

.region-features-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.region-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.region-feature-item {
    display: flex;
    align-items: start;
}

.region-feature-icon {
    color: #533483;
    font-size: 20px;
    margin-right: 12px;
    margin-top: 2px;
}

.region-feature-title {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.region-feature-description {
    color: #64748b;
    font-size: 0.95rem;
}

/* CTA Section */
.region-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #533483 0%, #6b4694 100%);
}

.region-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.region-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.region-cta-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.region-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: #533483;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.region-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Browse Other Regions Section */
.region-browse-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.region-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.region-link {
    text-decoration: none;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
    color: #533483;
    font-weight: 500;
    transition: all 0.3s ease;
}

.region-link:hover {
    background: #f8f9fa;
    border-color: #533483;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .region-hero-title {
        font-size: 2rem;
    }
    
    .region-hero-description {
        font-size: 1rem;
    }
    
    .region-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .region-cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .region-summary-section .summary-content p {
        font-size: 1rem;
    }
    
    .region-features-grid {
        grid-template-columns: 1fr;
    }
    
    .region-section-title {
        font-size: 1.75rem;
    }
    
    .region-cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .region-hero-title {
        font-size: 1.75rem;
    }
    
    .region-summary-section .summary-content p {
        font-size: 0.95rem;
    }
    
    .region-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .region-cities-grid {
        grid-template-columns: 1fr;
    }
}
