/* Landing-only styles extracted from the former inline main-ssr stylesheet. */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #fff;
            min-height: 100vh;
            padding: 0;
            margin: 0;
        }

        /* La marca del modal conserva sus estilos sin depender de la cabecera pública. */
        .catalog-mobile-filter-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            color: inherit;
            text-decoration: none !important;
        }

        .catalog-mobile-filter-brand .logo-circle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .catalog-mobile-filter-brand .logo-circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .catalog-mobile-filter-brand .logo-text {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .catalog-mobile-filter-brand .logo-text .mexico {
            color: #000;
            font-size: 18px;
            font-weight: 500;
        }

        .catalog-mobile-filter-brand .logo-text .inmuebles {
            color: #000;
            font-size: 18px;
            font-weight: 700;
        }

        /* Search and Controls */
        .search-controls-container {
            width: 100%;
            padding: 24px 24px 32px 24px;
        }

        .search-controls-row {
            max-width: 1440px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .search-bar-wrapper {
            width: 100%;
            max-width: 448px;
            position: relative;
        }

        .search-bar {
            /* width: 100%;
            height: 48px;
            padding: 0 16px;
            border-radius: 24px;
            border: 0.5px solid #f39c12;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fff;
            box-sizing: border-box; */
            width: 100%;
            height: 48px;
            padding: 10px 15px 10px 15px;
            border-radius: 24px;
            border: 0.5px solid #f39c12;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fff;
            box-sizing: border-box;
            align-content: center;
        }

        .search-bar input {
            border: none;
            outline: none;
            flex: 1;
            font-size: 15px;
            color: #000;
            background: transparent;
            padding: 0;
            margin: 0;
            line-height: normal;
        }

        .search-bar input::placeholder {
            color: #b0b0b0;
            font-weight: 400;
        }

        .search-bar .form-control:focus {
            box-shadow: none;
        }

        .search-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            padding: 0;
        }

        .search-icon svg {
            width: 20px;
            height: 20px;
        }

        .controls-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .toggle-group {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .toggle-btn {
            height: 36px;
            padding: 0 16px;
            border-radius: 18px;
            border: none;
            background: transparent;
            color: rgba(0,0,0,0.4);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .toggle-btn.active {
            background: #f39c12;
            color: #fff;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .filter-btn {
            height: 36px;
            padding: 0 16px;
            background: #f39c12;
            border-radius: 18px;
            border: none;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .filter-btn:hover {
            background: #e68900;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

        .filter-arrow {
            width: 14px;
            height: 14px;
            transition: transform 0.2s;
        }

        .filter-arrow.rotated {
            transform: rotate(180deg);
        }

        .city-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #fff;
            border: 2px solid #ffe0b2;
            border-top: none;
            border-radius: 0 0 16px 16px;
            box-shadow: 0 8px 32px rgba(255,152,0,0.13);
            z-index: 1000;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }

        .city-dropdown.show {
            display: block;
        }

        .city-dropdown-content {
            padding: 8px 0;
        }

        .city-option {
            padding: 12px 20px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .city-option:last-child {
            border-bottom: none;
        }

        .city-option:hover {
            background-color: #fef3e6;
        }

        .city-option.selected {
            background-color: #f39c12;
            color: #fff;
        }

        .city-name {
            font-weight: 600;
            font-size: 1rem;
            color: inherit;
        }

        .city-state {
            font-size: 0.85rem;
            opacity: 0.8;
            color: inherit;
        }

        .no-cities-message {
            padding: 20px;
            text-align: center;
            color: #666;
            font-style: italic;
        }

        .city-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .city-dropdown::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .city-dropdown::-webkit-scrollbar-thumb {
            background: #ff9800;
            border-radius: 3px;
        }

        .city-dropdown::-webkit-scrollbar-thumb:hover {
            background: #e68900;
        }

        /* Main Layout */
        .content-wrapper {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 24px 48px 24px;
            display: flex;
            gap: 24px;
        }

        /* Sidebar Filter Panel (Desktop) */
        .filter-sidebar {
            display: none;
            width: 256px;
            flex-shrink: 0;
        }

        .filter-sidebar.show {
            display: block;
        }

        .filter-panel {
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            padding: 16px;
            position: sticky;
            top: 80px;
        }

        .filter-panel h3 {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 16px 0;
            color: #000;
        }

        .filter-section {
            margin-bottom: 16px;
        }

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

        .filter-actions {
            margin-top: 20px;
            display: flex;
            justify-content: flex-end;
        }

        .apply-filters-btn {
            min-width: 160px;
            height: 42px;
            padding: 0 18px;
            border: none;
            border-radius: 999px;
            background: #f39c12;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .apply-filters-btn:hover {
            background: #e68900;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

        .filter-section label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #000;
            margin-bottom: 6px;
        }

        .filter-section select,
        .filter-section input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            background: #fff;
            box-sizing: border-box;
        }

        .filter-section select:focus,
        .filter-section input:focus {
            outline: none;
            border-color: #f39c12;
            box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
        }

        /* Mobile Filter Dropdown */
        .filter-dropdown {
            display: none;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            padding: 20px;
            margin-bottom: 20px;
        }

        .filter-dropdown.show {
            display: block;
        }

        .catalog-container {
            flex: 1;
            min-width: 0;
        }

        .loading-message {
            text-align: center;
            color: #ff9800;
            font-size: 1.1rem;
            padding: 60px 20px;
            background: #fff7ed;
            border-radius: 12px;
            border: 1px solid #ffe0b2;
        }

        .properties-catalog {
            width: 100%;
        }

        .catalog-header {
            margin-bottom: 24px;
        }

        .catalog-header h2 {
            color: #000;
            font-size: 18px;
            font-weight: 400;
            margin: 0;
            text-align: left;
        }

        .empty-catalog-state {
            text-align: center;
            color: #6b7280;
            font-size: 1rem;
            padding: 40px 20px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
        }

        .catalog-pagination {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 32px;
        }

        .catalog-pagination-btn {
            min-width: 42px;
            height: 42px;
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid #d1d5db;
            background: #fff;
            color: #111827;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .catalog-pagination-btn:hover {
            border-color: #f39c12;
            color: #f39c12;
        }

        .catalog-pagination-btn.active {
            background: #f39c12;
            border-color: #f39c12;
            color: #fff;
        }

        .page-home .search-controls-container {
            padding: 10px 24px 6px 24px;
        }

        .page-home .search-controls-row {
            justify-content: center;
        }

        .page-home .search-bar-wrapper {
            max-width: 640px;
            margin: 0 auto;
        }

        .home-featured-section {
            width: 100%;
            padding: 0;
        }

        .home-featured-container,
        .home-reviews-container {
            max-width: 1440px;
            padding-right: 0;
            padding-left: 0;
        }

        .home-featured-heading {
            max-width: 1440px;
            margin: 14px auto 14px auto;
            padding: 0 24px;
            color: #2e2100;
            font-size: 28px;
            font-weight: 700;
            line-height: 1.5;
            letter-spacing: -0.02em;
        }

        .home-featured-shell {
            width: 100%;
            margin: 0;
            padding: 0 24px 24px 24px;
            border-radius: 0;
            background: #ffffff;
        }

        .home-featured-footer {
            display: flex;
            justify-content: center;
            margin-top: 24px;
        }

        .home-reviews-footer {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .home-story-section {
            width: 100%;
            padding: 0;
            background: #050505;
        }

        .home-story-shell {
            max-width: 1440px;
            margin: 0 auto;
            padding: 48px 24px 56px 24px;
        }

        .home-story-row {
            margin-right: -20px;
            margin-left: -20px;
        }

        .home-story-row > [class*="col-"] {
            padding-right: 20px;
            padding-left: 20px;
        }

        .home-story-copy {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .home-story-heading {
            color: #fff;
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.05;
            margin: 0;
        }

        .home-story-text {
            max-width: 620px;
            color: rgba(255, 255, 255, 0.82);
            font-size: 17px;
            line-height: 1.7;
            margin: 0;
            text-align: justify;
        }

        .home-story-media-column {
            display: flex;
            flex-direction: column;
            gap: 18px;
            align-items: stretch;
        }

        .home-story-media {
            width: 100%;
            aspect-ratio: var(--story-media-ratio, 16 / 9);
            border-radius: 24px;
            overflow: hidden;
            background: #111;
        }

        .home-story-image {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
        }

        .home-story-btn {
            align-self: flex-start;
        }

        .home-blog-section {
            width: 100%;
            padding: 36px 24px 56px 24px;
        }

        .home-blog-shell {
            max-width: 1440px;
            margin: 0 auto;
        }

        .home-blog-heading {
            margin: 0 0 18px 0;
            color: #141414;
            font-size: 28px;
            font-weight: 700;
            line-height: 1.5;
            letter-spacing: -0.02em;
        }

        .home-blog-preview {
            margin-bottom: 22px;
        }

        .home-blog-card {
            display: block;
            text-decoration: none !important;
            color: inherit;
        }

        .home-blog-image-wrap {
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 24px;
            overflow: hidden;
            background: #f2f2f2;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        }

        .home-blog-image {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
        }

        .home-blog-copy {
            display: flex;
            flex-direction: column;
            gap: 12px;
            justify-content: center;
            min-height: 100%;
        }

        .home-blog-date {
            color: #777;
            font-size: 0.95rem;
            font-weight: 500;
            letter-spacing: 0.01em;
            text-transform: none;
            margin: 0;
        }

        .home-blog-title {
            color: #121212;
            font-size: clamp(1.35rem, 2.4vw, 2.2rem);
            font-weight: 700;
            line-height: 1.12;
            letter-spacing: -0.03em;
            margin: 0;
        }

        .home-blog-footer {
            display: flex;
            justify-content: flex-start;
        }

        .home-social-section {
            width: 100%;
            padding: 0 24px 56px 24px;
        }

        .home-social-shell {
            max-width: 960px;
            margin: 0 auto;
            padding: 20px 24px;
            border-radius: 24px;
            background: #f3b21d;
        }

        .home-social-shell > .row {
            row-gap: 16px;
        }

        .home-social-heading {
            color: #1b1400;
            font-size: 24px;
            font-weight: 700;
            line-height: 1.5;
            letter-spacing: -0.02em;
            margin: 0;
        }

        .home-social-links {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .home-social-link {
            width: 54px;
            height: 54px;
            border-radius: 999px;
            background: #fff;
            color: #050505;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 10px 22px rgba(48, 32, 0, 0.12);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .home-social-link:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 24px rgba(48, 32, 0, 0.18);
        }

        .home-social-link svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .home-reviews-section {
            width: 100%;
            padding: 22px 24px 44px 24px;
        }

        .home-reviews-heading {
            max-width: 1440px;
            margin: 0 auto 14px auto;
            color: #1f1f1f;
            font-size: 24px;
            font-weight: 700;
            line-height: 1.5;
            letter-spacing: -0.02em;
        }

        .review-carousel-viewport {
            width: min(100%, 360px);
            margin: 0 auto;
            overflow-x: auto;
            overflow-y: hidden;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
        }

        .review-carousel-viewport::-webkit-scrollbar {
            display: none;
        }

        .review-carousel-track {
            list-style: none;
            display: flex;
            gap: 0;
            width: 100%;
            padding: 0;
            margin: 0;
        }

        .featured-carousel-page,
        .review-carousel-page {
            flex: 0 0 100%;
            width: 100%;
            scroll-snap-align: start;
            list-style: none;
        }

        .featured-carousel-page-grid,
        .review-carousel-page-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px;
            width: 100%;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .review-carousel-card {
            flex: 0 0 100%;
            width: 100%;
            scroll-snap-align: start;
            padding: 4px 6px 8px 6px;
        }

        .review-card {
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
        }

        .review-card-bubble-wrap {
            position: relative;
            margin-bottom: 18px;
            filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
        }

        .review-card-bubble {
            position: relative;
            min-height: 118px;
            padding: 18px 20px;
            border-radius: 22px;
            background: #f1f4f5;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 12px;
        }

        .review-card-bubble::after {
            content: "";
            position: absolute;
            right: 24px;
            bottom: -15px;
            width: 54px;
            height: 34px;
            background: #f1f4f5;
            clip-path: polygon(12% 0, 100% 0, 68% 100%, 0 42%);
        }

        .review-card-quote {
            color: #000;
            font-size: clamp(0.95rem, 2.2vw, 1.2rem);
            font-weight: 400;
            line-height: 1.18;
            letter-spacing: -0.02em;
            margin: 0;
            text-wrap: balance;
        }

        .review-card-stars {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #f3b21d;
        }

        .review-card-star {
            font-size: 0.92rem;
            line-height: 1;
        }

        .review-card-author {
            color: #000;
            font-size: clamp(0.72rem, 1.45vw, 0.9rem);
            font-weight: 400;
            line-height: 1.1;
            text-align: right;
            margin: 0;
            padding-right: 8px;
        }

        .view-more-btn {
            height: 42px;
            padding: 0 18px;
            border-radius: 999px;
            border: 1px solid rgba(46, 33, 0, 0.12);
            background: #fff;
            color: #5f4200;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(87, 58, 0, 0.12);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .view-more-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 16px rgba(87, 58, 0, 0.18);
        }

        .view-more-btn-dark {
            border-color: #050505;
            background: #050505;
            color: #fff;
            box-shadow: 0 8px 18px rgba(5, 5, 5, 0.18);
        }

        .view-more-btn-dark:hover {
            box-shadow: 0 12px 22px rgba(5, 5, 5, 0.24);
            color: white;
        }

        .featured-carousel-viewport {
            width: min(100%, 360px);
            margin: 0 auto;
            overflow-x: auto;
            overflow-y: hidden;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            border-radius: 18px;
        }

        .featured-carousel-viewport::-webkit-scrollbar {
            display: none;
        }

        .featured-carousel-track {
            list-style: none;
            display: flex;
            gap: 0;
            width: 100%;
            padding: 0;
            margin: 0;
        }

        .featured-carousel-card {
            flex: 0 0 100%;
            width: 100%;
            scroll-snap-align: start;
            border: none;
            padding: 0;
            background: transparent;
            border-radius: 0;
            overflow: visible;
            box-shadow: none;
        }

        .featured-carousel-card .property-card-content {
            height: 100%;
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid #111;
        }

        .featured-carousel-card:hover .property-card-content {
            border-color: #111;
        }

        .featured-carousel-card:hover {
            box-shadow: none;
        }

        .featured-carousel-card .property-card-image-container {
            aspect-ratio: 1 / 1;
            overflow: hidden;
        }

        .featured-carousel-card .property-card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-carousel-empty {
            display: none;
            padding: 24px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.2);
            color: #4a3300;
            font-size: 15px;
            font-weight: 600;
            text-align: center;
        }

        .featured-carousel-empty.show {
            display: block;
        }

        /* Toggle and filter styles */
        .toggle-container {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .toggle-option, .sub-toggle-option {
            background: #fff;
            color: #ff9800;
            border: 2px solid #ff9800;
            border-radius: 16px;
            padding: 8px 22px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(255,152,0,0.04);
            outline: none;
        }
        .toggle-option.active, .sub-toggle-option.active {
            background: #ff9800;
            color: #fff;
            box-shadow: 0 4px 16px rgba(255,152,0,0.10);
        }
        .toggle-option:focus, .sub-toggle-option:focus {
            outline: 2px solid #ff9800;
        }

        /* Default: hide mobile-only headers on desktop */
        .mobile-filter-header { display: none; }

        .filter-container {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .filter-box {
            background-color: #fef3e6;
            border: 1px solid #ffe0b2;
            border-radius: 12px;
            padding: 15px;
            min-width: 200px;
        }

        .filter-box h4 {
            margin: 0 0 12px 0;
            font-size: 14px;
            color: #37352f;
            font-weight: 600;
        }

        /* Property grid specific styling for main page */
        .properties-list {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 24px;
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        @media (min-width: 768px) {
            .properties-list {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }
        }

        @media (min-width: 1280px) {
            .properties-list {
                grid-template-columns: repeat(3, 1fr);
                gap: 24px;
            }
        }

        .properties-list.hidden {
            display: none;
        }

        .properties-list:not(.hidden) {
            display: grid;
        }

        .property-card-item {
            position: relative;
            border: 1px solid rgba(0,0,0,0.2);
            border-radius: 12px;
            padding: 0;
            background-color: #fff;
            overflow: hidden;
            transition: box-shadow 0.2s;
            cursor: pointer;
        }
        
        .property-card-item:hover {
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }

        .properties-list .property-card-item {
            padding: 0;
            margin-bottom: 0;
            min-height: 0;
            border: none;
            border-radius: 16px;
            background-color: #fff;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
            overflow: hidden;
        }

        .properties-list .property-card-item:hover {
            background-color: #fff;
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
        }

        .property-card-item.featured-carousel-card {
            border: none;
            border-radius: 0;
            background: transparent;
            background-color: transparent;
            overflow: visible;
            box-shadow: none;
        }

        .property-card-item.featured-carousel-card:hover {
            box-shadow: none;
        }

        .properties-list .property-card-content {
            height: 100%;
        }

        .properties-list .property-card-image-container {
            overflow: hidden;
            border-radius: 16px 16px 0 0;
        }

        .properties-list .property-card-image,
        .properties-list .property-card-no-image {
            width: 100%;
            display: block;
        }

        /* Property card new styles */
        .property-card-content {
            display: flex;
            flex-direction: column;
        }
        
        .property-card-image-container {
            position: relative;
            width: 100%;
            background: #f5f5f5;
            display: block;
            overflow: hidden;
        }
        
        .property-card-image {
            width: 100%;
            height: auto;
            display: block;
        }

        .property-card-gallery-track {
            width: 100%;
            height: 100%;
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            overscroll-behavior-x: contain;
        }

        .property-card-gallery-track::-webkit-scrollbar {
            display: none;
        }

        .property-card-gallery-slide {
            width: 100%;
            height: 100%;
            flex: 0 0 100%;
            scroll-snap-align: start;
            background: #f5f5f5;
        }

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

        .property-card-gallery-control {
            position: absolute;
            top: 50%;
            z-index: 2;
            width: 28px;
            height: 28px;
            margin: 0;
            padding: 0;
            border: none;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.38);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            line-height: 1;
            opacity: 0.5;
            transform: translateY(-50%);
            transition: opacity 0.2s ease, background 0.2s ease;
        }

        .property-card-gallery-control:hover {
            opacity: 0.74;
            background: rgba(0, 0, 0, 0.5);
        }

        .property-card-gallery-control:disabled {
            cursor: default;
            opacity: 0.18;
        }

        .property-card-gallery-control-prev {
            left: 8px;
        }

        .property-card-gallery-control-next {
            right: 8px;
        }
        
        .property-card-no-image {
            width: 100%;
            min-height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            font-size: 14px;
            font-weight: 500;
        }

        #homeExplorerTitle {
            font-size: 16px;
            text-align: left;
            font-weight: 400;
        }

        @media (min-width: 769px) {
            .properties-list .property-card-image-container {
                aspect-ratio: 1 / 1;
            }

            .properties-list .property-card-image,
            .properties-list .property-card-no-image {
                height: 100%;
                object-fit: cover;
            }

            .properties-list .property-card-no-image {
                min-height: 0;
            }
        }

        @media (max-width: 768px) {
            .properties-list .property-card-gallery {
                aspect-ratio: var(--property-card-mobile-ratio, 4 / 3);
            }

            .property-card-gallery-control {
                width: 24px;
                height: 24px;
                font-size: 21px;
            }

            .property-card-gallery-control-prev {
                left: 6px;
            }

            .property-card-gallery-control-next {
                right: 6px;
            }
        }
        
        .property-card-details {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .property-card-price {
            font-size: 26px;
            font-weight: 700;
            color: #000;
            margin: 0 0 4px 0;
            line-height: 1.1;
        }
        
        .property-card-location {
            font-size: 14px;
            font-weight: 400;
            color: #000;
            margin: 0 0 12px 0;
            line-height: 1.4;
        }
        
        .property-card-features {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-top: 4px;
        }
        
        .property-card-feature {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: #000;
        }

        .property-card-feature .feature-icon {
            width: 18px;
            height: 18px;
            object-fit: contain;
        }
        
        .property-card-name {
            display: none;
        }
        
        .property-card-type {
            display: none;
        }

        /* City Dropdown Styles */
        .city-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: #fff;
            border: 2px solid #f39c12;
            border-radius: 16px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            z-index: 1000;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }

        .city-dropdown.show {
            display: block;
        }

        .city-dropdown-content {
            padding: 8px 0;
        }

        .city-option {
            padding: 12px 20px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .city-option:last-child {
            border-bottom: none;
        }

        .city-option:hover {
            background-color: #fef3e6;
        }

        .city-option.selected {
            background-color: #f39c12;
            color: #fff;
        }

        .city-name {
            font-weight: 600;
            font-size: 1rem;
            color: inherit;
        }

        .city-state {
            font-size: 0.85rem;
            opacity: 0.8;
            color: inherit;
        }

        .no-cities-message {
            padding: 20px;
            text-align: center;
            color: #666;
            font-style: italic;
        }

        /* Responsive adjustments */
        @media (min-width: 1024px) {
            .search-controls-row {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .filter-sidebar {
                display: block;
            }

            .filter-btn {
                display: none;
            }

            .featured-carousel-viewport,
            .review-carousel-viewport {
                width: 100%;
                max-width: 1440px;
                overflow-x: hidden;
                overflow-y: hidden;
            }

            .featured-carousel-card,
            .review-carousel-card {
                width: auto;
                padding: 0;
            }

            .featured-carousel-card {
                flex: initial;
            }

            .featured-carousel-page-grid .featured-carousel-card,
            .review-carousel-page-grid .review-carousel-card {
                flex: initial;
                scroll-snap-align: unset;
            }

            .review-card {
                max-width: none;
            }
        }

        @media (max-width: 768px) {
            .search-controls-container {
                padding: 16px 16px 24px 16px;
            }

            .search-controls-row {
                gap: 16px;
            }

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

            .controls-row {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
            }

            .toggle-group {
                justify-content: flex-start;
                flex: 0 0 auto;
            }

            .filter-btn {
                flex: 0 0 auto;
                min-width: 100px;
                justify-content: center;
            }

            .content-wrapper {
                padding: 0 16px 32px 16px;
                flex-direction: column;
            }

            .home-featured-section {
                padding: 0;
            }

            .page-home .search-controls-container {
                padding: 8px 16px 4px 16px;
            }

            .home-reviews-section {
                padding: 18px 16px 32px 16px;
            }

            .home-story-shell {
                padding: 36px 16px 40px 16px;
            }

            .home-story-row {
                row-gap: 24px;
                margin-right: -8px;
                margin-left: -8px;
            }

            .home-story-row > [class*="col-"] {
                padding-right: 8px;
                padding-left: 8px;
            }

            .home-story-heading {
                font-size: 28px;
            }

            .home-story-text {
                font-size: 15px;
                line-height: 1.65;
            }

            .home-story-media {
                border-radius: 20px;
            }

            .home-story-btn {
                width: 100%;
                align-self: stretch;
            }

            .home-blog-section {
                padding: 28px 16px 40px 16px;
            }

            .home-blog-heading {
                font-size: 22px;
                margin-bottom: 14px;
            }

            .home-blog-preview {
                row-gap: 16px;
                margin-bottom: 18px;
            }

            .home-blog-image-wrap {
                border-radius: 20px;
            }

            .home-blog-date {
                font-size: 0.85rem;
            }

            .home-blog-title {
                font-size: clamp(1.15rem, 6vw, 1.5rem);
            }

            .home-blog-footer {
                justify-content: stretch;
            }

            .home-social-section {
                padding: 0 16px 40px 16px;
            }

            .home-social-shell {
                padding: 18px 16px;
                border-radius: 20px;
            }

            .home-social-heading {
                font-size: 20px;
            }

            .home-reviews-heading {
                max-width: 320px;
                margin-bottom: 12px;
                font-size: 20px;
            }

            .review-carousel-viewport {
                width: min(100%, 320px);
            }

            .review-carousel-card {
                padding: 2px 4px 8px 4px;
            }

            .review-card-bubble {
                min-height: 108px;
                padding: 16px 18px;
                border-radius: 20px;
            }

            .review-card-bubble::after {
                right: 20px;
                bottom: -13px;
                width: 48px;
                height: 30px;
            }

            .review-card-bubble-wrap {
                margin-bottom: 16px;
            }

            .review-card-quote {
                font-size: clamp(0.9rem, 4.4vw, 1.08rem);
            }

            .review-card-star {
                font-size: 0.84rem;
            }

            .review-card-author {
                font-size: clamp(0.72rem, 3.2vw, 0.86rem);
                padding-right: 6px;
            }

            .home-featured-shell {
                padding: 0 0 20px 0;
                border-radius: 0;
            }

            .home-featured-heading {
                font-size: 18px;                
                padding: 0 0px;
            }

            .view-more-btn {
                width: 100%;
            }

            .home-featured-footer {
                margin-top: 20px;
                padding: 0 16px;
            }

            .home-reviews-footer {
                margin-top: 18px;
            }

            .featured-carousel-card {
                flex-basis: 100%;
                padding: 0;
            }

            .properties-list {
                grid-template-columns: 1fr !important;
                gap: 20px;
            }

            .property-card-price {
                font-size: 22px;
            }

            .catalog-header {
                margin-bottom: 20px;
            }

            .catalog-header h2 {
                font-size: 16px;
            }
        }
/* Home property explorer — isolated layout inspired by the supplied mockup. */
.landing-page.page-home {
    overflow-x: hidden;
    background: #fff;
    color: #171717;
}

/* Persistent catalog controls. Keeping the offsets as variables prevents the
   fixed header, filters and content from drifting apart at each breakpoint. */
.landing-page.page-catalog {
    --catalog-header-height: 66px;
    --catalog-filter-height: 59px;
    --catalog-chrome-height: calc(var(--catalog-header-height) + var(--catalog-filter-height));
    scroll-padding-top: var(--catalog-chrome-height);
}

.page-catalog .main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1100;
}

.page-catalog .home-filter-bar {
    position: fixed;
    top: var(--catalog-header-height);
    right: 0;
    left: 0;
    z-index: 1090;
}

.page-catalog .landing-main {
    padding-top: var(--catalog-chrome-height);
}

.home-filter-bar {
    position: sticky;
    top: 66px;
    z-index: 950;
    border-bottom: 1px solid #efd48c;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
}

.home-filter-shell {
    width: 100%;
    max-width: 1120px;
    min-height: 58px;
    padding: 8px 24px;
    margin: 0 auto;
}

.home-filter-form {
    flex-direction: row;
    align-items: center;
    margin: 0;
}

.page-catalog .home-city-filter {
    width: min(100%, 320px);
    min-width: 230px;
    max-width: 320px;
    flex: 1 1 300px;
    margin: 0;
}

.page-catalog .home-filter-control {
    height: 40px;
    padding: 0 8px 0 14px;
    border: 1px solid #c9c9c9;
    border-radius: 11px;
}

.page-catalog .home-filter-control:focus-within {
    border-color: #e2a71f;
    box-shadow: 0 0 0 3px rgba(244, 183, 47, .16);
}

.page-catalog .home-filter-control input {
    min-width: 0;
    font-size: 14px;
}

.page-catalog .home-filter-control .search-icon {
    width: 37px;
    height: 37px;
    color: #7c7c7c;
}

/* Acción compacta para restablecer la ciudad y el texto de búsqueda. */
.page-catalog .home-filter-control .search-clear-button {
    width: 15px;
    height: 15px;
    padding: 0;
    margin: auto 2px auto 0;
    flex: 0 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50% !important;
    background: #252525;
    color: #fff;
    box-shadow: none;
}

.page-catalog .home-filter-control .search-clear-button[hidden] {
    display: none !important;
}

.page-catalog .home-filter-control .search-clear-button:hover {
    background: #000;
    color: #fff;
}

.page-catalog .home-filter-control .search-clear-button:focus-visible {
    outline: 3px solid rgba(244, 183, 47, .48);
    outline-offset: 2px;
}

.page-catalog .home-filter-control .search-clear-button svg {
    width: 12px;
    height: 12px;
}

.page-catalog .home-city-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f0ede6;
    background: #fff;
    color: #252525;
    font-family: inherit;
    text-align: left;
}

.page-catalog .home-city-option:hover,
.page-catalog .home-city-option:focus-visible {
    background: #fff8e7;
    outline: none;
}

.catalog-filter {
    position: relative;
    min-width: 80px;
    flex: 0 0 auto;
    margin: 0;
}

.catalog-filter-operation {
    min-width: 106px;
}

.catalog-filter-price {
    min-width: 132px;
}

.catalog-filter-bedrooms,
.catalog-filter-category {
    min-width: 96px;
}

.catalog-filter-bathrooms {
    min-width: 86px;
}

.catalog-filter-toggle {
    display: inline-flex;
    width: 100%;
    height: 40px;
    padding: 0 12px 0 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #282828;
    border-radius: 11px;
    background: #fff;
    color: #242424;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

.catalog-filter-toggle::after {
    display: none;
}

.catalog-filter-toggle:hover,
.catalog-filter-toggle[aria-expanded="true"],
.catalog-filter-toggle.is-filtered {
    border-color: #d99a09;
    background: #fff9e9;
    color: #171717;
    box-shadow: none;
}

.catalog-filter-toggle:focus {
    box-shadow: none;
}

.catalog-filter-toggle:focus-visible {
    border-color: #d99a09;
    box-shadow: 0 0 0 2px rgba(244, 183, 47, .24);
}

.catalog-filter-toggle-primary,
.catalog-filter-toggle-primary:hover,
.catalog-filter-toggle-primary[aria-expanded="true"],
.catalog-filter-toggle-primary.is-filtered {
    border-color: #f4b72f;
    background: #f4b72f;
    color: #fff;
}

.catalog-filter-chevron {
    width: 8px;
    height: 8px;
    margin: -4px 2px 0 14px;
    flex: 0 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: margin .18s ease, transform .18s ease;
}

.catalog-filter-toggle[aria-expanded="true"] .catalog-filter-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.catalog-filter-menu {
    display: none;
    max-width: calc(100vw - 16px);
    padding: 6px;
    margin-top: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(34, 34, 34, .16);
}

.catalog-filter-menu.show {
    display: block;
}

/* Menus are moved to body while open so the horizontally scrollable filter
   bar cannot crop them on phones and small tablets. */
.catalog-filter-menu-portal {
    position: fixed;
    z-index: 1120;
    margin: 0;
}

/* El buscador usa el mismo patrón de portal para no quedar recortado por la
   barra desplazable en resoluciones intermedias. */
.page-catalog .city-dropdown-portal {
    position: fixed;
    z-index: 1130;
    margin: 0;
}

.catalog-choice-menu {
    width: 144px;
    min-width: 144px;
}

.catalog-choice-menu-compact {
    width: 112px;
    min-width: 112px;
}

.catalog-choice-menu-category {
    width: 204px;
    min-width: 204px;
}

.catalog-choice-option {
    display: flex;
    min-height: 40px;
    padding: 6px 8px;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.catalog-choice-option:hover,
.catalog-choice-option:focus,
.catalog-choice-option.active:hover,
.catalog-choice-option.active:focus {
    background: #fff8e7;
    color: #171717;
    outline: none;
}

.catalog-choice-option.active,
.catalog-choice-option:active {
    background: transparent;
    color: #171717;
}

.catalog-choice-indicator {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #f4b72f;
    border-radius: 5px;
    background: #fff;
}

.catalog-choice-option[aria-checked="true"] .catalog-choice-indicator {
    background: #f4b72f;
}

.catalog-price-menu {
    width: 360px;
    min-width: min(360px, calc(100vw - 16px));
    padding: 18px;
}

.catalog-price-bounds {
    margin-bottom: 4px;
    color: #777;
    font-size: 12px;
    font-weight: 500;
}

.catalog-price-slider {
    position: relative;
    height: 36px;
    margin: 0 4px 14px;
}

.catalog-price-track {
    position: absolute;
    top: 16px;
    right: 0;
    left: 0;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #dedede;
}

.catalog-price-track-active {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #171717;
}

.catalog-price-range {
    position: absolute;
    top: 7px;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 22px;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    background: transparent;
}

.catalog-price-range-max {
    z-index: 3;
}

.catalog-price-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.catalog-price-range::-moz-range-track {
    height: 4px;
    background: transparent;
}

.catalog-price-range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -9px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #f4b72f;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.catalog-price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #f4b72f;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.catalog-price-range:focus {
    outline: none;
}

.catalog-price-range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(244, 183, 47, .25);
}

.catalog-price-fields label {
    display: block;
    margin: 0 0 4px 4px;
    color: #242424;
    font-size: 12px;
    font-weight: 700;
}

.catalog-price-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #999;
    border-radius: 9px;
    color: #171717;
    font-size: 13px;
    font-weight: 500;
}

.catalog-price-input:focus {
    border-color: #d99a09;
    box-shadow: 0 0 0 2px rgba(244, 183, 47, .18);
}

.catalog-price-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

/* Mobile catalog toolbar. */
.catalog-mobile-toolbar {
    min-height: 46px;
    padding: 0;
}

.catalog-mobile-operation-group {
    gap: 4px;
}

.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation {
    min-width: 72px;
    height: 40px;
    padding: 0 16px;
    margin: 0;
    border: 0;
    border-radius: 999px !important;
    background: transparent;
    color: #8b8b8b;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.catalog-mobile-operation:hover,
.catalog-mobile-operation:focus {
    color: #171717;
    box-shadow: none;
}

.catalog-mobile-operation:focus-visible {
    box-shadow: 0 0 0 3px rgba(244, 183, 47, .28);
}

.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation.active,
.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation[aria-pressed="true"],
.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation.active:hover,
.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation.active:focus,
.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation[aria-pressed="true"]:hover,
.catalog-mobile-operation-group.btn-group > .catalog-mobile-operation[aria-pressed="true"]:focus {
    background: #f4a900;
    color: #fff;
    box-shadow: 0 4px 10px rgba(84, 60, 3, .18);
}

.catalog-mobile-filter-button {
    display: inline-flex;
    min-width: 112px;
    height: 42px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #eea800;
    border-radius: 999px;
    background: #eea800;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(84, 60, 3, .18);
}

.catalog-mobile-filter-button:hover,
.catalog-mobile-filter-button:focus,
.catalog-mobile-filter-button.has-filters {
    border-color: #d99800;
    background: #e5a000;
    color: #fff;
    box-shadow: 0 4px 10px rgba(84, 60, 3, .18);
}

.catalog-mobile-filter-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(244, 183, 47, .3);
}

.catalog-mobile-filter-count {
    min-width: 20px;
    height: 20px;
    padding: 3px 5px;
    border-radius: 999px;
    color: #9a6800;
    font-size: 11px;
}

.catalog-mobile-filter-chevron {
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Bootstrap modal customized for the mobile filter workflow. */
.catalog-mobile-filter-modal {
    display: none;
    z-index: 1200 !important;
}

body.catalog-mobile-filters-open {
    overflow: hidden;
}

.catalog-mobile-filter-title {
    width: auto;
    padding: 0;
    margin: 0 0 18px;
    color: #181818;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.catalog-mobile-choice-option {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 4px 0;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #171717;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    box-shadow: none;
}

.catalog-mobile-choice-option:hover,
.catalog-mobile-choice-option:focus,
.catalog-mobile-choice-option.active,
.catalog-mobile-choice-option.active:hover,
.catalog-mobile-choice-option.active:focus {
    background: transparent;
    color: #171717;
    box-shadow: none;
}

.catalog-mobile-choice-option:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(244, 183, 47, .24);
}

.catalog-mobile-choice-indicator {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #f4b72f;
    border-radius: 5px;
    background: #fff;
}

.catalog-mobile-choice-option[aria-checked="true"] .catalog-mobile-choice-indicator {
    background: #f4b72f;
}

.home-explorer {
    width: 100%;
    background: #f7f7f4;
}

.home-explorer-row {
    width: 100%;
    min-height: calc(100vh - var(--catalog-chrome-height, 124px));
    max-height: 820px;
    margin: 0;
}

@media (min-width: 901px) {
    .landing-page.page-catalog,
    .page-catalog .landing-main {
        height: 100vh;
        overflow: hidden;
    }

    .page-catalog .home-explorer {
        height: calc(100vh - var(--catalog-chrome-height));
        overflow: hidden;
    }

    .page-catalog .home-explorer-row {
        height: 100%;
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }

    .home-explorer-map-column {
        flex: 0 0 52.5%;
        max-width: 52.5%;
    }

    .home-explorer-results-column {
        flex: 0 0 47.5%;
        max-width: 47.5%;
    }

    .page-catalog .home-map-panel,
    .page-catalog .home-map,
    .page-catalog .catalog-results-scroll {
        height: 100%;
        min-height: 0;
    }

    .page-catalog .catalog-results-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }
}

.catalog-results-scroll:focus-visible {
    outline: 2px solid rgba(244, 183, 47, .75);
    outline-offset: -2px;
}

.page-catalog .home-explorer {
    scroll-margin-top: var(--catalog-chrome-height);
}

.catalog-back-to-map {
    position: fixed;
    right: 16px;
    /* Reserva el extremo inferior para el contacto flotante de WhatsApp. */
    bottom: calc(94px + env(safe-area-inset-bottom));
    z-index: 1060;
    min-width: 124px;
    min-height: 44px;
    border: 1px solid rgba(31, 31, 31, .08);
    background: white;
    color: #111;
    box-shadow: 0 8px 24px rgba(24, 24, 24, .24);
    font-size: 16px;
    line-height: 1;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-back-to-map:hover,
.catalog-back-to-map:focus {
    background: white;
    color: #111;
    box-shadow: 0 10px 28px rgba(24, 24, 24, .3);
    transform: translateY(-2px);
}

.catalog-back-to-map i {
    font-size: 18px;
}

.catalog-back-to-map:focus-visible {
    outline: 3px solid rgba(244, 183, 47, .42);
    outline-offset: 3px;
}

.catalog-back-to-map[hidden] {
    display: none !important;
}

@media (min-width: 901px) {
    .catalog-back-to-map {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-back-to-map {
        transition: none;
    }
}

.home-map-panel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-right: 1px solid #e5e1d7;
    background: #e4eee9;
}

.home-map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 640px;
    border: 0;
}

.home-map .leaflet-tile-pane {
    filter: saturate(.82) contrast(.94) brightness(1.03);
}

.home-map-status {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000;
    width: min(320px, calc(100% - 40px));
    margin: 0;
    padding: 12px 16px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    color: #292929;
    box-shadow: 0 8px 24px rgba(24, 32, 28, .14);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.home-map-badge,
.home-map-action {
    border: 1px solid rgba(31, 31, 31, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(24, 32, 28, .14);
    backdrop-filter: blur(10px);
}

.catalog-map-price-icon {
    border: 0;
    background: transparent;
}

.catalog-map-price-marker {
    position: absolute;
    bottom: 9px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 7px 12px;
    transform: translateX(-50%);
    border: 2px solid #fff;
    border-radius: 10px;
    background: #111;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: transform .16s ease, background-color .16s ease;
}

.catalog-map-price-marker__category {
    flex: 0 0 auto;
    margin-right: 7px;
    font-size: 13px;
}

.catalog-map-price-marker::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-top: 9px solid #111;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    content: '';
}

.catalog-map-price-icon.is-highlighted .catalog-map-price-marker {
    transform: translateX(-50%) scale(1.08);
    background: #f4b72f;
    color: #211800;
}

.catalog-map-price-icon.is-highlighted .catalog-map-price-marker::after {
    border-top-color: #f4b72f;
}

.home-property-card.is-map-selected {
    outline: 3px solid #f4b72f;
    outline-offset: 2px;
}

.home-map-badge {
    position: absolute;
    z-index: 1000;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #292929;
    font-size: 13px;
    font-weight: 700;
}

.home-map-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f4b72f;
    box-shadow: 0 0 0 4px rgba(244, 183, 47, .2);
}

.home-map-actions {
    position: absolute;
    z-index: 1000;
    right: 20px;
    bottom: 30px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    pointer-events: none;
}

.home-map-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 15px;
    color: #1f1f1f;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}

.home-map-action:hover:not(:disabled) {
    color: #a76f00;
    text-decoration: none;
}

.home-map-action:focus-visible {
    outline: 3px solid #a76f00;
    outline-offset: 3px;
}

.home-map-action:disabled {
    opacity: .65;
    cursor: default;
}

.home-explorer-row > .home-results-panel {
    min-width: 0;
    padding: 22px;
    overflow-y: auto;
    background: #fbfbf9;
    scrollbar-color: #d5d0c5 transparent;
    scrollbar-width: thin;
}

.home-results-header {
    margin-bottom: 18px;
}

.home-results-eyebrow {
    margin: 0 0 4px;
    color: #9a6b00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-results-header h1 {
    margin: 0;
    color: #181818;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 750;
    line-height: 1.15;
}

.home-results-query {
    margin: 8px 0 0;
    color: #626262;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.home-results-all-link {
    flex: 0 0 auto;
    color: #1e1e1e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* El estado semántico hidden siempre prevalece sobre el layout de cada componente. */
.page-catalog [hidden] {
    display: none !important;
}

.home-properties-loading,
.home-properties-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    color: #6d6d6d;
    font-size: 14px;
    text-align: center;
}

.home-properties-empty[hidden],
.home-properties-loading[hidden] {
    display: none;
}

.home-properties-empty {
    align-content: center;
    gap: 6px;
}

.home-properties-empty strong {
    color: #2b2b2b;
    font-size: 18px;
}

.home-properties-pagination {
    min-height: 54px;
    padding: 10px 0 4px;
}

.home-properties-pagination[hidden],
.home-properties-pagination-message[hidden],
.home-properties-pagination-retry[hidden],
.home-properties-pagination-sentinel[hidden] {
    display: none;
}

.home-properties-pagination-message {
    margin: 0;
    color: #6d6d6d;
    font-size: 13px;
    font-weight: 600;
}

.home-properties-pagination-retry {
    min-width: 132px;
    border: 1px solid #d99b0f;
    border-radius: 999px;
    background: #f4b72f;
    color: #191919;
    font-size: 13px;
    font-weight: 700;
}

.home-properties-pagination-retry:hover,
.home-properties-pagination-retry:focus {
    background: #e8a912;
    color: #111;
}

.home-properties-pagination-sentinel {
    display: block;
    width: 100%;
    height: 1px;
}

.home-property-grid {
    width: auto;
    padding: 0;
    list-style: none;
}

.home-property-grid-item {
    min-width: 0;
}

.home-property-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0ddd5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(29, 27, 22, .08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-property-card:hover,
.home-property-card:focus-visible {
    transform: translateY(-3px);
    border-color: #e4b342;
    box-shadow: 0 14px 28px rgba(29, 27, 22, .13);
    outline: none;
}

.home-property-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eceae4;
}

.home-property-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

/* Slick gallery: square media with centered crop and horizontal navigation. */
.catalog-property-gallery,
.catalog-property-gallery .slick-list,
.catalog-property-gallery .slick-track,
.catalog-property-gallery .slick-slide,
.catalog-property-gallery .slick-slide > div,
.catalog-property-gallery-slide {
    height: 100%;
}

.catalog-property-gallery {
    width: 100%;
    cursor: grab;
    touch-action: pan-y;
}

.catalog-property-gallery:active {
    cursor: grabbing;
}

.catalog-property-gallery-slide {
    overflow: hidden;
    background: #eceae4;
}

.catalog-property-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #222;
    font-size: 29px;
    line-height: 1;
    opacity: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    transform: translateY(-50%);
    transition: opacity .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.catalog-property-gallery-arrow span {
    display: block;
    margin-top: -3px;
}

.catalog-property-gallery-prev {
    left: 10px;
}

.catalog-property-gallery-next {
    right: 10px;
}

.home-property-card:hover .catalog-property-gallery-arrow:not(.slick-disabled),
.catalog-property-gallery-arrow:focus-visible {
    opacity: 1;
}

.catalog-property-gallery-arrow:hover,
.catalog-property-gallery-arrow:focus {
    background: #fff;
    color: #111;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.catalog-property-gallery-arrow:focus-visible {
    box-shadow: 0 0 0 3px rgba(244, 183, 47, .55), 0 4px 14px rgba(0, 0, 0, .28);
}

.catalog-property-gallery-arrow.slick-disabled {
    opacity: 0;
    pointer-events: none;
}

.catalog-property-gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 11px;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(22, 22, 22, .74);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

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

.home-property-no-image {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #777;
    font-size: 13px;
}

.home-property-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(20, 20, 20, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    z-index: 6;
}

.home-property-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f4b72f;
    color: #352400;
    font-size: 15px;
    font-weight: 900;
    z-index: 6;
}

.home-property-body {
    padding: 14px 15px 16px;
}

.home-property-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.home-property-price {
    overflow: hidden;
    color: #101010;
    font-size: clamp(20px, 2.1vw, 27px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-property-features {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #272727;
    font-size: 12px;
    font-weight: 650;
}

.home-property-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-property-feature img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.home-property-location {
    min-height: 38px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #4c4c4c;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-property-name {
    overflow: hidden;
    margin: 0;
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .home-filter-shell {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .home-filter-shell::-webkit-scrollbar {
        display: none;
    }

    .catalog-filter {
        flex: 0 0 auto;
    }
}

@media (max-width: 900px) {
    .home-explorer-row {
        max-height: none;
    }

    .home-map-panel,
    .home-map {
        min-height: 360px;
        height: 360px;
    }

    .home-map-panel {
        border-right: 0;
        border-bottom: 1px solid #e5e1d7;
    }

    .home-explorer-row > .home-results-panel {
        overflow: visible;
    }
}

@media (max-width: 575px) {
    .landing-page.page-catalog {
        --catalog-header-height: 58px;
        --catalog-filter-height: 112px;
    }

    .catalog-property-gallery-arrow:not(.slick-disabled) {
        width: 32px;
        height: 32px;
        opacity: .96;
    }

    .home-filter-shell {
        min-height: 112px;
        padding: 8px 12px;
        overflow: visible;
    }

    .page-catalog .home-city-filter {
        width: 100%;
        min-width: 100%;
        max-width: none;
        flex: 0 0 100%;
    }

    .home-filter-form {
        flex-wrap: wrap !important;
        row-gap: 8px;
    }

    .catalog-desktop-filter {
        display: none !important;
    }

    .catalog-mobile-filter-modal.show {
        display: block;
        padding: 0 !important;
        overflow: hidden;
        background: rgba(18, 18, 18, .58);
    }

    .catalog-mobile-filter-dialog {
        width: 100%;
        max-width: 430px;
        height: 100%;
        min-height: 100%;
        margin: 0 0 0 auto;
    }

    .modal-dialog-scrollable.catalog-mobile-filter-dialog {
        max-height: none;
    }

    .catalog-mobile-filter-content {
        width: 100%;
        height: 100%;
        max-height: none !important;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: -10px 0 28px rgba(0, 0, 0, .2);
    }

    .catalog-mobile-filter-header {
        min-height: 64px;
        padding: 10px 52px 10px 20px;
        flex: 0 0 auto;
        border-bottom: 1px solid #f1c55f;
    }

    .catalog-mobile-filter-brand {
        display: inline-flex;
        align-items: center;
        color: #171717;
        text-decoration: none;
    }

    .catalog-mobile-filter-brand .logo-circle {
        width: 42px;
        height: 42px;
    }

    .catalog-mobile-filter-brand .logo-text {
        font-size: 20px;
    }

    .catalog-mobile-filter-close {
        /* position: absolute; */
        /* top: 13px;
        right: 14px; */
        /* width: 38px;
        height: 38px; */
        padding: 0;
        border-radius: 50%;
        color: #282828;
        font-size: 30px;
        line-height: 36px;
        opacity: 1;
    }

    .catalog-mobile-filter-close:focus-visible {
        outline: 3px solid rgba(244, 183, 47, .35);
        outline-offset: 1px;
    }

    .catalog-mobile-filter-form {
        min-height: 0;
    }

    .catalog-mobile-filter-body {
        min-height: 0;
        padding: 22px 28px 30px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .catalog-mobile-filter-section {
        padding: 0;
        margin: 0 0 34px;
        border: 0;
    }

    .catalog-mobile-price-section .catalog-price-bounds {
        margin: 0 0 4px;
        font-size: 12px;
    }

    .catalog-mobile-price-section .catalog-price-slider {
        margin: 0 2px 18px;
    }

    .catalog-mobile-price-section .catalog-price-input {
        height: 44px;
        font-size: 15px;
        text-align: center;
    }

    .catalog-mobile-price-section .catalog-price-fields label {
        margin-bottom: 6px;
        font-size: 14px;
        text-align: center;
    }

    .catalog-mobile-room-section {
        align-items: stretch;
    }

    .catalog-mobile-choice-group {
        min-width: 0;
    }

    .catalog-mobile-choice-group-bordered {
        border-left: 1px solid #dedede;
    }

    .catalog-mobile-filter-footer {
        min-height: 78px;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        flex: 0 0 auto;
        gap: 12px;
        border-top: 1px solid #d8d8d8;
        background: #fff;
    }

    .catalog-mobile-filter-footer .btn {
        height: 50px;
        margin: 0;
        border: 0;
        border-radius: 9px;
        font-size: 16px;
        font-weight: 600;
    }

    .catalog-mobile-filter-cancel,
    .catalog-mobile-filter-cancel:hover,
    .catalog-mobile-filter-cancel:focus {
        background: #aaa;
        color: #fff;
    }

    .catalog-mobile-filter-apply,
    .catalog-mobile-filter-apply:hover,
    .catalog-mobile-filter-apply:focus {
        background: #f4b72f;
        color: #fff;
    }

    .catalog-mobile-filter-footer .btn:focus-visible {
        box-shadow: 0 0 0 3px rgba(244, 183, 47, .3);
    }

    .home-map-panel,
    .home-map {
        min-height: 300px;
        height: 300px;
    }

    .home-map-badge {
        top: 14px;
        left: 14px;
    }

    .home-map-actions {
        right: 14px;
        left: 14px;
    }

    .home-explorer-row > .home-results-panel {
        padding: 20px 14px 28px;
    }

    .home-results-header {
        align-items: center;
    }

    .home-results-eyebrow {
        font-size: 9px;
    }

    .home-results-header h1 {
        font-size: 20px;
    }

    .home-property-price {
        font-size: 24px;
    }

    .page-catalog .home-filter-control .search-clear-button {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }
}
