/* The City Platform - Modern 2026 Web Portal Stylesheet */
:root {
    --city-primary: #2563eb;
    --city-primary-hover: #1d4ed8;
    --city-primary-light: #eff6ff;
    --city-primary-glow: rgba(37, 99, 235, 0.25);
    
    --city-dark: #0f172a;
    --city-dark-surface: #1e293b;
    
    --city-bg: #f8fafc;
    --city-card-bg: #ffffff;
    --city-border: #e2e8f0;
    --city-border-light: rgba(226, 232, 240, 0.8);
    
    --city-text-primary: #0f172a;
    --city-text-secondary: #475569;
    --city-text-muted: #94a3b8;
    
    --city-radius-sm: 8px;
    --city-radius-md: 14px;
    --city-radius-lg: 20px;
    --city-radius-full: 9999px;
    
    --city-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --city-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
    --city-shadow-lg: 0 20px 35px -8px rgba(0, 0, 0, 0.12);
    
    --city-gradient-hero: linear-gradient(135deg, #091328 0%, #172554 50%, #1e3a8a 100%);
    --city-gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--city-bg);
    color: var(--city-text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* App Wrapper */
.city-app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navbar */
.city-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--city-border-light);
    height: 70px;
    display: flex;
    align-items: center;
}

.city-nav-container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.city-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.city-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--city-radius-md);
    background: var(--city-gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--city-primary-glow);
}

.city-brand-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--city-text-primary);
    line-height: 1.1;
}

.city-brand-sub {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--city-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Search */
.city-nav-search {
    flex: 1;
    max-width: 440px;
    position: relative;
    display: flex;
    align-items: center;
}

.city-nav-search .material-icons {
    position: absolute;
    left: 14px;
    color: var(--city-text-muted);
    font-size: 20px;
    pointer-events: none;
}

.city-search-input {
    width: 100%;
    height: 44px;
    padding: 10px 40px 10px 44px;
    border-radius: var(--city-radius-full);
    border: 1px solid var(--city-border);
    background: #f8fafc;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.city-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--city-primary);
    box-shadow: 0 0 0 3px var(--city-primary-glow);
}

.city-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--city-text-muted);
    cursor: pointer;
    display: none;
}

/* Nav Links & Buttons */
.city-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.city-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--city-radius-full);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.city-btn-primary {
    background: var(--city-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--city-primary-glow);
}
.city-btn-primary:hover {
    background: var(--city-primary-hover);
    transform: translateY(-1px);
}

.city-btn-ghost {
    background: transparent;
    border-color: var(--city-border);
    color: var(--city-text-primary);
}
.city-btn-ghost:hover {
    background: #f1f5f9;
}

.city-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--city-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--city-border);
    color: var(--city-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.city-icon-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Mobile Drawer */
.city-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
}
.city-drawer-overlay.open { display: block; }

.city-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    bottom: 0;
    width: 300px;
    background: #ffffff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--city-shadow-lg);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.city-drawer.open { right: 0; }

.city-drawer-header {
    padding: 24px 20px;
    background: var(--city-gradient-hero);
    color: #ffffff;
}

.city-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.city-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--city-radius-md);
    color: var(--city-text-primary);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.city-drawer-item:hover { background: #f1f5f9; }
.city-drawer-item.active { background: var(--city-primary-light); color: var(--city-primary); }

/* Hero Section */
.city-hero {
    background: var(--city-gradient-hero);
    color: #ffffff;
    padding: 60px 24px 70px;
    position: relative;
    overflow: hidden;
}

.city-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.city-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--city-radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #93c5fd;
}

.city-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.city-hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.city-hero-subtitle {
    font-size: 16.5px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 30px;
}

/* Category Filter Bar */
.city-categories-bar {
    position: sticky;
    top: 70px;
    z-index: 40;
    background: #ffffff;
    border-bottom: 1px solid var(--city-border);
    padding: 12px 24px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.city-categories-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--city-radius-full);
    background: #f8fafc;
    border: 1px solid var(--city-border);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--city-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.category-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.category-chip.active {
    background: var(--city-primary);
    color: #ffffff;
    border-color: var(--city-primary);
    box-shadow: 0 4px 12px var(--city-primary-glow);
}

/* Main Grid & Cards */
.city-main-content {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 24px 60px;
    flex: 1;
}

.city-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.city-results-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--city-text-primary);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.city-place-card {
    background: #ffffff;
    border-radius: var(--city-radius-lg);
    border: 1px solid var(--city-border);
    overflow: hidden;
    box-shadow: var(--city-shadow-xs);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.city-place-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--city-shadow-md);
    border-color: #cbd5e1;
}

.city-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    background: #0f172a;
    overflow: hidden;
}

.city-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.city-place-card:hover .city-card-img {
    transform: scale(1.05);
}

.city-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--city-radius-full);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.city-card-star {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--city-radius-full);
    background: #eab308;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.4);
}

.city-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.city-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--city-text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.city-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--city-text-secondary);
    margin-bottom: 16px;
}

.city-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--city-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-card-details-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--city-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modals & Dialogs */
.city-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.city-modal-overlay.active { display: flex; }

.city-modal-box {
    background: #ffffff;
    border-radius: var(--city-radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.city-modal-header {
    padding: 16px 20px;
    background: var(--city-gradient-hero);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Footer */
.city-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 50px 24px 30px;
    border-top: 1px solid #1e293b;
}

.city-footer-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.city-footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive */
@media (max-width: 840px) {
    .city-nav-search { display: none; }
    .city-hero-title { font-size: 30px; }
    .city-footer-container { grid-template-columns: 1fr; gap: 30px; }
}
