/* ============================================
   БГ Бизнес Каталог - Main Stylesheet
   Clean, white, Yelp-inspired design
   ============================================ */

:root {
    --red: #d32323;
    --red-dark: #b91c1c;
    --red-light: #ff6b6b;
    --orange: #f59e0b;
    --green: #10b981;
    --blue: #2563eb;
    --bg: #ffffff;
    --bg-gray: #f5f5f6;
    --bg-dark: #1a1a2e;
    --text: #2d2d2d;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   HEADER
   ============================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); }

.header-top { padding: 12px 0; }
.header-top-inner { display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-icon { color: var(--red); font-size: 24px; }
.logo-text { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.logo-accent { color: var(--red); }

/* Search Bar */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg);
}
.search-bar:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,35,35,0.1); }

.search-field { display: flex; align-items: center; padding: 0 12px; position: relative; }
.search-field label { color: var(--text-lighter); font-size: 14px; margin-right: 8px; }
.search-field input, .search-field select {
    border: none; outline: none; padding: 10px 0; font-size: 14px; font-family: var(--font);
    background: transparent; color: var(--text); min-width: 0;
}
.search-what { flex: 2; }
.search-where { flex: 1; }
.search-muni { flex: 1; }
.search-what input { width: 100%; }
.search-field select { width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239ca3af'/%3E%3C/svg%3E") no-repeat right center;
    padding-right: 20px;
}

.search-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }

.search-btn {
    padding: 10px 20px; background: var(--red); color: white; border: none; cursor: pointer;
    font-size: 16px; transition: background var(--transition); flex-shrink: 0; height: 100%;
    align-self: stretch; display: flex; align-items: center;
}
.search-btn:hover { background: var(--red-dark); }

/* Search Suggestions */
.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; background: white;
    border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md); z-index: 100; max-height: 300px; overflow-y: auto;
}
.search-suggestions.hidden { display: none; }
.search-suggestion { padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.search-suggestion:hover { background: var(--bg-gray); }
.search-suggestion i { color: var(--text-lighter); width: 20px; text-align: center; }

/* User Nav */
.user-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-link { padding: 8px 12px; border-radius: var(--radius); color: var(--text); font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 6px; transition: background var(--transition); white-space: nowrap; }
.nav-link:hover { background: var(--bg-gray); color: var(--text); }
.nav-add { color: var(--text); }
.nav-notif { position: relative; }
.notif-badge { position: absolute; top: 2px; right: 2px; background: var(--red); color: white; font-size: 10px;
    width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.btn-signup { background: var(--red); color: white !important; border-radius: var(--radius); }
.btn-signup:hover { background: var(--red-dark); color: white !important; }

/* User Dropdown */
.user-dropdown { position: relative; }
.nav-avatar { cursor: pointer; border: none; background: none; }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; background: white; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px;
    display: none; z-index: 100; padding: 8px 0;
}
.user-dropdown:hover .dropdown-menu, .user-dropdown.active .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text); font-size: 14px; }
.dropdown-menu a:hover { background: var(--bg-gray); color: var(--red); }
.dropdown-menu a i { width: 16px; color: var(--text-lighter); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.admin-link { color: var(--red) !important; }

/* Category Navigation */
.cat-nav { border-top: 1px solid var(--border-light); background: var(--bg); }
.cat-nav-list { display: flex; list-style: none; justify-content: center; gap: 0; }
.cat-nav-item { position: relative; }
.cat-nav-link {
    display: flex; align-items: center; gap: 5px; padding: 12px 18px; color: var(--text);
    font-size: 14px; font-weight: 600; border-bottom: 3px solid transparent; transition: all var(--transition);
}
.cat-nav-link:hover { color: var(--red); }
.cat-nav-link i.fa-chevron-down { font-size: 10px; color: var(--text-lighter); }
.cat-nav-item:hover .cat-nav-link { border-bottom-color: var(--red); }

/* Mega Menu */
.mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: white; border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 20px 24px; min-width: 500px;
    display: none; z-index: 100;
}
.cat-nav-item:hover .mega-menu { display: block; }
.mega-menu-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius);
    color: var(--text); font-size: 14px; font-weight: 600; transition: background var(--transition);
}
.mega-item:hover { background: var(--bg-gray); color: var(--red); }
.mega-item i { width: 20px; color: var(--text-lighter); font-size: 16px; text-align: center; }
.mega-item:hover i { color: var(--red); }

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message { padding: 12px 0; font-size: 14px; font-weight: 600; position: relative; }
.flash-message .container { display: flex; align-items: center; justify-content: space-between; }
.flash-success { background: #ecfdf5; color: #065f46; }
.flash-error { background: #fef2f2; color: #991b1b; }
.flash-info { background: #eff6ff; color: #1e40af; }
.flash-close { background: none; border: none; font-size: 20px; cursor: pointer; opacity: 0.5; color: inherit; }

/* ============================================
   HOMEPAGE
   ============================================ */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0 50px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 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.03'%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");
    opacity: 0.5;
}
.hero h1 {
    font-family: var(--font-display); font-size: 42px; color: white; margin-bottom: 8px;
    position: relative; z-index: 1;
}
.hero p { color: rgba(255,255,255,0.7); font-size: 18px; position: relative; z-index: 1; margin-bottom: 30px; }

.hero-search {
    max-width: 700px; margin: 0 auto; display: flex; background: white; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.hero-search input, .hero-search select {
    border: none; outline: none; padding: 16px 20px; font-size: 15px; font-family: var(--font);
}
.hero-search input { flex: 2; }
.hero-search select { flex: 1; border-left: 1px solid var(--border); background: white; cursor: pointer; }
.hero-search button {
    padding: 16px 28px; background: var(--red); color: white; border: none; cursor: pointer;
    font-size: 16px; font-weight: 700; transition: background var(--transition);
}
.hero-search button:hover { background: var(--red-dark); }

/* Quick Categories */
.quick-cats { padding: 40px 0; background: var(--bg); }
.quick-cats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 16px;
    text-align: center;
}
.quick-cat {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px;
    border-radius: var(--radius-lg); transition: all var(--transition); cursor: pointer; color: var(--text);
}
.quick-cat:hover { background: var(--bg-gray); color: var(--red); transform: translateY(-2px); }
.quick-cat-icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text);
    transition: all var(--transition);
}
.quick-cat:hover .quick-cat-icon { background: #fee2e2; color: var(--red); }
.quick-cat span { font-size: 13px; font-weight: 600; }

/* ============================================
   LISTINGS CARDS
   ============================================ */
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 20px; color: var(--text); }
.section-subtitle { color: var(--text-light); margin-bottom: 24px; font-size: 15px; }

.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }

.listing-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card.boosted { border-color: var(--orange); border-width: 2px; }
.listing-card.boosted::before {
    content: 'Промотирано'; position: absolute; top: 12px; right: 12px; background: var(--orange);
    color: white; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; z-index: 2;
}

.card-image { position: relative; height: 200px; overflow: hidden; background: var(--bg-gray); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-no-image { display: flex; align-items: center; justify-content: center; height: 100%; }
.card-no-image i { font-size: 48px; color: var(--text-lighter); }

.card-body { padding: 16px; }
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--red); }

.card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stars { color: var(--red); font-size: 14px; letter-spacing: -1px; }
.stars-lg { font-size: 18px; }
.review-count { font-size: 13px; color: var(--text-light); }

.card-meta { font-size: 13px; color: var(--text-light); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.card-meta .price-range { color: var(--green); font-weight: 700; }
.card-categories { display: flex; flex-wrap: wrap; gap: 4px; }
.cat-tag { font-size: 12px; color: var(--text-light); background: var(--bg-gray); padding: 2px 8px; border-radius: 4px; }

.card-address { font-size: 13px; color: var(--text-light); display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.card-address i { color: var(--text-lighter); margin-top: 3px; }

.card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.card-action { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 4px 8px; border-radius: 4px; transition: all var(--transition); border: none; background: none; }
.card-action:hover { background: var(--bg-gray); color: var(--red); }

/* ============================================
   LISTING DETAIL PAGE
   ============================================ */
.listing-detail { padding: 0; }
.listing-header-bg { height: 350px; background: var(--bg-gray); position: relative; overflow: hidden; }
.listing-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.listing-header-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7)); }

.listing-info { padding: 24px 0; }
.listing-info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

.listing-name { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.listing-claimed { color: var(--blue); font-size: 13px; font-weight: 600; }
.listing-claimed i { margin-right: 4px; }

.listing-rating-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }

.listing-action-btns { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius);
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--transition);
    border: 1px solid var(--border); background: white; color: var(--text); font-family: var(--font); }
.btn:hover { background: var(--bg-gray); color: var(--text); }
.btn-primary { background: var(--red); color: white; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); color: white; border-color: var(--red-dark); }
.btn-outline { border-color: var(--border); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-green { background: var(--green); color: white; border-color: var(--green); }
.btn-orange { background: var(--orange); color: white; border-color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }

/* Sidebar */
.listing-sidebar { }
.sidebar-box { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.sidebar-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }

.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.info-row:last-child { border-bottom: none; }
.info-row i { color: var(--text-lighter); width: 16px; text-align: center; margin-top: 3px; }
.info-row a { color: var(--blue); font-weight: 600; }

.directions-btn { width: 100%; margin-top: 12px; }

/* Working Hours */
.hours-table { width: 100%; font-size: 14px; }
.hours-table td { padding: 6px 0; }
.hours-table .day-name { font-weight: 600; width: 40%; }
.hours-table .today { color: var(--red); font-weight: 700; }
.hours-closed { color: var(--red); }
.hours-open { color: var(--green); }

/* Reviews */
.reviews-section { margin-top: 30px; }
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center; }
.review-avatar i { font-size: 20px; color: var(--text-lighter); }
.review-user-info { flex: 1; }
.review-username { font-weight: 700; font-size: 15px; }
.review-user-meta { font-size: 12px; color: var(--text-light); }
.review-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-date { font-size: 12px; color: var(--text-lighter); }
.review-text { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.review-photos { display: flex; gap: 8px; margin: 10px 0; }
.review-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); cursor: pointer; }

.owner-response { background: var(--bg-gray); padding: 16px; border-radius: var(--radius); margin-top: 12px;
    border-left: 3px solid var(--red); }
.owner-response-header { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* Recommendation bar */
.recommend-bar { background: var(--bg-gray); border-radius: var(--radius-lg); padding: 20px; text-align: center; margin: 24px 0; }
.recommend-bar h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.recommend-btns { display: flex; gap: 10px; justify-content: center; }
.recommend-btn { padding: 10px 28px; border-radius: 999px; border: 2px solid var(--border); background: white;
    font-weight: 700; cursor: pointer; transition: all var(--transition); font-family: var(--font); font-size: 14px; }
.recommend-btn:hover { transform: scale(1.05); }
.recommend-btn.yes:hover, .recommend-btn.yes.active { background: var(--green); color: white; border-color: var(--green); }
.recommend-btn.no:hover, .recommend-btn.no.active { background: var(--red); color: white; border-color: var(--red); }
.recommend-btn.maybe:hover, .recommend-btn.maybe.active { background: var(--orange); color: white; border-color: var(--orange); }

/* Pinned message */
.pinned-message { background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.pinned-message-header { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange); margin-bottom: 6px; }

/* Suggest Edit */
.suggest-edit-btn { color: var(--text-light); font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.suggest-edit-btn:hover { color: var(--red); }

/* ============================================
   MAP
   ============================================ */
.map-container { width: 100%; height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-full { height: 500px; }
#listingsMap { width: 100%; height: 100%; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-required { color: var(--red); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: var(--font); color: var(--text); transition: border-color var(--transition);
    background: white;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,35,35,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--red); }

/* Star rating input */
.star-rating-input { display: flex; gap: 4px; font-size: 28px; }
.star-rating-input i { cursor: pointer; color: var(--border); transition: color var(--transition); }
.star-rating-input i.active, .star-rating-input i:hover { color: var(--red); }

/* Working hours inputs */
.hours-input { display: grid; grid-template-columns: 120px 40px 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.hours-input .day-label { font-weight: 600; font-size: 14px; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 0; }
.auth-box { width: 100%; max-width: 440px; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-md); }
.auth-box h1 { font-size: 28px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-box .subtitle { text-align: center; color: var(--text-light); margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; font-size: 13px; color: var(--text-lighter); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header { background: var(--bg-gray); padding: 40px 0; }
.profile-info { display: flex; align-items: center; gap: 24px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: var(--shadow); }
.profile-avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--text-lighter); }
.profile-name { font-size: 28px; font-weight: 900; }
.profile-location { color: var(--text-light); font-size: 14px; margin-top: 4px; }
.profile-stats { display: flex; gap: 20px; margin-top: 10px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 20px; font-weight: 800; color: var(--red); }
.profile-stat-label { font-size: 12px; color: var(--text-light); }

/* ============================================
   ACTIVITY FEED
   ============================================ */
.feed-section { padding: 40px 0; }
.feed-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.feed-tab { padding: 12px 20px; font-weight: 700; color: var(--text-light); cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.feed-tab.active, .feed-tab:hover { color: var(--text); border-bottom-color: var(--red); }

.activity-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.activity-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.activity-avatar { width: 40px; height: 40px; border-radius: 50%; }
.activity-user { font-weight: 700; }
.activity-action { color: var(--text-light); font-size: 13px; }
.activity-time { font-size: 12px; color: var(--text-lighter); }
.activity-content { margin: 12px 0; }
.activity-photos { display: flex; gap: 8px; }
.activity-photos img { width: 150px; height: 110px; object-fit: cover; border-radius: var(--radius); }

.activity-reactions { display: flex; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.reaction-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border); background: white; cursor: pointer; font-size: 13px; color: var(--text-light);
    transition: all var(--transition); font-family: var(--font); }
.reaction-btn:hover { background: var(--bg-gray); }
.reaction-btn.active { border-color: var(--red); color: var(--red); background: #fef2f2; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.admin-sidebar { background: var(--bg-dark); color: white; padding: 0; }
.admin-logo { padding: 20px 24px; font-size: 18px; font-weight: 900; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo span { color: var(--red); }
.admin-nav { padding: 12px 0; }
.admin-nav-group { margin-bottom: 8px; }
.admin-nav-label { padding: 8px 24px; font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.4);
    font-weight: 700; letter-spacing: 1px; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 24px; color: rgba(255,255,255,0.7);
    font-size: 14px; font-weight: 600; transition: all var(--transition); border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,0.05); border-left-color: var(--red); }
.admin-nav a i { width: 18px; text-align: center; font-size: 15px; }
.admin-nav-badge { margin-left: auto; background: var(--red); color: white; font-size: 11px; padding: 2px 8px;
    border-radius: 999px; font-weight: 700; }

.admin-main { background: var(--bg-gray); }
.admin-header { background: white; padding: 16px 30px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 22px; font-weight: 800; }
.admin-content { padding: 30px; }

/* Admin Cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.stat-card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; font-size: 20px; margin-bottom: 12px; }
.stat-card-icon.red { background: #fef2f2; color: var(--red); }
.stat-card-icon.blue { background: #eff6ff; color: var(--blue); }
.stat-card-icon.green { background: #ecfdf5; color: var(--green); }
.stat-card-icon.orange { background: #fffbeb; color: var(--orange); }
.stat-card-num { font-size: 32px; font-weight: 900; }
.stat-card-label { font-size: 13px; color: var(--text-light); font-weight: 600; }

/* Admin Table */
.admin-table-wrap { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.admin-table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex;
    align-items: center; justify-content: space-between; }
.admin-table-header h2 { font-size: 16px; font-weight: 800; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-gray); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.admin-table tr:hover { background: var(--bg-gray); }
.admin-table .status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; }
.status-active { background: #ecfdf5; color: #065f46; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-inactive { background: #fef2f2; color: #991b1b; }

/* Admin Form */
.admin-form { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 30px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 30px 0; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
    font-weight: 600; color: var(--text); transition: all var(--transition);
}
.pagination a:hover { background: var(--bg-gray); color: var(--red); border-color: var(--red); }
.pagination .active { background: var(--red); color: white; border-color: var(--red); }

/* ============================================
   NOTIFICATIONS PAGE
   ============================================ */
.notif-list { }
.notif-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border-light);
    transition: background var(--transition); }
.notif-item:hover { background: var(--bg-gray); }
.notif-item.unread { background: #eff6ff; }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-icon.red { background: #fef2f2; color: var(--red); }
.notif-icon.blue { background: #eff6ff; color: var(--blue); }
.notif-icon.green { background: #ecfdf5; color: var(--green); }
.notif-title { font-weight: 700; font-size: 14px; }
.notif-text { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.notif-time { font-size: 12px; color: var(--text-lighter); margin-top: 4px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-top-inner { flex-wrap: wrap; }
    .search-bar { order: 3; width: 100%; margin-top: 10px; }
    .search-muni { display: none; }
    .cat-nav-list { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
    .cat-nav-link { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
    .mega-menu { left: 0; transform: none; min-width: 300px; }
    .mega-menu-inner { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 28px; }
    .hero-search { flex-direction: column; }
    .hero-search input, .hero-search select { border-left: none; border-bottom: 1px solid var(--border); }
    .listings-grid { grid-template-columns: 1fr; }
    .listing-info-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .profile-info { flex-direction: column; text-align: center; }
    .nav-link span { display: none; }
    .quick-cats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-light { color: var(--text-light); }
.text-sm { font-size: 13px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.w-100 { width: 100%; }
