/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body, html {
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
}

/* Ensure no horizontal overflow at the root level */
body {
    overflow-x: hidden;
    position: relative;
}

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

/* Color Variables used to be here, now in layout.php via :root */

.container {
    max-width: 1400px; /* Increased for enterprise feel */
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure root elements don't cause overflow */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav-links-desktop {
    display: flex;
    gap: 24px;
    margin-right: auto;
    margin-left: 32px;
}

.nav-links-desktop a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links-desktop a:hover {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-nav-content {
    width: 300px;
    height: 100%;
    background: var(--bg-dark);
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-glass);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 32px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.2s;
}

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

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .nav-links-desktop {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .search-bar {
        display: none; /* Hide on small screens, maybe show in menu */
    }
}

/* Header */
.main-header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.brand-logo-img {
    height: 60px; /* Increased from 48px to accommodate new wider/taller logo design */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.mobile-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .brand-logo {
        padding-top: 2px;
    }
    .brand-logo-img {
        height: 48px;
        width: auto;
    }
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 6px;
    border: 1px solid var(--border-glass);
    width: 100%;
    max-width: 500px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
    transform: translateY(-2px);
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-main);
    flex-grow: 1;
    outline: none;
    font-size: 15px;
    padding: 0 16px;
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.search-bar button:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Breadcrumb */
.breadcrumb {
    padding: 24px 0;
    font-size: 14px;
    color: var(--text-muted);
}

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

.breadcrumb a:hover {
    color: white;
}

/* Hero & Section Defaults */
.header-hero {
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(15, 23, 42, 0.4) 100%);
    padding: 80px 0;
    border-radius: 32px;
    margin-bottom: 48px;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.header-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    opacity: 0.5;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    display: flex;
    gap: 30px;
    align-items: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.logo-placeholder {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}

.title-area h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.meta-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.rating-badge {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 700;
    font-size: 14px;
}

.verified-badge svg {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Grid & Columns */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.premium-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
    margin-bottom: 32px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
}

.card-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.card-body {
    padding: 30px;
}

.description {
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.8;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* Gallery */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Reviews */
.review-card-item {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.review-card-item:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rev-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rev-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.rev-info {
    flex-grow: 1;
}

.rev-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.rev-rating {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 2px;
}

.rev-date {
    color: var(--text-muted);
    font-size: 13px;
}

.rev-body {
    color: var(--text-main);
    font-size: 15px;
}

/* Contact Card */
.contact-methods {
    list-style: none;
}

.contact-methods li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-methods .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-methods .text strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-methods .text span {
    font-weight: 600;
    font-size: 15px;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}

.hours-list li:last-child {
    border: none;
}

/* Company Header Cover */
.company-header-cover {
    height: 350px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 32px 32px 0 0;
    margin-bottom: -100px;
    background-color: #1e293b;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(2, 6, 23, 0.8) 100%);
}

.premium-detail-header {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(20px);
    border-radius: 32px;
}

/* Listings Grid Improvements */
.latest-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 24px;
    margin-top: 40px;
}

.mini-listing-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-wrap: wrap; /* Ensure it can wrap on mobile */
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .mini-listing-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.mini-listing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--bg-elevated);
}

.m-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.m-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.m-placeholder {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.m-info {
    flex-grow: 1;
}

.m-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-city {
    color: var(--accent);
}

.m-cat {
    color: var(--text-muted);
}

.m-verified {
    color: #10b981;
}

.mini-listing-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.mini-listing-card h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.mini-listing-card h3 a:hover {
    color: var(--primary-color);
}

.m-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.m-rating {
    color: var(--primary-color);
}

.m-rev {
    color: var(--text-muted);
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 16px;
    margin-top: 32px;
}

.category-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.category-card-mini:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
}

.category-card-mini .name {
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
}

.category-card-mini:hover .name {
    color: var(--bg-dark);
}

.category-card-mini .count {
    font-size: 12px;
    color: var(--text-muted);
}

.category-card-mini:hover .count {
    color: rgba(0, 0, 0, 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.grey-bg {
    background: rgba(255, 255, 255, 0.01);
    width: 100%;
    padding: 80px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

/* Fix for full-width sections that need to break out of a container if used incorrectly */
/* In OpenRue, home sections are usually outside containers or have their own containers inside */
.full-width-section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Listing Card (Unified) */
.premium-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: 32px;
    margin-top: 48px;
}

.premium-listing-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-wrap: wrap; /* Ensure content can wrap on very narrow screens */
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%; /* Force take full width of grid cell */
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .premium-listing-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.premium-listing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
    background: var(--bg-elevated);
}

.pl-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pl-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.premium-listing-card:hover .pl-img img {
    transform: scale(1.1);
}

.pl-placeholder {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--bg-card);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pl-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.pl-badge.city {
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.2);
}

.pl-badge.category {
    color: var(--text-muted);
}

.pl-badge.verified {
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.pl-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-main);
    transition: color 0.2s;
}

.premium-listing-card:hover h3 {
    color: var(--primary-color);
}

.pl-address {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.pl-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.pl-stats {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}

.pl-rating {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pl-reviews {
    color: var(--text-muted);
}

.pl-action {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 500px) {
    .premium-listing-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-listing-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Footer Redesign */
.main-footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 1) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding-top: 100px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: 0;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.footer-grid-modern {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 80px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bio {
    color: var(--text-muted);
    margin: 24px 0 32px;
    font-size: 15px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.newsletter-col p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-subscribe {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 6px;
    border-radius: 14px;
}

.footer-subscribe input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 16px;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.footer-subscribe button {
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.footer-bottom-modern {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .footer-grid-modern {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 30px;
    }
    .newsletter-col {
        grid-column: span 4;
        margin-top: 40px;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .brand-col, .newsletter-col {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-grid-modern {
        grid-template-columns: 1fr;
    }
    .brand-col, .newsletter-col {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        flex-wrap: wrap;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .title-area h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .main-header {
        padding: 12px 0;
    }

    .premium-listing-grid,
    .latest-listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grey-bg {
        margin: 0 -16px;
        padding: 40px 16px;
    }
}

/* Pagination - Unified Modern Component (Premium WOW Factor) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 80px;
    padding-bottom: 60px;
}

.pagination .page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination .page-num,
.pagination .pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 700;
}

.pagination .page-num.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow), 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.pagination .page-num:not(.active):hover,
.pagination .pagination-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pagination .pagination-btn {
    color: var(--primary-color);
    text-transform: none;
    /* Keep it natural like 'Suivant »' */
    font-size: 14px;
    border-color: rgba(247, 209, 23, 0.3);
    padding: 0 24px;
}

/* Suivant button standout */
.pagination .pagination-btn:last-child {
    background: rgba(247, 209, 23, 0.08);
    border-width: 1px;
}

.pagination .pagination-btn.disabled {
    opacity: 0.15;
    pointer-events: none;
    filter: grayscale(1);
}

/* ================================================================
   Advanced Filtering System (Phase 12)
   ================================================================ */
.listing-layout-modern {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.filter-item:hover {
    color: var(--text-main);
}

.filter-item input[type="checkbox"],
.filter-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-rating-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-weight: 700;
}

.results-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 10px;
}

.results-count-premium {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

.sort-dropdown-container select {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

@media (max-width: 992px) {
    .listing-layout-modern {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

/* --- Global Modern Reusable Components --- */

/* Breadcrumb */
.classic-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); list-style: none; flex-wrap: wrap; text-transform: none; font-weight: 500; }
.classic-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.classic-breadcrumb a:hover { color: var(--primary); }
.classic-breadcrumb .sep { color: var(--border); }
.classic-breadcrumb .current { color: var(--primary); }

/* Listing Header */
.listing-classic-header { background: #FFFFFF; border-bottom: 1px solid var(--border); padding: 48px 0; margin-bottom: 40px; position: relative; overflow: hidden; }
.listing-classic-header::after { content: ''; position: absolute; right: -50px; top: -50px; width: 250px; height: 250px; background: var(--primary-soft); border-radius: 50%; opacity: 0.3; }
.listing-classic-header h1 { font-size: 2.75rem; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; letter-spacing: -1.5px; position: relative; z-index: 1; }
.listing-summary { color: var(--text-secondary); font-size: 1.125rem; font-weight: 500; position: relative; z-index: 1; margin: 0; }
.listing-summary strong { color: var(--primary); }
.header-flex-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }

/* Filter Chips (City & Category pages) */
.filter-wrapper { position: relative; z-index: 1; margin-bottom: 24px; }
.filter-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px; scrollbar-width: none; -ms-overflow-style: none; /* mask-image: linear-gradient(to right, black 85%, transparent); */ }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; white-space: nowrap; padding: 12px 24px; background: #fff; border: 1px solid var(--border); border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.chip.active { background: #1a1a2e; border-color: #1a1a2e; color: #fff; box-shadow: 0 8px 16px rgba(26, 26, 46, 0.2); }

/* Classic List View & Cards */
.classic-list-view-modern { display: flex; flex-direction: column; gap: 24px; }
.classic-row-card-modern { background: #FFFFFF; border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; align-items: center; gap: 36px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 6px rgba(0,0,0,0.01); text-decoration: none; }
.classic-row-card-modern:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 30px 60px rgba(0,0,0,0.08); border-color: var(--primary-soft); }

.row-logo-modern { width: 120px; height: 120px; flex-shrink: 0; border-radius: 18px; border: 1px solid var(--border); background: #F8FAFC; padding: 14px; display: flex; align-items: center; justify-content: center; position: relative; }
.row-logo-modern img { width: 100%; height: 100%; object-fit: contain; }
.row-logo-placeholder-modern { width: 100%; height: 100%; color: var(--primary); font-size: 48px; font-weight: 800; opacity: 0.4; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); border-radius: 12px; }

.row-details-modern { flex: 1; }
.row-meta-modern { display: flex; gap: 12px; margin-bottom: 14px; }
.row-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 6px 16px; border-radius: 10px; letter-spacing: 0.5px; text-decoration: none; display: inline-flex; align-items: center;}
.row-badge.city { background: var(--primary-soft); color: var(--primary); }
.row-badge.category { background: var(--primary-soft); color: var(--primary); filter: brightness(0.9); }
.row-badge.verified { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }

.row-details-modern h2, .row-details-modern h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.7px; color: var(--text-primary); transition: color 0.2s; }
.classic-row-card-modern:hover .row-details-modern h2, .classic-row-card-modern:hover .row-details-modern h3 { color: var(--primary); }

.row-rating-modern { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.row-rating-modern .stars { color: #F59E0B; font-size: 20px; letter-spacing: 3px; }
.row-rating-modern .score { font-weight: 800; color: var(--text-primary); font-size: 18px; }
.row-rating-modern .count { color: var(--text-muted); font-size: 15px; font-weight: 500; }

.row-address-modern { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin: 0; display: flex; align-items: flex-start; gap: 10px; }

.row-actions-modern { display: flex; align-items: center; gap: 16px; }
.btn-row-action { background: #1a1a2e; color: #FFFFFF; padding: 14px 32px; border-radius: 14px; text-decoration: none; font-weight: 700; transition: all 0.2s; display: block; box-shadow: 0 4px 12px rgba(26, 26, 46, 0.2); }
.btn-row-action:hover { background: var(--primary); transform: translateX(5px); box-shadow: 0 10px 20px var(--primary-soft); }

@media (max-width: 992px) {
    .row-actions-modern { flex-direction: column; align-items: stretch; }
}

@media (max-width: 768px) {
    .listing-classic-header h1 { font-size: 2.25rem; }
    .header-flex-row { flex-direction: column; align-items: flex-start; gap: 24px; }
    .classic-row-card-modern { flex-direction: column; text-align: left; gap: 28px; padding: 24px; }
    .row-logo-modern { width: 100px; height: 100px; margin: 0 auto; }
    .row-actions-modern { flex-direction: row; width: 100%; }
    .btn-row-action { flex: 1; text-align: center; margin: 0; }
}

.directory-page { padding: 80px 0 120px; background: #f8fafc; min-height: 80vh; }
.directory-header { text-align: center; margin-bottom: 64px; }
.directory-header h1 { font-size: 3rem; font-weight: 800; color: #0f172a; margin-bottom: 16px; letter-spacing: -2px; }
.directory-header p { font-size: 1.25rem; color: #64748b; max-width: 700px; margin: 0 auto; line-height: 1.6; font-weight: 500; }
.directory-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 56px; padding: 0 20px; position: sticky; top: 100px; z-index: 10; }
.directory-index .index-link { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; font-weight: 800; color: #1e293b; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); font-size: 1.1rem; }
.directory-index .index-link:hover { border-color: var(--primary); color: #fff; background: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.18); }
.directory-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.directory-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 32px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02); scroll-margin-top: 160px; }
.directory-section:hover { border-color: rgba(37, 99, 235, 0.18); }
.letter-heading, .section-letter { font-size: 1.75rem; font-weight: 900; color: #0f172a; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.letter-heading::after, .section-letter::after { content: ''; flex: 1; height: 2px; background: #f1f5f9; }
.directory-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.directory-list li { margin: 0; }
.directory-list a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: #475569; font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 12px; transition: all 0.2s ease; }
.directory-list a:hover { color: var(--primary); background: var(--primary-soft); transform: translateX(6px); }
.cat-count, .item-count { font-size: 12px; background: #f1f5f9; color: #64748b; padding: 4px 12px; border-radius: 999px; font-weight: 800; transition: all 0.2s ease; }
.directory-list a:hover .cat-count, .directory-list a:hover .item-count { background: var(--primary); color: #fff; }
@media (max-width: 992px) { .directory-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .directory-columns { grid-template-columns: 1fr; } .directory-header h1 { font-size: 2rem; } }
