 
        /* ========================================
   1. CSS VARIABLES & RESET
   ======================================== */
        :root {
            --primary-color: #764ba2;
            --secondary-color: #667eea;
            --danger-color: #dc3545;
            --blue-primary: #0d6efd;
            --blue-primary-hover: #0b5ed7;
            --text-dark: #212529;
            --text-muted: #6c757d;
            --border-color: #e0e0e0;
            --bg-light: #f8f9fa;
            --bg-lighter: #f0f0f0;

            /* Spacing */
            --form-height: 52px;
            --border-radius: 8px;
            --border-radius-sm: 4px;

            /* Typography */
            --font-size-base: 1.5rem;
            --font-size-sm: 1.3rem;
            --font-size-xs: 1.1rem;
        }

        /* ========================================
   2. LAYOUT & CONTAINERS
   ======================================== */
        .main-content-inner {
            padding: 120px 0 0 0 !important;
            background-color: transparent;
            position: relative;
            max-width: none !important;
        }

        .main-content {
            max-width: none !important;
            padding: 0 !important;
        }

        .container {
            padding-left: 15px;
            padding-right: 15px;
        }



        /* ========================================
   3. MAP SECTION
   ======================================== */
        .map-section {
            height: 500px;
            position: relative;
            width: 100vw !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            margin-top: -20px;
            transition: height 0.3s ease;
            max-width: none !important;
        }

        /* Force full width regardless of parent container */
        .container .map-section,
        .container-fluid .map-section,
        [class*="container-"] .map-section {
            width: 100vw !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            max-width: none !important;
        }

        .page-layout.has-sidebar .main-content .map-section {
            transform: translateX(calc(-50% + 125px));
        }

        #map {
            width: 100%;
            height: 100%;
        }

        #map-controls-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        /* ========================================
   4. SEARCH & FILTER SECTION
   ======================================== */
        .search-container-wrapper {
            margin: -20px auto 30px;
            position: relative;
            z-index: 10;
            max-width: 1200px;
            text-align: center;
        }

        .filter-section {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            padding: 25px 30px;
            text-align: left;
            margin: -50px auto 30px;
            position: relative;
            z-index: 10;
            max-width: 1200px;
        }

        /* Tab Navigation */
        .search-container-wrapper .nav-tabs {
            display: inline-flex;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 10px;
            padding: 5px;
            border-bottom: none;
            margin-bottom: 0;
            position: relative;
            z-index: 1;
            top: -44px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .search-container-wrapper .nav-tabs .nav-link {
            color: var(--text-muted);
            font-weight: 500;
            padding: 10px 25px;
            border-radius: var(--border-radius);
            border: none;
            background: transparent;
            font-size: var(--font-size-base);
            transition: all 0.3s ease;
            margin: 0;
        }

        .search-container-wrapper .nav-tabs .nav-link:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .search-container-wrapper .nav-tabs .nav-link.active {
            background-color: var(--blue-primary);
            color: #fff;
            font-weight: 700;
            box-shadow: 0 3px 8px rgba(13, 110, 253, 0.4);
        }

        /* Form Layout */
        .form-title-row {
            display: flex;
            gap: 15px;
            align-items: flex-end;
        }

        .form-fields-grid {
            flex-grow: 1;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
        }

        .form-actions {
            display: flex;
            gap: 10px;
        }

        /* Form Controls */
        .filter-section .form-control,
        .filter-section .form-select,
        .filter-section .choices__inner {
            height: var(--form-height);
            padding: 10px 15px;
            font-size: var(--font-size-base);
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            background-color: #fff;
            width: 100%;
        }

        .filter-section .form-select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 16px 12px;
        }

        .filter-section .form-control::placeholder {
            color: #999;
        }

        .filter-section label {
            display: block;
            text-align: left;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
            font-size: 1.4rem;
            line-height: 1;
        }

        /* Form Buttons */
        .form-actions .btn-filter {
            width: var(--form-height);
            height: var(--form-height);
            border: 1px solid #ced4da;
            background-color: #fff;
            color: var(--text-dark);
            border-radius: var(--border-radius);
            font-size: 20px;
            line-height: 50px;
            transition: all 0.2s ease-in-out;
            padding: 0;
            display: inline-block;
            text-align: center;
        }

        .form-actions .btn-filter:hover {
            background-color: var(--blue-primary);
            color: #fff;
            border-color: var(--blue-primary);
        }

        .form-actions .btn-search {
            height: var(--form-height);
            padding: 0 35px;
            border-radius: var(--border-radius);
            background-color: var(--blue-primary);
            color: #fff;
            font-weight: 600;
            border: none;
            font-size: var(--font-size-base);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease-in-out;
        }

        .form-actions .btn-search:hover {
            background-color: var(--blue-primary-hover);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
        }

        /* Advanced Filters */
        .filter-toggle {
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: var(--bg-light);
            border-radius: var(--border-radius-sm);
        }

        .advanced-filters {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .advanced-filters.show {
            max-height: 500px;
        }

        .advanced-filters-content {
            display: none;
            padding-top: 25px;
            margin-top: 25px;
            border-top: 1px solid #eee;
        }

        .advanced-filters-content .form-check .form-check-label {
            position: relative;
            top: 5px;
        }

        /* Drawing Controls */
        .draw-area-controls {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }

        .draw-area-button,
        .clear-drawing-button {
            flex-grow: 1;
            border: 1px solid #ccc;
            background: var(--bg-light);
            font-size: 0.8rem;
            padding: 4px;
            border-radius: var(--border-radius-sm);
        }

        .draw-area-button.drawing {
            background: #ffc107;
        }

        /* ========================================
   5. CHOICES.JS MULTISELECT
   ======================================== */
        .filter-section .choices__inner {
            min-height: var(--form-height);
            height: auto;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
        }

        .filter-section .choices__input.choices__input--cloned {
            border: none !important;
            outline: none !important;
            background: transparent !important;
            padding: 0 !important;
            margin: 0 !important;
            min-width: 100px;
            font-size: var(--font-size-base);
        }

        .filter-section .choices[data-type*="select-multiple"] .choices__input::placeholder {
            color: #999;
            opacity: 1;
        }

        .filter-section .choices__list--multiple .choices__item {
            background-color: var(--blue-primary);
            border: none;
            color: white;
            padding: 4px 10px;
            border-radius: 6px;
            margin: 0;
            font-size: var(--font-size-sm);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .filter-section .choices__list--dropdown {
            border: 1px solid var(--border-color);
            border-top: none;
            border-radius: 0 0 var(--border-radius) var(--border-radius);
            margin-top: -1px;
            font-size: var(--font-size-base);
            min-width: 100%;
            width: max-content !important;
            max-width: 300px;
        }

        .filter-section .choices__list--dropdown .choices__item {
            padding: 10px 15px;
            font-size: var(--font-size-base);
            white-space: nowrap;
            overflow: visible;
        }

        .filter-section .choices__list--dropdown .choices__item--selectable.is-highlighted {
            background-color: var(--blue-primary);
            color: white;
        }

        .filter-section .choices__item--selectable::after {
            display: none !important;
        }

        .filter-section .choices__list[role="listbox"] {
            max-height: 300px;
            overflow-y: auto;
        }

        .filter-section .choices__item--choice {
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .filter-section .choices__inner:focus-within {
            border-color: var(--blue-primary);
            outline: none;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
        }

        /* ========================================
   6. PROPERTY CARDS
   ======================================== */
        .property-card {
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
        }

        .property-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        /* Property Card Content */
        .property-card-content {
            padding: 20px;
        }

        .property-address {
            font-size: 1.5rem;
            font-weight: 600;
            color: #212529;
            line-height: 1.2;
            margin-bottom: 12px;
        }

        .property-info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            gap: 15px;
        }

        .property-price {
            font-size: 2.2rem;
            font-weight: 700;
            color: #0d6efd;
        }

        .property-specs {
            display: flex;
            gap: 12px;
            font-size: 1.3rem;
            color: #6c757d;
            flex-wrap: wrap;
        }

        .property-specs .spec-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-weight: 500;
        }

        .property-specs .spec-item i {
            font-size: 1.1rem;
            color: #6c757d;
        }

        /* List View Specific Styles */
        .list-view .property-card.list-card {
            display: flex;
            flex-direction: row;
            height: auto;
            align-items: stretch;
        }

        .list-view .property-image {
            width: 300px;
            height: 200px;
            flex-shrink: 0;
        }

        .list-view .property-details-list {
            flex: 1;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .list-view .property-main-info {
            flex: 1;
        }

        .list-view .property-address-list {
            font-size: 1.8rem;
            font-weight: 600;
            color: #212529;
            margin-bottom: 10px;
            line-height: 1.2;
            text-align: left;
        }

        .list-view .property-main-info {
            flex: 1;
            text-align: left;
        }

        .list-view .property-price-specs-row {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .list-view .property-price-list {
            font-size: 2.6rem;
            font-weight: 700;
            color: #0d6efd;
        }

        .list-view .property-specs-list {
            display: flex;
            gap: 20px;
            font-size: 1.5rem;
            color: #495057;
            font-weight: 500;
        }

        .list-view .property-specs-list .spec-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .list-view .property-specs-list i {
            font-size: 1.4rem;
            color: #6c757d;
        }

        .list-view .btn-primary.list-view-btn {
            width: auto;
            align-self: center;
            padding: 12px 32px;
            font-size: 1.5rem;
            white-space: nowrap;
        }

        /* Button Styles */
        .property-card .btn-primary {
            font-size: 1.5rem;
            padding: 10px 24px;
            font-weight: 500;
            border-radius: 6px;
            background-color: #0d6efd;
            border: none;
            transition: all 0.2s ease;
            width: 100%;
        }

        .list-view .btn-primary.list-view-btn {
            width: auto;
            padding: 12px 32px;
            font-size: 1.5rem;
        }

        .property-card .btn-primary:hover {
            background-color: #0b5ed7;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        }

        /* Property Image Container */
        .property-image {
            position: relative;
            height: 250px;
            overflow: hidden;
            background-color: var(--bg-lighter);
        }

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

        /* Property Badges */
        .property-badges,
        .property-badges-overlay {
            position: absolute;
            top: 10px;
            left: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .property-badges-overlay {
            top: 5px;
            left: 5px;
            gap: 4px;
            pointer-events: none;
        }




        .badge-custom,
        .badge-compact {
            padding: 4px 8px;
            border-radius: var(--border-radius-sm);
            font-size: 11px;
            font-weight: 600;
            background: rgba(0, 0, 0, 0.5);
            color: white;
        }

        .badge-compact {
            padding: 2px 6px;
            font-size: 10px;
            border-radius: 3px;
        }

        .badge-custom.new-listing {
            background: #28a745;
            color: white;
        }

        .badge-custom.open-house {
            background: #ffc107;
            color: #000;
        }

        .badge-custom.price-drop {
            background: #dc3545;
            color: white;
        }

        .badge-custom.for-rent {
            background: #17a2b8;
            color: white;
        }

        .badge-custom {
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            backdrop-filter: blur(4px);
        }

        .badge-custom.open-house {
            background: rgba(255, 255, 255, 0.95);
            color: #d73502;
            border: 1px solid rgba(215, 53, 2, 0.3);
        }

        .badge-custom.days-on-market {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 1px solid rgba(0, 0, 0, 0.2);
        }

        .badge-custom.price-drop {
            background: rgba(220, 53, 69, 0.95);
            color: white;
        }

        .property-badges {
            z-index: 2;
        }

        /* Favorite Button */
        .favorite-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            color: var(--text-muted);
        }

        .favorite-btn:hover {
            transform: scale(1.1);
        }

        .favorite-btn.active,
        .favorite-btn.active i {
            color: var(--danger-color);
        }

        /* Image Slider Controls */
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.4);
            color: #fff;
            border: none;
            font-size: 24px;
            cursor: pointer;
            padding: 10px 5px;
            z-index: 2;
            display: none;
            user-select: none;
            line-height: 1;
        }

        .property-image:hover .slider-arrow {
            display: block;
        }

        .slider-arrow.prev {
            left: 5px;
            border-radius: 0 4px 4px 0;
        }

        .slider-arrow.next {
            right: 5px;
            border-radius: 4px 0 0 4px;
        }

        .photo-counter {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            z-index: 2;
            display: none;
        }

        /* List View Variant */
        .list-view .property-card {
            display: flex;
            flex-direction: row;
            height: auto;
        }

        .list-view .property-image {
            width: 300px;
            height: 200px;
            flex-shrink: 0;
        }

        .list-view .property-details {
            flex: 1;
            padding: 20px;
        }

        /* Property Card Buttons */
        .property-card .btn-outline-primary {
            font-size: 0.95rem !important;
            padding: 8px 20px !important;
            font-weight: 500;
            border: 1px solid var(--secondary-color);
            color: var(--secondary-color);
            background: white;
        }

        .property-card .btn-outline-primary:hover {
            background: var(--secondary-color);
            color: white;
        }

        /* Responsive Grid System */
        #searchResults {
            display: flex;
            flex-wrap: wrap;
            margin: -0.75rem;
        }

        #searchResults>div {
            padding: 0.75rem;
            box-sizing: border-box;
        }

        /* Standard density responsive columns */
        #searchResults.standard-density>div {
            width: 100%;
        }

        @media (min-width: 768px) {
            #searchResults.standard-density>div {
                width: 50%;
            }
        }

        @media (min-width: 992px) {
            #searchResults.standard-density>div {
                width: 33.333%;
            }
        }

        @media (min-width: 1400px) {
            #searchResults.standard-density>div {
                width: 25%;
            }
        }

        @media (min-width: 1920px) {
            #searchResults.standard-density>div {
                width: 20%;
            }
        }

        /* Compact density - one more card per row */
        #searchResults.compact-density>div {
            width: 100%;
        }

        @media (min-width: 576px) {
            #searchResults.compact-density>div {
                width: 50%;
            }
        }

        @media (min-width: 768px) {
            #searchResults.compact-density>div {
                width: 33.333%;
            }
        }

        @media (min-width: 992px) {
            #searchResults.compact-density>div {
                width: 25%;
            }
        }

        @media (min-width: 1400px) {
            #searchResults.compact-density>div {
                width: 20%;
            }
        }

        @media (min-width: 1920px) {
            #searchResults.compact-density>div {
                width: 16.666%;
            }
        }

        /* Large density - one less card per row */
        #searchResults.large-density>div {
            width: 100%;
        }

        @media (min-width: 768px) {
            #searchResults.large-density>div {
                width: 100%;
            }
        }

        @media (min-width: 992px) {
            #searchResults.large-density>div {
                width: 50%;
            }
        }

        @media (min-width: 1400px) {
            #searchResults.large-density>div {
                width: 33.333%;
            }
        }

        @media (min-width: 1920px) {
            #searchResults.large-density>div {
                width: 25%;
            }
        }

        /* Compact card adjustments */
        .compact-density .property-card-content {
            padding: 15px;
        }

        .compact-density .property-address {
            font-size: 1.3rem;
            margin-bottom: 8px;
        }

        .compact-density .property-info-row {
            margin-bottom: 12px;
        }

        .compact-density .property-price {
            font-size: 1.9rem;
        }

        .compact-density .property-specs {
            font-size: 1.2rem;
        }

        .compact-density .property-image {
            height: 200px;
        }

        /* Large card adjustments */
        .large-density .property-card-content {
            padding: 25px;
        }

        .large-density .property-address {
            font-size: 1.7rem;
            margin-bottom: 14px;
        }

        .large-density .property-price {
            font-size: 2.5rem;
        }

        .large-density .property-specs {
            font-size: 1.5rem;
        }

        .large-density .property-image {
            height: 300px;
        }

        /* List view stays full width but can be compact */
        #searchResults.list-view>div {
            width: 100% !important;
        }

        /* Compact list variant */
        .list-view.compact-density .property-image {
            width: 250px;
            height: 150px;
        }

        .list-view.compact-density .property-details-list {
            padding: 15px 20px;
        }

        .list-view.compact-density .property-address-list {
            font-size: 1.6rem;
            margin-bottom: 8px;
        }

        .list-view.compact-density .property-price-list {
            font-size: 2.2rem;
        }

        .list-view.compact-density .property-specs-list {
            font-size: 1.4rem;
        }

        /* Ensure property cards fill their containers */
        .property-card {
            height: 100%;
        }

        /* ========================================
   RESULTS SECTION SPACING
   ======================================== */
        .results-section {
            padding: 0 10px;
        }

        /* ========================================
   7. MAP SIDEBAR & PANELS
   ======================================== */
        #propertiesMapModal .modal-header {
            background-color: #343a40;
            color: white;
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
        }

        #propertiesMapModal .modal-title {
            font-size: 1.1rem;
        }

        #propertiesMapModal .modal-body {
            overflow: hidden;
        }

        #compass-container {
            display: flex;
            height: calc(100vh - 51px);
            width: 100%;
            position: relative;
        }

        #propertiesMapCanvas {
            flex-grow: 1;
            height: 100%;
        }

        #sidebar-panel {
            width: 450px;
            min-width: 400px;
            max-width: 800px;
            height: 100%;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-light);
            border-left: 1px solid #dee2e6;
            transition: margin-left 0.3s ease-in-out;
            resize: horizontal;
            overflow: hidden;
        }

        #sidebar-panel.is-collapsed {
            margin-left: -450px;
        }

        .sidebar-panel-item {
            display: flex;
            flex-direction: column;
            border-bottom: 1px solid #dee2e6;
        }

        .sidebar-panel-item.collapsed .panel-content {
            display: none;
        }

        .panel-header {
            padding: 0.75rem 1rem;
            background-color: #e9ecef;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .panel-content {
            overflow-y: auto;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .panel-toggle-icon {
            transition: transform 0.2s;
        }

        .sidebar-panel-item.collapsed .panel-toggle-icon {
            transform: rotate(180deg);
        }

        #results-panel,
        #kendallsPicksList {
            flex-grow: 1;
        }

        /* Map Property Cards in Sidebar */
        .map-property-card {
            display: flex;
            padding: 8px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .map-property-card:hover,
        .map-property-card.active {
            background-color: #eef5ff;
        }

        .map-property-img {
            width: 120px;
            height: 90px;
            object-fit: cover;
            border-radius: var(--border-radius-sm);
            margin-right: 12px;
        }

        .map-property-address {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 4px;
        }

        .map-property-price {
            font-size: 0.9rem;
        }

        .map-property-specs {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* ========================================
   8. GOOGLE MAPS INFO WINDOWS
   ======================================== */
        .gm-style-iw-c {
            padding: 0 !important;
            border-radius: 8px !important;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
            max-width: 350px !important;
            min-width: 350px !important;
        }

        .gm-style-iw-d {
            overflow: hidden !important;
        }

        .gm-style .gm-style-iw-t::after {
            display: none !important;
        }

        .gm-style-iw-c button.gm-ui-hover-effect {
            display: none !important;
        }

        /* Info Window Content */
        .info-window-content {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            width: 350px;
        }

        .info-window-photo-container {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: var(--bg-lighter);
            margin: 8px 8px 0 8px;
        }

        .info-window-photo-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: var(--border-radius-sm);
        }

        /* Info Window Navigation */
        .info-window-photo-container .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 10;
            opacity: 0;
        }

        .info-window-photo-container:hover .slider-arrow {
            opacity: 1;
        }

        .info-window-photo-container .slider-arrow:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .info-window-photo-container .slider-arrow.prev {
            left: 8px;
        }

        .info-window-photo-container .slider-arrow.next {
            right: 8px;
        }

        .info-window-photo-container .photo-counter {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 13px;
            font-weight: 500;
            z-index: 10;
            display: block;
        }

        /* Info Window Controls */
        .info-window-photo-container .favorite-heart,
        .agent-selection-star {
            position: absolute;
            top: 8px;
            right: 48px;
            font-size: 24px;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
        }

        .agent-selection-star {
            font-size: 1.8rem;
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        }

        .info-window-photo-container .favorite-heart:hover,
        .agent-selection-star:hover {
            transform: scale(1.1);
        }

        .info-window-photo-container .favorite-heart.active {
            color: var(--danger-color);
        }

        .agent-selection-star.selected {
            color: #ffc107;
        }

        .info-window-photo-container .info-window-close {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
        }

        .info-window-photo-container .info-window-close:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        /* Info Window Details */
        .info-window-details {
            padding: 12px 16px 16px 16px;
            background: white;
        }

        .info-window-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 8px;
        }

        .info-window-badge {
            background-color: var(--bg-light);
            color: #495057;
            padding: 3px 7px;
            font-size: 11px;
            border-radius: 3px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        .info-window-badge.open-house {
            background-color: #fff3cd;
            color: #856404;
            font-weight: 600;
        }

        .info-window-badge.new-listing {
            background-color: #d4edda;
            color: #155724;
        }

        .info-window-badge.price-drop {
            background-color: #f8d7da;
            color: #721c24;
        }

        .info-window-address {
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 6px;
            color: var(--text-dark);
            line-height: 1.2;
        }

        .info-window-price-spec {
            font-size: var(--font-size-xs);
            margin-bottom: 12px;
            color: var(--text-muted);
            line-height: 1.3;
        }

        .info-window-price-spec strong {
            color: var(--secondary-color);
            font-size: var(--font-size-sm);
            font-weight: 700;
        }

        .info-window-actions {
            display: flex;
            justify-content: center;
            margin-top: 10px;
        }

        .info-window-actions .btn {
            background: var(--secondary-color);
            color: white;
            border: none;
            padding: 10px 32px;
            border-radius: 5px;
            font-size: 1rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            display: inline-block;
        }

        .info-window-actions .btn:hover {
            background: var(--secondary-color);
            transform: translateY(-1px);
        }

        /* ========================================
   9. AGENT FAVORITES BAR
   ======================================== */
        #agentFavoritesBar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-top: 1px solid #ccc;
            z-index: 1050;
            display: flex;
            padding: 10px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        }

        .agent-favorites-list-container {
            flex-grow: 1;
            overflow-x: auto;
        }

        .agent-favorites-list {
            display: flex;
            gap: 10px;
        }

        .agent-favorite-item {
            position: relative;
        }

        .agent-favorite-item img {
            width: 100px;
            height: 75px;
            object-fit: cover;
            border-radius: var(--border-radius-sm);
        }

        .remove-favorite-btn {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            cursor: pointer;
        }

        /* ========================================
   10. LIGHTBOX
   ======================================== */
        .photo-lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .photo-lightbox.active {
            display: flex;
        }

        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
        }

        .lightbox-content img {
            max-width: 100%;
            max-height: 100%;
        }

        .lightbox-close {
            position: absolute;
            top: 15px;
            right: 25px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            border: none;
            font-size: 30px;
            cursor: pointer;
            padding: 10px 15px;
        }

        .lightbox-nav.prev {
            left: 10px;
        }

        .lightbox-nav.next {
            right: 10px;
        }

        .lightbox-counter {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px 10px;
            border-radius: var(--border-radius-sm);
        }

        /* ========================================
   11. TAG INPUT
   ======================================== */
        .tag-container {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;
        }

        .tag {
            background: var(--border-color);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
        }

        .remove-tag {
            margin-left: 5px;
            cursor: pointer;
            font-weight: bold;
        }

        .tag-input {
            border: none;
            outline: none;
            flex-grow: 1;
            background: transparent;
        }

        /* ========================================
   12. FOOTER OVERRIDES
   ======================================== */
        footer.footer-main .footer-links li a {
            font-size: 1.5rem;
        }

        /* ========================================
   13. RESPONSIVE STYLES
   ======================================== */
        @media (max-width: 991px) {
            .page-layout.has-sidebar .main-content .map-section {
                transform: translateX(-50%);
            }

            .form-title-row {
                flex-direction: column;
                align-items: stretch;
            }

            .form-fields-grid {
                grid-template-columns: 1fr;
            }

            .form-actions {
                margin-top: 10px;
            }

            .btn-search {
                flex-grow: 1;
            }
        }


        .wrap-sidebar {
            background-color: rgba(255, 255, 255, 0.92) !important;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 1000 !important;
        }

        .sidebar-menu-dashboard {
            background-color: rgba(255, 255, 255, 0.80) !important;
        }

        .menu-box {
            background: none !important;
        }

/* Quick iOS scroll fix */
@supports (-webkit-touch-callout: none) {
    /* iOS only styles */
    body {
        height: 100vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-content-inner {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Disable problematic animations on scroll */
    * {
        -webkit-transition: none !important;
        transition: none !important;
    }
    
    /* Re-enable specific transitions */
    .btn, a {
        -webkit-transition: all 0.3s ease !important;
        transition: all 0.3s ease !important;
    }
}