/* --- СОВРЕМЕННЫЙ ДИЗАЙН (БЕЗ ЛАГОВ) --- */
body { background-color: #f3f4f6 !important; }
.city-modern { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 1300px; margin: 0 auto; padding: 10px; }

.city-layout { display: flex; gap: 15px; align-items: flex-start; }
.city-main { flex: 1 1 70%; min-width: 0; }
.city-sidebar { flex: 0 0 350px; }

.city-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; background: #fff; padding: 15px 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.city-header h1 { font-size: 28px; font-weight: 700; color: #111; margin: 0 0 3px 0; }
.city-local { font-size: 16px; color: #888; }
.city-region { font-size: 14px; color: #555; display: flex; align-items: center; gap: 6px; }

.p20 { background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; padding: 15px !important; margin-bottom: 15px !important; border: none !important; }
.p20 h4 { font-size: 16px !important; color: #222 !important; margin-top: 0 !important; margin-bottom: 10px !important; border-bottom: 1px solid #f0f2f5; padding-bottom: 8px; }

.city-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.city-links a { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); color: #7c8a00 !important; font-weight: 600; text-decoration: none !important; font-size: 13px; transition: all 0.2s; }
.city-links a:hover { background: #f9fafb; }

.city-search-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); padding: 15px; margin-bottom: 15px; }
.city-search-card h4 { margin-top: 0; margin-bottom: 10px; }
.city-search-form { display: flex; gap: 8px; }
.city-search-form input[type="text"] { flex: 1; padding: 10px 14px !important; border: 1px solid #e5e7eb !important; border-radius: 6px !important; font-size: 14px !important; }
.city-search-form input[type="submit"] { background: #7c8a00 !important; color: #fff !important; border: none !important; border-radius: 6px !important; padding: 0 20px !important; font-weight: 600 !important; cursor: pointer !important; font-size: 14px !important; }

.city-sidebar .p20 { padding: 12px !important; }
.city-sidebar img { width: 100%; border-radius: 6px; margin-bottom: 8px; display: block; }

/* Аккордеон */
.streets-list { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; column-count: auto; column-width: 250px; column-gap: 20px; }
.streets-list.open { max-height: 3000px; /* Достаточно для 1000 улиц */ }
.streets-toggle { display: inline-block; margin-top: 12px; cursor: pointer; color: #7c8a00 !important; font-weight: 600; text-decoration: none !important; border-bottom: 1px dashed #aab300; font-size: 14px; }
.streets-toggle:hover { color: #5a6600 !important; border-bottom-style: solid; }

.city-modern a { color: #7c8a00 !important; text-decoration: none !important; font-weight: 600 !important; }
.city-modern a:hover { color: #5a6600 !important; }

/* Виртуальный список улиц в 3 колонки */
#streetsContentArea {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px 15px !important;
    padding: 10px !important;
}
#streetsContentArea > div {
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
@media (max-width: 900px) {
    #streetsContentArea { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    #streetsContentArea { grid-template-columns: 1fr !important; }
}

/* --- СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА ПОИСКА (wlist) --- */
.wlist {
    width: 100%;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin-top: 10px;
}

.wlist thead th {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.wlist tbody td {
    padding: 12px 15px;
    font-size: 14px;
    color: #111;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.wlist tbody tr:last-child td {
    border-bottom: none;
}

.wlist tbody tr:hover {
    background-color: #f9fafb;
}

.wlist tbody td a {
    color: #7c8a00 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.wlist tbody td a:hover {
    color: #5a6600 !important;
}

/* Скрываем старый стиль для wlist, если он где-то перебивает */
.wlist tr:nth-child(even) {
    background: transparent !important;
}

/* Мобильная версия: убираем огромные отступы */
@media (max-width: 768px) {
    .city-modern {
        padding: 10px !important;
    }
    .p20 {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    .city-header {
        padding: 10px 15px !important;
        margin-bottom: 10px !important;
    }
    .city-header h1 {
        font-size: 22px !important;
    }
    .city-links {
        gap: 5px !important;
        margin-bottom: 10px !important;
    }
    .city-links a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    .city-search-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    .city-search-form input[type="text"] {
        padding: 8px 12px !important;
    }
    .city-search-form input[type="submit"] {
        padding: 0 15px !important;
    }
    .city-editors {
        font-size: 12px !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    .accordion-list {
        column-width: 150px !important;
        column-gap: 10px !important;
    }
}
