/* cities-style.css - Styles specifically for the city portal layout */

body.cities-page {
    background: white; /* Sidebar area expects white */
    margin: 0;
    padding: 0;
}

.cities-navbar {
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
}

.cities-nav-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 24px;
}

.mid-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
}

.mid-links a {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.mid-links a:hover, .mid-links a.active {
    color: var(--primary-dark);
}

.mid-links a.active {
    border-bottom: 2px solid #2563eb;
    padding-bottom: 24px;
    margin-bottom: -26px; /* align with header border */
}

.btn-dark-post {
    background: #0b0c2a;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 16px;
    transition: background 0.2s;
    vertical-align: middle;
}
.btn-dark-post:hover { background: #1e1b4b; }

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    vertical-align: middle;
}

.cities-layout {
    display: flex;
    min-height: calc(100vh - 80px); /* 80px navbar assumed */
}

/* Sidebar Portal */
.sidebar-portal {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    background: white;
}

.sidebar-sticky {
    position: sticky;
    top: 80px; /* Below navbar */
    height: calc(100vh - 80px);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.sb-header {
    margin-bottom: 32px;
}

.sb-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.sb-header span {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

.sb-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sb-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sb-menu a i {
    font-size: 18px;
}

.sb-menu a:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.sb-menu a.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.sb-bottom {
    margin-top: auto;
}

.btn-light-blue {
    width: 100%;
    background: #eff6ff;
    color: #2563eb;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-light-blue:hover { background: #dbeafe; }

/* Main Portal Area */
.main-portal {
    flex-grow: 1;
    min-width: 0; /* Prevent flex overflow */
    background: #ffffff;
}

/* Hero Section */
.city-hero {
    height: 400px;
    background-image: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 100%), url('assets/images/india_palace.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.city-hero-content {
    max-width: 800px;
}

.hero-eyebrow {
    color: #f97316;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.city-hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.hero-purple {
    color: #a78bfa; /* Light purple pop */
}

.city-search-box {
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
}

.city-search-box i {
    color: #94a3b8;
    font-size: 20px;
    margin-left: 12px;
}

.city-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 14px;
}

.btn-search-blue {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Hubs Grid */
.hubs-section {
    padding: 60px;
}

.section-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-top-flex h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-top-flex p {
    color: var(--text-secondary);
    font-size: 14px;
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.icon-btn-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
}
.icon-btn-round:hover { border-color: #cbd5e1; background: #f8fafc; }

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}

.col-wide { grid-column: span 2; }
.col-narrow { grid-column: span 1; }

.hub-card {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.hub-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, transparent 60%);
    z-index: 1;
}

.hub-info {
    position: relative;
    z-index: 2;
    color: white;
}

.hub-info h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 6px;
}

.hub-info p {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

/* Directory Zones */
.directory-zones {
    background: #f8fafc;
    padding: 60px;
}

.directory-flex {
    display: flex;
    gap: 60px;
}

.zone-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.zone-title {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.zone-list {
    list-style: none;
    margin-bottom: 40px;
}

.zone-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.zone-list li.active {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.badge-count {
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.text-gray { color: #94a3b8; font-size: 11px; }

.quote-block {
    background: #1e1b4b;
    border-radius: 16px;
    padding: 24px;
    color: white;
}

.q-text {
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.q-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.q-avatar {
    width: 32px;
    height: 32px;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.q-name { font-size: 12px; font-weight: 600; }
.q-pos { font-size: 10px; color: #94a3b8; }

.zone-content {
    flex-grow: 1;
}

.zg-row {
    display: flex;
    gap: 40px;
}

.mt-40 { margin-top: 40px; border-top: 1px solid #e2e8f0; padding-top: 40px; }

.zg-col { flex: 1; }

.zg-col h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.zg-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zg-col a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.zg-col a:hover { color: #2563eb; }

.load-more-center {
    margin-top: 60px;
    text-align: center;
}

.btn-load-more {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-load-more:hover { background: #f8fafc; }

/* Custom Portal Footer inside Main */
.portal-footer {
    background: #0b0c2c;
    color: white;
    padding: 60px;
}

.pf-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pf-links {
    display: flex;
    gap: 32px;
}

.pf-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.pf-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-bot p {
    font-size: 11px;
    color: #64748b;
}

.pf-icons { display: flex; gap: 12px; }
.pf-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
}

/* ============================================
   CITIES PAGE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar-portal {
        width: 220px;
    }
    .hubs-section {
        padding: 40px 32px;
    }
    .directory-zones {
        padding: 40px 32px;
    }
    .hubs-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .col-wide, .col-narrow {
        grid-column: span 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Layout: stack sidebar above content */
    .cities-layout {
        flex-direction: column;
    }

    /* Sidebar becomes horizontal strip */
    .sidebar-portal {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        overflow-x: auto;
    }
    .sidebar-sticky {
        position: static;
        height: auto;
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .sb-header {
        display: none;
    }
    .sb-menu {
        flex-direction: row;
        gap: 4px;
        flex-grow: unset;
        white-space: nowrap;
    }
    .sb-menu a {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    .sb-menu a i {
        font-size: 15px;
    }
    .sb-bottom {
        display: none;
    }

    /* Hero */
    .city-hero {
        height: auto;
        min-height: 280px;
        padding: 32px 20px;
    }
    .city-hero-title {
        font-size: 30px;
        margin-bottom: 20px;
    }
    .city-search-box {
        flex-direction: column;
        max-width: 100%;
        gap: 0;
    }
    .city-search-box i {
        display: none;
    }
    .city-search-box input {
        width: 100%;
        padding: 12px;
        border-bottom: 1px solid #e2e8f0;
    }
    .btn-search-blue {
        border-radius: 0 0 6px 6px;
        width: 100%;
        padding: 12px;
    }

    /* Trending pills in hero */
    .trending {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    /* Hubs Grid */
    .hubs-section {
        padding: 24px 16px;
    }
    .section-top-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    .section-top-flex h2 {
        font-size: 20px;
    }
    .slider-arrows {
        display: none;
    }
    .hubs-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
        gap: 12px;
    }
    .col-wide, .col-narrow {
        grid-column: span 1;
    }
    .hub-info h3 {
        font-size: 18px;
    }

    /* Directory / Browse by Zone */
    .directory-zones {
        padding: 24px 16px;
    }
    .directory-flex {
        flex-direction: column;
        gap: 24px;
    }
    .zone-sidebar {
        width: 100%;
    }
    .zone-list {
        margin-bottom: 20px;
    }
    .quote-block {
        display: none;
    }
    .zg-row {
        flex-wrap: wrap;
        gap: 24px;
    }
    .zg-col {
        min-width: 42%;
        flex: 1 1 42%;
    }
    .load-more-center {
        margin-top: 32px;
    }

    /* Navbar override for cities page */
    .nav-container {
        padding: 14px 16px !important;
    }
}

/* Small mobiles */
@media (max-width: 480px) {
    .city-hero-title {
        font-size: 24px;
    }
    .zg-col {
        min-width: 100%;
        flex: 1 1 100%;
    }
    .hubs-section, .directory-zones {
        padding: 20px 12px;
    }
}

