/* ============================================
   HOME PAGE STYLES — NaijaJollof
   Complete file — replaces static/css/home.css
   ============================================ */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}
body .container {
    padding: 0;
    max-width: 100%;
}

/* ============================================
   SCREEN READER UTILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   DESKTOP LOCATION BANNER
   Hidden on mobile — GPS works natively there
   ============================================ */
.desktop-location-banner {
    background: #FFF8E6;
    border-bottom: 1px solid #F0D080;
    padding: 10px 0;
}
.dlb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.dlb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.dlb-icon {
    color: #C08000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.dlb-text {
    font-size: 13px;
    color: #5A4500;
    line-height: 1.5;
}
.dlb-text strong {
    font-weight: 600;
    color: #3A2D00;
}
.dlb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dlb-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #C08000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.dlb-app-btn:hover { background: #9A6600; }
.dlb-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: #9A8040;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}
.dlb-dismiss:hover { background: rgba(0,0,0,0.08); }

@media (max-width: 767px) {
    .desktop-location-banner { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, #ff0000 0%, #ffcc00 100%);
    padding: 80px 20px 100px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero h1,
.hero-title {
    font-size: 52px;
    color: white;
    margin-bottom: 16px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    font-weight: bold;
}
.hero p,
.hero-sub {
    font-size: 20px;
    color: white;
    opacity: 0.92;
    margin: 0 0 0.5rem;
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.75rem 0 1.75rem;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
}
.stat-item strong { font-weight: 700; color: #fff; }
.stat-sep         { opacity: 0.45; }

/* ============================================
   SEARCH FORM (inside hero)
   ============================================ */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 780px;
    margin: 0 auto;
}

/* Row 1: state + search input + button */
.search-bar-row {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.state-select-wrap { flex-shrink: 0; }
.state-select {
    height: 54px;
    padding: 0 32px 0 14px;
    border: none;
    border-right: 1px solid #E0E0E0;
    background: transparent;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 150px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 1rem;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #222;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.search-input-wrap input::placeholder { color: #aaa; }
.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 1.75rem;
    background: #ff0000;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.search-btn:hover { background: #cc0000; }

/* Row 2: LGA + Category dropdowns */
.filter-row-2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-select-wrap {
    flex: 1;
    min-width: 160px;
}
.filter-select {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 8px;
    background: rgba(255,255,255,0.88);
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}
.clear-filters {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 4px;
    transition: opacity 0.15s;
}
.clear-filters:hover { opacity: 0.65; }

/* Search suggestions dropdown */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}
.suggestion-group h4 {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 14px 4px;
    margin: 0;
}
.suggestion-item {
    padding: 9px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.1s;
}
.suggestion-item:hover {
    background: #FFF5F5;
    color: #ff0000;
}

/* ============================================
   LEGACY FILTER SECTION
   Kept for backward compat if still used elsewhere
   ============================================ */
.filter-section {
    max-width: 1200px;
    margin: -40px auto 0;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}
.search-filter-row {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.state-filter-group {
    width: 20%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.state-filter-group label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}
.state-filter-group select {
    flex: 1;
    padding: 14px 12px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    height: 52px;
}
.state-filter-group select:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.1);
    z-index: 1;
    position: relative;
}
.search-bar {
    flex: 1;
    display: flex;
    align-items: flex-end;
    position: relative;
}
.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.3s;
    height: 52px;
    font-family: inherit;
    color: #333;
}
.search-bar input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.1);
    z-index: 1;
    position: relative;
}
.search-bar button {
    padding: 14px 40px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    height: 52px;
    white-space: nowrap;
    font-family: inherit;
}
.search-bar button:hover {
    background: #cc0000;
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

/* ============================================
   CATEGORY ICON GRID
   ============================================ */
.category-grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid #F0F0F0;
    text-decoration: none;
    color: #444;
    min-width: 100px;
    flex: 1;
    max-width: 160px;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cat-card:hover {
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,0,0,0.1);
    color: #ff0000;
}
.cat-card--active {
    border-color: #ff0000;
    background: #FFF5F5;
    color: #ff0000;
}
.cat-card--active .cat-icon { background: rgba(255,0,0,0.1); }

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
/* Category colour tokens — match brand palette */
.cat-icon--restaurant { background: #FFF0EE; color: #ff0000; }
.cat-icon--vendor     { background: #FFF4E0; color: #C87A00; }
.cat-icon--bar        { background: #EEF0FF; color: #4B53C0; }
.cat-icon--catering   { background: #F0FFF4; color: #1A7A40; }
.cat-icon--event      { background: #FFF0FB; color: #9B2DB5; }

.cat-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}
.cat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #9B2DB5;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px 40px;
    box-sizing: border-box;
}
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
    border-left: 6px solid #ffcc00;
    padding-left: 18px;
}

/* Listings section header row */
.listings-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.title-location {
    font-weight: 400;
    color: #999;
    font-size: 0.85em;
    margin-left: 6px;
}
.results-count {
    font-size: 13px;
    color: #aaa;
}

/* ============================================
   FEATURED ADS SLIDER
   ============================================ */
.featured-ads-section {
    margin: 1.5rem 0 2.5rem;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.ad-slider-wrapper { overflow: hidden; }
.ad-slider {
    display: flex;
    gap: 16px;
    transition: transform 0.6s ease-in-out;
}
.ad-card {
    min-width: calc(33.333% - 11px);
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    height: 80px;
    box-sizing: border-box;
    position: relative;
}
.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.ad-card-placeholder {
    border-style: dashed;
    border-color: #e8e8e8;
    background: #fafafa;
}
.ad-card-icon {
    width: 44px;
    height: 44px;
    background: #fff3f3;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ad-card-body  { flex: 1; min-width: 0; overflow: hidden; }
.ad-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ad-card-sub {
    font-size: 12px;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ad-card:has(.ad-card-img) { padding: 0; gap: 0; height: 140px; }
.ad-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }

/* Countdown badge on real ad cards */
.ad-card-countdown {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.38);
    padding: 2px 8px;
    border-radius: 6px;
    pointer-events: none;
}

/* House ad cards (fallback / development) */
.ad-card--house {
    border: 1.5px dashed #E0E0E0;
    background: #FAFAFA;
}
.ad-card--house:hover { background: #fff; }

.ad-card--premium   { border-color: rgba(192,128,0,0.35); }
.ad-card--premium   .ad-card-icon { background: #FFF8E0; color: #C08000; }
.ad-card--premium:hover { border-color: #C08000; }

.ad-card--advertise { border-color: rgba(255,0,0,0.25); }
.ad-card--advertise .ad-card-icon { background: #FFF5F5; color: #ff0000; }
.ad-card--advertise:hover { border-color: #ff0000; }

.ad-card--signup    { border-color: rgba(26,122,64,0.3); }
.ad-card--signup    .ad-card-icon { background: #F0FFF4; color: #1A7A40; }
.ad-card--signup:hover { border-color: #1A7A40; }

.ad-card--events    { border-color: rgba(155,45,181,0.3); }
.ad-card--events    .ad-card-icon { background: #F3EAF8; color: #9B2DB5; }
.ad-card--events:hover { border-color: #9B2DB5; }

.ad-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: #ff0000;
    margin-top: auto;
    padding-top: 8px;
    align-self: flex-end;
    white-space: nowrap;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
}
.main-content { min-width: 0; }

/* ============================================
   LISTINGS GRID
   ============================================ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1.5px solid transparent;
}
.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.listing-card--premium { border-color: rgba(192,128,0,0.25); }

/* Listing image */
.listing-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.listing-card:hover .listing-image img { transform: scale(1.05); }

/* Category placeholder gradients */
.listing-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listing-placeholder--restaurant { background: linear-gradient(135deg, #ffcc00, #ff0000); }
.listing-placeholder--vendor     { background: linear-gradient(135deg, #FFE066, #FF8C00); }
.listing-placeholder--bar        { background: linear-gradient(135deg, #667EEA, #764BA2); }
.listing-placeholder--catering   { background: linear-gradient(135deg, #56AB2F, #A8E063); }
.listing-placeholder--event      { background: linear-gradient(135deg, #DA22FF, #9733EE); }
.listing-placeholder svg { color: rgba(255,255,255,0.9); }

/* Premium badge on image */
.premium-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #C08000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* Listing content */
.listing-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.listing-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* Category badge — shared styles, colour per category */
.listing-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.listing-badge--restaurant { background: #FFF0EE; color: #ff0000; }
.listing-badge--vendor     { background: #FFF4E0; color: #C87A00; }
.listing-badge--bar        { background: #EEF0FF; color: #4B53C0; }
.listing-badge--catering   { background: #F0FFF4; color: #1A7A40; }
.listing-badge--event      { background: #F3EAF8; color: #9B2DB5; }

/* Rating */
.listing-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #C08000;
    font-weight: 600;
}
.listing-rating svg { fill: #C08000; flex-shrink: 0; }

.listing-title {
    font-size: 18px;
    color: #222;
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.3;
}
.listing-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 13px;
    margin-bottom: 8px;
}
.listing-location svg { flex-shrink: 0; color: #ff0000; }

.listing-description {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 12px;
    flex: 1;
}

/* Listing footer */
.listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F5F5F5;
}
.listing-time { color: #bbb; font-size: 11px; }
.listing-cta  { font-size: 12px; font-weight: 700; color: #ff0000; }

/* Legacy .listing-meta kept for any templates not yet updated */
.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
}
.listing-rating-legacy { color: #ff0000; font-weight: bold; font-size: 14px; }

/* ============================================
   EVENT CARD STRIPS
   ============================================ */
.event-date-strip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    margin: 6px 0 4px;
    flex-wrap: wrap;
}
.event-date-strip svg { flex-shrink: 0; color: #9B2DB5; }
.event-venue { opacity: 0.7; font-size: 11px; }

.event-price-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
    margin-bottom: 8px;
}
.event-free-badge {
    background: #E8F8EE;
    color: #1A7A40;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.event-price {
    background: #F3EAF8;
    color: #7B1FA2;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.event-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.event-status-badge--upcoming  { background: #E8F0FF; color: #1A40B0; }
.event-status-badge--live      { background: #FFEDED; color: #ff0000; animation: pulse 1.5s ease-in-out infinite; }
.event-status-badge--recurring { background: #FFF4E0; color: #B05A00; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.empty-icon { font-size: 90px; margin-bottom: 20px; opacity: 0.45; display: block; }
.empty-state h3 { font-size: 24px; color: #333; margin-bottom: 10px; }
.empty-state p  { color: #777; font-size: 15px; margin-bottom: 28px; }
.btn-add-first,
.btn-primary {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-add-first:hover,
.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 0 1rem;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #fff;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.page-btn:hover { border-color: #ff0000; color: #ff0000; }
.page-info      { font-size: 13px; color: #aaa; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Mobile app CTA card */
.sidebar-app-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #0a0a0a;
    border-radius: 12px;
    margin-bottom: 16px;
}
.sidebar-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-app-body strong { font-size: 13px; font-weight: 700; color: #fff; }
.sidebar-app-body span  { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.3; }
.sidebar-app-link       { font-size: 11px; color: rgba(255,255,255,0.35); text-decoration: none; flex-shrink: 0; }

/* Promo cards */
.sidebar-promo-card {
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
    overflow: hidden;
    margin-bottom: 16px;
}
.sidebar-promo-card:last-child { margin-bottom: 0; }
.sidebar-promo-card--house {
    border-style: dashed;
    border-color: #2a2a2a;
}

.sidebar-promo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}
.sidebar-promo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(255,204,0,0.12);
}
.sidebar-promo-icon-alt { background: rgba(255,255,255,0.07); }

.sidebar-promo-body   { flex: 1; min-width: 0; }
.sidebar-promo-title  {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ffcc00;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-promo-title-alt { color: #ccc; }
.sidebar-promo-text {
    display: block;
    font-size: 11px;
    color: #777;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-promo-btn {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}
.sidebar-promo-btn:hover   { opacity: 0.82; }
.sidebar-promo-btn-ad      { background: linear-gradient(135deg, #ffcc00, #ff6600); color: #000; }
.sidebar-promo-btn-light   {
    background: rgba(255,255,255,0.07);
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-promo-footer    { padding: 6px 16px 10px; }
.sidebar-promo-countdown {
    font-size: 10px;
    color: #ffcc00;
    background: rgba(255,204,0,0.1);
    border-radius: 20px;
    padding: 2px 8px;
    display: inline-block;
    font-weight: 600;
}
.sidebar-promo-divider {
    height: 1px;
    background: #1f1f1f;
    margin: 0 16px;
}

/* ============================================
   BUSINESS CTA STRIP
   ============================================ */
.biz-cta-strip {
    background: #0a0a0a;
    padding: 3.5rem 1.5rem;
    margin-top: 2.5rem;
}
.biz-cta-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.biz-cta-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}
.biz-cta-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    max-width: 440px;
    line-height: 1.6;
}
.biz-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}
.biz-cta-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.biz-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.biz-cta-btn--primary { background: #ff0000; color: #fff; }
.biz-cta-btn--ghost   { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500; padding: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .sidebar-promo-card  { margin-bottom: 0; }
    .sidebar-app-cta     { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hero h1, .hero-title { font-size: 34px; }
    .hero p,  .hero-sub   { font-size: 17px; }

    /* New search form */
    .search-bar-row { flex-direction: column; border-radius: 10px; }
    .state-select   { width: 100%; height: 48px; border-right: none; border-bottom: 1px solid #E0E0E0; border-radius: 10px 10px 0 0; min-width: unset; }
    .search-btn     { height: 48px; justify-content: center; border-radius: 0 0 10px 10px; }
    .filter-row-2   { flex-direction: column; }
    .filter-select-wrap { width: 100%; }

    /* Legacy search form */
    .search-filter-row  { flex-direction: column; gap: 12px; }
    .state-filter-group { width: 100%; }
    .state-filter-group select { border-right: 2px solid #ddd; border-radius: 8px; height: auto; }
    .search-bar         { flex-direction: column; }
    .search-bar input   { border-radius: 8px; border: 2px solid #ddd; }
    .search-bar button  { border-radius: 8px; width: 100%; height: auto; padding: 14px; }

    /* Category grid */
    .category-grid { gap: 0.5rem; padding: 1.25rem 1rem 0.25rem; }
    .cat-card      { min-width: 76px; max-width: unset; padding: 0.75rem 0.5rem; }
    .cat-icon      { width: 44px; height: 44px; }
    .cat-label     { font-size: 11px; }

    /* Ads / listings */
    .ad-card        { min-width: calc(85% - 8px); }
    .listings-grid  { grid-template-columns: 1fr; }
    .sidebar        { grid-template-columns: 1fr; }

    /* Biz CTA */
    .biz-cta-inner    { flex-direction: column; text-align: center; }
    .biz-cta-actions  { align-items: center; width: 100%; }
    .biz-cta-btn--primary { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1, .hero-title { font-size: 26px; }
    .hero p,  .hero-sub   { font-size: 15px; }
    .hero { padding: 60px 16px 80px; }
    .page-container { margin-top: 30px; }
    .cat-card { min-width: 68px; }
    .cat-icon { width: 38px; height: 38px; }
    .cat-label { font-size: 10px; }
}