/**
 * Alberta Lands Listings - Frontend Styles
 * Brand Colors: #205B86 (Secondary Blue), #2175F2 (Bright Blue), #2D2E32 (Text), 
 *               #8CB0CA (Light Blue), #FFFFFF (White), #F5F5F5 (Grey), #D9D9DD (Light Grey)
 */

/* ============================================
   Variables - BRAND COLORS ONLY
   ============================================ */
:root {
    --all-secondary: #205B86;      /* Secondary Blue - Main brand color */
    --all-bright-blue: #2175F2;    /* Bright Blue - Accent/CTA */
    --all-text: #2D2E32;           /* Text - Dark gray for text */
    --all-light-blue: #8CB0CA;     /* Light Blue - Hover states */
    --all-white: #FFFFFF;          /* White - Backgrounds */
    --all-grey: #F5F5F5;           /* Grey - Light backgrounds */
    --all-light-grey: #D9D9DD;     /* Light Grey - Borders/dividers */
}

/* ============================================
   Filter Bar - TRUE Single Row Design
   ============================================ */
.all-listings-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Modern Search Bar Container */
.all-filter-bar.all-modern-search,
.all-standalone-search .all-filter-bar {
    background: #ffffff;
    padding: 6px 8px;
    margin-bottom: 48px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(32, 91, 134, 0.10);
    border: 1px solid #dde1e6;
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

.all-filter-bar.all-modern-search:hover,
.all-standalone-search .all-filter-bar:hover {
    box-shadow: 0 6px 28px rgba(32, 91, 134, 0.14);
}

.all-search-container {
    width: 100%;
}

/* CRITICAL: Single row layout - NO WRAP on desktop */
.all-search-fields {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.all-search-field {
    flex: 1 1 0%;
    min-width: 100px;
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e4e8;
}

/* First field (Primary Land Type) needs more room */
.all-search-fields > .all-search-field:first-child {
    flex: 1.6 1 0%;
    min-width: 160px;
}

/* Archive/Listings Page Filter - Grid layout matching hero design */
.all-archive-filter {
    background: #ffffff;
    border: 1px solid #dde1e6;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(32, 91, 134, 0.08);
    padding: 20px 24px 16px;
}

.all-archive-filter .all-search-fields {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 12px;
    align-items: end;
}

/* Grid utility spans for archive filter */
.all-archive-filter .col-span-2 { grid-column: span 2; }
.all-archive-filter .col-span-3 { grid-column: span 3; }
.all-archive-filter .col-span-4 { grid-column: 1 / -1; }

.all-archive-filter .all-search-actions,
.all-archive-filter .full-width {
    grid-column: 1 / -1;
}

.all-archive-filter .all-search-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    padding-top: 4px;
}

/* Restore borders on archive filter fields */
.all-archive-filter .all-search-field:not(:last-child),
.all-archive-filter .all-search-field {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    overflow: visible;
    position: relative;
}

/* Ensure multi-select dropdowns inside archive filter display above other fields */
.all-archive-filter .all-multi-select {
    position: relative;
    z-index: 10;
}
.all-archive-filter .all-multi-select.open {
    z-index: 9999;
}
.all-archive-filter .all-ms-dropdown {
    min-width: 260px;
    max-height: 300px;
}

/* Archive filter multi-select trigger — match bordered input style */
.all-archive-filter .all-ms-trigger.all-search-select {
    background: #ffffff !important;
    border: 1px solid #dde1e6 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    height: 42px;
    cursor: pointer;
}
.all-archive-filter .all-ms-trigger.all-search-select:hover,
.all-archive-filter .all-multi-select.open .all-ms-trigger.all-search-select {
    border-color: #2175F2 !important;
    box-shadow: 0 0 0 3px rgba(33,117,242,0.10) !important;
}

/* Archive filter inputs — bordered, clean, matching hero style */
.all-archive-filter .all-search-select,
.all-archive-filter .all-search-input {
    background: #ffffff;
    border: 1px solid #dde1e6;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--all-secondary);
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 42px;
    box-sizing: border-box;
    width: 100%;
}
.all-archive-filter .all-search-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23205B86' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 28px;
    cursor: pointer;
}
.all-archive-filter .all-search-select:hover,
.all-archive-filter .all-search-input:hover {
    border-color: #2175F2;
}
.all-archive-filter .all-search-select:focus,
.all-archive-filter .all-search-input:focus {
    outline: none;
    border-color: #2175F2;
    box-shadow: 0 0 0 3px rgba(33,117,242,0.10);
}
/* Top full-width search input */
.all-archive-filter .all-top-search input {
    background: #f7f8fa !important;
    border: 1px solid #dde1e6 !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--all-secondary) !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.all-archive-filter .all-top-search input:focus {
    border-color: #2175F2 !important;
    box-shadow: 0 0 0 3px rgba(33,117,242,0.10) !important;
    outline: none !important;
    background: #fff !important;
}
/* Archive action buttons */
.all-archive-filter .all-btn-search,
.all-archive-filter .all-btn-reset {
    min-width: 120px !important;
    padding: 0 32px !important;
    height: 42px !important;
}

.all-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--all-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Segmented control for radio group */
.all-segment {
    display: inline-flex;
    background: var(--all-grey);
    border: 1px solid var(--all-light-grey);
    border-radius: 10px;
    overflow: hidden;
}

.all-segment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--all-secondary);
    cursor: pointer;
    user-select: none;
}

.all-segment-item + .all-segment-item {
    border-left: 1px solid var(--all-light-grey);
}

.all-segment-item input[type="radio"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--all-light-blue);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.all-segment-item input[type="radio"]:checked {
    border-color: var(--all-bright-blue);
    background: radial-gradient(var(--all-bright-blue) 45%, transparent 46%);
}

.all-segment-item span {
    position: relative;
    z-index: 1;
    transition: color 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: var(--all-dark-grey);
}

.all-segment-item input:checked + span {
    color: var(--all-white);
    font-weight: 700;
}

/* Search Inputs and Selects - Clean flat inside container */
.all-search-select,
.all-search-input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--all-secondary);
    transition: background 0.2s ease;
    font-weight: 600;
    outline: none;
    border-radius: 0;
    height: 42px;
    box-sizing: border-box;
}

/* Custom Select Dropdown arrow */
.all-search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23205B86' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    background-color: transparent;
    padding-right: 26px;
    font-weight: 600;
    color: var(--all-secondary);
}

.all-search-select option {
    color: #2d2e32;
    font-weight: 500;
}

/* Multi-Select Checkbox Dropdown */
.all-multi-select {
    position: relative;
    width: 100%;
}

.all-ms-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    text-align: left;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 14px !important;
    height: 42px;
    box-sizing: border-box;
}

.all-ms-trigger .all-ms-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--all-secondary);
}

.all-ms-trigger .all-ms-arrow {
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-multi-select.open .all-ms-trigger .all-ms-arrow {
    transform: rotate(180deg);
}

.all-multi-select.open .all-ms-trigger {
    background-color: rgba(33, 117, 242, 0.04) !important;
    box-shadow: none;
}

.all-ms-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    z-index: 9999;
    padding: 8px 0;
    animation: allMsSlideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes allMsSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.all-multi-select.open .all-ms-dropdown {
    display: block;
}

.all-ms-search {
    width: calc(100% - 20px);
    margin: 6px 10px 8px;
    padding: 9px 12px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    background: #f7f8fa;
    transition: all 0.2s;
}

.all-ms-search:focus {
    border-color: var(--all-bright-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 117, 242, 0.08);
}

.all-ms-options {
    max-height: 230px;
    overflow-y: auto;
}

.all-ms-options::-webkit-scrollbar {
    width: 6px;
}

.all-ms-options::-webkit-scrollbar-track {
    background: transparent;
}

.all-ms-options::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.all-ms-options::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.all-ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13.5px;
    color: #333;
    transition: all 0.15s;
    white-space: nowrap;
}

.all-ms-option:hover {
    background: linear-gradient(135deg, rgba(33,117,242,0.06) 0%, rgba(33,117,242,0.03) 100%);
}

.all-ms-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #2075F2;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    border-radius: 4px;
}

.all-ms-option span {
    flex: 1;
    font-weight: 500;
}

.all-ms-option input[type="checkbox"]:checked + span {
    color: #2075F2;
    font-weight: 600;
}

/* Input Placeholders - Subtle */
.all-search-input::placeholder {
    color: #6B7280;
    font-weight: 400;
}

/* Number inputs - Ensure visibility */
input[type="number"].all-search-input {
    color: var(--all-dark-grey);
    font-weight: 600;
}

input[type="number"].all-search-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* Focus/Hover States */
.all-search-input:focus,
.all-search-select:focus {
    outline: none;
    background-color: #f0f5ff;
    border: none;
    box-shadow: none;
}

.all-search-select:hover,
.all-ms-trigger:hover {
    background-color: #f5f7fa !important;
}

/* Search Action Buttons */
.all-search-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 4px 0 8px;
    align-items: center;
}

/* Button Styles */
.all-btn-search,
.all-btn-reset {
    padding: 0 28px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* SEARCH Button - Solid brand blue */
.all-btn-search {
    background: #2175F2 !important;
    background-color: #2175F2 !important;
    color: #ffffff !important;
    border: none !important;
    min-width: 100px !important;
    box-shadow: none !important;
}

.all-btn-search:hover,
.all-btn-search:focus {
    background: #1a65d4 !important;
    background-color: #1a65d4 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.all-btn-search:active {
    background: #1558b8 !important;
    background-color: #1558b8 !important;
    color: #ffffff !important;
}

/* RESET Button - Outline style */
.all-btn-reset {
    background: transparent !important;
    background-color: transparent !important;
    color: #205B86 !important;
    border: 1px solid #d0d5da !important;
    min-width: 80px !important;
    box-shadow: none !important;
}

.all-btn-reset:hover,
.all-btn-reset:focus {
    background: #f5f7fa !important;
    background-color: #f5f7fa !important;
    border-color: #205B86 !important;
    color: #205B86 !important;
    transform: none !important;
    box-shadow: none !important;
}

.all-btn-reset:active {
    background: #eef1f4 !important;
    background-color: #eef1f4 !important;
    color: #205B86 !important;
}

/* Responsive: Tablet */
@media (max-width: 1199px) and (min-width: 769px) {
    .all-filter-bar.all-modern-search,
    .all-standalone-search .all-filter-bar {
        padding: 5px 6px;
    }
    .all-search-select,
    .all-search-input {
        padding: 8px 10px;
        padding-right: 24px;
        font-size: 13px;
        height: 38px;
    }
    .all-search-select {
        background-position: right 8px center;
        background-size: 9px;
    }
    .all-ms-trigger {
        padding: 8px 10px !important;
        height: 38px;
    }
    .all-ms-trigger .all-ms-label {
        font-size: 12px;
    }
    .all-btn-search,
    .all-btn-reset {
        padding: 8px 18px;
        font-size: 12px;
        height: 34px;
        min-width: 70px;
    }
}

/* Responsive: Mobile (stack vertically) */
@media (max-width: 768px) {
    /* CRITICAL: Hide desktop search wrappers on mobile */
    .all-desktop-search-wrapper,
    .all-desktop-filter-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .all-filter-bar.all-modern-search,
    .all-desktop-search-wrapper .all-filter-bar {
        border-radius: 16px;
        padding: 16px;
    }
    
    /* Standalone search - stack vertically on mobile (desktop only) */
    .all-desktop-search-wrapper .all-search-fields {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .all-desktop-search-wrapper .all-search-field {
        width: 100%;
        padding-right: 0 !important;
        margin-right: 0 !important;
        border-right: none !important;
    }
    
    .all-archive-filter .all-search-fields {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 16px;
    }

    .all-archive-filter .col-span-2 { grid-column: 1 / -1; }
    .all-archive-filter .col-span-3 { grid-column: 1 / -1; }
    .all-archive-filter .col-span-4 { grid-column: 1 / -1; }
    
    .all-search-field {
        width: 100%;
        border-bottom: none;
    }
    
    .all-search-field:last-of-type {
        border-bottom: none;
    }
    
    .all-search-field::after {
        display: none;
    }
    
    /* Better mobile segment controls */
    .all-segment {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .all-segment-item {
        padding: 14px 12px;
        font-size: 14px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .all-segment-item span {
        font-size: 14px;
    }
    
    /* Field labels more prominent on mobile */
    .all-field-label {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--all-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .all-search-select,
    .all-search-input {
        padding: 14px 12px;
        font-size: 15px;
        color: var(--all-text);
        font-weight: 500;
        min-height: 48px;
    }
    
    /* Top search bar on mobile */
    .all-top-search input {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
    
    .all-search-actions {
        width: 100%;
        flex-direction: column;
        padding-left: 0;
        padding-top: 16px;
        gap: 12px;
    }
    
    .all-btn-search,
    .all-btn-reset {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        font-weight: 700;
        min-height: 52px;
    }
    
    /* Stack listings grid to single column on mobile */
    .all-listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Legacy button support */
.all-btn-primary,
.all-btn-secondary {
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-btn-primary {
    background: var(--all-secondary);
    color: var(--all-white);
}

.all-btn-primary:hover {
    background: var(--all-bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 117, 242, 0.3);
}

.all-btn-secondary {
    background: var(--all-grey);
    color: var(--all-secondary);
}

.all-btn-secondary:hover {
    background: var(--all-light-grey);
    border-color: var(--all-secondary);
}

/* ============================================
   Listings Grid
   ============================================ */
.all-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ============================================
   Centralized Listing Card Design
   ============================================ */

.all-listing-card {
    background: var(--all-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Force remove ALL link styling in cards */
.all-listing-card a,
.all-listing-card a:hover,
.all-listing-card a:focus,
.all-listing-card a:active,
.all-listing-card a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
}

.all-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(32, 91, 134, 0.2);
}

.all-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.all-card-link *,
.all-card-link a,
.all-listing-card a,
.all-listing-card * {
    text-decoration: none !important;
}

/* Card Image Section */
.all-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--all-grey);
}

.all-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.all-listing-card:hover .all-card-image img {
    transform: scale(1.05);
}

/* Status Badge - Angled Banner across image */
.all-status-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    width: 150px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--all-white);
    background: #205b86;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* SOLD Badge - Red angled banner */
.all-status-badge.sold {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.4);
}

/* Pending Badge */
.all-status-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.all-status-badge.for-lease {
    background: linear-gradient(135deg, #2d7a3e 0%, #166534 100%);
    box-shadow: 0 3px 10px rgba(45, 122, 62, 0.4);
}

/* Land Type Badge (Bottom Left) */
.all-type-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--all-white);
    color: var(--all-secondary);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Price Section - Full Width Blue Bar */
.all-card-price {
    background: var(--all-bright-blue);
    color: var(--all-white);
    padding: 12px 16px;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
}

/* Card Content Section */
.all-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.all-card-mls {
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: none !important;
}

.all-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--all-dark-grey);
    text-decoration: none !important;
    border-bottom: none !important;
}

.all-card-address {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Broker Section */
.all-card-broker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.all-broker-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-broker-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.all-broker-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.all-broker-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--all-secondary);
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1.2;
}

.all-broker-name a,
.all-broker-name * {
    text-decoration: none !important;
    border-bottom: none !important;
}

.all-broker-right {
    flex-shrink: 0;
}

.all-broker-logo {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
}

/* READ MORE Button - Brand Blue */
.all-btn-read-more {
    display: inline-block;
    background: var(--all-secondary);
    color: var(--all-white);
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.all-btn-read-more:hover {
    background: var(--all-bright-blue);
    color: var(--all-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 117, 242, 0.3);
}

/* ============================================
   Pagination - Beautiful Brand Design
   ============================================ */
.all-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    padding: 20px;
}

.all-pagination .page-numbers {
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--all-white);
    color: var(--all-text);
    border: 2px solid var(--all-light-grey);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.all-pagination .page-numbers:hover {
    background: var(--all-grey);
    border-color: var(--all-bright-blue);
    color: var(--all-bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 117, 242, 0.2);
}

.all-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--all-bright-blue) 0%, var(--all-secondary) 100%);
    color: var(--all-white);
    border: none;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(33, 117, 242, 0.3);
}

.all-pagination .page-numbers.prev,
.all-pagination .page-numbers.next {
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    background: var(--all-secondary);
    color: var(--all-white);
    border: none;
}

.all-pagination .page-numbers.prev:hover,
.all-pagination .page-numbers.next:hover {
    background: var(--all-bright-blue);
    color: var(--all-white);
}

.all-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
    color: var(--all-light-blue);
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .all-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .all-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .all-pagination .page-numbers.prev,
    .all-pagination .page-numbers.next {
        padding: 0 16px;
        font-size: 12px;
    }
}

/* ============================================
   Loading Indicator
   ============================================ */
.all-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.all-spinner {
    border: 4px solid var(--all-light-gray);
    border-top: 4px solid #205B86;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-listings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--all-medium-gray);
    font-size: 18px;
}

/* ============================================
   Single Listing Page
   ============================================ */
.all-single-listing {
    margin: 0;
    padding: 0;
}

.all-hero-section {
    background: #205B86;
    padding: 60px 20px;
    color: var(--all-white);
}

.all-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.all-listing-category-label,
.all-price-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.all-listing-category {
    font-size: 42px;
    margin: 0 0 40px 0;
    font-weight: 700;
}

.all-listing-price-large {
    font-size: 36px;
    font-weight: 700;
}

.all-hero-right img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.all-listing-details-wrapper {
    background: var(--all-white);
}

.all-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.all-featured-images {
    margin-bottom: 50px;
}

.all-featured-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Gallery Section */
.all-gallery-section {
    margin-bottom: 50px;
}

.all-gallery-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* 1 image - full width */
.all-gallery-count-1 {
    grid-template-columns: 1fr;
}

/* 2 images - two columns */
.all-gallery-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 images - three columns */
.all-gallery-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.all-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--all-grey);
}

.all-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    min-height: 300px;
}

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

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
    .all-gallery-count-2,
    .all-gallery-count-3 {
        grid-template-columns: 1fr;
    }
    
    .all-gallery-item img {
        min-height: 250px;
    }
}

.all-section-title {
    color: #205B86;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.all-info-section,
.all-address-section,
.all-mls-section {
    margin-bottom: 40px;
}

.all-info-content {
    color: var(--all-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.all-address-content {
    color: var(--all-secondary);
    font-size: 18px;
    line-height: 1.6;
}

.all-mls-id {
    color: var(--all-accent);
    font-size: 24px;
    font-weight: 700;
}

.all-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.all-detail-item {
    background: var(--all-light-gray);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.all-detail-item strong {
    color: #205B86;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-detail-item span {
    color: var(--all-secondary);
    font-size: 18px;
}

.all-contact-cta {
    background: var(--all-light-blue);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 50px;
}

.all-contact-cta h3 {
    color: #205B86;
    font-size: 24px;
    margin: 0 0 20px 0;
}

.all-btn-contact {
    display: inline-block;
    background: var(--all-secondary);
    color: var(--all-white);
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-btn-contact:hover {
    background: #2075F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 117, 242, 0.3);
}

.all-map-section {
    margin-bottom: 50px;
}

.all-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.all-broker-section {
    background: var(--all-light-gray);
    padding: 40px;
    border-radius: 8px;
}

.all-broker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.all-broker-label {
    color: #205B86;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.all-broker-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--all-secondary);
    margin-bottom: 10px;
}

.all-broker-agent {
    font-size: 18px;
    color: #205B86;
}

.all-broker-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.all-broker-phone,
.all-broker-email {
    font-size: 18px;
    color: var(--all-secondary);
}

/* ============================================
   ANIMATIONS - Smooth & Beautiful
   ============================================ */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Listing Cards Grid - Staggered Fade In */
.all-listings-grid {
    animation: fadeIn 0.6s ease-out;
}

.all-listing-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Stagger delay for cards (first 12 cards) */
.all-listing-card:nth-child(1) { animation-delay: 0.1s; }
.all-listing-card:nth-child(2) { animation-delay: 0.15s; }
.all-listing-card:nth-child(3) { animation-delay: 0.2s; }
.all-listing-card:nth-child(4) { animation-delay: 0.25s; }
.all-listing-card:nth-child(5) { animation-delay: 0.3s; }
.all-listing-card:nth-child(6) { animation-delay: 0.35s; }
.all-listing-card:nth-child(7) { animation-delay: 0.4s; }
.all-listing-card:nth-child(8) { animation-delay: 0.45s; }
.all-listing-card:nth-child(9) { animation-delay: 0.5s; }
.all-listing-card:nth-child(10) { animation-delay: 0.55s; }
.all-listing-card:nth-child(11) { animation-delay: 0.6s; }
.all-listing-card:nth-child(12) { animation-delay: 0.65s; }

/* Filter Bar Animation */
.all-filter-bar {
    animation: fadeInUp 0.5s ease-out;
}

/* Pagination Animation */
.all-pagination {
    animation: fadeInUp 0.7s ease-out 0.3s backwards;
}

.all-pagination .page-numbers {
    animation: scaleIn 0.4s ease-out backwards;
}

.all-pagination .page-numbers:nth-child(1) { animation-delay: 0.1s; }
.all-pagination .page-numbers:nth-child(2) { animation-delay: 0.15s; }
.all-pagination .page-numbers:nth-child(3) { animation-delay: 0.2s; }
.all-pagination .page-numbers:nth-child(4) { animation-delay: 0.25s; }
.all-pagination .page-numbers:nth-child(5) { animation-delay: 0.3s; }
.all-pagination .page-numbers:nth-child(6) { animation-delay: 0.35s; }
.all-pagination .page-numbers:nth-child(7) { animation-delay: 0.4s; }

/* ============================================
   LISTING DETAILS PAGE ANIMATIONS
   ============================================ */

/* Hero Section - Immediate animations (above fold) */
.all-listing-detail {
    animation: fadeIn 0.5s ease-out;
}

.all-hero-section {
    animation: fadeInUp 0.6s ease-out;
}

.all-hero-image {
    animation: scaleIn 0.8s ease-out;
}

.all-hero-content {
    animation: fadeInUp 0.7s ease-out 0.2s backwards;
}

.all-listing-category {
    animation: slideInLeft 0.6s ease-out 0.3s backwards;
}

.all-listing-price-large {
    animation: slideInRight 0.6s ease-out 0.3s backwards;
}

.all-listing-title-large {
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.all-listing-location-large {
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

/* Scroll-triggered animations - Wait for scroll */
.all-scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

.all-scroll-animate.all-animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Details Grid - Scroll triggered */
.all-details-section.all-scroll-animate.all-animate-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

.all-detail-item.all-scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

.all-detail-item.all-scroll-animate.all-animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.all-detail-item.all-animate-in:nth-child(1) { animation-delay: 0s; }
.all-detail-item.all-animate-in:nth-child(2) { animation-delay: 0.1s; }
.all-detail-item.all-animate-in:nth-child(3) { animation-delay: 0.2s; }
.all-detail-item.all-animate-in:nth-child(4) { animation-delay: 0.3s; }
.all-detail-item.all-animate-in:nth-child(5) { animation-delay: 0.4s; }
.all-detail-item.all-animate-in:nth-child(6) { animation-delay: 0.5s; }

/* Description Section - Scroll triggered */
.all-description-section.all-scroll-animate.all-animate-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

/* Map Section - Scroll triggered */
.all-map-section.all-scroll-animate.all-animate-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

.all-map-container {
    animation: scaleIn 0.8s ease-out 0.2s backwards;
}

/* Broker Section - Scroll triggered */
.all-broker-section.all-scroll-animate.all-animate-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

.all-broker-info {
    animation: slideInLeft 0.6s ease-out 0.2s backwards;
}

.all-broker-contact {
    animation: slideInRight 0.6s ease-out 0.2s backwards;
}

/* Back Button Animation */
.all-back-button {
    animation: fadeIn 0.5s ease-out 0.2s backwards;
}

/* Enhanced Hover Animations */
.all-listing-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent animation conflict - only apply pulse if entrance animation is done */
.all-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(32, 91, 134, 0.2);
}

/* Subtle pulse effect without animation property (avoids conflict) */
@keyframes cardHoverPulse {
    0%, 100% {
        transform: translateY(-5px) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

.all-btn-read-more,
.all-btn-search,
.all-btn-reset,
.all-back-button {
    position: relative;
    overflow: hidden;
}

.all-btn-read-more::before,
.all-btn-search::before,
.all-btn-reset::before,
.all-back-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.all-btn-read-more:hover::before,
.all-btn-search:hover::before,
.all-btn-reset:hover::before,
.all-back-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Image Zoom Animation */
.all-listing-image,
.all-hero-image {
    overflow: hidden;
}

.all-listing-image img,
.all-hero-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-listing-card:hover .all-card-image img,
.all-hero-image:hover img {
    transform: scale(1.05);
}

/* Price Bar Animation */
.all-card-price {
    animation: slideInLeft 0.5s ease-out 0.3s backwards;
}

/* Loading State Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.all-listing-card.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        90deg,
        var(--all-grey) 0%,
        var(--all-white) 50%,
        var(--all-grey) 100%
    );
    background-size: 1000px 100%;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Fade-in on Scroll (for future JS implementation) */
.all-fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.all-fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Featured Listings Carousel
   ============================================ */

.all-featured-carousel-wrapper {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 24px;
    position: relative;
}

.all-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 -20px;
}

.all-carousel-prev,
.all-carousel-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--all-light-grey);
    background: var(--all-white);
    color: var(--all-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.all-carousel-prev:hover,
.all-carousel-next:hover {
    background: #2075F2;
    color: #fff;
    border-color: #2075F2;
    transform: scale(1.1);
}

.all-carousel-prev:disabled,
.all-carousel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.all-carousel-prev:disabled:hover,
.all-carousel-next:disabled:hover {
    background: var(--all-white);
    color: var(--all-secondary);
    border-color: var(--all-light-grey);
    transform: scale(1);
}

.all-carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.all-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.all-carousel-item {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

/* Carousel uses existing listing card styles */

/* Carousel Dots */
.all-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.all-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--all-light-grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-carousel-dot.active {
    background: var(--all-bright-blue);
    width: 24px;
    border-radius: 5px;
}

/* Tablet - 2 items visible */
@media (max-width: 1024px) and (min-width: 769px) {
    .all-carousel-item {
        flex: 0 0 calc(50% - 12px);
    }
}

/* Mobile - 1 item visible */
@media (max-width: 768px) {
    .all-carousel-item {
        flex: 0 0 100%;
    }
    
    .all-carousel-track {
        gap: 16px;
    }
    
    .all-carousel-prev,
    .all-carousel-next {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Single Post / Blog Post Template
   ============================================ */

.all-single-post {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.all-post-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 0;
}

.all-post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.all-post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-post-hero-content {
    text-align: center;
    color: var(--all-white);
    padding: 0 20px;
    max-width: 900px;
}

.all-post-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--all-white);
}

.all-post-date {
    font-size: 16px;
    font-weight: 400;
    color: var(--all-white);
    opacity: 0.95;
}

/* Social Share Section */
.all-post-share {
    background: var(--all-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--all-grey);
}

.all-post-share .all-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.all-share-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--all-dark-grey);
}

.all-share-buttons {
    display: flex;
    gap: 12px;
}

.all-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--all-bright-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.all-share-btn:hover {
    color: var(--all-secondary);
    transform: scale(1.1);
}

/* Post Content */
.all-post-content {
    background: var(--all-white);
    padding: 60px 0;
}

.all-post-content .all-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.all-post-content-inner {
    font-size: 16px;
    line-height: 1.8;
    color: var(--all-text);
}

.all-post-content-inner h1,
.all-post-content-inner h2,
.all-post-content-inner h3,
.all-post-content-inner h4,
.all-post-content-inner h5,
.all-post-content-inner h6 {
    color: var(--all-dark-grey);
    font-weight: 700;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.all-post-content-inner h1 { font-size: 36px; }
.all-post-content-inner h2 { font-size: 30px; }
.all-post-content-inner h3 { font-size: 24px; }
.all-post-content-inner h4 { font-size: 20px; }

.all-post-content-inner p {
    margin: 0 0 20px 0;
}

.all-post-content-inner a {
    color: var(--all-bright-blue);
    text-decoration: underline;
}

.all-post-content-inner a:hover {
    color: var(--all-secondary);
}

.all-post-content-inner ul,
.all-post-content-inner ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.all-post-content-inner li {
    margin-bottom: 8px;
}

.all-post-content-inner img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 8px;
}

.all-post-content-inner blockquote {
    border-left: 4px solid var(--all-bright-blue);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #6B7280;
}

/* Responsive - Blog Post */
@media (max-width: 768px) {
    .all-post-hero {
        height: 400px;
    }
    
    .all-post-title {
        font-size: 32px;
    }
    
    .all-post-date {
        font-size: 14px;
    }
    
    .all-post-share .all-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .all-share-btn {
        width: 36px;
        height: 36px;
    }
    
    .all-post-content {
        padding: 40px 0;
    }
    
    .all-post-content-inner h1 { font-size: 28px; }
    .all-post-content-inner h2 { font-size: 24px; }
    .all-post-content-inner h3 { font-size: 20px; }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .all-filter-row {
        grid-template-columns: 1fr;
    }
    
    .all-listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .all-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .all-listing-category {
        font-size: 32px;
    }
    
    .all-listing-price-large {
        font-size: 28px;
    }
    
    .all-broker-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .all-hero-section h1 {
        font-size: 32px;
    }
    
    .all-filter-bar {
        padding: 20px;
    }
    
    .all-filter-controls {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Card Adjustments */
    .all-card-price {
        font-size: 20px;
        padding: 10px 12px;
    }
    
    .all-card-content {
        padding: 12px;
    }
    
    .all-card-broker {
        padding: 10px 12px;
    }
    
    .all-broker-logo {
        max-width: 60px;
        max-height: 30px;
    }
    
    .all-broker-name {
        font-size: 10px;
    }
    
    /* Reduce animation delays on mobile for faster loading feel */
    .all-listing-card:nth-child(n) {
        animation-delay: 0.05s !important;
    }
    
    .all-detail-item:nth-child(n) {
        animation-delay: 0.3s !important;
    }
    
    .all-pagination .page-numbers:nth-child(n) {
        animation-delay: 0.05s !important;
    }
}

/* ============================================
   Sort Bar - v3.6.0
   ============================================ */
.all-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--all-white);
    border-radius: 10px;
    border: 1px solid var(--all-light-grey);
    box-shadow: 0 2px 8px rgba(32, 91, 134, 0.06);
}

.all-sort-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--all-text);
    margin-right: 4px;
    white-space: nowrap;
}

.all-sort-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--all-light-grey);
    border-radius: 20px;
    background: var(--all-white);
    color: var(--all-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.all-sort-btn:hover {
    border-color: var(--all-secondary);
    color: var(--all-secondary);
    background: rgba(32, 91, 134, 0.05);
}

.all-sort-btn.active {
    background: var(--all-secondary);
    border-color: var(--all-secondary);
    color: var(--all-white);
    font-weight: 600;
}

/* Hero image enlarge button - always visible */
.all-hero-right {
    position: relative;
}

.all-hero-right .all-gallery-enlarge-btn {
    opacity: 1;
}

/* ============================================
   Gallery Enlarge Button - v3.6.0
   ============================================ */
.all-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.all-gallery-item img {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.all-gallery-enlarge-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--all-secondary);
    z-index: 2;
}

.all-gallery-item:hover .all-gallery-enlarge-btn {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   Lightbox - v3.6.0
   ============================================ */
.all-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.all-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 92vh;
    gap: 12px;
}

.all-lightbox-img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
    display: block;
}

.all-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.all-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.all-lightbox-prev,
.all-lightbox-next {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.all-lightbox-prev:hover,
.all-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.all-lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ============================================
   Single Listing Title Header - v3.6.0
   ============================================ */
.all-listing-title-header {
    font-size: 28px;
    font-weight: 700;
    color: var(--all-white);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.all-listing-status-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.all-listing-status-badge.all-status-for-sale {
    background: rgba(45, 122, 62, 0.9);
    color: #fff;
}

.all-listing-status-badge.all-status-sold {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.all-listing-status-badge.all-status-on-hold {
    background: rgba(255, 165, 0, 0.9);
    color: #fff;
}

.all-listing-status-badge.all-status-withdrawn {
    background: rgba(108, 117, 125, 0.9);
    color: #fff;
}

/* Info content allows HTML/bullets */
.all-info-content ul,
.all-info-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

.all-info-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.all-info-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .all-sort-bar {
        gap: 6px;
        padding: 10px 12px;
    }
    .all-sort-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .all-lightbox-img {
        max-width: 95vw;
    }
    .all-lightbox-prev,
    .all-lightbox-next {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }
    .all-listing-title-header {
        font-size: 20px;
    }
}

/* ============================================
   MOBILE UI OVERHAUL - v3.7.0
   Desktop remains completely untouched.
   ============================================ */

/* Show/hide wrappers: Desktop shows desktop, hides mobile */
.all-mobile-search-wrapper,
.all-mobile-listings-ui {
    display: none;
}
.all-desktop-search-wrapper,
.all-desktop-filter-wrapper {
    display: block;
}

/* Hide mobile-only card elements on desktop + heart removed entirely */
.all-card-heart {
    display: none !important;
}
.all-card-acreage {
    display: none;
}

/* Hide mobile single listing wrapper on desktop */
.all-mobile-single-wrapper {
    display: none;
}
.all-desktop-single-wrapper {
    display: block;
}

@media (max-width: 768px) {
    .all-mobile-search-wrapper,
    .all-mobile-listings-ui {
        display: block !important;
    }
    /* Hide desktop search — nuclear specificity to defeat any theme overrides */
    .all-desktop-search-wrapper,
    .all-desktop-filter-wrapper,
    div.all-desktop-search-wrapper,
    div.all-desktop-filter-wrapper,
    .all-standalone-search.all-desktop-search-wrapper,
    .all-standalone-search.all-desktop-search-wrapper .all-filter-bar,
    .all-standalone-search.all-desktop-search-wrapper .all-search-container,
    .all-standalone-search.all-desktop-search-wrapper .all-search-fields,
    .all-standalone-search.all-desktop-search-wrapper .all-search-actions {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        opacity: 0 !important;
    }

    /* Hide desktop sort bar on mobile */
    .all-sort-bar#all-sort-bar {
        display: none !important;
    }

    /* Shrink listings wrapper padding on mobile */
    .all-listings-wrapper {
        padding: 0 0 80px 0;
    }

    /* ---- Shrink Listings hero / page header on mobile ---- */
    /* Plugin hero section */
    .all-hero-section {
        padding: 24px 16px !important;
    }
    .all-hero-section h1,
    .all-hero-section .all-hero-title {
        font-size: 22px !important;
        margin: 0 !important;
    }
    /* Theme page header on listings page - added via JS class on body */
    body.all-has-listings .page-header,
    body.all-has-listings .entry-header,
    body.all-has-listings .wp-block-cover,
    body.all-has-listings [class*="page-header"],
    body.all-has-listings [class*="page-banner"],
    body.all-has-listings [class*="page-title-area"],
    body.all-has-listings .hero-section {
        min-height: auto !important;
        max-height: 120px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        overflow: hidden;
    }
    body.all-has-listings .page-header h1,
    body.all-has-listings .entry-header h1,
    body.all-has-listings .wp-block-cover h1,
    body.all-has-listings [class*="page-header"] h1,
    body.all-has-listings [class*="page-banner"] h1,
    body.all-has-listings .hero-section h1,
    body.all-has-listings .entry-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    /* ---- HOME: Mobile Search Bar (matches Image 2 reference) ---- */
    .all-mobile-search-wrapper {
        position: relative;
    }
    .all-mobile-search-bar {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 0 20px 20px;
    }

    /* Search input wrapper */
    .all-mobile-search-input-wrap {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }

    /* Search icon button — override custom CSS [type=button] rules */
    button.all-mobile-search-icon-btn,
    a.all-mobile-search-icon-btn,
    button.all-mobile-search-icon-btn:hover,
    a.all-mobile-search-icon-btn:hover,
    button.all-mobile-search-icon-btn:focus,
    a.all-mobile-search-icon-btn:focus,
    button.all-mobile-search-icon-btn:active,
    a.all-mobile-search-icon-btn:active {
        position: absolute !important;
        right: 6px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        padding: 0 !important;
        color: #2075F2 !important;
        box-shadow: none !important;
        outline: none !important;
        text-decoration: none !important;
        transition: background 0.2s;
    }
    button.all-mobile-search-icon-btn:active,
    a.all-mobile-search-icon-btn:active {
        background: rgba(32, 117, 242, 0.1) !important;
    }

    /* Search input — override custom CSS input[type=text] rules */
    input.all-mobile-search-input,
    input[type="text"].all-mobile-search-input,
    .all-mobile-search-input-wrap input.all-mobile-search-input {
        width: 100% !important;
        padding: 16px 56px 16px 22px !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        color: #222 !important;
        -webkit-text-fill-color: #222 !important;
        background: rgba(255,255,255,0.92) !important;
        outline: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        transition: box-shadow 0.2s;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    input.all-mobile-search-input:focus {
        box-shadow: 0 2px 16px rgba(32, 117, 242, 0.18) !important;
    }
    input.all-mobile-search-input::placeholder {
        color: #999 !important;
        -webkit-text-fill-color: #999 !important;
        font-weight: 400 !important;
        opacity: 1 !important;
    }

    /* Filters button — override custom CSS [type=button] rules */
    .all-mobile-search-actions {
        display: flex;
        gap: 10px;
    }
    button.all-mobile-filter-toggle,
    button.all-mobile-filter-toggle:hover,
    button.all-mobile-filter-toggle:focus {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 22px !important;
        border: 1.5px solid #8CB0CA !important;
        border-radius: 24px !important;
        background: #fff !important;
        color: #2075F2 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(32,91,134,0.10) !important;
        line-height: 1.4 !important;
        transition: all 0.2s;
    }
    button.all-mobile-filter-toggle:active {
        background: #2075F2 !important;
        color: #fff !important;
    }
    button.all-mobile-filter-toggle:active svg {
        stroke: #fff !important;
    }

    /* Category pills removed */
    .all-mobile-category-pills {
        display: none !important;
    }

    /* SEARCH button removed */
    .all-mobile-search-bottom {
        display: none !important;
    }

    /* ---- LISTINGS: Mobile Sticky Bar ---- */
    .all-mobile-sticky-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background: var(--all-white);
        border-bottom: 1px solid var(--all-light-grey);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .all-mobile-sticky-search {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
    }

    /* Search icon button — positioned at RIGHT end of input */
    .all-mobile-sticky-search-btn {
        position: absolute;
        right: 4px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
    }

    .all-mobile-sticky-input {
        width: 100%;
        padding: 14px 48px 14px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 400;
        color: #222;
        background: rgba(255,255,255,0.92);
        outline: none;
        transition: border-color 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .all-mobile-sticky-input::placeholder {
        color: #999;
        font-weight: 400;
    }

    .all-mobile-sticky-input:focus {
        border-color: #2075F2;
        background: #fff;
    }

    .all-mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 11px 16px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: var(--all-white);
        color: var(--all-text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .all-mobile-filter-btn svg {
        stroke: #2075F2;
    }

    .all-mobile-filter-btn:active {
        background: var(--all-grey);
    }

    .all-mobile-filter-count {
        background: #2075F2;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
    }

    /* ---- Results Bar (mobile) ---- */
    .all-mobile-results-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: var(--all-grey);
        border-bottom: 1px solid var(--all-light-grey);
    }

    .all-mobile-result-count {
        font-size: 15px;
        font-weight: 800;
        color: var(--all-text);
    }

    .all-mobile-sort-chips {
        display: flex;
        gap: 6px;
    }

    .all-mobile-sort-chip {
        padding: 7px 14px;
        border: 2px solid var(--all-light-grey);
        border-radius: 18px;
        background: var(--all-white);
        color: var(--all-text);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
    }

    .all-mobile-sort-chip.active {
        background: #2075F2;
        border-color: #2075F2;
        color: #fff;
    }

    /* ---- Drawer / Bottom Sheet (shared by home + listings) ---- */
    .all-mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(32, 91, 134, 0.4);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .all-mobile-drawer-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .all-mobile-drawer,
    .all-mobile-filter-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: var(--all-white);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(32, 91, 134, 0.25);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }

    .all-mobile-drawer.open,
    .all-mobile-filter-drawer.open {
        transform: translateY(0);
    }

    .all-drawer-handle {
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--all-light-grey);
        margin: 10px auto 0;
    }

    .all-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px 12px;
        border-bottom: 1px solid var(--all-light-grey);
    }

    .all-drawer-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #205B86;
    }

    .all-drawer-close {
        width: 36px;
        height: 36px;
        border: none;
        background: var(--all-grey);
        border-radius: 50%;
        font-size: 22px;
        line-height: 1;
        color: #205B86;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .all-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .all-drawer-section {
        margin-bottom: 20px;
    }

    .all-drawer-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #205B86;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .all-drawer-select {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid var(--all-light-grey);
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        color: var(--all-text);
        background: var(--all-grey);
        outline: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23205B86' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 12px;
        min-height: 48px;
        transition: border-color 0.2s;
    }

    .all-drawer-select:focus {
        border-color: #2075F2;
        background-color: var(--all-white);
    }

    .all-drawer-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .all-drawer-row .all-drawer-select {
        flex: 1;
    }

    .all-drawer-divider {
        color: #205B86;
        font-weight: 600;
        font-size: 18px;
        flex-shrink: 0;
    }

    /* Drawer Multi-Select Checkbox Component */
    .all-drawer-multi-select {
        position: relative;
        width: 100%;
    }

    .all-drawer-ms-trigger {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        border: 2px solid var(--all-light-grey);
        border-radius: 12px;
        background: var(--all-grey);
        font-size: 15px;
        font-weight: 600;
        color: var(--all-secondary);
        cursor: pointer;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }

    .all-drawer-ms-trigger:focus,
    .all-drawer-multi-select.open .all-drawer-ms-trigger {
        border-color: #2075F2;
        background: var(--all-white);
    }

    .all-drawer-ms-trigger svg {
        flex-shrink: 0;
        transition: transform 0.25s;
    }

    .all-drawer-multi-select.open .all-drawer-ms-trigger svg {
        transform: rotate(180deg);
    }

    .all-drawer-ms-label {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .all-drawer-ms-dropdown {
        display: none;
        margin-top: 6px;
        background: #fff;
        border: 1px solid #e0e4e8;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.10);
        max-height: 220px;
        overflow-y: auto;
        padding: 6px 0;
        z-index: 50;
    }

    .all-drawer-multi-select.open .all-drawer-ms-dropdown {
        display: block;
    }

    .all-drawer-ms-search {
        width: calc(100% - 20px);
        margin: 6px 10px 8px;
        padding: 10px 12px;
        border: 1.5px solid #e5e5e5;
        border-radius: 10px;
        font-size: 14px;
        outline: none;
        background: #f7f8fa;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }

    .all-drawer-ms-search:focus {
        border-color: #2075F2;
        background: #fff;
    }

    .all-drawer-ms-options {
        max-height: 180px;
        overflow-y: auto;
    }

    .all-drawer-ms-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: background 0.15s;
    }

    .all-drawer-ms-option:hover {
        background: rgba(33,117,242,0.06);
    }

    .all-drawer-ms-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #2075F2;
        cursor: pointer;
        flex-shrink: 0;
        margin: 0;
        border-radius: 4px;
    }

    .all-drawer-ms-option span {
        flex: 1;
        font-weight: 500;
    }

    .all-drawer-ms-option input[type="checkbox"]:checked + span {
        color: #2075F2;
        font-weight: 600;
    }

    .all-drawer-footer {
        display: flex;
        gap: 12px;
        padding: 16px 20px;
        border-top: 1px solid var(--all-light-grey);
        background: var(--all-white);
    }

    .all-drawer-reset {
        flex: 1;
        padding: 14px;
        border: 2px solid var(--all-light-grey);
        border-radius: 12px;
        background: var(--all-white);
        color: #205B86;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .all-drawer-reset:active {
        background: var(--all-grey);
    }

    .all-drawer-apply {
        flex: 2;
        padding: 14px;
        border: none;
        border-radius: 12px;
        background: #2075F2;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(32, 117, 242, 0.35);
        transition: all 0.2s;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .all-drawer-apply:active {
        transform: scale(0.97);
        background: #205B86;
    }

    /* ---- Selection Chips ---- */
    .all-mobile-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .all-chip {
        padding: 10px 18px;
        border: 2px solid var(--all-light-grey);
        border-radius: 24px;
        background: var(--all-white);
        color: var(--all-text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .all-chip.active {
        background: #205B86;
        border-color: #205B86;
        color: #fff;
    }

    .all-chip:active {
        transform: scale(0.95);
    }

    /* ---- Floating Map Button (brand blue) ---- */
    .all-mobile-map-btn {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 90;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        border: none;
        border-radius: 28px;
        background: #205B86;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 6px 24px rgba(32, 91, 134, 0.45);
        transition: all 0.2s;
    }

    .all-mobile-map-btn:active {
        transform: translateX(-50%) scale(0.95);
        background: #2075F2;
    }

    /* ---- Mobile Card Optimizations ---- */
    .all-listings-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 14px;
    }

    .all-listing-card {
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(32, 91, 134, 0.12);
        overflow: hidden;
    }

    .all-card-image {
        padding-top: 58%;
        border-radius: 14px 14px 0 0;
    }

    .all-card-price {
        font-size: 22px;
        font-weight: 800;
        padding: 10px 14px;
    }

    .all-card-content {
        padding: 10px 14px;
    }

    .all-card-title {
        font-size: 15px;
        font-weight: 700;
    }

    /* Mobile heart/save button on cards */
    .all-card-heart {
        display: flex;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        border: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(32, 91, 134, 0.2);
        z-index: 5;
        transition: transform 0.2s;
    }

    .all-card-heart:active {
        transform: scale(1.15);
    }

    .all-card-heart.saved {
        background: #2075F2;
    }

    .all-card-heart.saved svg {
        stroke: #fff;
        fill: #fff;
    }

    /* Land size display on mobile cards */
    .all-card-acreage {
        display: inline-block;
        font-size: 14px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
    }

    /* ============================================
       SINGLE LISTING PAGE - Mobile Redesign
       ============================================ */

    /* Hide desktop, show mobile */
    .all-mobile-single-wrapper { display: block; }
    .all-desktop-single-wrapper { display: none !important; }

    /* Zero out wrapper padding on single listing */
    .all-single-listing {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    .all-single-listing .all-mobile-single-wrapper {
        background: #fff;
    }

    /* Hide theme page header on single listing */
    body.single-listing .page-header,
    body.single-listing .entry-header,
    body.single-listing .wp-block-cover,
    body.single-listing [class*="page-header"],
    body.single-listing [class*="page-banner"],
    body.single-listing .hero-section,
    body.single-listing .elementor-section.page-header-section {
        display: none !important;
    }

    /* 1. Hero Image Carousel */
    .all-m-hero-carousel {
        position: relative;
        width: 100%;
        overflow: hidden;
        background: #1a1a1a;
        touch-action: pan-y pinch-zoom;
    }
    .all-m-hero-track {
        display: flex;
        width: 100%;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }
    .all-m-hero-slide {
        min-width: 100%;
        width: 100%;
        flex: 0 0 100%;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    .all-m-hero-slide img {
        width: 100%;
        height: 56vw;
        min-height: 240px;
        max-height: 380px;
        object-fit: cover;
        display: block;
        -webkit-user-drag: none;
        user-select: none;
    }
    .all-m-no-image {
        width: 100%;
        height: 56vw;
        min-height: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--all-grey);
        color: #888;
        font-size: 16px;
        font-weight: 500;
    }
    .all-m-hero-counter {
        position: absolute;
        bottom: 16px;
        right: 16px;
        background: rgba(0,0,0,0.55);
        color: #fff;
        padding: 5px 14px;
        border-radius: 14px;
        font-size: 13px;
        font-weight: 600;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .all-m-hero-badge {
        position: absolute;
        top: 16px;
        left: 16px;
        padding: 6px 16px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #fff;
        background: #205B86;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .all-m-hero-badge.all-status-for-sale { background: #205B86; }
    .all-m-hero-badge.all-status-sold { background: #b91c1c; }
    .all-m-hero-badge.all-status-pending { background: #d97706; color: #fff; }

    /* Dot indicators */
    .all-m-hero-dots {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
    }
    .all-m-hero-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255,255,255,0.45);
        transition: all 0.3s;
    }
    .all-m-hero-dot.active {
        background: #fff;
        width: 20px;
        border-radius: 4px;
    }

    /* 2. Price + Category Bar */
    .all-m-price-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        background: linear-gradient(135deg, #205B86 0%, #1a4d73 100%);
        color: #fff;
    }
    .all-m-price {
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }
    .all-m-category {
        background: rgba(255,255,255,0.18);
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    /* 3. Title + Location */
    .all-m-title-section {
        padding: 18px 16px 14px;
    }
    .all-m-title {
        font-size: 20px;
        font-weight: 800;
        color: var(--all-text);
        margin: 0 0 8px;
        line-height: 1.3;
    }
    .all-m-location {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #205B86;
        font-weight: 600;
        margin-bottom: 6px;
    }
    .all-m-location svg { flex-shrink: 0; }
    .all-m-mls {
        font-size: 13px;
        color: #999;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    /* 4. Quick Action Icons */
    .all-m-actions {
        display: flex;
        justify-content: center;
        gap: 0;
        padding: 0;
        border-top: 1px solid var(--all-light-grey);
        border-bottom: 1px solid var(--all-light-grey);
        background: var(--all-white);
    }
    .all-m-action-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 0 1 120px;
        min-width: 80px;
        min-height: 68px;
        border: none;
        background: none;
        color: #205B86;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.3px;
        cursor: pointer;
        text-decoration: none;
        padding: 12px 4px;
        transition: background 0.2s;
        position: relative;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }
    .all-m-action-btn svg {
        display: block;
        flex-shrink: 0;
    }
    .all-m-action-btn span {
        display: block;
        line-height: 1;
    }
    .all-m-action-btn + .all-m-action-btn {
        border-left: 1px solid var(--all-light-grey);
    }
    .all-m-action-btn:active {
        background: rgba(32, 117, 242, 0.08);
    }
    .all-m-action-btn.saved {
        color: #2075F2;
    }
    .all-m-action-btn.saved svg {
        fill: #2075F2;
        stroke: #2075F2;
    }

    /* 5. Key Specs */
    .all-m-specs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 0;
        background: var(--all-grey);
        border-bottom: 1px solid var(--all-light-grey);
    }
    .all-m-spec-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 16px 6px;
        border-right: 1px solid var(--all-light-grey);
        text-align: center;
    }
    .all-m-spec-item:last-child { border-right: none; }
    .all-m-spec-val {
        font-size: 12px;
        font-weight: 800;
        color: var(--all-text);
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    .all-m-spec-label {
        font-size: 9px;
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* 6. Content Sections (header + content, always visible) */
    .all-m-section {
        border-top: 8px solid var(--all-grey);
    }
    .all-m-section-heading {
        font-size: 15px;
        font-weight: 800;
        color: #205B86;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 18px 16px 0;
        margin: 0;
    }
    .all-m-section-content {
        padding: 12px 16px 20px;
    }
    /* Content text reset */
    .all-m-section-content,
    .all-m-section-content p,
    .all-m-section-content div,
    .all-m-section-content span {
        font-size: 14px;
        line-height: 1.75;
        color: #444;
    }
    .all-m-section-content p {
        margin: 0 0 12px;
    }
    .all-m-section-content p:last-child {
        margin-bottom: 0;
    }
    .all-m-section-content ul,
    .all-m-section-content ol {
        padding-left: 20px;
        margin: 0 0 12px;
    }
    .all-m-section-content li {
        font-size: 14px;
        line-height: 1.7;
        color: #444;
        margin-bottom: 4px;
    }

    /* Detail rows inside accordion */
    .all-m-detail-list { width: 100%; }
    .all-m-detail-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        gap: 12px;
    }
    .all-m-detail-row:last-child { border-bottom: none; }
    .all-m-detail-key {
        font-size: 14px;
        color: #777;
        font-weight: 500;
        flex-shrink: 0;
    }
    .all-m-detail-val {
        font-size: 14px;
        font-weight: 700;
        color: var(--all-text);
        text-align: right;
        word-break: break-word;
    }

    /* Media grid inside accordion */
    .all-m-media-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .all-m-media-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 18px 10px;
        background: var(--all-grey);
        border: 2px solid var(--all-light-grey);
        border-radius: 14px;
        color: #205B86;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.2s;
    }
    .all-m-media-btn:active {
        background: #205B86;
        border-color: #205B86;
        color: #fff;
    }
    .all-m-media-btn:active svg {
        stroke: #fff;
    }

    /* 7. Broker Card (compact) */
    .all-m-section-title {
        font-size: 15px;
        font-weight: 800;
        color: #205B86;
        margin: 0 0 14px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    .all-m-broker-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        background: var(--all-grey);
        border-radius: 16px;
        border: 1px solid var(--all-light-grey);
    }
    .all-m-broker-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(32,91,134,0.15);
    }
    .all-m-broker-info { flex: 1; min-width: 0; }
    .all-m-broker-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--all-text);
        line-height: 1.3;
    }
    .all-m-broker-title {
        font-size: 12px;
        color: #999;
        margin-top: 2px;
    }
    .all-m-broker-company {
        font-size: 12px;
        color: #205B86;
        font-weight: 700;
        margin-top: 2px;
    }
    .all-m-broker-logo {
        max-height: 32px;
        width: auto;
        flex-shrink: 0;
        opacity: 0.8;
    }

    /* 8. Map section (mobile) */
    .all-m-map-section {
        padding: 0 16px 24px;
    }
    .all-m-map-container {
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(32,91,134,0.12);
        border: 1px solid var(--all-light-grey);
    }
    .all-m-map-container iframe {
        display: block;
    }

    /* Bottom spacer */
    .all-m-bottom-spacer {
        height: 90px;
    }

    /* 9. Sticky Action Bar */
    .all-m-sticky-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        display: flex;
        gap: 10px;
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,0.97);
        border-top: 1px solid var(--all-light-grey);
        box-shadow: 0 -4px 24px rgba(32,91,134,0.12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .all-m-sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 15px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        border: none;
        transition: transform 0.15s, opacity 0.15s;
        letter-spacing: 0.3px;
    }
    .all-m-sticky-btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    .all-m-btn-call {
        background: #2075F2;
        color: #fff;
        box-shadow: 0 4px 14px rgba(32,117,242,0.3);
    }
    .all-m-btn-message {
        background: #205B86;
        color: #fff;
        box-shadow: 0 4px 14px rgba(32,91,134,0.3);
    }

    /* ---- Featured Carousel on mobile (1 item visible, swipeable) ---- */
    .all-featured-carousel-wrapper {
        padding: 0 14px;
        margin: 30px auto;
    }

    .all-carousel-nav {
        display: flex !important;
    }

    .all-carousel-prev,
    .all-carousel-next {
        width: 36px !important;
        height: 36px !important;
    }

    .all-carousel-dots {
        display: flex !important;
    }

    .all-carousel-container {
        overflow: hidden;
    }

    .all-carousel-track {
        display: flex !important;
        gap: 0 !important;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform;
    }

    .all-carousel-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   GLOBAL: Kill ALL pink/magenta theme accent.
   Replace with brand blue everywhere.
   All selectors use body prefix for max specificity.
   ============================================ */

/* --- 1. CSS Variables --- */
:root {
    --e-global-color-accent: #2075F2 !important;
    --e-global-color-secondary: #205B86 !important;
    --swiper-theme-color: #2075F2 !important;
    --wp--preset--color--vivid-red: #2075F2 !important;
    --wp--preset--color--luminous-vivid-amber: #2075F2 !important;
}

/* --- 2. Nuclear: override theme's raw button/input selectors inside plugin wrappers --- */
body .all-listings-wrapper button:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-listings-wrapper button[type="button"]:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-listings-wrapper input[type="submit"],
body .all-standalone-search button:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-standalone-search button[type="button"]:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-mobile-search-wrapper button:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-mobile-search-wrapper button[type="button"]:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-mobile-drawer button:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-mobile-drawer button[type="button"]:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-mobile-filter-drawer button:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-mobile-filter-drawer button[type="button"]:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-single-listing button:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-single-listing button[type="button"]:not(.all-ms-trigger):not(.all-drawer-ms-trigger),
body .all-single-listing a.all-m-action-btn,
body .all-single-listing a.all-m-media-btn,
body .all-single-listing a.all-m-sticky-btn {
    border-color: #205B86 !important;
    color: #205B86 !important;
    background: #fff !important;
}

/* --- 2b. Nuclear: Force brand colors on ALL multi-select trigger buttons (kill theme pink) --- */
body button.all-ms-trigger,
body button.all-ms-trigger:hover,
body button.all-ms-trigger:focus,
body button.all-ms-trigger:active,
body button.all-ms-trigger:visited,
body .all-ms-trigger,
body .all-ms-trigger:hover,
body .all-ms-trigger:focus,
body .all-ms-trigger:active {
    background: transparent !important;
    border: none !important;
    color: #205B86 !important;
    box-shadow: none !important;
    outline: none !important;
}
body button.all-drawer-ms-trigger,
body button.all-drawer-ms-trigger:hover,
body button.all-drawer-ms-trigger:focus,
body button.all-drawer-ms-trigger:active,
body button.all-drawer-ms-trigger:visited,
body .all-drawer-ms-trigger,
body .all-drawer-ms-trigger:hover,
body .all-drawer-ms-trigger:focus,
body .all-drawer-ms-trigger:active,
body .all-mobile-drawer button.all-drawer-ms-trigger,
body .all-mobile-filter-drawer button.all-drawer-ms-trigger,
body .all-mobile-drawer .all-drawer-ms-trigger,
body .all-mobile-filter-drawer .all-drawer-ms-trigger {
    background: #F5F5F5 !important;
    border: 2px solid #D9D9DD !important;
    border-radius: 12px !important;
    color: #205B86 !important;
    box-shadow: none !important;
    outline: none !important;
}
body .all-drawer-multi-select.open button.all-drawer-ms-trigger,
body .all-drawer-multi-select.open .all-drawer-ms-trigger,
body .all-mobile-drawer .all-drawer-multi-select.open .all-drawer-ms-trigger,
body .all-mobile-filter-drawer .all-drawer-multi-select.open .all-drawer-ms-trigger {
    border-color: #2075F2 !important;
    background: #fff !important;
}
body .all-drawer-ms-trigger .all-drawer-ms-label,
body .all-mobile-drawer .all-drawer-ms-trigger .all-drawer-ms-label,
body .all-mobile-filter-drawer .all-drawer-ms-trigger .all-drawer-ms-label {
    color: #205B86 !important;
}

/* --- 3. Desktop: SEARCH button --- */
body button.all-btn-search,
body button.all-btn-search:hover,
body button.all-btn-search:focus,
body button.all-btn-search:active,
body .all-btn-search,
body .all-btn-search:hover,
body .all-btn-search:focus,
body .all-btn-search:active {
    background: linear-gradient(135deg, #2075F2 0%, #205B86 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(33, 117, 242, 0.3) !important;
}

/* --- 4. Desktop: RESET button --- */
body button.all-btn-reset,
body button.all-btn-reset:hover,
body button.all-btn-reset:focus,
body button.all-btn-reset:active,
body .all-btn-reset,
body .all-btn-reset:hover,
body .all-btn-reset:focus,
body .all-btn-reset:active {
    background: #fff !important;
    color: #205B86 !important;
    border: 2px solid #D9D9DD !important;
}
body button.all-btn-reset:hover,
body .all-btn-reset:hover {
    border-color: #205B86 !important;
    background: #F5F5F5 !important;
}

/* --- 5. Home mobile: Filter toggle button --- */
body button.all-mobile-filter-toggle,
body button.all-mobile-filter-toggle:hover,
body button.all-mobile-filter-toggle:focus,
body button.all-mobile-filter-toggle:active {
    border: 1.5px solid #8CB0CA !important;
    background: #fff !important;
    color: #2075F2 !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    border-radius: 24px !important;
    box-shadow: 0 2px 8px rgba(32,91,134,0.10) !important;
}
body button.all-mobile-filter-toggle:active {
    background: #2075F2 !important;
    color: #fff !important;
    border-color: #2075F2 !important;
}

/* --- 6. Home mobile: Search icon button --- */
body button.all-mobile-search-icon-btn,
body a.all-mobile-search-icon-btn,
body button.all-mobile-search-icon-btn:hover,
body a.all-mobile-search-icon-btn:hover,
body button.all-mobile-search-icon-btn:focus,
body a.all-mobile-search-icon-btn:focus,
body button.all-mobile-search-icon-btn:active,
body a.all-mobile-search-icon-btn:active {
    background: transparent !important;
    border: none !important;
    color: #2075F2 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    position: absolute !important;
    right: 6px !important;
}

/* --- 7. Listings mobile: Sticky bar filter button --- */
body button.all-mobile-filter-btn,
body button.all-mobile-filter-btn:hover,
body button.all-mobile-filter-btn:focus,
body button.all-mobile-filter-btn:active,
body button#all-mobile-filter-btn,
body button#all-mobile-filter-btn:hover,
body button#all-mobile-filter-btn:focus,
body button#all-mobile-filter-btn:active {
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #2D2E32 !important;
}
body button.all-mobile-filter-btn svg,
body button#all-mobile-filter-btn svg {
    stroke: #2075F2 !important;
}

/* --- 8. Listings mobile: Sticky search icon button --- */
body button.all-mobile-sticky-search-btn,
body button.all-mobile-sticky-search-btn:hover,
body button.all-mobile-sticky-search-btn:focus,
body button.all-mobile-sticky-search-btn:active,
body button#all-mobile-sticky-search-btn,
body button#all-mobile-sticky-search-btn:hover,
body button#all-mobile-sticky-search-btn:focus,
body button#all-mobile-sticky-search-btn:active {
    background: transparent !important;
    border: none !important;
    color: #2075F2 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* --- 9. Listings mobile: Sort chips --- */
body button.all-mobile-sort-chip,
body button.all-mobile-sort-chip:hover,
body button.all-mobile-sort-chip:focus,
body button.all-mobile-sort-chip:active {
    border: 2px solid #D9D9DD !important;
    background: #fff !important;
    color: #2D2E32 !important;
}
body button.all-mobile-sort-chip.active,
body button.all-mobile-sort-chip.active:hover,
body button.all-mobile-sort-chip.active:focus,
body button.all-mobile-sort-chip.active:active {
    background: #2075F2 !important;
    border-color: #2075F2 !important;
    color: #fff !important;
}

/* --- 10. Drawer: Close button --- */
body button.all-drawer-close,
body button.all-drawer-close:hover,
body button.all-drawer-close:focus,
body button.all-drawer-close:active {
    background: #F5F5F5 !important;
    border: none !important;
    color: #205B86 !important;
}

/* --- 11. Drawer: Reset / Reset All button --- */
body button.all-drawer-reset,
body button.all-drawer-reset:hover,
body button.all-drawer-reset:focus,
body button.all-drawer-reset:active {
    border: 2px solid #D9D9DD !important;
    background: #fff !important;
    color: #205B86 !important;
}

/* --- 12. Drawer: Apply / Show Results button --- */
body button.all-drawer-apply,
body a.all-drawer-apply,
body button.all-drawer-apply:hover,
body a.all-drawer-apply:hover,
body button.all-drawer-apply:focus,
body a.all-drawer-apply:focus,
body button.all-drawer-apply:active,
body a.all-drawer-apply:active {
    background: #2075F2 !important;
    color: #fff !important;
    border: none !important;
    border-color: #2075F2 !important;
    text-decoration: none !important;
}
body button.all-drawer-apply:active,
body a.all-drawer-apply:active {
    background: #205B86 !important;
}

/* --- 13. Drawer: Labels --- */
body .all-drawer-label {
    color: #205B86 !important;
}

/* --- 14. Filter chips (For Sale, Sold, Pending etc.) --- */
body button.all-chip,
body button.all-chip:hover,
body button.all-chip:focus,
body button.all-chip:active,
body .all-mobile-filter-drawer button.all-chip,
body .all-mobile-filter-drawer button.all-chip:hover,
body .all-mobile-filter-drawer button.all-chip:focus,
body .all-mobile-filter-drawer button.all-chip:active {
    border: 2px solid #D9D9DD !important;
    background: #fff !important;
    color: #2D2E32 !important;
}
body button.all-chip.active,
body button.all-chip.active:hover,
body button.all-chip.active:focus,
body button.all-chip.active:active,
body .all-mobile-filter-drawer button.all-chip.active,
body .all-mobile-filter-drawer button.all-chip.active:hover,
body .all-mobile-filter-drawer button.all-chip.active:focus {
    background: #205B86 !important;
    border-color: #205B86 !important;
    color: #fff !important;
}

/* --- 15. Map button --- */
body button.all-mobile-map-btn,
body button.all-mobile-map-btn:hover,
body button.all-mobile-map-btn:focus,
body button.all-mobile-map-btn:active {
    background: #205B86 !important;
    border: none !important;
    color: #fff !important;
}
body button.all-mobile-map-btn:active {
    background: #2075F2 !important;
}
body button.all-mobile-map-btn svg {
    stroke: #fff !important;
}

/* --- 16. Elementor buttons --- */
body .elementor-button,
body .elementor-widget-button .elementor-button {
    background-color: #2075F2 !important;
    border-color: #2075F2 !important;
    color: #fff !important;
}
body .elementor-button:hover,
body .elementor-button:focus,
body .elementor-button:active {
    background-color: #205B86 !important;
    border-color: #205B86 !important;
}

/* --- 17. WP block buttons --- */
body .wp-block-button__link {
    background-color: #2075F2 !important;
    color: #fff !important;
}
body .wp-block-button__link:hover {
    background-color: #205B86 !important;
}

/* --- 18. Link hover --- */
body a:hover, body a:focus, body a:active {
    color: #2075F2;
}

/* --- 19. Elementor icons --- */
body .elementor-widget .elementor-icon {
    color: #2075F2 !important;
    border-color: #2075F2 !important;
}
body .elementor-widget .elementor-icon svg {
    fill: #2075F2 !important;
}

/* --- 20. Navigation hover --- */
body .site-header a:hover,
body .main-navigation a:hover,
body .menu-item a:hover {
    color: #2075F2 !important;
}

/* --- 21. Body background --- */
body {
    background-color: #fff !important;
}

/* --- 22. Listings mobile: sticky input override --- */
body input.all-mobile-sticky-input,
body input[type="text"].all-mobile-sticky-input {
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
}
body input.all-mobile-sticky-input::placeholder {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
}

/* --- 23. Nuclear catch-all: any button inside plugin wrappers on ALL states --- */
body .all-listings-wrapper button:hover,
body .all-listings-wrapper button:focus,
body .all-listings-wrapper button:active,
body .all-mobile-listings-ui button:hover,
body .all-mobile-listings-ui button:focus,
body .all-mobile-listings-ui button:active,
body .all-mobile-drawer button:hover,
body .all-mobile-drawer button:focus,
body .all-mobile-drawer button:active,
body .all-mobile-filter-drawer button:hover,
body .all-mobile-filter-drawer button:focus,
body .all-mobile-filter-drawer button:active,
body .all-single-listing button:hover,
body .all-single-listing button:focus,
body .all-single-listing button:active {
    border-color: #205B86 !important;
    color: #205B86 !important;
    background: #fff !important;
}

/* --- 24. Single listing page: specific element overrides --- */
/* Action buttons (Map, Tour) */
body .all-m-action-btn,
body .all-m-action-btn:hover,
body .all-m-action-btn:focus {
    color: #205B86 !important;
    background: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
}
body .all-m-action-btn:active {
    background: rgba(32, 117, 242, 0.08) !important;
    color: #205B86 !important;
}
/* Media buttons (Brochure, Tour, Video) */
body .all-m-media-btn,
body .all-m-media-btn:hover,
body .all-m-media-btn:focus {
    color: #205B86 !important;
    background: #F5F5F5 !important;
    border: 2px solid #D9D9DD !important;
}
body .all-m-media-btn:active {
    background: #205B86 !important;
    border-color: #205B86 !important;
    color: #fff !important;
}
/* Sticky CTA buttons */
body .all-m-btn-call,
body .all-m-btn-call:hover,
body .all-m-btn-call:focus,
body .all-m-btn-call:active,
body a.all-m-btn-call,
body a.all-m-btn-call:hover {
    background: #2075F2 !important;
    color: #fff !important;
    border: none !important;
    border-color: #2075F2 !important;
}
body .all-m-btn-message,
body .all-m-btn-message:hover,
body .all-m-btn-message:focus,
body .all-m-btn-message:active,
body a.all-m-btn-message,
body a.all-m-btn-message:hover {
    background: #205B86 !important;
    color: #fff !important;
    border: none !important;
    border-color: #205B86 !important;
}
/* Desktop single listing back button + contact button */
body .all-back-button,
body .all-back-button:hover,
body .all-back-button:focus {
    color: #2075F2 !important;
    border-color: #2075F2 !important;
}
body .all-btn-contact,
body .all-btn-contact:hover,
body .all-btn-contact:focus {
    background: #205B86 !important;
    color: #fff !important;
    border-color: #205B86 !important;
}
body .all-btn-contact:hover {
    background: #2075F2 !important;
    border-color: #2075F2 !important;
}
/* Desktop broker section phone/email links */
body .all-single-listing a:hover,
body .all-single-listing a:focus {
    color: #2075F2 !important;
}
/* Desktop share buttons */
body .all-share-btn,
body .all-share-btn:hover,
body .all-share-btn:focus {
    color: #2075F2 !important;
    background: transparent !important;
    border: none !important;
}
body .all-share-btn:hover {
    color: #205B86 !important;
}
/* Re-assert specific overrides that need non-white bg AFTER the catch-all */
body .all-mobile-sort-chips button.all-mobile-sort-chip.active,
body .all-mobile-sort-chips button.all-mobile-sort-chip.active:hover,
body .all-mobile-sort-chips button.all-mobile-sort-chip.active:focus {
    background: #2075F2 !important;
    border-color: #2075F2 !important;
    color: #fff !important;
}
body .all-mobile-chips button.all-chip.active,
body .all-mobile-chips button.all-chip.active:hover,
body .all-mobile-chips button.all-chip.active:focus {
    background: #205B86 !important;
    border-color: #205B86 !important;
    color: #fff !important;
}
body .all-drawer-footer button.all-drawer-apply,
body .all-drawer-footer a.all-drawer-apply,
body .all-drawer-footer button.all-drawer-apply:hover,
body .all-drawer-footer a.all-drawer-apply:hover,
body .all-drawer-footer button.all-drawer-apply:focus,
body .all-drawer-footer a.all-drawer-apply:focus,
body .all-drawer-footer button.all-drawer-apply:active,
body .all-drawer-footer a.all-drawer-apply:active {
    background: #2075F2 !important;
    border-color: #2075F2 !important;
    color: #fff !important;
}
body .all-mobile-sticky-search button.all-mobile-sticky-search-btn,
body .all-mobile-sticky-search button.all-mobile-sticky-search-btn:hover,
body .all-mobile-sticky-search button.all-mobile-sticky-search-btn:focus {
    background: transparent !important;
    border: none !important;
    border-color: transparent !important;
}
body .all-mobile-map-btn,
body .all-mobile-map-btn:hover,
body .all-mobile-map-btn:focus {
    background: #205B86 !important;
    border-color: #205B86 !important;
    color: #fff !important;
}

/* ============================================================
   HEART / SAVE LISTING BUTTON
   ============================================================ */
.all-listing-card {
    position: relative;
}
.all-heart-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}
.all-heart-btn:hover,
.all-heart-btn:focus {
    transform: scale(1.12) !important;
    box-shadow: 0 4px 16px rgba(32,117,242,0.25) !important;
    background: #fff !important;
    outline: none !important;
}
.all-heart-btn:active {
    transform: scale(0.95) !important;
}
.all-heart-btn svg {
    display: block;
    flex-shrink: 0;
    transition: fill 0.18s ease;
}
.all-heart-btn.all-heart-active svg {
    fill: #2075F2 !important;
}

/* ============================================================
   SAVE LISTING POPUP MODAL
   ============================================================ */
.all-save-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: allFadeIn 0.2s ease;
}
@keyframes allFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.all-save-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 16px 60px rgba(0,0,0,0.18);
    animation: allSlideUp 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes allSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.all-save-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    background: #f5f7fa !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #666 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.15s !important;
}
.all-save-modal-close:hover {
    background: #e8ecf2 !important;
    color: #222 !important;
}
.all-save-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.all-save-modal-heading {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 10px;
}
.all-save-modal-listing-info {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.5;
}
.all-save-modal-listing-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.all-save-modal-listing-info .all-save-info-price {
    color: #2075F2;
    font-weight: 700;
    font-size: 14px;
}
.all-save-modal-subtext {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin: 0 0 18px;
    line-height: 1.5;
}
.all-save-modal-field {
    margin-bottom: 14px;
}
.all-save-modal-field input[type="email"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1.5px solid #dde3ee !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    color: #222 !important;
    background: #fff !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.all-save-modal-field input[type="email"]:focus {
    border-color: #2075F2 !important;
    box-shadow: 0 0 0 3px rgba(32,117,242,0.10) !important;
}
.all-save-modal-field input[type="email"].all-input-error {
    border-color: #dc2626 !important;
}
.all-save-field-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
    min-height: 16px;
}
.all-save-modal-submit {
    width: 100% !important;
    padding: 15px !important;
    background: #2075F2 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: background 0.2s !important;
}
.all-save-modal-submit:hover {
    background: #1860d4 !important;
}
.all-save-modal-submit:disabled {
    background: #93b4f5 !important;
    cursor: not-allowed !important;
}
.all-save-btn-spinner svg {
    animation: allSpin 0.8s linear infinite;
    display: block;
}
@keyframes allSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.all-save-modal-success {
    text-align: center;
    padding: 16px 0 8px;
}
.all-save-modal-success p {
    font-size: 16px;
    font-weight: 600;
    color: #2d7a3e;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Nuclear override — prevent theme from breaking heart btn */
body .all-heart-btn,
body .all-heart-btn:hover,
body .all-heart-btn:focus,
body .all-heart-btn:active,
body button.all-heart-btn,
body button.all-heart-btn:hover {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .all-save-modal {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
    .all-heart-btn {
        width: 36px !important;
        height: 36px !important;
        top: 10px !important;
        right: 10px !important;
    }
}
