:root {
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --primary: #16A34A;
    --primary-dark: #15803D;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-muted: #64748B;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.search-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg);
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(22 163 74 / 0.1);
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.5;
}

.header-actions { display: flex; gap: 8px; }

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }

.hero {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 50%, #166534 100%);
    color: white;
    padding: 64px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; position: relative; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; position: relative; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; position: relative; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 32px; font-weight: 700; }
.hero-stat-label { font-size: 14px; opacity: 0.8; }

.fuel-filter {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 61px;
    z-index: 99;
}

.fuel-filter-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fuel-filter-label { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-right: 4px; }

.fuel-chip {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--surface);
    transition: all 0.2s;
}

.fuel-chip:hover { border-color: var(--primary); color: var(--primary); }
.fuel-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

.map-section { max-width: 1280px; margin: 24px auto; padding: 0 24px; }
.map-container { background: var(--surface); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
#map { height: 500px; width: 100%; }

.cities-section, .features { max-width: 1280px; margin: 48px auto; padding: 0 24px; }
.features { margin-top: 64px; }

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

.section-title { font-size: 24px; font-weight: 700; }
.section-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 14px; }
.section-link:hover { text-decoration: underline; }

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.city-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.city-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.city-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.city-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.city-name { font-weight: 600; font-size: 16px; }
.city-region { font-size: 13px; color: var(--text-muted); }
.city-stats { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.city-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.city-stat-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--success); }
.dot-red { background: var(--danger); }
.dot-yellow { background: var(--warning); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.feature-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.breadcrumbs {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 0 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text-muted); margin: 0 6px; }

.page-hero { max-width: 1280px; margin: 32px auto 0; padding: 0 24px; }
.page-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--text-muted); max-width: 600px; }

.region-group { margin-bottom: 40px; }
.region-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.notice {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 12px 20px;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 12px;
    color: #92400E;
    font-size: 14px;
}

.footer {
    background: var(--text);
    color: white;
    padding: 48px 24px 24px;
    margin-top: 80px;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 12px;
}

.portal-back {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.portal-back:hover { color: var(--primary); }

.benzin-marker { background: transparent; border: none; }
.benzin-marker-dot {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.main-layout {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.city-hero { max-width: 1280px; margin: 24px auto 0; padding: 0 24px; }
.city-hero-card {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
}
.city-hero-title { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.city-hero-subtitle { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.city-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.city-hero-stat-value { font-size: 28px; font-weight: 700; }
.city-hero-stat-label { font-size: 13px; opacity: 0.8; }

.stations-panel {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 500px;
    overflow-y: auto;
}
.stations-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stations-panel-title { font-weight: 600; font-size: 15px; }
.stations-panel-count { font-size: 13px; color: var(--text-muted); }
.station-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.station-item:hover { background: var(--bg); }
.station-item-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.station-logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--text-muted); flex-shrink: 0;
}
.station-info { flex: 1; min-width: 0; }
.station-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.station-address { font-size: 12px; color: var(--text-muted); }
.station-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.station-badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-available { background: #DCFCE7; color: #166534; }
.badge-limited { background: #FEF3C7; color: #92400E; }
.badge-empty { background: #FEE2E2; color: #991B1B; }
.badge-queue { background: #FFEDD5; color: #9A3412; }
.badge-fuel { background: #F1F5F9; color: var(--text-muted); font-weight: 500; }

.seo-content { max-width: 1280px; margin: 48px auto; padding: 0 24px; }
.seo-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.seo-content p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 1024px) { .main-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 24px; }
    .hero-stat-value { font-size: 24px; }
    .header-inner { padding: 10px 16px; }
    .search-box { display: none; }
    .cities-grid { grid-template-columns: 1fr; }
    #map { height: 350px; }
    .page-hero h1 { font-size: 24px; }
}
