/* ========================================
   CITY ARCHIVE PAGE - Clean Professional
   ======================================== */

/* Archive Layout with Sidebar */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    margin: 40px auto;
}

/* RTL Support */
[dir="rtl"] .archive-layout {
    direction: rtl;
}

.city-archive-page {
    background: #f8f9fb;
    padding-top: 0;
}

/* ========================================
   Page Header
   ======================================== */
.city-archive-header {
    background: white;
    padding: 30px 0 25px;
    border-bottom: 1px solid #eef0f3;
}

/* Breadcrumbs */
.archive-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 18px;
}

.archive-breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.archive-breadcrumbs a:hover {
    color: var(--primary-color, #0F2742);
}

.archive-breadcrumbs a i {
    margin-left: 4px;
    font-size: 12px;
}

.archive-breadcrumbs span {
    color: #ccc;
}

.archive-breadcrumbs .current {
    color: var(--secondary-color, #C9A45C);
    font-weight: 600;
}

/* Title Row */
.archive-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.city-archive-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color, #C9A45C);
    margin: 0;
    line-height: 1.2;
}

.projects-count {
    background: var(--primary-color, #0F2742);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========================================
   Search + Filter Toolbar
   ======================================== */
.city-archive-toolbar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eef0f3;
    position: sticky;
    top: 80px;
    /* Below fixed header */
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .city-archive-toolbar {
        top: 65px;
    }
}

.toolbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Input */
.toolbar-search {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.toolbar-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}

.toolbar-search input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f8f9fb;
    outline: none;
    transition: all 0.2s;
    color: #333;
}

.toolbar-search input:focus {
    border-color: var(--primary-color, #0F2742);
    background: white;
    box-shadow: 0 0 0 3px rgba(193, 122, 74, 0.1);
}

.toolbar-search input::placeholder {
    color: #aaa;
}

/* Filter Select */
.toolbar-filter select {
    padding: 12px 16px;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f8f9fb;
    color: #555;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.2s;
    appearance: auto;
}

.toolbar-filter select:focus {
    border-color: var(--primary-color, #0F2742);
    background: white;
    box-shadow: 0 0 0 3px rgba(193, 122, 74, 0.1);
}

/* Submit Button */
.toolbar-submit {
    padding: 12px 24px;
    background: var(--secondary-color, #C9A45C);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toolbar-submit:hover {
    background: var(--secondary-dark, #152a45);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

.toolbar-submit i {
    font-size: 13px;
}

/* ========================================
   Projects Grid - 3 Columns
   ======================================== */
.city-archive-content {
    padding: 40px 0 50px;
}

.city-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Project Card Tweaks for Archive */
.city-projects-grid .project-card,
.city-projects-grid .pc {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f3;
    transition: all 0.3s ease;
}

.city-projects-grid .project-card:hover,
.city-projects-grid .pc:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #0F2742);
}

/* ========================================
   Pagination
   ======================================== */
.city-pagination {
    text-align: center;
    padding: 10px 0;
}

.city-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.city-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
    color: #555;
    border: 1px solid #e2e5ea;
}

.city-pagination .page-numbers:hover {
    background: #f0f1f4;
    color: var(--secondary-color, #C9A45C);
    border-color: var(--secondary-color, #C9A45C);
}

.city-pagination .page-numbers.current {
    background: var(--secondary-color, #C9A45C);
    color: white;
    border-color: var(--secondary-color, #C9A45C);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.city-pagination .page-numbers.prev,
.city-pagination .page-numbers.next {
    background: var(--primary-color, #0F2742);
    color: white;
    border-color: var(--primary-color, #0F2742);
}

.city-pagination .page-numbers.prev:hover,
.city-pagination .page-numbers.next:hover {
    background: var(--primary-dark, #a0633d);
    transform: translateY(-1px);
}

.city-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #999;
    min-width: auto;
}

/* ========================================
   No Projects Found
   ======================================== */
.no-projects-found {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #eef0f3;
}

.no-projects-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.no-projects-found h3 {
    font-size: 1.4rem;
    color: var(--secondary-color, #C9A45C);
    margin-bottom: 8px;
}

.no-projects-found p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* ========================================
   City Description Section
   ======================================== */
.city-description-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid #eef0f3;
}

.city-description-content {
    max-width: 850px;
}

.city-description-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color, #C9A45C);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color, #0F2742);
    display: inline-block;
}

.description-text {
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.description-text p {
    margin-bottom: 15px;
}

.description-text h3,
.description-text h4 {
    color: var(--secondary-color, #C9A45C);
    margin: 25px 0 10px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .city-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .city-archive-header {
        padding: 20px 0;
    }

    .city-archive-title {
        font-size: 1.5rem;
    }

    .toolbar-inner {
        flex-wrap: wrap;
    }

    .toolbar-search {
        width: 100%;
        min-width: 100%;
    }

    .toolbar-filter {
        flex: 1;
    }

    .toolbar-filter select {
        width: 100%;
        min-width: auto;
    }

    .toolbar-submit {
        flex: 0;
    }

    .city-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .city-archive-content {
        padding: 25px 0 40px;
    }

    .city-description-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .city-projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .archive-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .city-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Archive Layout Responsive */
@media (max-width: 968px) {
    .archive-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    #secondary.widget-area {
        width: 100%;
        order: -1;
        /* Sidebar on top for filtering */
    }
}

@media (max-width: 768px) {
    .archive-layout {
        gap: 20px;
        margin: 20px auto;
    }

    .widget-area {
        padding-left: 0;
        padding-right: 0;
    }

    .project-filters-widget,
    .default-sidebar-widgets {
        position: static;
        margin-bottom: 20px;
    }
}