/* ==========================================================================
   1. GLOBAL & HOMEPAGE STYLES (Consolidated)
   ========================================================================== */

:root {
            --primary: #0f172a;
            --primary-light: #1e293b;
            --accent: #f97316;
            --accent-hover: #ea580c;
            --text-main: #334155;
            --text-light: #64748b;
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --border-color: #e2e8f0;
            --transition: all 0.25s ease;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: Arial, Helvetica, sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.5;
        }

        /* 1. Header & Navigation Menu (Same as detail.php) */
        .main-header {
            background-color: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }

        .header-container {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 1rem;
        }

        .header-logo {
            color: white;
            text-decoration: none;
            font-size: 1.35rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            white-space: nowrap;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #ffffff 60%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header-logo i {
            color: var(--accent);
            -webkit-text-fill-color: initial;
            filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
        }

        .header-menu {
            display: flex;
            gap: 1.75rem;
        }

        .menu-item {
            position: relative;
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.92rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            padding: 0.4rem 0;
            transition: var(--transition);
        }
        .menu-item::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent);
            transition: width 0.3s ease;
            box-shadow: 0 0 8px var(--accent);
        }
        .menu-item:hover::after, .menu-item.active::after {
            width: 100%;
        }
        .menu-item:hover, .menu-item.active {
            color: white;
        }

        .mobile-menu-toggle {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.4rem;
            cursor: pointer;
            display: none;
            transition: var(--transition);
        }
        .mobile-menu-toggle:hover {
            color: var(--accent);
        }

        /* Hide mobile drawer elements by default on desktop */
        .mobile-drawer, .mobile-drawer-backdrop {
            display: none;
        }

        .btn-post-ad {
            background-color: var(--accent);
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            font-weight: 700;
            transition: var(--transition);
        }

        .btn-post-ad:hover {
            background-color: var(--accent-hover);
        }

        /* 2. Hero Banner */
        .hero-banner {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.95)), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 3.5rem 1rem;
            text-align: center;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .hero-content h1 {
            font-size: 1.85rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .hero-content p {
            font-size: 1rem;
            color: #cbd5e1;
        }

        /* 3. Main content 2-column layout */
        .portal-container {
            max-width: 1100px;
            margin: 1.5rem auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 2.3fr 1fr; /* Left content, Right filter sidebar */
            gap: 1.5rem;
        }

        .portal-main-col {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .portal-sidebar-col {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Listing Title section */
        .listings-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .listings-title-row h2 {
            font-size: 1.05rem; /* Smaller font size as requested */
            font-weight: 700;
            color: var(--primary);
        }

        /* Mobile filter collapsible behavior */
        .filter-toggle-btn-mobile {
            display: none;
            width: 100%;
            padding: 0.75rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .filter-toggle-btn-mobile i {
            transition: var(--transition);
        }

        .desktop-only-title {
            display: block;
        }

        /* Cards list */
        .listings-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .property-card {
            background-color: var(--bg-card);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-color);
            padding: 0.85rem 1rem;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: var(--transition);
            cursor: pointer;
            box-shadow: var(--shadow-sm);
        }

        .property-card:hover {
            border-color: #cbd5e1;
            box-shadow: var(--shadow-md);
        }

        .card-breadcrumb {
            font-size: 0.78rem;
            color: var(--text-light);
            margin-bottom: 0.6rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
        }

        .card-link-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .card-main-row {
            display: flex;
            gap: 1rem;
            width: 100%;
        }

        .card-gallery {
            position: relative;
            background-color: #ffffff;
            width: 140px;
            height: 140px;
            min-width: 140px;
            min-height: 140px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            z-index: 2;
        }

        .gallery-slide {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .no-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            color: var(--text-light);
        }

        .gallery-badge-time {
            position: absolute;
            bottom: 6px;
            left: 6px;
            background: rgba(15, 23, 42, 0.7);
            color: white;
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 500;
            z-index: 3;
        }

        .gallery-badge-count {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(15, 23, 42, 0.7);
            color: white;
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.2rem;
            z-index: 3;
        }

        .card-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 0.2rem;
            min-width: 0;
            position: relative;
        }

        .card-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.1rem;
        }

        .card-sub-info {
            font-size: 0.8rem;
            color: var(--text-light);
            font-weight: 500;
            margin-bottom: 0.1rem;
        }

        .card-price-row {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            margin: 0.15rem 0;
            flex-wrap: wrap;
        }

        .card-price {
            color: #ef4444;
            font-size: 1.15rem;
            font-weight: 700;
        }

        .card-metric {
            font-size: 0.88rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .card-metric-area {
            color: var(--text-main);
            font-weight: 600;
        }

        .card-desc-snippet {
            font-size: 0.84rem;
            color: var(--text-light);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0.1rem 0;
        }

        .card-location-row {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--text-light);
            font-size: 0.82rem;
            padding-bottom: 0.2rem;
        }

        .card-location-row i {
            color: #94a3b8;
        }

        .card-footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f1f5f9;
            padding-top: 0.5rem;
            margin-top: 0.4rem;
            position: relative;
            z-index: 5;
        }

        .author-group {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .author-avatar {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--border-color);
        }

        .author-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-main);
        }

        .author-stats {
            font-size: 0.78rem;
            color: var(--text-light);
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            margin-left: 0.25rem;
        }

        .filter-group {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 1.25rem;
        }

        .filter-group:last-of-type {
            border-bottom: none;
            padding-bottom: 0;
        }

        .filter-group-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.75rem;
            display: block;
        }

        .filter-checkbox-list {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 0.25rem;
        }

        .filter-checkbox-list::-webkit-scrollbar {
            width: 4px;
        }
        .filter-checkbox-list::-webkit-scrollbar-thumb {
            background-color: #cbd5e1;
            border-radius: 4px;
        }

        .filter-checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-main);
            cursor: pointer;
            padding: 0.2rem 0;
            transition: var(--transition);
        }

        .filter-checkbox-item:hover {
            color: var(--accent);
        }

        .filter-checkbox-item input[type="radio"],
        .filter-checkbox-item input[type="checkbox"] {
            accent-color: var(--accent);
            width: 15px;
            height: 15px;
            cursor: pointer;
            margin: 0;
        }

        .phone-reveal-wrapper {
            background-color: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 2px 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.82rem;
            margin: 0 2px;
            vertical-align: middle;
            position: relative;
            z-index: 5;
        }

        .phone-masked {
            color: var(--text-main);
            font-weight: 600;
        }

        .btn-reveal-phone {
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: 3px;
            padding: 1px 6px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-reveal-phone:hover {
            background-color: var(--accent-hover);
        }

        .phone-link {
            color: var(--accent);
            font-weight: 700;
            text-decoration: underline;
        }

        .btn-up-post {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1.1rem;
            transition: var(--transition);
        }

        .btn-up-post:hover { color: var(--accent); }

        .btn-share {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1.1rem;
            transition: var(--transition);
            margin-right: 0.15rem;
        }

        .btn-share:hover { color: #3b82f6; }

        .mobile-filter-fab {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--accent);
            color: white;
            padding: 0.65rem 1.25rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.85rem;
            box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
            border: none;
            z-index: 999;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(4px);
            z-index: 1000;
        }

        .share-dropdown {
            display: none;
            position: absolute;
            bottom: 30px;
            right: 0;
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 100;
            min-width: 145px;
            overflow: hidden;
        }

        .share-dropdown.active {
            display: block;
        }

        .share-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.85rem;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 550;
            cursor: pointer;
            transition: var(--transition);
            text-align: left;
            border-bottom: 1px solid #f1f5f9;
        }

        .share-item:last-child {
            border-bottom: none;
        }

        .share-item:hover {
            background-color: #f8fafc;
        }

        /* 4. Professional Pagination Buttons */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.35rem;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }

        .pagination-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 38px;
            min-width: 38px;
            padding: 0 0.5rem;
            border: 1px solid var(--border-color);
            background-color: white;
            color: var(--text-main);
            text-decoration: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .pagination-btn:hover {
            background-color: #f1f5f9;
            border-color: var(--text-light);
        }

        .pagination-btn.active {
            background-color: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .pagination-btn.disabled {
            color: #cbd5e1;
            border-color: #e2e8f0;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* 5. Right Sidebar Filters Box */
        .sidebar-widget {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            box-shadow: var(--shadow-sm);
        }

        .widget-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .broker-widget-title {
            font-size: 0.88rem !important;
            white-space: nowrap;
        }

        .broker-widget {
            padding: 0.85rem 1rem !important;
        }

        .broker-list {
            display: flex;
            flex-direction: column;
            gap: 0.35rem !important;
        }

        .sidebar-filter-form {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .form-label {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-light);
        }

        .form-input, .form-select {
            width: 100%;
            padding: 0.7rem 0.85rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 0.9rem;
            color: var(--text-main);
            background-color: var(--bg-body);
            transition: var(--transition);
        }

        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--accent);
            background-color: white;
        }

        .btn-sidebar-submit {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            width: 100%;
            transition: var(--transition);
            margin-top: 0.25rem;
        }

        .btn-sidebar-submit:hover {
            background-color: var(--accent-hover);
        }

        .btn-sidebar-clear {
            background-color: transparent;
            color: var(--text-light);
            border: 1px solid var(--border-color);
            padding: 0.65rem;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 600;
            font-size: 0.88rem;
            text-decoration: none;
            text-align: center;
            transition: var(--transition);
        }

        .btn-sidebar-clear:hover {
            background-color: #f1f5f9;
            color: var(--text-main);
        }

        /* Featured Widget list */
        .featured-list {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .featured-item {
            display: flex;
            gap: 0.75rem;
            text-decoration: none;
            color: inherit;
            transition: var(--transition);
        }

        .featured-item:hover .featured-title {
            color: var(--accent);
        }

        .featured-img {
            width: 65px;
            height: 48px;
            border-radius: 4px;
            object-fit: cover;
            background-color: #e2e8f0;
            flex-shrink: 0;
        }

        .featured-info {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
            min-width: 0;
        }

        .featured-title {
            font-size: 0.84rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .featured-price {
            font-size: 0.8rem;
            color: #ef4444;
            font-weight: 700;
        }

        /* 6. Professional Footer */
        .main-footer {
            background-color: var(--primary);
            color: #cbd5e1;
            padding: 3rem 1rem 1.5rem;
            margin-top: 3rem;
            border-top: 3px solid var(--accent);
        }

        .footer-container {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            gap: 2.5rem;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .footer-col h3 {
            color: white;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -0.35rem;
            width: 35px;
            height: 2px;
            background-color: var(--accent);
        }

        .footer-col p {
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .footer-col a {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 0.88rem;
            transition: var(--transition);
        }

        .footer-col a:hover {
            color: white;
            padding-left: 3px;
        }

        .footer-bottom {
            max-width: 1100px;
            margin: 2rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid #334155;
            text-align: center;
            font-size: 0.82rem;
            color: #94a3b8;
        }

        .empty-state {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 4rem 2rem;
            text-align: center;
            color: var(--text-light);
        }

        .empty-state i {
            font-size: 4rem;
            color: #cbd5e1;
            margin-bottom: 1.5rem;
        }

        .empty-state h3 {
            color: var(--primary);
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        /* RESPONSIVE DESIGN (MOBILE ADAPTATION) */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: row;
                justify-content: space-between;
                padding: 0.6rem 0.75rem;
                gap: 0.5rem;
            }

            .header-logo {
                font-size: 1.15rem;
                white-space: nowrap;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .header-menu {
                display: none !important;
            }

            /* Mobile Drawer Styling */
            .mobile-drawer-backdrop {
                display: block;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(15, 23, 42, 0.6);
                backdrop-filter: blur(4px);
                z-index: 1500;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;
            }
            .mobile-drawer-backdrop.active {
                opacity: 1;
                pointer-events: auto;
            }
            .mobile-drawer {
                display: flex;
                position: fixed;
                top: 0;
                right: -300px;
                width: 290px;
                height: 100vh;
                background-color: rgba(15, 23, 42, 0.96);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                z-index: 1600;
                flex-direction: column;
                box-shadow: -10px 0 30px rgba(0,0,0,0.25);
                transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                border-left: 1px solid rgba(255, 255, 255, 0.08);
            }
            .mobile-drawer.active {
                right: 0;
            }
            .mobile-drawer-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 1.5rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }
            .drawer-logo {
                color: white;
                font-size: 1.15rem;
                font-weight: 800;
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
            .btn-close-drawer {
                background: transparent;
                border: none;
                color: #94a3b8;
                font-size: 1.8rem;
                cursor: pointer;
                line-height: 1;
                transition: var(--transition);
            }
            .btn-close-drawer:hover {
                color: white;
            }
            .mobile-drawer-body {
                padding: 1.5rem 1rem;
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
                flex-grow: 1;
                overflow-y: auto;
            }
            .drawer-item {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                color: #cbd5e1;
                text-decoration: none;
                padding: 0.85rem 1rem;
                border-radius: var(--radius-sm);
                font-size: 1rem;
                font-weight: 600;
                transition: var(--transition);
                border-left: 3px solid transparent;
            }
            .drawer-item i {
                font-size: 1.1rem;
                color: #64748b;
                transition: var(--transition);
            }
            .drawer-item:hover, .drawer-item.active {
                color: white;
                background-color: rgba(255, 255, 255, 0.05);
                border-left-color: var(--accent);
            }
            .drawer-item:hover i, .drawer-item.active i {
                color: var(--accent);
            }
            .mobile-drawer-footer {
                padding: 1.5rem;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                background-color: rgba(0,0,0,0.15);
            }
            .drawer-support-box {
                background-color: rgba(249, 115, 22, 0.1);
                border: 1px solid rgba(249, 115, 22, 0.2);
                border-radius: var(--radius-md);
                padding: 0.85rem;
                text-align: center;
                color: #fdba74;
                display: flex;
                flex-direction: column;
                gap: 0.2rem;
            }
            .drawer-support-box span {
                font-size: 0.78rem;
                color: #cbd5e1;
            }
            .drawer-support-box strong {
                font-size: 1.05rem;
                font-weight: 800;
            }

            .hero-banner {
                display: none;
            }

            .portal-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .listings-title-row h2 {
                font-size: 0.92rem;
            }

            .portal-sidebar-col {
                order: -1; /* Stack filters on top of listings on mobile */
            }

            .filter-toggle-btn-mobile {
                display: inline-flex;
            }

            .desktop-only-title {
                display: none;
            }

            .collapsible-mobile-content {
                display: none;
                margin-top: 0.85rem;
            }

            .collapsible-mobile-content.active {
                display: flex;
                flex-direction: column;
                gap: 0.85rem;
            }

            .footer-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            .desktop-only {
                display: none !important;
            }
            .filter-toggle-btn-mobile {
                display: none !important;
            }
            .desktop-only-title {
                display: block !important;
            }
            .collapsible-mobile-content {
                display: flex !important;
                flex-direction: column !important;
                gap: 0.85rem !important;
                margin-top: 0 !important;
                overflow-y: auto;
                padding: 1.25rem;
                flex: 1;
            }
            .mobile-filter-fab {
                display: inline-flex;
            }
            .filter-backdrop.active {
                display: block;
            }
            .bottom-sheet-header {
                display: flex !important;
            }
            .filter-sidebar-widget {
                position: fixed;
                bottom: -110%;
                left: 0;
                right: 0;
                background-color: var(--bg-card);
                border-top-left-radius: 16px;
                border-top-right-radius: 16px;
                z-index: 1001;
                transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                max-height: 80vh;
                display: flex;
                flex-direction: column;
                padding: 0 !important;
                box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
                border: none !important;
                overflow: hidden;
            }
            .filter-sidebar-widget.active {
                bottom: 0;
            }
            body {
                overflow-x: hidden;
                width: 100%;
            }
            .portal-sidebar-col {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }
            .sidebar-widget {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }
            .featured-list {
                display: flex !important;
                flex-direction: row !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                gap: 1.25rem;
                padding: 0.5rem 0.25rem;
                width: 100%;
                max-width: 100%;
            }
            .featured-item {
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                min-width: 75px;
                gap: 0.35rem !important;
            }
            .featured-img {
                width: 44px !important;
                height: 44px !important;
                margin: 0 !important;
                border-radius: 50% !important;
            }
            .featured-title {
                font-size: 0.74rem !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 80px;
                text-align: center;
            }
        }


/* ==========================================================================
   2. MEMBER PROFILE STYLES
   ========================================================================== */

:root {
            --primary: #0f172a;
            --primary-light: #1e293b;
            --accent: #f97316;
            --accent-hover: #ea580c;
            --text-main: #334155;
            --text-light: #64748b;
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --border-color: #e2e8f0;
            --transition: all 0.25s ease;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Inter', Arial, sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.5;
        }

        /* 1. Header & Navigation Menu (Same as detail.php) */
        .main-header {
            background-color: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }

        .header-container {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 1rem;
        }

        .header-logo {
            color: white;
            text-decoration: none;
            font-size: 1.35rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            white-space: nowrap;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #ffffff 60%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header-logo i {
            color: var(--accent);
            -webkit-text-fill-color: initial;
            filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
        }

        .header-menu {
            display: flex;
            gap: 1.75rem;
        }

        .menu-item {
            position: relative;
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.92rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            padding: 0.4rem 0;
            transition: var(--transition);
        }
        .menu-item::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent);
            transition: width 0.3s ease;
            box-shadow: 0 0 8px var(--accent);
        }
        .menu-item:hover::after, .menu-item.active::after {
            width: 100%;
        }
        .menu-item:hover, .menu-item.active {
            color: white;
        }

        .mobile-menu-toggle {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.4rem;
            cursor: pointer;
            display: none;
            transition: var(--transition);
        }
        .mobile-menu-toggle:hover {
            color: var(--accent);
        }

        /* Hide mobile drawer elements by default on desktop */
        .mobile-drawer, .mobile-drawer-backdrop {
            display: none;
        }

        /* Profile Hero Card style */
        .hero-banner {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%), 
                        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 3.5rem 1rem;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
        }

        .profile-card {
            max-width: 750px;
            margin: 0 auto;
            background: rgba(30, 41, 59, 0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 16px;
            padding: 2rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            text-align: left;
            box-shadow: 0 10px 25px rgba(0,0,0,0.35);
        }

        .profile-avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
            box-shadow: 0 4px 10px rgba(0,0,0,0.25);
            flex-shrink: 0;
        }

        .profile-info {
            flex: 1;
            min-width: 0;
        }

        .profile-name-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.35rem;
            flex-wrap: wrap;
        }

        .profile-name {
            font-size: 1.6rem;
            font-weight: 800;
            color: white;
            margin: 0;
        }

        .verified-badge {
            background-color: rgba(34, 197, 94, 0.2);
            color: #4ade80;
            border: 1px solid rgba(34, 197, 94, 0.4);
            font-size: 0.7rem;
            font-weight: 700;
            padding: 0.15rem 0.5rem;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .profile-description {
            font-size: 0.9rem;
            color: #cbd5e1;
            margin-bottom: 0.85rem;
            line-height: 1.5;
        }

        .profile-meta {
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .meta-item {
            font-size: 0.8rem;
            color: #cbd5e1;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        /* 2-Column Portal Layout */
        .portal-container {
            max-width: 1100px;
            margin: 1.5rem auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 2.3fr 1fr;
            gap: 1.5rem;
        }

        .portal-sidebar-col {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Right Sidebar Filters Box */
        .sidebar-widget {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            box-shadow: var(--shadow-sm);
        }

        .widget-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .broker-widget-title {
            font-size: 0.88rem !important;
            white-space: nowrap;
        }

        .broker-widget {
            padding: 0.85rem 1rem !important;
        }

        .broker-list {
            display: flex;
            flex-direction: column;
            gap: 0.35rem !important;
        }

        .mobile-filter-fab {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--accent);
            color: white;
            padding: 0.65rem 1.25rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.85rem;
            box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
            border: none;
            z-index: 999;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(4px);
            z-index: 1000;
        }

        /* Mobile filter collapsible behavior */
        .filter-toggle-btn-mobile {
            display: none;
            width: 100%;
            padding: 0.75rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .filter-toggle-btn-mobile i {
            transition: var(--transition);
        }

        .desktop-only-title {
            display: block;
        }

        .sidebar-filter-form {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .form-label {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-light);
        }

        .form-input, .form-select {
            width: 100%;
            padding: 0.7rem 0.85rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 0.9rem;
            color: var(--text-main);
            background-color: var(--bg-body);
            transition: var(--transition);
        }

        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--accent);
            background-color: white;
        }

        .btn-sidebar-submit {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            width: 100%;
            transition: var(--transition);
            margin-top: 0.25rem;
        }

        .btn-sidebar-submit:hover {
            background-color: var(--accent-hover);
        }

        .filter-group {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 1.25rem;
        }

        .filter-group:last-of-type {
            border-bottom: none;
            padding-bottom: 0;
        }

        .filter-group-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.75rem;
            display: block;
        }

        .filter-checkbox-list {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 0.25rem;
        }

        .filter-checkbox-list::-webkit-scrollbar {
            width: 4px;
        }
        .filter-checkbox-list::-webkit-scrollbar-thumb {
            background-color: #cbd5e1;
            border-radius: 4px;
        }

        .filter-checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-main);
            cursor: pointer;
            padding: 0.2rem 0;
            transition: var(--transition);
        }

        .filter-checkbox-item:hover {
            color: var(--accent);
        }

        .filter-checkbox-item input[type="radio"],
        .filter-checkbox-item input[type="checkbox"] {
            accent-color: var(--accent);
            width: 15px;
            height: 15px;
            cursor: pointer;
            margin: 0;
        }

        .portal-main-col {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        /* Listing Title section */
        .listings-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .listings-title-row h2 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
        }

        /* Green / Blue Notice Bar */
        .notice-bar {
            background-color: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e40af;
            border-radius: 8px;
            padding: 0.75rem 1.25rem;
            margin-bottom: 1.25rem;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            box-shadow: var(--shadow-sm);
        }

        .notice-bar a {
            color: #ef4444;
            font-size: 0.78rem;
            font-weight: 700;
            text-decoration: none;
            background-color: #fef2f2;
            border: 1px solid #fca5a5;
            padding: 0.2rem 0.6rem;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            transition: var(--transition);
        }

        .notice-bar a:hover {
            background-color: #fee2e2;
        }

        /* Property Card */
        .listings-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .property-card {
            background-color: var(--bg-card);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-color);
            padding: 0.85rem 1rem;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: var(--transition);
            cursor: pointer;
            box-shadow: var(--shadow-sm);
        }

        .property-card:hover {
            border-color: #cbd5e1;
            box-shadow: var(--shadow-md);
        }

        .card-breadcrumb {
            font-size: 0.78rem;
            color: var(--text-light);
            margin-bottom: 0.6rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
        }

        .card-link-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .card-main-row {
            display: flex;
            gap: 1rem;
            width: 100%;
        }

        .card-gallery {
            position: relative;
            background-color: #ffffff;
            width: 140px;
            height: 140px;
            min-width: 140px;
            min-height: 140px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            z-index: 2;
        }

        .gallery-slide {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .no-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            color: var(--text-light);
        }

        .gallery-badge-time {
            position: absolute;
            bottom: 6px;
            left: 6px;
            background: rgba(15, 23, 42, 0.7);
            color: white;
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 500;
            z-index: 3;
        }

        .gallery-badge-count {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(15, 23, 42, 0.7);
            color: white;
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.2rem;
            z-index: 3;
        }

        .card-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 0.2rem;
            min-width: 0;
            position: relative;
        }

        .card-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.1rem;
        }

        .card-sub-info {
            font-size: 0.8rem;
            color: var(--text-light);
            font-weight: 500;
            margin-bottom: 0.1rem;
        }

        .card-price-row {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            margin: 0.15rem 0;
            flex-wrap: wrap;
        }

        .card-price {
            color: #ef4444;
            font-size: 1.15rem;
            font-weight: 700;
        }

        .card-metric {
            font-size: 0.88rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .card-metric-area {
            color: var(--text-main);
            font-weight: 600;
        }

        .card-desc-snippet {
            font-size: 0.84rem;
            color: var(--text-light);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0.1rem 0;
        }

        .card-location-row {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--text-light);
            font-size: 0.82rem;
            padding-bottom: 0.2rem;
        }

        .card-location-row i {
            color: #94a3b8;
        }

        .card-footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f1f5f9;
            padding-top: 0.5rem;
            margin-top: 0.4rem;
            position: relative;
            z-index: 5;
        }

        .author-group {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .author-avatar {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--border-color);
        }

        .author-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-main);
        }

        .author-stats {
            font-size: 0.78rem;
            color: var(--text-light);
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            margin-left: 0.25rem;
        }

        .btn-share {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1.1rem;
            transition: var(--transition);
        }

        .btn-share:hover { color: #3b82f6; }

        .btn-up-post {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1.1rem;
            transition: var(--transition);
        }

        .btn-up-post:hover { color: var(--accent); }

        .share-dropdown {
            display: none;
            position: absolute;
            bottom: 30px;
            right: 0;
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 100;
            min-width: 145px;
            overflow: hidden;
        }

        .share-dropdown.active {
            display: block;
        }

        .share-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.85rem;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 550;
            cursor: pointer;
            transition: var(--transition);
            text-align: left;
            border-bottom: 1px solid #f1f5f9;
        }

        .share-item:last-child {
            border-bottom: none;
        }

        .share-item:hover {
            background-color: #f8fafc;
        }

        .phone-reveal-wrapper {
            background-color: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 2px 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.82rem;
            margin: 0 2px;
            vertical-align: middle;
            position: relative;
            z-index: 5;
        }

        .phone-masked {
            color: var(--text-main);
            font-weight: 600;
        }

        .btn-reveal-phone {
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: 3px;
            padding: 1px 6px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-reveal-phone:hover {
            background-color: var(--accent-hover);
        }

        .phone-link {
            color: var(--accent);
            font-weight: 700;
            text-decoration: underline;
        }

        /* Pagination */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.35rem;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }

        .pagination-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 38px;
            min-width: 38px;
            padding: 0 0.5rem;
            border: 1px solid var(--border-color);
            background-color: white;
            color: var(--text-main);
            text-decoration: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .pagination-btn:hover {
            background-color: #f1f5f9;
            border-color: var(--text-light);
        }

        .pagination-btn.active {
            background-color: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .pagination-btn.disabled {
            color: #cbd5e1;
            border-color: #e2e8f0;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Footer */
        .main-footer {
            background-color: var(--primary);
            color: #cbd5e1;
            padding: 3rem 1rem 1.5rem;
            margin-top: 3rem;
            border-top: 3px solid var(--accent);
        }

        .footer-container {
            max-width: 850px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .footer-col h3 {
            color: white;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -0.35rem;
            width: 35px;
            height: 2px;
            background-color: var(--accent);
        }

        .footer-col p {
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .footer-col a {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 0.88rem;
            transition: var(--transition);
        }

        .footer-col a:hover {
            color: white;
            padding-left: 3px;
        }

        .footer-bottom {
            max-width: 850px;
            margin: 2rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid #334155;
            text-align: center;
            font-size: 0.82rem;
            color: #94a3b8;
        }

        .empty-state {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 4rem 2rem;
            text-align: center;
            color: var(--text-light);
        }

        .empty-state i {
            font-size: 4rem;
            color: #cbd5e1;
            margin-bottom: 1.5rem;
        }

        .empty-state h3 {
            color: var(--primary);
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        @media (max-width: 768px) {
            .header-container {
                flex-direction: row;
                justify-content: space-between;
                padding: 0.6rem 0.75rem;
                gap: 0.5rem;
            }

            .header-logo {
                font-size: 1.15rem;
                white-space: nowrap;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .header-menu {
                display: none !important;
            }

            /* Mobile Drawer Styling */
            .mobile-drawer-backdrop {
                display: block;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(15, 23, 42, 0.6);
                backdrop-filter: blur(4px);
                z-index: 1500;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;
            }
            .mobile-drawer-backdrop.active {
                opacity: 1;
                pointer-events: auto;
            }
            .mobile-drawer {
                display: flex;
                position: fixed;
                top: 0;
                right: -300px;
                width: 290px;
                height: 100vh;
                background-color: rgba(15, 23, 42, 0.96);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                z-index: 1600;
                flex-direction: column;
                box-shadow: -10px 0 30px rgba(0,0,0,0.25);
                transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                border-left: 1px solid rgba(255, 255, 255, 0.08);
            }
            .mobile-drawer.active {
                right: 0;
            }
            .mobile-drawer-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 1.5rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }
            .drawer-logo {
                color: white;
                font-size: 1.15rem;
                font-weight: 800;
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
            .btn-close-drawer {
                background: transparent;
                border: none;
                color: #94a3b8;
                font-size: 1.8rem;
                cursor: pointer;
                line-height: 1;
                transition: var(--transition);
            }
            .btn-close-drawer:hover {
                color: white;
            }
            .mobile-drawer-body {
                padding: 1.5rem 1rem;
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
                flex-grow: 1;
                overflow-y: auto;
            }
            .drawer-item {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                color: #cbd5e1;
                text-decoration: none;
                padding: 0.85rem 1rem;
                border-radius: var(--radius-sm);
                font-size: 1rem;
                font-weight: 600;
                transition: var(--transition);
                border-left: 3px solid transparent;
            }
            .drawer-item i {
                font-size: 1.1rem;
                color: #64748b;
                transition: var(--transition);
            }
            .drawer-item:hover, .drawer-item.active {
                color: white;
                background-color: rgba(255, 255, 255, 0.05);
                border-left-color: var(--accent);
            }
            .drawer-item:hover i, .drawer-item.active i {
                color: var(--accent);
            }
            .mobile-drawer-footer {
                padding: 1.5rem;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                background-color: rgba(0,0,0,0.15);
            }
            .drawer-support-box {
                background-color: rgba(249, 115, 22, 0.1);
                border: 1px solid rgba(249, 115, 22, 0.2);
                border-radius: var(--radius-md);
                padding: 0.85rem;
                text-align: center;
                color: #fdba74;
                display: flex;
                flex-direction: column;
                gap: 0.2rem;
            }
            .drawer-support-box span {
                font-size: 0.78rem;
                color: #cbd5e1;
            }
            .drawer-support-box strong {
                font-size: 1.05rem;
                font-weight: 800;
            }

            .profile-card {
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 1.5rem;
            }

            .profile-avatar {
                width: 80px;
                height: 80px;
            }

            .portal-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .listings-title-row h2 {
                font-size: 0.92rem;
            }

            .portal-sidebar-col {
                order: -1; /* Stack filters/brokers on top on mobile */
            }

            .filter-toggle-btn-mobile {
                display: inline-flex;
            }

            .filter-toggle-btn-mobile {
                display: none !important;
            }
            .desktop-only-title {
                display: block !important;
            }
            .collapsible-mobile-content {
                display: flex !important;
                flex-direction: column !important;
                gap: 0.85rem !important;
                margin-top: 0 !important;
                overflow-y: auto;
                padding: 1.25rem;
                flex: 1;
            }
            .mobile-filter-fab {
                display: inline-flex;
            }
            .filter-backdrop.active {
                display: block;
            }
            .bottom-sheet-header {
                display: flex !important;
            }
            .filter-sidebar-widget {
                position: fixed;
                bottom: -110%;
                left: 0;
                right: 0;
                background-color: var(--bg-card);
                border-top-left-radius: 16px;
                border-top-right-radius: 16px;
                z-index: 1001;
                transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                max-height: 80vh;
                display: flex;
                flex-direction: column;
                padding: 0 !important;
                box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
                border: none !important;
                overflow: hidden;
            }
            body {
                overflow-x: hidden;
                width: 100%;
            }

            .portal-sidebar-col {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }

            .sidebar-widget {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }

            .footer-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .card-gallery {
                width: 110px;
                height: 110px;
                min-width: 110px;
                min-height: 110px;
            }

            .desktop-only {
                display: none !important;
            }

            .featured-list {
                display: flex !important;
                flex-direction: row !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                gap: 1.25rem;
                padding: 0.5rem 0.25rem;
                width: 100%;
                max-width: 100%;
            }

            .featured-item {
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                min-width: 75px;
                gap: 0.35rem !important;
            }

            .featured-img {
                width: 44px !important;
                height: 44px !important;
                margin: 0 !important;
                border-radius: 50% !important;
            }

            .featured-title {
                font-size: 0.74rem !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 80px;
                text-align: center;
            }
        }


/* ==========================================================================
   3. LISTING DETAILS STYLES
   ========================================================================== */

:root {
            --primary: #0f172a;
            --primary-light: #1e293b;
            --accent: #f97316;
            --accent-hover: #ea580c;
            --text-main: #2b3542;
            --text-light: #6e7a8a;
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --border-color: #e2e8f0;
            --transition: all 0.25s ease;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.5;
        }

        .phone-reveal-wrapper {
            background-color: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 2px 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.85rem;
            margin: 0 2px;
            vertical-align: middle;
        }

        .phone-masked {
            color: var(--text-main);
            font-weight: 600;
        }

        .btn-reveal-phone {
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: 3px;
            padding: 1px 6px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-reveal-phone:hover {
            background-color: var(--accent-hover);
        }

        .phone-link {
            color: var(--accent);
            font-weight: 700;
            text-decoration: underline;
        }

        /* 1. Header & Navigation Menu (Same as index.php) */
        .main-header {
            background-color: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }

        .header-container {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 1rem;
        }

        .header-logo {
            color: white;
            text-decoration: none;
            font-size: 1.35rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            white-space: nowrap;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #ffffff 60%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header-logo i {
            color: var(--accent);
            -webkit-text-fill-color: initial;
            filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
        }

        .mobile-menu-toggle {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.4rem;
            cursor: pointer;
            display: none;
            transition: var(--transition);
        }
        .mobile-menu-toggle:hover {
            color: var(--accent);
        }

        .header-menu {
            display: flex;
            gap: 1.75rem;
        }

        .menu-item {
            position: relative;
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.92rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            padding: 0.4rem 0;
            transition: var(--transition);
        }
        .menu-item::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent);
            transition: width 0.3s ease;
            box-shadow: 0 0 8px var(--accent);
        }
        .menu-item:hover::after, .menu-item.active::after {
            width: 100%;
        }
        .menu-item:hover, .menu-item.active {
            color: white;
        }

        .btn-post-ad {
            background-color: var(--accent);
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            font-weight: 700;
            transition: var(--transition);
        }

        .btn-post-ad:hover {
            background-color: var(--accent-hover);
        }

        /* 2. Hero Banner */
        .hero-banner {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%), 
                        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 4.5rem 1.5rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid var(--border-color);
        }
        .hero-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
            pointer-events: none;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .hero-content h1 {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 0.75rem;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
            background: linear-gradient(135deg, #ffffff 60%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-transform: uppercase;
        }

        .hero-content p {
            font-size: 1.1rem;
            color: #94a3b8;
            max-width: 600px;
            margin: 0 auto;
            font-weight: 500;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }

        .gallery-wrapper {
            max-width: 1100px;
            margin: 1rem auto 0;
            padding: 0 1rem;
            width: 100%;
        }

        .gallery-block {
            background-color: #ffffff;
            border-radius: var(--radius-md) var(--radius-md) 0 0;
            overflow: hidden;
            position: relative;
            width: 100%;
            height: 480px;
            border: 1px solid var(--border-color);
            border-bottom: none;
        }

        .gallery-container {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .gallery-slide {
            width: 100%;
            min-width: 100%;
            max-width: 100%;
            height: 100%;
            object-fit: contain;
            background-color: #ffffff;
        }

        .no-image {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
            color: var(--text-light);
            gap: 0.5rem;
        }

        .no-image i {
            font-size: 3.5rem;
            color: #94a3b8;
        }

        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            border: 1px solid var(--border-color);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            z-index: 5;
            font-size: 1rem;
            box-shadow: var(--shadow-sm);
        }

        .gallery-nav:hover {
            background: white;
            color: var(--accent);
            box-shadow: var(--shadow-md);
        }

        .nav-prev { left: 15px; }
        .nav-next { right: 15px; }

        .gallery-counter {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.25rem 0.65rem;
            border-radius: 4px;
            font-size: 0.78rem;
            font-weight: 600;
            z-index: 10;
        }

        .gallery-thumbnails-wrapper {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-top: none;
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            padding: 0.75rem;
            display: flex;
            justify-content: center;
        }

        .gallery-thumbnails {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            max-width: 100%;
            padding-bottom: 0.25rem;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .gallery-thumbnails::-webkit-scrollbar {
            display: none;
        }

        .thumbnail-item {
            width: 75px;
            height: 50px;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition);
            opacity: 0.6;
            flex-shrink: 0;
        }

        .thumbnail-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnail-item:hover, .thumbnail-item.active {
            border-color: var(--accent);
            opacity: 1;
            transform: scale(1.03);
        }

        /* 3. 2-Column content wrapper */
        .detail-container {
            max-width: 1100px;
            margin: 1.5rem auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 2.3fr 1fr;
            gap: 1.5rem;
        }

        .detail-main {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            min-width: 0;
        }

        .info-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
        }

        .breadcrumb {
            font-size: 0.8rem;
            color: var(--text-light);
            margin-bottom: 0.2rem;
            font-weight: 500;
        }

        .property-title {
            font-family: Arial, sans-serif;
            font-weight: bold;
            font-size: 1.15rem;
            color: #000000;
            line-height: 1.35;
            margin-bottom: 0.2rem;
        }

        .property-location {
            font-size: 0.85rem;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 0.35rem;
            margin-bottom: 0.4rem;
        }

        .property-location i {
            color: #94a3b8;
        }

        .core-specs-bar {
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            padding: 0.5rem 0;
            margin: 0.5rem 0;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .spec-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .spec-label {
            font-size: 0.78rem;
            color: var(--text-light);
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .spec-value {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary);
        }

        .spec-value-price {
            color: #ef4444;
        }

        .section-header {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.85rem;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.4rem;
        }

        .description-text {
            font-family: Arial, sans-serif;
            font-size: 0.95rem;
            color: #2b3542;
            white-space: pre-line;
            word-break: break-word;
            line-height: 1.5;
        }

        .specs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            row-gap: 0.85rem;
            column-gap: 2rem;
            font-family: Arial, sans-serif;
            font-size: 0.92rem;
        }

        .grid-spec-item {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 0.5rem;
        }

        .grid-spec-label {
            color: var(--text-light);
            font-weight: 500;
        }

        .grid-spec-val {
            color: var(--primary);
            font-weight: 700;
        }

        /* Right Side Sidebar */
        .detail-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            position: sticky;
            top: 5rem;
            height: fit-content;
        }

        .warning-box {
            background-color: #fffbeb;
            border: 1px solid #fef3c7;
            border-radius: var(--radius-md);
            padding: 1rem;
            display: flex;
            gap: 0.75rem;
            font-size: 0.82rem;
            color: #b45309;
            line-height: 1.4;
        }

        .warning-box i {
            font-size: 1.15rem;
            margin-top: 0.1rem;
            color: #d97706;
        }

        .contact-box {
            background-color: var(--bg-card);
            border: 1.5px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .contact-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .sender-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border-color);
            background-color: #f1f5f9;
        }

        .sender-meta {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }

        .sender-name {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
        }

        .sender-role {
            font-size: 0.78rem;
            color: var(--text-light);
            font-weight: 600;
        }

        .sender-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-top: 1px solid #f1f5f9;
            border-bottom: 1px solid #f1f5f9;
            padding: 0.75rem 0;
            text-align: center;
            gap: 0.5rem;
        }

        .stat-col {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }

        .stat-lbl {
            font-size: 0.72rem;
            color: var(--text-light);
            text-transform: uppercase;
            font-weight: 600;
        }

        .stat-val {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--primary);
        }

        .contact-buttons-group {
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 0.75rem;
        }

        .btn-sidebar-action {
            width: 100%;
            padding: 0.8rem 1rem;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-decoration: none;
            border: none;
        }

        .btn-call-sidebar {
            background-color: #00bfa5;
            color: white;
            box-shadow: 0 4px 10px rgba(0,191,165,0.25);
        }

        .btn-call-sidebar:hover {
            background-color: #00a892;
        }

        .btn-zalo-sidebar {
            background-color: white;
            color: var(--primary);
            border: 1px solid var(--border-color);
        }

        .btn-zalo-sidebar:hover {
            background-color: #f8fafc;
            border-color: var(--text-light);
        }

        /* Sidebar Widgets (Same styling as index.php) */
        .sidebar-widget {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            box-shadow: var(--shadow-sm);
        }

        .widget-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        /* STICKY BOTTOM BAR (MOBILE ONLY) */
        .sticky-bottom-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            z-index: 999;
            box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
        }

        .sticky-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            max-width: 500px;
            margin: 0 auto;
        }

        .btn-sticky-action {
            padding: 0.8rem;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 0.9rem;
            text-align: center;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
        }

        /* 4. Professional Footer (Same as index.php) */
        .main-footer {
            background-color: var(--primary);
            color: #cbd5e1;
            padding: 3rem 1rem 1.5rem;
            margin-top: 3rem;
            border-top: 3px solid var(--accent);
        }

        .footer-container {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            gap: 2.5rem;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .footer-col h3 {
            color: white;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -0.35rem;
            width: 35px;
            height: 2px;
            background-color: var(--accent);
        }

        .footer-col p {
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .footer-col a {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 0.88rem;
            transition: var(--transition);
        }

        .footer-col a:hover {
            color: white;
            padding-left: 3px;
        }

        .footer-bottom {
            max-width: 1100px;
            margin: 2rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid #334155;
            text-align: center;
            font-size: 0.82rem;
            color: #94a3b8;
        }

        /* Hide mobile drawer elements by default on desktop */
        .mobile-drawer, .mobile-drawer-backdrop {
            display: none;
        }

        /* RESPONSIVE DESIGN (MOBILE ADAPTATION) */
        @media (max-width: 768px) {
            .main-footer {
                padding-bottom: 80px; /* Spacing for sticky mobile bar on mobile only */
            }

            .header-container {
                flex-direction: row;
                justify-content: space-between;
                padding: 0.6rem 0.75rem;
                gap: 0.5rem;
            }

            .header-logo {
                font-size: 1.15rem;
                white-space: nowrap;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .header-menu {
                display: none !important; /* Hide desktop header menu on mobile */
            }

            /* Mobile Drawer Styling */
            .mobile-drawer-backdrop {
                display: block;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(15, 23, 42, 0.6);
                backdrop-filter: blur(4px);
                z-index: 1500;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;
            }
            .mobile-drawer-backdrop.active {
                opacity: 1;
                pointer-events: auto;
            }
            .mobile-drawer {
                display: flex;
                position: fixed;
                top: 0;
                right: -300px;
                width: 290px;
                height: 100vh;
                background-color: rgba(15, 23, 42, 0.96);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                z-index: 1600;
                flex-direction: column;
                box-shadow: -10px 0 30px rgba(0,0,0,0.25);
                transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                border-left: 1px solid rgba(255, 255, 255, 0.08);
            }
            .mobile-drawer.active {
                right: 0;
            }
            .mobile-drawer-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 1.5rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }
            .drawer-logo {
                color: white;
                font-size: 1.15rem;
                font-weight: 800;
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
            .btn-close-drawer {
                background: transparent;
                border: none;
                color: #94a3b8;
                font-size: 1.8rem;
                cursor: pointer;
                line-height: 1;
                transition: var(--transition);
            }
            .btn-close-drawer:hover {
                color: white;
            }
            .mobile-drawer-body {
                padding: 1.5rem 1rem;
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
                flex-grow: 1;
                overflow-y: auto;
            }
            .drawer-item {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                color: #cbd5e1;
                text-decoration: none;
                padding: 0.85rem 1rem;
                border-radius: var(--radius-sm);
                font-size: 1rem;
                font-weight: 600;
                transition: var(--transition);
                border-left: 3px solid transparent;
            }
            .drawer-item i {
                font-size: 1.1rem;
                color: #64748b;
                transition: var(--transition);
            }
            .drawer-item:hover, .drawer-item.active {
                color: white;
                background-color: rgba(255, 255, 255, 0.05);
                border-left-color: var(--accent);
            }
            .drawer-item:hover i, .drawer-item.active i {
                color: var(--accent);
            }
            .mobile-drawer-footer {
                padding: 1.5rem;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                background-color: rgba(0,0,0,0.15);
            }
            .drawer-support-box {
                background-color: rgba(249, 115, 22, 0.1);
                border: 1px solid rgba(249, 115, 22, 0.2);
                border-radius: var(--radius-md);
                padding: 0.85rem;
                text-align: center;
                color: #fdba74;
                display: flex;
                flex-direction: column;
                gap: 0.2rem;
            }
            .drawer-support-box span {
                font-size: 0.78rem;
                color: #cbd5e1;
            }
            .drawer-support-box strong {
                font-size: 1.05rem;
                font-weight: 800;
            }

            .hero-banner {
                display: none;
            }

            .gallery-wrapper {
                padding: 0;
                margin-top: 0;
            }

            .gallery-block {
                border-radius: 0;
                height: 280px;
                border-left: none;
                border-right: none;
            }

            .gallery-thumbnails-wrapper {
                border-radius: 0;
                padding: 0.5rem;
                border-left: none;
                border-right: none;
            }

            .thumbnail-item {
                width: 60px;
                height: 40px;
            }

            .detail-container {
                grid-template-columns: 1fr;
                gap: 1.25rem;
                margin: 1rem auto;
            }

            .info-card {
                padding: 1.15rem;
                border-radius: var(--radius-md);
            }

            .core-specs-bar {
                gap: 0.75rem;
            }

            .spec-value {
                font-size: 1rem;
            }

            .specs-grid {
                grid-template-columns: 1fr;
                row-gap: 0.75rem;
            }

            .detail-sidebar {
                display: none;
            }

            .sticky-bottom-bar {
                display: block;
            }

            .footer-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        .poster-card-sidebar {
            transition: var(--transition);
        }
        .poster-card-sidebar:hover {
            border-color: var(--accent) !important;
            background-color: #f0fdf4 !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        .poster-card-sidebar:hover .poster-name {
            color: var(--accent) !important;
            text-decoration: underline;
        }
        .poster-card-sidebar:hover .poster-avatar {
            transform: scale(1.05);
            border-color: var(--accent) !important;
        }

        .filter-backdrop-overlay {
            display: none;
        }
        
        .bottom-sheet-header {
            display: none;
        }


/* ==========================================================================
   4. POSTING INSTRUCTIONS STYLES
   ========================================================================== */

:root {

            --primary: #0f172a;

            --primary-light: #1e293b;

            --accent: #f97316;

            --accent-hover: #ea580c;

            --text-main: #334155;

            --text-light: #64748b;

            --bg-body: #f8fafc;

            --bg-card: #ffffff;

            --border-color: #e2e8f0;

            --transition: all 0.25s ease;

            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);

            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);

            --radius-sm: 6px;

            --radius-md: 10px;

            --radius-lg: 14px;

        }



        * { box-sizing: border-box; margin: 0; padding: 0; }



        body {

            font-family: Arial, Helvetica, sans-serif;

            background-color: var(--bg-body);

            color: var(--text-main);

            line-height: 1.5;

        }



        .main-header {

            background-color: rgba(15, 23, 42, 0.88);

            backdrop-filter: blur(12px);

            -webkit-backdrop-filter: blur(12px);

            color: white;

            position: sticky;

            top: 0;

            z-index: 1000;

            border-bottom: 1px solid rgba(255, 255, 255, 0.08);

            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

        }



        .header-container {

            max-width: 1100px;

            margin: 0 auto;

            display: flex;

            justify-content: space-between;

            align-items: center;

            padding: 0.85rem 1rem;

        }



        .header-logo {

            color: white;

            text-decoration: none;

            font-size: 1.35rem;

            font-weight: 800;

            display: flex;

            align-items: center;

            gap: 0.6rem;

            white-space: nowrap;

            letter-spacing: -0.5px;

            background: linear-gradient(135deg, #ffffff 60%, #38bdf8 100%);

            -webkit-background-clip: text;

            -webkit-text-fill-color: transparent;

        }



        .header-logo i {

            color: var(--accent);

            -webkit-text-fill-color: initial;

            filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));

        }



        .mobile-menu-toggle {

            background: transparent;

            border: none;

            color: white;

            font-size: 1.4rem;

            cursor: pointer;

            display: none;

            transition: var(--transition);

        }

        .mobile-menu-toggle:hover {

            color: var(--accent);

        }



        .header-menu {

            display: flex;

            gap: 1.75rem;

        }



        .menu-item {

            position: relative;

            color: #94a3b8;

            text-decoration: none;

            font-size: 0.92rem;

            font-weight: 600;

            letter-spacing: 0.3px;

            padding: 0.4rem 0;

            transition: var(--transition);

        }

        .menu-item::after {

            content: '';

            position: absolute;

            bottom: -2px;

            left: 0;

            width: 0;

            height: 2px;

            background-color: var(--accent);

            transition: width 0.3s ease;

            box-shadow: 0 0 8px var(--accent);

        }

        .menu-item:hover::after, .menu-item.active::after {

            width: 100%;

        }

        .menu-item:hover, .menu-item.active {

            color: white;

        }



        /* Hero Banner */

        .hero-banner {

            background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%), 

                        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');

            background-size: cover;

            background-position: center;

            color: white;

            padding: 4.5rem 1.5rem;

            text-align: center;

            position: relative;

            overflow: hidden;

            border-bottom: 1px solid var(--border-color);

        }

        .hero-banner::before {

            content: '';

            position: absolute;

            top: -50%;

            left: -50%;

            width: 200%;

            height: 200%;

            background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);

            pointer-events: none;

        }



        .hero-content {

            max-width: 800px;

            margin: 0 auto;

            position: relative;

            z-index: 2;

        }



        .hero-content h1 {

            font-size: 2.2rem;

            font-weight: 800;

            margin-bottom: 0.75rem;

            letter-spacing: -0.5px;

            text-shadow: 0 2px 10px rgba(0,0,0,0.5);

            background: linear-gradient(135deg, #ffffff 60%, #38bdf8 100%);

            -webkit-background-clip: text;

            -webkit-text-fill-color: transparent;

            text-transform: uppercase;

        }



        .hero-content p {

            font-size: 1.1rem;

            color: #94a3b8;

            max-width: 600px;

            margin: 0 auto;

            font-weight: 500;

            letter-spacing: 0.5px;

            text-shadow: 0 1px 4px rgba(0,0,0,0.3);

        }



        /* 3. Main content 2-column layout */

        .portal-container {

            max-width: 1100px;

            margin: 1.5rem auto;

            padding: 0 1rem;

            display: grid;

            grid-template-columns: 2.3fr 1fr; /* Left content, Right filter sidebar */

            gap: 1.5rem;

        }



        .portal-main-col {

            min-width: 0;

            display: flex;

            flex-direction: column;

            gap: 1.5rem;

        }



        .portal-sidebar-col {

            display: flex;

            flex-direction: column;

            gap: 1.5rem;

        }



        /* Sidebar Widgets */

        .sidebar-widget {

            background-color: white;

            border: 1px solid var(--border-color);

            border-radius: var(--radius-md);

            padding: 1.25rem;

            box-shadow: var(--shadow-sm);

        }



        .widget-title {

            font-size: 1rem;

            font-weight: 700;

            color: var(--primary);

            margin-bottom: 1.25rem;

            border-bottom: 2px solid var(--accent);

            padding-bottom: 0.4rem;

            text-transform: uppercase;

            letter-spacing: 0.3px;

            display: flex;

            align-items: center;

            gap: 0.4rem;

        }



        .featured-list {

            display: flex;

            flex-direction: column;

            gap: 1rem;

        }



        .featured-item {

            display: flex;

            gap: 0.75rem;

            text-decoration: none;

            color: var(--text-main);

            transition: var(--transition);

            align-items: center;

            border-bottom: 1px solid #f1f5f9;

            padding-bottom: 0.75rem;

        }

        .featured-item:last-child {

            border-bottom: none;

            padding-bottom: 0;

        }



        .featured-img {

            width: 64px;

            height: 64px;

            object-fit: cover;

            border-radius: var(--radius-sm);

            flex-shrink: 0;

            border: 1px solid var(--border-color);

        }



        .featured-info {

            display: flex;

            flex-direction: column;

            gap: 0.25rem;

            min-width: 0;

        }



        .featured-title {

            font-size: 0.88rem;

            font-weight: 600;

            color: var(--text-main);

            white-space: nowrap;

            overflow: hidden;

            text-overflow: ellipsis;

            margin: 0;

            transition: var(--transition);

        }

        .featured-item:hover .featured-title {

            color: var(--accent);

            text-decoration: underline;

        }



        .featured-price {

            font-size: 0.85rem;

            color: #ef4444;

            font-weight: 700;

        }



        .breadcrumb {

            margin-bottom: 0.5rem;

            font-size: 0.88rem;

            color: var(--text-light);

        }

        .breadcrumb a {

            color: var(--accent);

            text-decoration: none;

            font-weight: 500;

            transition: var(--transition);

        }

        .breadcrumb a:hover {

            text-decoration: underline;

        }



        /* 4. Professional Footer (Same as index.php) */

        .main-footer {

            background-color: var(--primary);

            color: #cbd5e1;

            padding: 3rem 1rem 1.5rem;

            margin-top: 3rem;

            border-top: 3px solid var(--accent);

        }



        .footer-container {

            max-width: 1100px;

            margin: 0 auto;

            display: grid;

            grid-template-columns: 1.5fr 1fr 1fr;

            gap: 3rem;

        }



        .footer-col h3 {

            font-size: 1.1rem;

            font-weight: 700;

            margin-bottom: 1.5rem;

            position: relative;

            color: white;

        }



        .footer-col h3::after {

            content: '';

            position: absolute;

            left: 0;

            bottom: -0.35rem;

            width: 35px;

            height: 2px;

            background-color: var(--accent);

        }



        .footer-col p {

            font-size: 0.88rem;

            line-height: 1.6;

            color: #cbd5e1;

        }



        .footer-col a {

            color: #cbd5e1;

            text-decoration: none;

            font-size: 0.88rem;

            display: block;

            margin-bottom: 0.75rem;

            transition: var(--transition);

        }



        .footer-col a:hover {

            color: white;

            padding-left: 3px;

        }



        .footer-bottom {

            max-width: 1100px;

            margin: 3rem auto 0;

            padding-top: 1.5rem;

            border-top: 1px solid #1e293b;

            text-align: center;

            font-size: 0.82rem;

            color: #94a3b8;

        }



                
        /* Filter Styles copied from index.php */
        .filter-toggle-btn-mobile {
            display: none;
            width: 100%;
            padding: 0.75rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .filter-toggle-btn-mobile i {
            transition: var(--transition);
        }

        .desktop-only-title {
            display: block;
        }

        .sidebar-filter-form {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .form-label {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-light);
        }

        .form-input, .form-select {
            width: 100%;
            padding: 0.7rem 0.85rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 0.9rem;
            color: var(--text-main);
            background-color: var(--bg-body);
            transition: var(--transition);
        }

        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--accent);
            background-color: white;
        }

        .btn-sidebar-submit {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            width: 100%;
            transition: var(--transition);
            margin-top: 0.25rem;
        }

        .btn-sidebar-submit:hover {
            background-color: var(--accent-hover);
        }

        .filter-group {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 1.25rem;
        }

        .filter-group:last-of-type {
            border-bottom: none;
            padding-bottom: 0;
        }

        .filter-group-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.75rem;
            display: block;
        }

        .filter-checkbox-list {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 0.25rem;
        }

        .filter-checkbox-list::-webkit-scrollbar {
            width: 4px;
        }
        .filter-checkbox-list::-webkit-scrollbar-thumb {
            background-color: #cbd5e1;
            border-radius: 4px;
        }

        .filter-checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-main);
            cursor: pointer;
            padding: 0.2rem 0;
            transition: var(--transition);
        }

        .filter-checkbox-item:hover {
            color: var(--accent);
        }

        .filter-checkbox-item input[type="radio"],
        .filter-checkbox-item input[type="checkbox"] {
            accent-color: var(--accent);
            width: 15px;
            height: 15px;
            cursor: pointer;
            margin: 0;
        }

        .filter-backdrop {

            display: none;

            position: fixed;

            top: 0;

            left: 0;

            right: 0;

            bottom: 0;

            background-color: rgba(15, 23, 42, 0.4);

            backdrop-filter: blur(4px);

            z-index: 1000;

        }



        .mobile-filter-fab {

            display: none;

            position: fixed;

            bottom: 20px;

            left: 50%;

            transform: translateX(-50%);

            background-color: var(--accent);

            color: white;

            padding: 0.65rem 1.25rem;

            border-radius: 50px;

            font-weight: 700;

            font-size: 0.85rem;

            box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);

            border: none;

            z-index: 999;

            align-items: center;

            gap: 0.5rem;

            cursor: pointer;

            text-transform: uppercase;

            letter-spacing: 0.5px;

        }



        /* Hide mobile drawer elements by default on desktop */

        .mobile-drawer, .mobile-drawer-backdrop {

            display: none;

        }



        /* RESPONSIVE DESIGN (MOBILE ADAPTATION) */

        @media (max-width: 768px) {

            .header-container {

                flex-direction: row;

                justify-content: space-between;

                padding: 0.6rem 0.75rem;

                gap: 0.5rem;

            }



            .header-logo {

                font-size: 1.15rem;

                white-space: nowrap;

            }



            .mobile-menu-toggle {

                display: block;

            }



            .header-menu {

                display: none !important;

            }



            /* Mobile Drawer Styling */

            .mobile-drawer-backdrop {

                display: block;

                position: fixed;

                top: 0;

                left: 0;

                right: 0;

                bottom: 0;

                background-color: rgba(15, 23, 42, 0.6);

                backdrop-filter: blur(4px);

                z-index: 1500;

                opacity: 0;

                pointer-events: none;

                transition: opacity 0.3s ease;

            }

            .mobile-drawer-backdrop.active {

                opacity: 1;

                pointer-events: auto;

            }

            .mobile-drawer {

                display: flex;

                position: fixed;

                top: 0;

                right: -300px;

                width: 290px;

                height: 100vh;

                background-color: rgba(15, 23, 42, 0.96);

                backdrop-filter: blur(20px);

                -webkit-backdrop-filter: blur(20px);

                z-index: 1600;

                flex-direction: column;

                box-shadow: -10px 0 30px rgba(0,0,0,0.25);

                transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

                border-left: 1px solid rgba(255, 255, 255, 0.08);

            }

            .mobile-drawer.active {

                right: 0;

            }

            .mobile-drawer-header {

                display: flex;

                justify-content: space-between;

                align-items: center;

                padding: 1.5rem;

                border-bottom: 1px solid rgba(255, 255, 255, 0.08);

            }

            .drawer-logo {

                color: white;

                font-size: 1.15rem;

                font-weight: 800;

                display: flex;

                align-items: center;

                gap: 0.5rem;

            }

            .btn-close-drawer {

                background: transparent;

                border: none;

                color: #94a3b8;

                font-size: 1.8rem;

                cursor: pointer;

                line-height: 1;

                transition: var(--transition);

            }

            .btn-close-drawer:hover {

                color: white;

            }

            .mobile-drawer-body {

                padding: 1.5rem 1rem;

                display: flex;

                flex-direction: column;

                gap: 0.5rem;

                flex-grow: 1;

                overflow-y: auto;

            }

            .drawer-item {

                display: flex;

                align-items: center;

                gap: 0.75rem;

                color: #cbd5e1;

                text-decoration: none;

                padding: 0.85rem 1rem;

                border-radius: var(--radius-sm);

                font-size: 1rem;

                font-weight: 600;

                transition: var(--transition);

                border-left: 3px solid transparent;

            }

            .drawer-item i {

                font-size: 1.1rem;

                color: #64748b;

                transition: var(--transition);

            }

            .drawer-item:hover, .drawer-item.active {

                color: white;

                background-color: rgba(255, 255, 255, 0.05);

                border-left-color: var(--accent);

            }

            .drawer-item:hover i, .drawer-item.active i {

                color: var(--accent);

            }

            .mobile-drawer-footer {

                padding: 1.5rem;

                border-top: 1px solid rgba(255, 255, 255, 0.08);

                background-color: rgba(0,0,0,0.15);

            }

            .drawer-support-box {

                background-color: rgba(249, 115, 22, 0.1);

                border: 1px solid rgba(249, 115, 22, 0.2);

                border-radius: var(--radius-md);

                padding: 0.85rem;

                text-align: center;

                color: #fdba74;

                display: flex;

                flex-direction: column;

                gap: 0.2rem;

            }

            .drawer-support-box span {

                font-size: 0.78rem;

                color: #cbd5e1;

            }

            .drawer-support-box strong {

                font-size: 1.05rem;

                font-weight: 800;

            }



            .hero-banner {

                display: none;

            }



            .portal-container {

                grid-template-columns: 1fr;

                gap: 1.5rem;

            }



            .footer-container {

                grid-template-columns: 1fr;

                gap: 1.5rem;

            }

            .collapsible-mobile-content {

                display: flex !important;

                flex-direction: column !important;

                gap: 0.85rem !important;

                margin-top: 0 !important;

                overflow-y: auto;

                padding: 1.25rem;

                flex: 1;

            }

            .mobile-filter-fab {

                display: inline-flex;

            }

            .filter-backdrop.active {

                display: block;

            }

            .bottom-sheet-header {

                display: flex !important;

            }

            .filter-sidebar-widget {

                position: fixed;

                bottom: -110%;

                left: 0;

                right: 0;

                background-color: var(--bg-card);

                border-top-left-radius: 16px;

                border-top-right-radius: 16px;

                z-index: 1001;

                transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);

                max-height: 80vh;

                display: flex;

                flex-direction: column;

                padding: 0 !important;

                box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);

                border: none !important;

                overflow: hidden;

            }

            .filter-sidebar-widget.active {

                bottom: 0;

            }

            body {

                overflow-x: hidden;

                width: 100%;

            }

            .portal-sidebar-col {

                width: 100%;

                max-width: 100%;

                overflow: hidden;

            }

            .sidebar-widget {

                width: 100%;

                max-width: 100%;

                overflow: hidden;

            }

        }


/* ==========================================================================
   5. CRAWLED FEEDS (TIN 24H) STYLES
   ========================================================================== */

.sender-info {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
        .sender-avatar-box {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .sender-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .sender-text {
            display: flex;
            flex-direction: column;
            line-height: 1.25;
        }
        .sender-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-main);
        }
        .sender-tag {
            font-size: 0.72rem;
            color: var(--text-light);
        }
        .btn-detail {
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: 2px;
            transition: var(--transition);
        }
        .btn-detail:hover {
            color: var(--accent-hover);
        }

        /* Numerical Pagination Styling */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin: 2.5rem 0 1.5rem 0;
        }
        .page-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-card);
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        .page-link:hover {
            border-color: var(--accent);
            color: var(--accent);
            background-color: #fdf6f0;
        }
        .page-link.active {
            background-color: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        /* Sticky Footer Layout Fix for All Pages */
        html, body {
            height: auto;
            min-height: 100%;
        }
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
            padding: 0;
        }
        .main-footer {
            margin-top: auto !important;
        }

        /* MOBILE FILTER GRID LAYOUT AND TYPOGRAPHY FIXES */
        @media (max-width: 768px) {
            .filter-checkbox-list {
                display: grid !important;
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 0.5rem !important;
                max-height: 250px !important;
                overflow-y: auto !important;
                padding-right: 4px !important;
            }
            
            /* Make district and ward label span full width or display nicely */
            .filter-checkbox-list > div {
                grid-column: span 2 !important;
                margin-top: 0.5rem !important;
                margin-bottom: 0.25rem !important;
            }
            
            .filter-checkbox-item {
                padding: 0.35rem 0.2rem !important;
                font-size: 0.8rem !important;
                display: inline-flex !important;
                align-items: center !important;
                gap: 0.35rem !important;
                word-break: break-word !important;
            }
            
            /* Auto-adjust form-group labels and layout inside the bottom sheet */
            .sidebar-filter-form .form-group {
                width: 100% !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 0.35rem !important;
            }
            
            .sidebar-filter-form .form-input {
                width: 100% !important;
                box-sizing: border-box !important;
            }
        }