/* ==========================================================================
   page-cities.css — Cities Listing Page
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────── */
.cities-hero {
    background: var(--bg-gradient);
    padding: 5rem 0 4rem;
    color: white;
    text-align: center;
}

.cities-hero-inner { max-width: 650px; margin: 0 auto; }

.cities-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
}

.cities-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.cities-hero-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Search */
.cities-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    max-width: 440px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s;
}

.cities-search-wrap:focus-within {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.18);
}

.cities-search-wrap svg { opacity: 0.7; flex-shrink: 0; }

.cities-search-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    width: 100%;
}

.cities-search-wrap input::placeholder { color: rgba(255,255,255,0.6); }

/* ── Stats Bar ────────────────────────────────────────── */
.cities-stats-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cities-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cities-stat-item { text-align: center; }

.cities-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.cities-stat-lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ── Body ─────────────────────────────────────────────── */
.cities-body { padding: 3rem 0 5rem; }

/* ── Grid ─────────────────────────────────────────────── */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── City Card ────────────────────────────────────────── */
.city-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.city-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(27,45,107,0.18);
}

/* BG image */
.city-item-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-gradient);
}

.city-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-item:hover .city-item-img { transform: scale(1.07); }

.city-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,23,42,0.92) 0%,
        rgba(15,23,42,0.4) 50%,
        rgba(15,23,42,0.1) 100%
    );
}

/* Content */
.city-item-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.city-item-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    margin-bottom: 0.25rem;
}

.city-item-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    color: white;
}

.city-item-desc {
    font-size: 0.82rem;
    opacity: 0.75;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.city-item-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    opacity: 0.85;
    flex-wrap: wrap;
}

.city-item-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.city-item-dot { opacity: 0.4; }

.city-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #C9A84C !important;
    margin-top: 0.4rem;
    transition: gap 0.2s;
}

.city-item:hover .city-item-cta { gap: 0.55rem; }

/* ── No Results ───────────────────────────────────────── */
.cities-no-results {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-gray);
    grid-column: 1 / -1;
}

.cities-no-results svg { opacity: 0.2; margin: 0 auto 1.2rem; display: block; }
.cities-no-results p   { font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

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

@media (max-width: 900px) {
    .cities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Hero */
    .cities-hero        { padding: 3.5rem 0 3rem; }
    .cities-hero-title  { font-size: 2rem; }
    .cities-hero-desc   { font-size: 0.95rem; margin-bottom: 2rem; }
    .cities-search-wrap { max-width: 100%; }

    /* Stats bar */
    .cities-stats-row { gap: 1.8rem; }
    .cities-stat-num  { font-size: 1.35rem; }

    /* Grid */
    .cities-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .city-item   { min-height: 240px; }
    .city-item-name { font-size: 1.15rem; }
    .city-item-content { padding: 1.2rem; gap: 0.4rem; }
}

@media (max-width: 480px) {
    /* Hero */
    .cities-hero        { padding: 2.8rem 0 2.5rem; }
    .cities-hero-title  { font-size: 1.65rem; }
    .cities-hero-badge  { display: none; }
    .cities-hero-desc   { font-size: 0.88rem; margin-bottom: 1.75rem; }
    .cities-search-wrap { padding: 0.75rem 1.2rem; }

    /* Stats */
    .cities-stats-row { gap: 1.2rem; }
    .cities-stat-num  { font-size: 1.2rem; }
    .cities-stat-lbl  { font-size: 0.75rem; }

    /* Grid → 1 col */
    .cities-grid { grid-template-columns: 1fr; gap: 0.9rem; }
    .city-item   { min-height: 210px; }
    .city-item-desc { display: none; }
    .city-item-stats { font-size: 0.78rem; }

    /* Body */
    .cities-body { padding: 2rem 0 3.5rem; }
}

@media (max-width: 360px) {
    .cities-hero-title { font-size: 1.45rem; }
    .city-item-name    { font-size: 1.05rem; }
    .city-item-content { padding: 1rem; }
}
