/* ============================================
   LISTING PAGE CSS
   Extracted from: Homepage/Property/listing.blade.php
============================================ */

        :root {
            --primary-color: #001f49;
            --accent-color: #00aeef;
            --text-primary: #1a1a1a;
            --text-secondary: #6b7280;
            --bg-white: #ffffff;
            --border-color: #e5e7eb;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
        }

        /* ============================================
           LISTING HEADER - REDESIGNED
        ============================================ */
        
        .listing-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: #fff;
            border-radius: 4px;
            border: 1px solid var(--border-color);
        }

        .listing-header-content {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .listing-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #f0f9ff;
            color: var(--accent-color);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            width: fit-content;
        }

        .listing-badge i {
            font-size: 0.75rem;
        }

        .listing-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-color);
            margin: 0;
            line-height: 1.2;
        }

        .listing-subtitle {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .listing-count {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 1rem 1.5rem;
            background: var(--primary-color);
            border-radius: 4px;
            min-width: 100px;
        }

        .count-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent-color);
            line-height: 1;
        }

        .count-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 4px;
        }

        @media (max-width: 768px) {
            .listing-header {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
                padding: 1.25rem;
            }

            .listing-header-content {
                align-items: center;
            }

            .listing-title {
                font-size: 1.5rem;
            }

            .listing-subtitle {
                font-size: 0.875rem;
            }

            .listing-count {
                flex-direction: row;
                gap: 8px;
                padding: 0.75rem 1.25rem;
                width: 100%;
                justify-content: center;
            }

            .count-number {
                font-size: 1.5rem;
            }

            .count-label {
                margin-top: 0;
            }
        }

        /* ============================================
           PROPERTY CARD - REDESIGNED
        ============================================ */
        
        .property-card-wrapper {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .property-card {
            background: var(--bg-white);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            height: 100%;
            border: none;
        }

        .property-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(0, 31, 73, 0.15);
        }

        .property-card:hover .property-image {
            transform: scale(1.05);
        }

        /* Image Container */
        .property-image-container {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .property-image-container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60%;
            background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
            pointer-events: none;
        }

        .property-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        /* Status Badge */
        .property-status {
            position: absolute;
            top: 0.875rem;
            left: 0.875rem;
            z-index: 3;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            padding: 0.35rem 0.75rem;
            font-size: 0.55rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-radius: 50px;
            box-shadow: 0 2px 10px rgba(0, 174, 239, 0.35);
            background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
            color: white;
        }

        /* Content Section */
        .property-content {
            padding: 1rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            background: var(--bg-white);
        }

        /* Type Badge */
        .badge-type {
            display: inline-block;
            background: linear-gradient(135deg, #001f49 0%, #003366 100%);
            color: white;
            font-size: 0.5rem;
            padding: 0.2rem 0.5rem;
            border-radius: 50px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            width: fit-content;
            box-shadow: 0 1px 4px rgba(0, 31, 73, 0.2);
            border: 1px solid rgba(0, 31, 73, 0.08);
        }

        /* Title */
        .property-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1.35;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Price */
        .property-price {
            margin: 0;
        }

        .price-amount {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--accent-color);
            letter-spacing: -0.02em;
        }

        /* Location */
        .property-location {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--text-secondary);
            font-size: 0.8rem;
            margin: 0;
        }

        .property-location span {
            font-size: 0.8rem;
            line-height: 1.4;
        }

        .property-location i {
            color: var(--accent-color);
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        /* Specs Section */
        .property-specs {
            display: flex;
            flex-wrap: nowrap;
            gap: 0.3rem;
            margin-top: auto;
            padding-top: 0.6rem;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .property-specs::-webkit-scrollbar {
            display: none;
        }

        .spec-item {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-secondary);
            background: #f8fafc;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .spec-item span {
            display: inline-block;
        }

        .spec-item i {
            color: var(--accent-color);
            font-size: 0.6rem;
        }

        .property-agent {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border-color);
        }

        .owner-profile {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .owner-profile img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .owner-profile a {
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

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

        .property-link {
            text-decoration: none !important;
            color: inherit !important;
            display: block !important;
            height: 100% !important;
            width: 100% !important;
            position: relative !important;
        }

        .property-link:hover {
            text-decoration: none !important;
            color: inherit !important;
        }

        /* Ensure link doesn't have extra content */
        .property-link::after {
            display: none !important;
            content: none !important;
        }

        /* Ensure columns don't restrict height */
        .row.g-4>.col-12,
        .row.g-4>.col-sm-6,
        .row.g-4>.col-lg-4 {
            height: auto !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
        }

        .row.g-4>.col-12>.property-card-wrapper,
        .row.g-4>.col-sm-6>.property-card-wrapper,
        .row.g-4>.col-lg-4>.property-card-wrapper {
            width: 100% !important;
            height: 100% !important;
            flex: 1 !important;
        }

        /* Ensure link displays correctly */
        .property-link {
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
            width: 100% !important;
        }

        /* Hide any pseudo-elements that might add content */
        .property-link::before,
        .property-link::after {
            display: none !important;
            content: none !important;
        }

        /* ============================================
           NEW FILTER SECTION - REDESIGNED
        ============================================ */
        
        .filter-section-new {
            margin-bottom: 2rem;
        }

        /* Search Bar */
        .search-bar-wrapper {
            margin-bottom: 1rem;
        }

        /* ============================================
           FILTER BAR - OPTIMIZED DESIGN
        ============================================ */
        
        .filter-bar-wrapper {
            margin-bottom: 1.25rem;
        }

        .filter-bar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            flex-wrap: wrap;
        }

        .filter-divider-vertical {
            width: 1px;
            height: 28px;
            background: #cbd5e1;
            flex-shrink: 0;
        }

        /* Status Pills */
        .status-pills {
            display: flex;
            gap: 0.4rem;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.5rem 0.85rem;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            color: var(--text-primary);
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.15s ease;
            cursor: pointer;
        }

        .status-pill:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
            background: white;
        }

        .status-pill.active {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .status-pill i {
            font-size: 0.75rem;
        }

        /* Category Dropdown */
        .category-dropdown-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            min-width: 160px;
        }

        .dropdown-label {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .dropdown-label i {
            color: var(--accent-color);
            font-size: 0.85rem;
        }

        .category-dropdown {
            flex: 1;
            padding: 0.5rem 2rem 0.5rem 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-primary);
            background: white;
            cursor: pointer;
            transition: all 0.15s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.6rem center;
            background-size: 10px;
        }

        .category-dropdown:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.1);
        }

        .category-dropdown:hover {
            border-color: #94a3b8;
        }

        /* Sort Dropdown */
        .sort-dropdown-wrapper {
            display: flex;
            align-items: center;
            background: var(--primary-color);
            border-radius: 4px;
            overflow: hidden;
        }

        .sort-dropdown-wrapper .dropdown-label {
            padding: 0.5rem 0.5rem 0.5rem 0.75rem;
            background: transparent;
            color: rgba(255,255,255,0.8);
        }

        .sort-dropdown-wrapper .dropdown-label i {
            color: white;
            font-size: 0.9rem;
        }

        .sort-dropdown {
            padding: 0.5rem 1.75rem 0.5rem 0.25rem;
            border: none;
            font-size: 0.8rem;
            font-weight: 600;
            color: white;
            background: transparent;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            background-size: 8px;
            min-width: 100px;
        }

        .sort-dropdown:focus {
            outline: none;
        }

        .sort-dropdown option {
            background: white;
            color: var(--text-primary);
            font-weight: 500;
        }

        /* Price Range Inputs */
        .price-range-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .price-inputs {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .price-input-group {
            display: flex;
            align-items: center;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            overflow: hidden;
            background: white;
            transition: all 0.15s ease;
        }

        .price-input-group:focus-within {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.1);
        }

        .price-input-group:hover {
            border-color: #94a3b8;
        }

        .price-prefix {
            padding: 0.4rem 0.4rem 0.4rem 0.6rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
            background: #f1f5f9;
            border-right: 1px solid #e2e8f0;
        }

        .price-input {
            width: 60px;
            padding: 0.4rem 0.35rem;
            border: none;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-primary);
            background: transparent;
            text-align: right;
        }

        .price-input:focus {
            outline: none;
        }

        .price-input::placeholder {
            color: #94a3b8;
            font-weight: 500;
        }

        .price-denom {
            padding: 0.4rem 0.3rem;
            border: none;
            border-left: 1px solid #e2e8f0;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--accent-color);
            background: #f0f9ff;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            text-align: center;
            min-width: 32px;
        }

        .price-denom:focus {
            outline: none;
        }

        .price-denom option {
            font-weight: 600;
        }

        .price-separator {
            color: #94a3b8;
            font-weight: 400;
            font-size: 0.85rem;
        }

        /* Room Filters */
        .room-filters-wrapper {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .room-filter-item {
            display: flex;
            align-items: center;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            overflow: hidden;
            background: white;
            transition: all 0.15s ease;
        }

        .room-filter-item:focus-within {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.1);
        }

        .room-filter-item:hover {
            border-color: #94a3b8;
        }

        .room-label {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.4rem 0.45rem;
            background: #f1f5f9;
            border-right: 1px solid #e2e8f0;
            color: var(--accent-color);
        }

        .room-label i {
            font-size: 0.8rem;
        }

        .room-input {
            width: 38px;
            padding: 0.4rem 0.3rem;
            border: none;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-primary);
            background: transparent;
            text-align: center;
        }

        .room-input:focus {
            outline: none;
        }

        .room-input::placeholder {
            color: #94a3b8;
            font-weight: 500;
            font-size: 0.7rem;
        }

        /* Hide number input spinners */
        .room-input::-webkit-outer-spin-button,
        .room-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .room-input[type=number] {
            -moz-appearance: textfield;
        }

        .land-size-item {
            min-width: auto;
        }

        .land-input {
            width: 42px;
        }

        .unit-label {
            padding: 0.4rem 0.4rem 0.4rem 0;
            font-size: 0.7rem;
            font-weight: 600;
            color: #64748b;
        }

        .filter-apply-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }

        .filter-apply-btn:hover {
            background: var(--primary-color);
        }

        .filter-apply-btn i {
            font-size: 0.95rem;
        }

        /* Mobile Filter Toggle Button */
        .mobile-filter-toggle {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.6rem 1rem;
            background: #f1f5f9;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
        }

        .mobile-filter-toggle:hover {
            background: #e2e8f0;
            border-color: var(--accent-color);
        }

        .mobile-filter-toggle.active {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .mobile-filter-toggle .toggle-icon {
            transition: transform 0.2s ease;
            font-size: 0.7rem;
        }

        .mobile-filter-toggle.active .toggle-icon {
            transform: rotate(180deg);
        }

        /* Advanced Filters Container */
        .advanced-filters-mobile {
            display: contents;
        }

        /* Filter Bar Responsive */
        @media (max-width: 992px) {
            .filter-bar {
                flex-wrap: wrap;
                gap: 0.6rem;
            }
            
            .price-range-wrapper,
            .room-filters-wrapper {
                flex-basis: 100%;
                margin-top: 0.25rem;
            }
        }

        @media (max-width: 768px) {
            .filter-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 0.6rem;
                padding: 0.85rem;
            }

            .filter-divider-vertical {
                display: none;
            }

            /* Sort & Status in one row */
            .sort-dropdown-wrapper {
                width: auto;
                flex: 1;
            }

            .sort-dropdown {
                flex: 1;
                text-align: left;
                padding-left: 0.5rem;
            }

            .status-pills {
                flex: 1;
            }

            .status-pill {
                flex: 1;
                justify-content: center;
                padding: 0.5rem 0.4rem;
                font-size: 0.75rem;
            }

            /* First row: Sort + Status */
            .filter-bar > .sort-dropdown-wrapper,
            .filter-bar > .status-pills {
                display: flex;
            }

            /* Category Dropdown - inline with label */
            .category-dropdown-wrapper {
                flex-direction: row;
                align-items: center;
                gap: 0.5rem;
                width: 100%;
            }

            .dropdown-label {
                font-size: 0.7rem;
                white-space: nowrap;
            }

            .category-dropdown {
                flex: 1;
            }

            /* Mobile Filter Toggle */
            .mobile-filter-toggle {
                display: flex;
            }

            /* Advanced Filters - Hidden by default on mobile */
            .advanced-filters-mobile {
                display: none;
                flex-direction: column;
                gap: 0.6rem;
                width: 100%;
            }

            .advanced-filters-mobile.show {
                display: flex;
            }

            /* Price Range */
            .price-range-wrapper {
                flex-direction: column;
                align-items: stretch;
                gap: 0.4rem;
                width: 100%;
            }

            .price-inputs {
                width: 100%;
                justify-content: stretch;
            }

            .price-input-group {
                flex: 1;
            }

            .price-input {
                width: 100%;
                min-width: 0;
            }

            .price-separator {
                padding: 0 0.25rem;
            }

            /* Room Filters - Single Row */
            .room-filters-wrapper {
                width: 100%;
                display: flex;
                flex-direction: row;
                gap: 0.4rem;
                align-items: center;
            }

            .room-filter-item {
                flex: 1;
                min-width: 0;
            }

            .room-input {
                width: 100%;
                min-width: 0;
            }

            .filter-apply-btn {
                width: 36px;
                height: 36px;
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .filter-bar {
                padding: 0.85rem;
                gap: 0.65rem;
            }

            .status-pill {
                padding: 0.5rem 0.4rem;
                font-size: 0.7rem;
            }

            .status-pill i {
                font-size: 0.65rem;
            }

            .sort-dropdown-wrapper .dropdown-label {
                padding: 0.45rem 0.4rem 0.45rem 0.6rem;
                font-size: 0.65rem;
            }

            .sort-dropdown {
                font-size: 0.7rem;
                min-width: 70px;
            }

            .category-dropdown {
                font-size: 0.8rem;
                padding: 0.5rem 1.75rem 0.5rem 0.6rem;
            }

            .dropdown-label {
                font-size: 0.65rem;
            }

            .price-input-group {
                flex: 1;
            }

            .price-prefix {
                padding: 0.4rem 0.3rem 0.4rem 0.45rem;
                font-size: 0.65rem;
            }

            .price-input {
                padding: 0.4rem 0.25rem;
                font-size: 0.75rem;
            }

            .price-denom {
                padding: 0.4rem 0.25rem;
                font-size: 0.65rem;
                min-width: 28px;
            }

            /* Room filters - still single row, more compact */
            .room-filters-wrapper {
                gap: 0.35rem;
            }

            .room-label {
                padding: 0.35rem 0.3rem;
            }

            .room-label i {
                font-size: 0.7rem;
            }

            .room-input {
                width: 28px;
                padding: 0.35rem 0.2rem;
                font-size: 0.75rem;
            }

            .unit-label {
                font-size: 0.6rem;
                padding-right: 0.25rem;
            }

            .filter-apply-btn {
                width: 32px;
                height: 32px;
            }
        }

        @media (max-width: 360px) {
            .filter-bar {
                padding: 0.75rem;
                gap: 0.5rem;
            }

            .status-pill {
                padding: 0.4rem 0.3rem;
                font-size: 0.65rem;
            }

            .status-pill i {
                display: none;
            }

            .price-prefix {
                font-size: 0.6rem;
                padding: 0.35rem 0.25rem;
            }

            .price-input {
                font-size: 0.7rem;
            }

            .price-denom {
                font-size: 0.6rem;
                min-width: 24px;
            }

            /* Room filters - ultra compact */
            .room-filters-wrapper {
                gap: 0.25rem;
            }

            .room-label {
                padding: 0.3rem 0.25rem;
            }

            .room-label i {
                font-size: 0.65rem;
            }

            .room-input {
                width: 24px;
                padding: 0.3rem 0.15rem;
                font-size: 0.7rem;
            }

            .filter-apply-btn {
                width: 28px;
                height: 28px;
            }
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: var(--bg-white);
            border: 2px solid var(--border-color);
            border-radius: 4px;
            padding: 0.5rem 0.5rem 0.5rem 1.25rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .search-bar:focus-within {
            border-color: var(--accent-color);
            box-shadow: 0 4px 20px rgba(0, 174, 239, 0.15);
        }

        .search-icon {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin-right: 0.75rem;
        }

        .search-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 0.95rem;
            color: var(--text-primary);
            background: transparent;
            padding: 0.5rem 0;
        }

        .search-input::placeholder {
            color: var(--text-secondary);
        }

        .search-btn {
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0.65rem 1.5rem;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .search-btn:hover {
            background: var(--primary-color);
            transform: scale(1.02);
        }

        .search-btn i {
            display: none;
        }

        /* Filter Pills */
        .filter-pills-wrapper {
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .filter-pills {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding: 0.25rem 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .filter-pills::-webkit-scrollbar {
            display: none;
        }

        .filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: var(--text-primary);
            font-size: 0.85rem;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .filter-pill:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
            background: rgba(0, 174, 239, 0.05);
        }

        .filter-pill.active {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .filter-pill i {
            font-size: 0.8rem;
        }

        .filter-divider {
            width: 1px;
            height: 24px;
            background: var(--border-color);
            margin: 0 0.25rem;
            flex-shrink: 0;
        }

        .filter-more-btn {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }

        .filter-more-btn:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        /* Active Filters Bar */
        .active-filters-bar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            background: linear-gradient(135deg, rgba(0, 174, 239, 0.08) 0%, rgba(0, 31, 73, 0.05) 100%);
            border-radius: 4px;
            margin-bottom: 1.5rem;
        }

        .active-filters-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-color);
            font-size: 0.9rem;
        }

        .active-filters-info i {
            color: var(--accent-color);
        }

        .active-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            flex: 1;
        }

        .active-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.35rem 0.75rem;
            background: white;
            border-radius: 4px;
            font-size: 0.8rem;
            color: var(--text-primary);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .active-chip a {
            display: flex;
            align-items: center;
            color: var(--text-secondary);
            margin-left: 0.25rem;
            transition: color 0.2s;
        }

        .active-chip a:hover {
            color: #dc3545;
        }

        .clear-all-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.35rem 0.75rem;
            background: #dc3545;
            border-radius: 4px;
            font-size: 0.8rem;
            color: white;
            text-decoration: none;
            transition: all 0.2s;
        }

        .clear-all-btn:hover {
            background: #c82333;
            color: white;
        }

        /* Advanced Filter Panel */
        .advanced-filter-panel {
            position: fixed;
            top: 0;
            right: -400px;
            width: 380px;
            max-width: 90vw;
            height: 100vh;
            background: var(--bg-white);
            box-shadow: -4px 0 20px rgba(0,0,0,0.15);
            z-index: 1050;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .advanced-filter-panel.show {
            right: 0;
        }

        .filter-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--primary-color);
            color: white;
        }

        .filter-panel-header h6 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .close-panel-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.25rem;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .close-panel-btn:hover {
            opacity: 1;
        }

        .advanced-filter-form {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .filter-grid {
            flex: 1;
            overflow-y: auto;
            padding: 1.25rem 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .filter-item {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .filter-item label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-item label i {
            color: var(--accent-color);
            font-size: 0.9rem;
        }

        .filter-item .filter-select,
        .filter-item .filter-input {
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 0.9rem;
            color: var(--text-primary);
            background: var(--bg-white);
            transition: all 0.2s ease;
        }

        .filter-item .filter-select:focus,
        .filter-item .filter-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
        }

        .filter-panel-actions {
            display: flex;
            gap: 0.75rem;
            padding: 1.25rem 1.5rem;
            border-top: 1px solid var(--border-color);
            background: #f8f9fa;
        }

        .btn-reset {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
        }

        .btn-reset:hover {
            border-color: var(--text-secondary);
            color: var(--text-primary);
        }

        .btn-apply {
            flex: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: var(--accent-color);
            border: none;
            border-radius: 4px;
            color: white;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        /* Filter Overlay */
        .filter-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1040;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .filter-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        body.filter-open {
            overflow: hidden;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .search-bar {
                padding: 0.35rem 0.35rem 0.35rem 1rem;
            }

            .search-input {
                font-size: 0.9rem;
            }

            .search-btn {
                padding: 0.6rem 1rem;
                font-size: 0.85rem;
            }

            .search-btn span {
                display: none;
            }

            .search-btn i {
                display: block;
                font-size: 1rem;
            }

            .filter-pills {
                gap: 0.4rem;
            }

            .filter-pill {
                padding: 0.4rem 0.85rem;
                font-size: 0.8rem;
            }

            .active-filters-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
                padding: 0.65rem 0.85rem;
            }

            .active-filters-info {
                font-size: 0.85rem;
            }

            .active-chip {
                font-size: 0.75rem;
                padding: 0.3rem 0.6rem;
            }

            .advanced-filter-panel {
                width: 100%;
                max-width: 100%;
                right: -100%;
            }

            .filter-panel-header {
                padding: 1rem 1.25rem;
            }

            .filter-grid {
                padding: 1rem 1.25rem;
                gap: 1rem;
            }

            .filter-panel-actions {
                padding: 1rem 1.25rem;
            }
        }

        @media (max-width: 480px) {
            .search-bar {
                border-radius: 4px;
            }

            .filter-pill {
                padding: 0.35rem 0.75rem;
                font-size: 0.75rem;
            }

            .filter-divider {
                display: none;
            }
        }

        /* Legacy filter styles for compatibility */
        .filter-section {
            display: none;
        }

        .filter-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0;
        }

            .filter-label i {
                font-size: 0.9rem;
            }

            .filter-input,
            .filter-select {
                padding: 0.625rem 0.875rem;
                font-size: 0.875rem;
            }

            .filter-actions {
                flex-direction: column;
                gap: 0.75rem;
                padding-top: 0.75rem;
            }

            .btn-filter-apply,
            .btn-filter-reset {
                width: 100%;
                justify-content: center;
                padding: 0.75rem 1.5rem;
                font-size: 0.875rem;
            }

            .active-filters {
                padding: 0.75rem;
                margin-bottom: 0.75rem;
            }

            .active-filters-header {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 0.5rem;
                margin-bottom: 0.625rem;
            }

            .active-filters-title {
                font-size: 0.8rem;
            }

            .filter-count {
                font-size: 0.75rem;
            }

            .active-filters-chips {
                gap: 0.4rem;
                flex-wrap: wrap;
            }

            .filter-chip {
                font-size: 0.7rem;
                padding: 0.3rem 0.625rem;
                gap: 0.3rem;
            }

            .quick-filters {
                padding: 0.625rem;
                margin-bottom: 0.75rem;
            }

            .quick-filters-buttons {
                gap: 0.4rem;
                overflow-x: auto;
                padding-bottom: 0.25rem;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }

            .quick-filters-buttons::-webkit-scrollbar {
                height: 4px;
            }

            .quick-filters-buttons::-webkit-scrollbar-thumb {
                background: var(--border-color);
                border-radius: 2px;
            }

            .quick-filter-btn {
                font-size: 0.75rem;
                padding: 0.5rem 0.875rem;
                white-space: nowrap;
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .filter-section {
                padding: 0.875rem;
            }

            .filter-form {
                gap: 0.875rem;
            }

            .filter-row {
                gap: 0.75rem;
            }

            .filter-group {
                gap: 0.35rem;
            }

            .filter-label {
                font-size: 0.75rem;
            }

            .filter-input,
            .filter-select {
                padding: 0.5rem 0.75rem;
                font-size: 0.85rem;
            }

            .btn-filter-apply,
            .btn-filter-reset {
                padding: 0.625rem 1.25rem;
                font-size: 0.8rem;
            }

            .active-filters {
                padding: 0.75rem;
            }

            .active-filters-title {
                font-size: 0.8rem;
            }

            .filter-chip {
                font-size: 0.7rem;
                padding: 0.3rem 0.625rem;
            }

            .quick-filters {
                padding: 0.5rem;
                margin-bottom: 0.625rem;
            }

            .quick-filter-btn {
                font-size: 0.7rem;
                padding: 0.4rem 0.65rem;
            }

            .filter-toggle-btn {
                padding: 0.75rem 0.875rem;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 360px) {
            .filter-section {
                padding: 0.75rem;
            }

            .filter-input,
            .filter-select {
                font-size: 0.8rem;
                padding: 0.5rem 0.625rem;
            }

            .btn-filter-apply,
            .btn-filter-reset {
                font-size: 0.75rem;
                padding: 0.5rem 1rem;
            }
        }

        /* Listing Header Mobile */
        @media (max-width: 768px) {
            .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            /* Listing header responsive handled above */
        }

        @media (max-width: 480px) {
            .container {
                padding-left: 0.75rem;
                padding-right: 0.75rem;
            }

            /* Listing header small screen handled above */
        }

        @media (max-width: 360px) {
            .container {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
        }

        .pagination {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.4rem;
            flex-shrink: 1;
            overflow-x: auto;
            max-width: 100%;
        }


        .pagination .page-item .page-link {
            border-radius: 4px;
            font-size: 0.85rem;
            color: #001f49;
            background: #fff;
            border: 1px solid #e2e8f0;
        }

        .pagination .page-item.active .page-link {
            background-color: #00aeef !important;
            color: #fff !important;
            border-color: #00aeef !important;
        }

        .pagination .page-link:hover {
            background-color: #f1f5f9;
        }


        @media (max-width: 768px) {
            .property-card-wrapper {
                height: auto !important;
                min-height: 340px !important;
            }

            .property-card {
                height: auto !important;
                min-height: 340px !important;
            }

            .property-link {
                height: auto !important;
                min-height: 100% !important;
            }

            .property-image-container {
                height: 180px;
            }

            .property-status {
                top: 0.75rem;
                right: 0.75rem;
            }

            .status-badge {
                font-size: 0.625rem;
                padding: 0.2rem 0.5rem;
            }

            .property-content {
                padding: 0.75rem;
                gap: 0.2rem;
            }

            .badge-type {
                font-size: 0.65rem;
                padding: 0.2rem 0.55rem;
            }

            .property-title {
                font-size: 0.9rem;
                line-height: 1.4;
            }

            .price-amount {
                font-size: 1rem;
            }

            .property-location {
                font-size: 0.8rem;
                gap: 0.375rem;
            }

            .property-location span {
                font-size: 0.8rem;
            }

            .property-location i {
                font-size: 0.8rem;
            }

            .property-specs {
                gap: 0.375rem;
                margin-top: 0.25rem;
            }

            .spec-item {
                font-size: 0.75rem;
                padding: 0.175rem 0.65rem !important;
                gap: 0.2rem;
            }

            .spec-item i {
                font-size: 0.6rem;
            }

            .property-agent {
                margin-top: 0.5rem;
                padding-top: 0.625rem;
            }

        }

        @media (max-width: 480px) {
            .property-card-wrapper {
                min-height: 320px !important;
                height: auto !important;
            }

            .property-card {
                height: auto !important;
                min-height: 320px !important;
            }

            .property-link {
                height: auto !important;
                min-height: 100% !important;
            }

            .property-image-container {
                height: 170px;
            }

            .property-status {
                top: 0.625rem;
                right: 0.625rem;
            }

            .status-badge {
                font-size: 0.6rem;
                padding: 0.175rem 0.45rem;
            }

            .property-content {
                padding: 0.625rem;
                gap: 0.15rem;
            }

            .badge-type {
                font-size: 0.6rem;
                padding: 0.175rem 0.45rem;
            }

            .property-title {
                font-size: 0.85rem;
            }

            .price-amount {
                font-size: 0.95rem;
            }

            .property-location {
                font-size: 0.75rem;
            }

            .property-location span {
                font-size: 0.75rem;
            }

            .property-specs {
                gap: 0.3rem;
            }

            .spec-item {
                font-size: 0.7rem;
                padding: 0.15rem 0.55rem !important;
            }
        }

        @media (max-width: 576px) {
            .pagination li.page-item:not(.active):not(:first-child):not(:last-child) {
                display: none;
            }
        }

        /* Property Card Typography - Synchronized */
        .badge-type {
            font-size: 0.7rem;
        }

        .property-title {
            font-size: 0.95rem;
        }

        .property-location {
            font-size: 0.85rem;
        }

        .property-location span {
            font-size: 0.85rem;
        }

        }

        @media (max-width: 480px) {
            .property-card-wrapper {
                min-height: 320px !important;
                height: auto !important;
            }

            .property-card {
                height: auto !important;
                min-height: 320px !important;
            }

            .property-link {
                height: auto !important;
                min-height: 100% !important;
            }

            .property-image-container {
                height: 170px;
            }

            .property-status {
                top: 0.625rem;
                right: 0.625rem;
            }

            .status-badge {
                font-size: 0.6rem;
                padding: 0.175rem 0.45rem;
            }

            .property-content {
                padding: 0.625rem;
                gap: 0.15rem;
            }

            .badge-type {
                font-size: 0.6rem;
                padding: 0.175rem 0.45rem;
            }

            .property-title {
                font-size: 0.85rem;
            }

            .price-amount {
                font-size: 0.95rem;
            }

            .property-location {
                font-size: 0.75rem;
            }

            .property-location span {
                font-size: 0.75rem;
            }

            .property-specs {
                gap: 0.3rem;
            }

            .spec-item {
                font-size: 0.7rem;
                padding: 0.15rem 0.55rem !important;
            }
        }

        @media (max-width: 576px) {
            .pagination li.page-item:not(.active):not(:first-child):not(:last-child) {
                display: none;
            }
        }

        /* Property Card Typography - Synchronized */
        .badge-type {
            font-size: 0.7rem;
        }

        .property-title {
            font-size: 0.95rem;
        }

        .property-location {
            font-size: 0.85rem;
        }

        .property-location span {
            font-size: 0.85rem;
        }
        }

        @media (max-width: 576px) {
            .pagination li.page-item:not(.active):not(:first-child):not(:last-child) {
                display: none;
            }
        }

        /* Property Card Typography - Synchronized */
        .badge-type {
            font-size: 0.7rem;
        }

        .property-title {
            font-size: 0.95rem;
        }

        .property-location {
            font-size: 0.85rem;
        }

        .property-location span {
            font-size: 0.85rem;
        }