/**
 * ============================================
 * SEO CLASSIFIED - MAIN STYLESHEET
 * ============================================
 * Mobile-first, lightweight, performance-optimized
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --header-height: 56px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

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

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo:hover {
    color: var(--secondary);
}

/* Search Toggle */
.search-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s;
}

.search-toggle:hover {
    background: var(--primary-dark);
}

.search-toggle.active {
    background: var(--secondary);
}

.search-label {
    display: none;
}

@media (min-width: 480px) {
    .search-label {
        display: inline;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.2s;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* ============================================
   SEARCH PANEL (Skokka-style)
   ============================================ */
.search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--secondary);
}

.search-panel.active {
    max-height: 400px;
    padding: 16px 0;
}

.search-panel-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.search-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: end;
    }
}

.search-field label {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.search-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #334155;
    border-radius: var(--radius);
    background: #1e293b;
    color: white;
    font-size: 0.9375rem;
    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='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.search-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background 0.15s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 0.8125rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 4px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* ============================================
   HERO / PAGE HEADER
   ============================================ */
.hero-section,
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: white;
    padding: 32px 0;
}

@media (min-width: 768px) {
    .hero-section,
    .page-header {
        padding: 48px 0;
    }
}

.hero-section h1,
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero-section h1,
    .page-header h1 {
        font-size: 2rem;
    }
}

.results-count {
    color: #94a3b8;
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

/* SEO Content */
.seo-content {
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.seo-content h2 {
    color: white;
    font-size: 1.125rem;
    margin: 16px 0 8px;
}

.seo-content p {
    margin-bottom: 8px;
}

.bottom-seo .seo-content {
    color: var(--text);
}

.bottom-seo .seo-content h2 {
    color: var(--text);
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-section {
    padding: 32px 0;
}

.categories-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

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

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    border-radius: var(--radius);
}

.category-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.icon-fallback {
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.category-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================
   LISTINGS
   ============================================ */
.listings-section {
    padding: 24px 0;
}

.listings-section > .container > h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text);
}

.listings-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Listing Card */
.listing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.listing-badge {
    display: inline-block;
    background: var(--border-light);
    color: var(--text-light);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.listing-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.4;
}

.listing-location {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-location svg {
    flex-shrink: 0;
}

.listing-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.listing-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

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

.btn-call,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    flex: 1;
    transition: opacity 0.15s;
}

.btn-call:hover,
.btn-whatsapp:hover {
    opacity: 0.9;
    color: white;
}

.btn-call {
    background: var(--primary);
    color: white;
}

.btn-whatsapp {
    background: var(--success);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.no-results h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text);
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.listing-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
}

/* ============================================
   CITIES SECTION
   ============================================ */
.cities-section {
    padding: 24px 0 32px;
}

.cities-section h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
}

.city-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   RELATED LINKS (Internal Linking)
   ============================================ */
.related-section {
    padding: 24px 0;
}

.related-section.alt {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.related-section h2 {
    font-size: 1.0625rem;
    margin-bottom: 14px;
    color: var(--text);
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text);
    transition: all 0.15s;
}

.related-section.alt .related-link {
    background: var(--bg);
}

.related-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   BOTTOM SEO SECTION
   ============================================ */
.bottom-seo-section {
    padding: 32px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 40px 0 0;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-col h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.footer-col h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.8125rem;
}

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

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 16px 0;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* ============================================
   UTILITY
   ============================================ */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   AD DETAIL PAGE
   ============================================ */
.ad-detail-section {
    padding: 24px 0;
}

.ad-detail-layout {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .ad-detail-layout {
        grid-template-columns: 1fr 320px;
    }
}

.ad-detail-main h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .ad-detail-main h1 {
        font-size: 1.75rem;
    }
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.ad-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.ad-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.ad-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.ad-featured-badge {
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Gallery */
.ad-gallery {
    margin-bottom: 24px;
}

.gallery-main {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .gallery-main {
        height: 400px;
    }
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.ad-description {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.ad-description h2 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text);
}

.description-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-line;
}

/* Contact Info */
.ad-contact-info {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ad-contact-info h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text);
}

.contact-details {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    min-width: 80px;
    font-weight: 500;
}

.contact-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.contact-value:hover {
    color: var(--primary);
}

.contact-whatsapp {
    color: var(--success);
}

.ad-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-large {
    padding: 14px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Sidebar */
.ad-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-details {
    list-style: none;
}

.sidebar-details li {
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-details li:last-child {
    border-bottom: none;
}

.sidebar-details strong {
    color: var(--text);
}

.sidebar-link {
    display: block;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 8px;
    transition: background 0.15s;
}

.sidebar-link:hover {
    background: var(--primary);
    color: white;
}

.listing-title-link {
    color: var(--text);
}

.listing-title-link:hover {
    color: var(--primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.prev::before {
    content: '\2190';
}

.page-link.next::after {
    content: '\2192';
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 32px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--text);
}

.faq-list {
    max-width: 768px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.faq-question:hover {
    background: var(--border-light);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer > div {
    padding: 0 20px 16px;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   LISTING IMAGE IN CARDS
   ============================================ */
.listing-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
}

/* ============================================
   LISTING IMAGE LINK (clickable image)
   ============================================ */
.listing-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.listing-image-link:hover .listing-image {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.listing-image-link:hover .listing-image.placeholder {
    background: var(--primary);
    color: white;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 200;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    padding: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
    color: white;
}

.mobile-nav-title {
    font-size: 1rem;
    font-weight: 600;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li a {
    display: block;
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.mobile-nav-links li a:hover {
    background: var(--border-light);
    color: var(--primary);
}

.mobile-nav-divider {
    padding: 12px 20px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: none;
}

.mobile-nav-divider span {
    padding: 0;
}

/* ============================================
   SKOKKA-STYLE STICKY AD BAR
   ============================================ */
.sticky-ad-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 150;
    padding: 10px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-ad-bar.visible {
    transform: translateY(0);
}

.sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.sticky-bar-info {
    flex: 1;
    min-width: 0;
}

.sticky-bar-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-price {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}

.sticky-bar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.sticky-btn:hover {
    opacity: 0.9;
    color: white;
}

.sticky-btn-call {
    background: var(--primary);
    color: white;
}

.sticky-btn-whatsapp {
    background: var(--success);
    color: white;
}

@media (min-width: 768px) {
    .sticky-ad-bar {
        display: none;
    }
}

/* ============================================
   SIDEBAR CONTACT CARD
   ============================================ */
.sidebar-contact-card {
    display: none;
}

@media (min-width: 768px) {
    .sidebar-contact-card {
        display: block;
    }
}

.sidebar-call-btn,
.sidebar-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: opacity 0.15s;
}

.sidebar-call-btn {
    background: var(--primary);
    color: white;
}

.sidebar-whatsapp-btn {
    background: var(--success);
    color: white;
}

.sidebar-call-btn:hover,
.sidebar-whatsapp-btn:hover {
    opacity: 0.9;
    color: white;
}

/* ============================================
   SEO SILO SECTION (on ad-detail)
   ============================================ */
.ad-seo-silo {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.ad-seo-silo h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.silo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.silo-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--primary);
    transition: all 0.15s;
}

.silo-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   MOBILE HIDE/DESKTOP SHOW UTILITIES
   ============================================ */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   LISTING CARD TITLE LINK
   ============================================ */
.listing-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.4;
}

.listing-title-link {
    color: var(--text);
    text-decoration: none;
}

.listing-title-link:hover {
    color: var(--primary);
}

.listing-title-link:hover h3 {
    color: var(--primary);
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .search-panel,
    .listing-actions,
    .ad-contact-actions,
    .sticky-ad-bar,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
    
    .listing-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}
