/* ============================================
   WILAYAH PAGES STYLES
   Region Listing & Detail Pages
   ============================================ */

/* === PAGE HEADER === */
.page-header {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.8125rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    margin-left: 0.25rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb .active {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb li i {
    font-size: 0.75rem;
}

/* Mobile Breadcrumb */
@media (max-width: 480px) {
    .breadcrumb ol {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .breadcrumb li:not(:last-child)::after {
        font-size: 0.875rem;
    }

    /* Hide middle items on very small screens, show only first and last */
    .breadcrumb li:nth-child(2) {
        display: none;
    }
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
}

/* === SEARCH SECTION === */
.search-section {
    padding: 2rem 0;
    background: var(--white);
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    font-size: 1.125rem;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

/* === REGIONS GRID === */
.regions-section {
    padding: 3rem 0;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.region-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.region-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.region-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.region-card:hover .region-image img {
    transform: scale(1.1);
}

.region-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    color: var(--gray-500);
    font-size: 3rem;
}

.region-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.vehicle-count {
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-count i {
    color: var(--primary);
}

.region-body {
    padding: 1.5rem;
}

.region-name {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.region-description {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.region-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.125rem;
    width: 20px;
}

.region-footer {
    display: flex;
    gap: 0.75rem;
}

.btn-block {
    width: 100%;
    justify-content: space-between;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--gray-700);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* === PAGINATION === */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

.pagination-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* === REGION HERO (DETAIL PAGE) === */
.region-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    overflow: hidden;
}

.region-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%);
}

.region-hero .breadcrumb {
    margin-bottom: 2rem;
}

.region-hero .breadcrumb a,
.region-hero .breadcrumb li {
    color: rgba(255, 255, 255, 0.9);
}

.region-hero .breadcrumb a:hover {
    color: var(--primary-light);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.stat-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-item span {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* === FILTERS SECTION === */
.filters-section {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.filters-bar {
    display: flex;
    justify-content: center;
}

.filters-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--primary);
}

.filter-select {
    min-width: 160px;
    padding: 0.625rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* === QUICK CTA === */
.quick-cta {
    padding: 2rem 0;
    background: var(--gray-50);
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.cta-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: var(--gray-600);
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.faq-item h3 i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.faq-item p {
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

/* === CTA BANNER === */
.cta-banner {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.cta-banner .cta-box {
    text-align: center;
    background: transparent;
    box-shadow: none;
    flex-direction: column;
}

.cta-banner h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-banner .cta-actions {
    justify-content: center;
}

/* === REGION INFO SECTION === */
.region-info-section {
    padding: 3rem 0;
}

.info-box h2 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-content {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1.0625rem;
    max-width: 900px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .regions-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .filters-form {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .btn {
        width: 100%;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .filters-form {
        width: 100%;
    }

    .filter-group {
        flex: 1;
        min-width: 140px;
    }

    .filter-select {
        width: 100%;
        min-width: auto;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }
}