/* kompanionki24.com - v3 adamieva-style */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary: #e1108e;
    --primary-hover: #D00651;
    --btn-bg: #3466b1;
    --btn-hover: #3d4e9b;
    --bg: #111118;
    --bg-card: #1c1c26;
    --bg-panel: #252530;
    --text: #c8c8cc;
    --text-light: #fff;
    --text-muted: #888;
    --border: #2a2a3a;
    --radius: 8px;
    --shadow: 0 0 8px rgba(0,0,0,0.28);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius);
    font-weight: 600; font-size: 14px; cursor: pointer;
    border: none; transition: var(--transition); text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-blue { background: var(--btn-bg); color: #fff; }
.btn-blue:hover { background: var(--btn-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ========== HEADER ========== */
.site-header {
    background: var(--bg); position: sticky; top: 0; z-index: 100;
}
.site-header::after {
    content: ''; position: absolute; bottom: -8px; left: 5%; right: 5%;
    height: 8px; background: transparent;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border-radius: 100px / 12px;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; position: relative;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 700; color: var(--text-light);
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 22px; }

/* Desktop nav */
.main-nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
    color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius);
    font-size: 14px; font-weight: 400;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link i { font-size: 16px; }

/* Hamburger - always visible */
.menu-toggle {
    display: none; background: none; border: 1px solid #444;
    color: var(--text); font-size: 20px; cursor: pointer;
    padding: 6px 10px; border-radius: var(--radius);
}

/* Slide-in sidebar menu */
.sidebar-menu {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: var(--bg-card); z-index: 1000; transition: left 0.3s ease;
    overflow-y: auto; padding: 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}
.sidebar-menu.open { left: 0; }
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 999; display: none;
}
.sidebar-overlay.open { display: block; }
.sidebar-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer;
}
.sidebar-logo {
    font-size: 22px; font-weight: 700; color: var(--primary);
    margin-bottom: 24px; display: block;
}
.sidebar-menu a.sidebar-link {
    display: block; padding: 12px 0; color: var(--text);
    font-size: 16px; border-bottom: 1px solid var(--border);
}
.sidebar-menu a.sidebar-link:hover { color: var(--primary); }
.sidebar-menu a.sidebar-link i { width: 24px; margin-right: 8px; color: var(--text-muted); }

/* User auth links in header */
.header-auth { display: flex; gap: 12px; align-items: center; }
.header-auth a { font-size: 13px; font-weight: 300; color: var(--text-muted); }
.header-auth a:hover { color: var(--primary); }
.header-auth .reg-link { color: var(--primary); font-weight: 600; }

/* User dropdown */
.user-dropdown { position: relative; }
.user-dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0; min-width: 180px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); z-index: 200; padding: 8px 0;
}
.user-dropdown:hover .user-dropdown-menu { display: block; }
.user-dropdown-menu a {
    display: block; padding: 8px 16px; color: var(--text); font-size: 14px;
}
.user-dropdown-menu a:hover { background: var(--bg-panel); color: var(--primary); }

/* ========== HERO / PAGE HEADER ========== */
.page-hero {
    padding: 40px 0 24px; text-align: center;
    border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.page-hero h1 { font-size: 26px; font-weight: 700; color: var(--text-light); margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); font-size: 15px; font-weight: 300; }
.page-hero .count { color: var(--primary); font-weight: 600; }

/* ========== FILTER BAR ========== */
.hero-filter {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
}
.hero-filter-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.hero-filter-item { flex: 1; min-width: 130px; }
.hero-filter-item label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--text-muted); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.hero-filter-btn { flex: 0 0 auto; }
.hero-filter-btn .btn { height: 40px; padding: 0 24px; }

.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background: var(--bg); color: var(--text);
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
select.form-control { padding-right: 30px; appearance: auto; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: 13px; color: var(--text-muted);
    margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}

/* Expandable filter */
.filter-extra { display: none; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.filter-extra.open { display: flex; }
.filter-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px; margin-top: 10px;
    background: none; border: 1px dashed var(--border); border-radius: var(--radius);
    color: var(--text-muted); font-size: 13px; cursor: pointer; transition: var(--transition);
}
.filter-toggle:hover { color: var(--primary); border-color: var(--primary); }

/* ========== AD CARD GRID (adamieva-style) ========== */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 20px 0;
}
.ad-card {
    display: block; text-decoration: none; color: var(--text);
    background: var(--bg-card); border-radius: 4px; overflow: hidden;
    transition: var(--transition);
}
.ad-card:hover { color: var(--primary); }
.ad-card:hover .ad-card-photo img { transform: scale(1.05); }

.ad-card-photo {
    width: 100%; height: 220px; overflow: hidden;
    background: #222;
}
.ad-card-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transition: transform 1.5s cubic-bezier(.07,.13,.19,.97);
}
.ad-card-count {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.6); color: #fff; padding: 2px 6px;
    border-radius: 4px; font-size: 11px;
}
.ad-card-photo { position: relative; }

.ad-card-info {
    padding: 8px 6px; text-align: center; font-size: 13px;
    line-height: 1.4;
}
.ad-card-stats { font-weight: 300; }
.ad-card-city { font-weight: 300; }
.ad-card-price {
    font-size: 14px; font-weight: 600; color: var(--primary);
    margin-top: 2px;
}

/* Keep old listing-grid for backwards compat */
.listing-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 6px; margin: 20px 0;
}
.listing-card {
    background: var(--bg-card); border-radius: 4px;
    overflow: hidden; transition: var(--transition);
}
.listing-card:hover { box-shadow: var(--shadow); }
.listing-card:hover .card-image img { transform: scale(1.05); }
.card-image { position: relative; height: 220px; overflow: hidden; background: #222; }
.card-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transition: transform 1.5s cubic-bezier(.07,.13,.19,.97);
}
.card-badge {
    position: absolute; top: 6px; left: 6px;
    background: var(--primary); color: #fff; padding: 2px 8px;
    border-radius: 12px; font-size: 10px; font-weight: 600; text-transform: uppercase;
}
.card-badge.verified { background: #2196f3; }
.card-images-count {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.6); color: #fff; padding: 2px 6px;
    border-radius: 4px; font-size: 11px;
}
.card-body {
    padding: 8px 6px; text-align: center; font-size: 13px; line-height: 1.4;
}
.card-info-line { font-weight: 300; }
.card-price { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 2px; }

/* ========== STORIES / RECOMMENDED ========== */
.stories-wrap { margin-bottom: 20px; overflow: hidden; }
.stories-scroll {
    display: flex; gap: 16px; overflow-x: auto; padding: 8px 0 12px;
    scrollbar-width: none;
}
.stories-scroll::-webkit-scrollbar { display: none; }
.story-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; flex-shrink: 0; text-decoration: none; width: 74px;
}
.story-ring {
    width: 66px; height: 66px; border-radius: 50%;
    background: linear-gradient(135deg, #e84393, #fd79a8, #e84393);
    padding: 3px; display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.story-item:hover .story-ring { transform: scale(1.1); }
.story-img {
    width: 100%; height: 100%; border-radius: 50%;
    background-size: cover; background-position: center;
    background-color: var(--bg-card); border: 2px solid var(--bg);
}
.story-name {
    font-size: 11px; color: var(--text-muted); text-align: center;
    max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 300;
}
.story-item:hover .story-name { color: var(--primary); }

/* ========== DISTRICTS GRID ========== */
.districts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px; margin: 20px 0;
}
.district-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition); text-decoration: none; color: var(--text);
}
.district-card:hover { border-color: var(--primary); color: var(--primary); }
.district-card h3 { font-size: 15px; font-weight: 500; }
.district-count { color: var(--text-muted); font-size: 13px; font-weight: 300; }

/* ========== PROFILE PAGE ========== */
.profile-header { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; }

.gallery { position: relative; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: #222; cursor: pointer; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.gallery-thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 1; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.profile-info {}
.profile-name { font-size: 24px; font-weight: 700; color: var(--text-light); margin-bottom: 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.profile-meta span, .profile-meta a { display: flex; align-items: center; gap: 4px; }
.profile-meta i { color: var(--primary); font-size: 12px; }

/* Contact buttons */
.profile-contact { display: flex; gap: 10px; margin-bottom: 16px; }
.contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--radius); font-size: 15px;
    font-weight: 600; cursor: pointer; border: none; transition: 0.2s;
}
.contact-btn.phone { background: var(--primary); color: #fff; }
.contact-btn.phone:hover { background: var(--primary-hover); }
.contact-btn.whatsapp { background: #25d366; color: #fff; }
.contact-btn.whatsapp:hover { background: #1ebe5d; }
.contact-blurred { filter: blur(4px); transition: 0.3s; }

.profile-description {
    max-height: 160px; overflow: hidden; position: relative; transition: max-height 0.3s;
}
.profile-description::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px; background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}
.profile-description.expanded { max-height: none; }
.profile-description.expanded::after { display: none; }
.read-more { text-align: center; margin-top: -20px; position: relative; z-index: 1; }

/* Details grid */
.details-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.detail-item {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.detail-label { color: var(--text-muted); font-weight: 300; }
.detail-value { font-weight: 500; color: var(--text-light); }

/* Services */
.services-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.service-badge {
    background: rgba(225,16,142,0.12); color: var(--primary);
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
    transition: 0.2s;
}
.service-badge:hover { background: var(--primary); color: #fff; }

/* Reactions */
.reactions { display: flex; gap: 8px; margin: 16px 0; }
.reaction-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 20px;
    background: var(--bg-panel); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; font-size: 14px; transition: 0.2s;
}
.reaction-btn:hover { border-color: var(--primary); color: var(--primary); }
.active-like { background: rgba(76,175,80,0.15); border-color: #4caf50; color: #4caf50; }
.active-dislike { background: rgba(244,67,54,0.15); border-color: #f44336; color: #f44336; }

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 10000; display: none; align-items: center; justify-content: center;
    flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 16px; right: 16px; color: #fff;
    font-size: 28px; cursor: pointer; background: none; border: none; z-index: 10001;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 32px; cursor: pointer;
    background: rgba(255,255,255,0.1); border: none;
    width: 44px; height: 60px; border-radius: 4px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { color: #aaa; font-size: 14px; margin-top: 12px; }

/* Lightbox contact */
.lightbox-contact {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: center; gap: 12px;
    padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.lightbox-wa-btn, .lightbox-phone-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 30px; font-size: 15px;
    font-weight: 600; text-decoration: none; transition: 0.2s;
}
.lightbox-wa-btn { background: #25d366; color: #fff; }
.lightbox-wa-btn:hover { background: #1ebe5d; color: #fff; }
.lightbox-phone-btn { background: var(--primary); color: #fff; }
.lightbox-phone-btn:hover { background: var(--primary-hover); color: #fff; }

/* ========== SEARCH PAGE ========== */
.search-filter-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px;
}

/* ========== AUTH FORMS ========== */
.auth-container {
    max-width: 480px; margin: 40px auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
}
.auth-container h1 { color: var(--text-light); font-size: 24px; margin-bottom: 24px; text-align: center; }
.auth-link { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 14px; }

/* POST AD FORM */
.post-ad-form {
    max-width: 800px; margin: 24px auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
}
.post-ad-form h1 { color: var(--text-light); font-size: 24px; margin-bottom: 24px; }
.post-ad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.checkbox-grid label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.checkbox-grid input[type="checkbox"] { accent-color: var(--primary); }

/* ========== ALERTS ========== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: rgba(76,175,80,0.15); color: #4caf50; border: 1px solid rgba(76,175,80,0.3); }
.alert-error { background: rgba(244,67,54,0.15); color: #f44336; border: 1px solid rgba(244,67,54,0.3); }

/* ========== FOOTER ========== */
.site-footer {
    background: #0a0a10; padding: 40px 0 20px; margin-top: 40px;
    border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: var(--text-light); margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: var(--text-muted); font-size: 13px; font-weight: 300; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col p { font-size: 13px; font-weight: 300; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; text-align: center; }
.footer-bottom p { font-size: 12px; color: #555; font-weight: 300; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 24px 0; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius); font-size: 14px;
    border: 1px solid var(--border); color: var(--text);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== PAGE CONTENT ========== */
.page-content {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 32px; max-width: 800px; margin: 24px auto; line-height: 1.8;
}
.page-content h1 { color: var(--text-light); margin-bottom: 20px; }
.page-content h2 { color: var(--text-light); margin: 20px 0 10px; }

/* Breadcrumb */
nav[style*="padding: 16px"] a { color: var(--text-muted); }
nav[style*="padding: 16px"] a:hover { color: var(--primary); }

/* ========== SIDEBAR ========== */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 30px; }
.sidebar {}
.sidebar-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar-box h3 { color: var(--text-light); font-size: 16px; margin-bottom: 12px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0; }
.sidebar-list li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar-list li:last-child a { border-bottom: none; }
.sidebar-list li a:hover { color: var(--primary); }
.count-badge { background: var(--primary); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 12px; min-width: 24px; text-align: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .ad-grid, .listing-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1000px) {
    .main-nav { display: none; }
    .header-auth { display: none; }
    .menu-toggle { display: block; }
    .ad-grid, .listing-grid { grid-template-columns: repeat(4, 1fr); }
    .profile-header { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .ad-grid, .listing-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .ad-card-photo, .card-image { height: 180px; }
    .search-filter-grid { grid-template-columns: 1fr; }
    .post-ad-grid { grid-template-columns: 1fr; }
    .filter-extra { flex-direction: column; }
    .details-grid { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .lightbox-contact { flex-direction: column; align-items: center; }
    .districts-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { display: none; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    /* Compact hero */
    .page-hero { padding: 20px 0 12px; margin-bottom: 12px; }
    .page-hero h1 { font-size: 20px; margin-bottom: 4px; }
    .page-hero p { font-size: 13px; }
    .page-hero .btn { padding: 6px 14px; font-size: 13px; }
    /* Filter: 2-column grid instead of stacked */
    .hero-filter { padding: 10px 12px; margin-bottom: 12px; }
    .hero-filter-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero-filter-item { min-width: 0; }
    .hero-filter-item label { font-size: 10px; margin-bottom: 2px; }
    .hero-filter .form-control { padding: 8px 10px; font-size: 13px; }
    .hero-filter-btn { grid-column: 1 / -1; }
    .hero-filter-btn .btn { height: 38px; }
    /* Footer compact */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-seo h3 { font-size: 15px; }
    .footer-seo p { font-size: 12px; }
    /* Profile */
    .profile-contact { flex-direction: column; }
    .contact-btn { justify-content: center; }
}
@media (max-width: 480px) {
    .ad-grid, .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .ad-card-photo, .card-image { height: 160px; }
    .ad-card-info, .card-body { font-size: 12px; padding: 6px 4px; }
    .districts-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 18px; }
    .page-hero p { font-size: 12px; }
    .hero-filter { padding: 8px 10px; }
    .hero-filter .form-control { padding: 7px 8px; font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
}