/**
 * 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 - Clean & Beautiful */
.all-filter-bar.all-modern-search,
.all-standalone-search .all-filter-bar {
    background: var(--all-white);
    padding: 20px 32px;
    margin-bottom: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(32, 91, 134, 0.12);
    border: 1px solid var(--all-light-grey);
    transition: all 0.3s ease;
}

.all-filter-bar.all-modern-search:hover {
    box-shadow: 0 12px 48px rgba(32, 91, 134, 0.16);
    border-color: var(--all-light-blue);
}

.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; /* NEVER wrap on desktop */
}

.all-search-field {
    flex: 1 1 auto;
    min-width: 0; /* Allow fields to shrink */
    position: relative;
}

/* Archive-specific filter tweaks */
.all-archive-filter .all-search-fields {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
    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: 16px;
    padding-left: 0;
    padding-top: 8px;
}

/* Remove single-row dividers in archive filter */
.all-archive-filter .all-search-field:not(:last-child) {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.all-archive-filter .all-search-select,
.all-archive-filter .all-search-input {
    background: var(--all-grey);
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--all-dark-grey);
    font-weight: 500;
    transition: all 0.3s ease;
}

.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 - Modern & Clean */
.all-search-select,
.all-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid transparent;
    background: var(--all-grey);
    font-size: 15px;
    color: var(--all-dark-grey);
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
    border-radius: 10px;
}

/* Custom Select Dropdown - Beautiful Arrow */
.all-search-select {
    cursor: pointer;
    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='%232175F2' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    background-color: var(--all-grey);
    padding-right: 40px;
    font-weight: 600;
    color: var(--all-secondary);
}

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

/* 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 States - Beautiful Brand Blue */
.all-search-input:focus,
.all-search-select:focus {
    outline: none;
    background-color: var(--all-white);
    border-color: var(--all-bright-blue);
    box-shadow: 0 0 0 3px rgba(33, 117, 242, 0.1);
}

/* Vertical Dividers - Clean Separation */
.all-search-field:not(:last-child) {
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid var(--all-light-grey);
}

/* Search Action Buttons */
.all-search-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 12px;
}

/* Button Styles - Modern & Beautiful */
.all-btn-search,
.all-btn-reset {
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

/* SEARCH Button - Brand Blue Gradient */
.all-btn-search {
    background: linear-gradient(135deg, var(--all-bright-blue) 0%, var(--all-secondary) 100%);
    color: var(--all-white);
    box-shadow: 0 4px 16px rgba(33, 117, 242, 0.3);
    border: none;
    font-weight: 700;
}

.all-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 117, 242, 0.4);
}

.all-btn-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 117, 242, 0.3);
}

/* RESET Button - Clean & Minimal */
.all-btn-reset {
    background: var(--all-white);
    color: var(--all-secondary);
    border: 2px solid var(--all-light-grey);
    box-shadow: 0 2px 8px rgba(32, 91, 134, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.all-btn-reset:hover {
    background: var(--all-grey);
    border-color: var(--all-secondary);
    color: var(--all-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 91, 134, 0.2);
}

.all-btn-reset:active {
    transform: translateY(0);
}

/* Responsive: Large Desktop (stay in one row) */
@media (min-width: 1200px) {
    .all-search-field {
        padding: 0 10px;
    }
}

/* Responsive: Tablet (still try to keep in one row) */
@media (max-width: 1199px) and (min-width: 769px) {
    .all-search-select,
    .all-search-input {
        padding: 14px 12px;
        font-size: 14px;
        color: var(--all-dark-grey);
        font-weight: 500;
    }
    
    .all-btn-search,
    .all-btn-reset {
        padding: 14px 20px;
        font-size: 12px;
    }
}

/* Responsive: Mobile (stack vertically) */
@media (max-width: 768px) {
    .all-filter-bar.all-modern-search,
    .all-standalone-search .all-filter-bar {
        border-radius: 16px;
        padding: 16px;
    }
    
    /* Standalone search - stack vertically on mobile */
    .all-standalone-search .all-search-fields {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .all-standalone-search .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(0, 0, 0, 0.15);
}

.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 (Full Width Top Bar) - SOLD/Pending */
.all-status-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--all-white);
    background: #205b86;
    text-align: left;
}

.all-status-badge.sold,
.all-status-badge.pending {
    background: #205b86;
}

.all-status-badge.for-lease {
    background: #2d7a3e;
}

/* 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 var(--all-primary);
    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: var(--all-primary);
    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: var(--all-primary);
    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: var(--all-primary);
    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: var(--all-primary);
    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: var(--all-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.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: var(--all-primary);
    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: var(--all-primary);
}

.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(0, 0, 0, 0.15);
}

/* 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: var(--all-bright-blue);
    color: var(--all-white);
    border-color: var(--all-bright-blue);
    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;
    }
}
