/* Regions Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #5e10a1 0%, #f7931e 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header-content p {
    font-size: 16px;
    opacity: 0.95;
}

/* Region Search Section */
.region-search-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.region-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.region-search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.region-search-input:focus {
    outline: none;
    border-color: #5e10a1;
}

.region-search-btn {
    padding: 16px 32px;
    background: #5e10a1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.region-search-btn:hover {
    background: #e55a28;
}

.region-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #5e10a1;
}

/* Regions Grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 1200px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Region Card */
.region-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #5e10a1;
}

.region-card-header {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
}

.region-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.region-stats-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-hospitals {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-rating {
    background: #fff3e0;
    color: #f57c00;
}

.region-card-body {
    padding: 24px;
    flex: 1;
}

.region-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    color: #666;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.district-list {
    margin-top: 16px;
}

.district-list-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.district-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.district-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.district-tag:hover {
    background: #5e10a1;
    color: white;
    border-color: #5e10a1;
}

.district-count {
    font-size: 11px;
    opacity: 0.7;
}

.district-more {
    padding: 6px 12px;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.region-card-footer {
    padding: 20px 24px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.btn-view-hospitals {
    width: 100%;
    padding: 14px;
    background: #5e10a1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-view-hospitals:hover {
    background: #e55a28;
}

/* Empty State */
.regions-empty {
    text-align: center;
    padding: 80px 20px;
}

.regions-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.regions-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.regions-empty-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-reset-search {
    display: inline-block;
    padding: 12px 24px;
    background: #5e10a1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-reset-search:hover {
    background: #e55a28;
}

/* Popular Regions Section */
.popular-regions-section {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

.popular-regions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.popular-region-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.popular-region-item:hover {
    background: #5e10a1;
    border-color: #5e10a1;
    transform: translateX(4px);
}

.popular-region-item:hover .popular-region-name,
.popular-region-item:hover .popular-region-count,
.popular-region-item:hover .popular-region-rating {
    color: white;
}

.popular-region-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.popular-region-count {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.popular-region-rating {
    font-size: 13px;
    color: #5e10a1;
    font-weight: 600;
}

.popular-region-item:hover .popular-region-rating {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 20px;
    }

    .page-header-content h1 {
        font-size: 28px;
    }

    .region-search-section {
        padding: 24px;
    }

    .region-search-box {
        flex-direction: column;
    }

    .region-stats {
        gap: 20px;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .popular-regions-list {
        grid-template-columns: 1fr;
    }

    .popular-regions-section {
        padding: 24px;
    }
}
