/* ==========================================================
   PROPERTY CARDS & REAL ESTATE UI — property-cards.css
   ========================================================== */

/* ---- Color palette ---- */
:root {
    --re-green:      #10b981;
    --re-green-dark: #059669;
    --re-gold:       #f59e0b;
    --re-navy:       #1e3a5f;
    --re-gray-bg:    #f8fafc;
    --re-card-bg:    #ffffff;
    --re-text:       #1f2937;
    --re-muted:      #6b7280;
    --re-border:     #e5e7eb;
    --re-sale-bg:    #dcfce7;
    --re-sale-color: #15803d;
    --re-rent-bg:    #dbeafe;
    --re-rent-color: #1d4ed8;
    --re-radius:     14px;
    --re-shadow:     0 4px 24px rgba(0,0,0,0.07);
    --re-shadow-hover: 0 16px 48px rgba(0,0,0,0.13);
}

/* =====================================================
   PROPERTY CARD - Temer Properties Style Hover Effects
   ===================================================== */
.property-card {
    background: var(--re-card-bg);
    border-radius: var(--re-radius);
    overflow: hidden;
    box-shadow: var(--re-shadow);
    border: 1.5px solid var(--re-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(0) scale(1);
    animation: cardFloat 6s ease-in-out infinite;
}

/* Subtle floating animation */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1);
    }
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: none; /* Stop floating when hovered */
}

/* Temer-style gentle fade overlay - disabled to prevent green tint on images */
.property-card::before {
    display: none;
}

/* Image - Temer Properties style with no gaps */
.property-card-image {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.property-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block !important;
    background: #f8fafc;
    transform: scale(1);
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.property-card:hover .property-card-image img {
    transform: scale(1.06);
    filter: brightness(1.05) saturate(1.1);
}

/* Subtle shimmer effect on image hover */
.property-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.property-card:hover .property-card-image::after {
    left: 100%;
}

/* No-image placeholder */
.property-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #10b981 100%);
}

.property-card-image.no-image i {
    font-size: 60px;
    color: rgba(255,255,255,0.35);
}

/* Badges on image */
.property-badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
}

.badge-listing {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-listing.for-sale {
    background: var(--re-sale-bg);
    color: var(--re-sale-color);
}

.badge-listing.for-rent {
    background: var(--re-rent-bg);
    color: var(--re-rent-color);
}

.badge-type {
    background: rgba(15,23,42,0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Price overlay at bottom of image */
.property-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 100%);
    padding: 32px 14px 12px;
    z-index: 2;
}

.property-price-overlay .price {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.property-price-overlay .price-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-left: 3px;
}

/* Card body */
.property-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-card-title {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--re-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--re-muted);
    font-family: 'Heebo', sans-serif;
}

.property-card-location i {
    color: var(--re-green);
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* Specs row: beds / baths / area */
.property-card-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid var(--re-border);
    border-bottom: 1px solid var(--re-border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--re-text);
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
}

.spec-item i {
    color: var(--re-green);
    font-size: 0.78rem;
}

/* View button - Enhanced Temer-style hover */
.btn-view-property {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
}

.btn-view-property::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-view-property:hover {
    background: linear-gradient(135deg, var(--re-green-dark), #047857);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
}

.btn-view-property:hover::before {
    left: 100%;
}

.btn-view-property i {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-view-property:hover i {
    transform: translateX(6px) scale(1.1);
}

/* =====================================================
   PROPERTY GRID
   ===================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 50px;
}

@media (max-width: 900px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .properties-grid { grid-template-columns: 1fr; gap: 14px; }
    .property-card-image { height: 190px; }
}

/* Enhanced search bar z-index fix */
.property-search-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.08);
    padding: 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 40px;
    border: 1px solid rgba(16,185,129,0.1);
    position: relative;
    overflow: visible;
    z-index: 1000;
}

.property-search-bar::before {
    display: none;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.search-field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jost', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.search-field label i {
    font-size: 0.8rem;
    color: #7cb342;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Heebo', sans-serif;
    color: #334155;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-weight: 500;
}

.search-field input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #7cb342;
    box-shadow: 0 0 0 4px rgba(124,179,66,0.1), 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.search-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Custom Dropdown Styling - Complete Control */
.search-field {
    position: relative;
}

/* Hide native select and create custom dropdown */
.search-field select {
    position: relative;
    z-index: 1;
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    outline: none !important;
    cursor: pointer;
}

.search-field select:focus,
.search-field select:active {
    border-color: #7cb342 !important;
    box-shadow: 0 4px 20px rgba(124,179,66,0.15) !important;
}

/* Custom dropdown overlay */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 999998;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 50px 14px 16px;
    cursor: pointer;
    position: relative;
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-selected:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #6b7280 transparent transparent transparent;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* Mobile responsive - reduce spacing on smaller screens */
@media (max-width: 768px) {
    .select-selected {
        padding: 16px 40px 16px 16px;
    }
    
    .select-selected:after {
        right: 16px;
    }
    
    /* Fix z-index layering on mobile - ensure opened dropdown appears above all others */
    .custom-select {
        z-index: 999990;
    }
    
    .custom-select .select-selected.select-arrow-active {
        z-index: 999998;
    }
    
    .custom-select .select-items {
        z-index: 999999;
    }
    
    /* Increase z-index when dropdown is active to appear above subsequent elements */
    .search-field:has(.select-arrow-active) {
        z-index: 999999;
    }
    
    /* Alternative approach - add higher z-index to active dropdown container */
    .custom-select:has(.select-arrow-active) {
        z-index: 999999;
    }
    
    .custom-select:has(.select-arrow-active) .select-items {
        z-index: 1000000;
    }
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #6b7280 transparent;
    transform: translateY(-50%) rotate(180deg);
}

.select-selected:hover,
.select-selected:focus {
    border-color: #7cb342;
    box-shadow: 0 0 0 4px rgba(124,179,66,0.1), 0 4px 20px rgba(0,0,0,0.1);
}

.select-items {
    position: absolute;
    background-color: #ffffff;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999999;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    margin-top: -2px;
}

.select-items div {
    color: #374151;
    padding: 14px 16px;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.select-items div:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.select-items div:hover {
    background-color: #f8fafc;
    color: #1f2937;
}

.same-as-selected {
    background-color: #7cb342 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.select-hide {
    display: none;
}

/* Custom scrollbar for dropdown */
.select-items::-webkit-scrollbar {
    width: 6px;
}

.select-items::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.btn-search {
    padding: 14px 32px;
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    height: 52px;
    box-shadow: 0 4px 16px rgba(124,179,66,0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-search:hover::before {
    left: 100%;
}

.btn-search:hover {
    background: linear-gradient(135deg, #689f38 0%, #5a8a32 100%);
    box-shadow: 0 12px 35px rgba(124,179,66,0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-search:active {
    transform: translateY(-1px) scale(1.01);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .property-search-bar {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        padding: 24px;
    }
    
    .btn-search {
        grid-column: 1 / -1;
        justify-self: center;
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .property-search-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
        margin-bottom: 30px;
    }
    
    .search-field input,
    .search-field select {
        padding: 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        height: 56px;
        font-size: 1rem;
    }
}

/* Filter Tabs Enhancement */
.filter-tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.filter-tab-btn {
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab-btn:hover {
    background: #f1f5f9;
    border-color: #7cb342;
    color: #7cb342;
    transform: translateY(-1px);
}

.filter-tab-btn.active {
    background: linear-gradient(135deg, #7cb342, #689f38);
    border-color: #7cb342;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124,179,66,0.3);
}

@media (max-width: 640px) {
    .filter-tabs-row {
        padding: 12px;
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        margin-bottom: 24px;
    }

    /* Row 1: All — full width */
    .filter-tab-btn:nth-child(1) {
        width: 100%;
        flex: 0 0 100%;
    }

    /* Row 2 & 3: two per row */
    .filter-tab-btn:nth-child(2),
    .filter-tab-btn:nth-child(3),
    .filter-tab-btn:nth-child(4),
    .filter-tab-btn:nth-child(5) {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .filter-tab-btn {
        padding: 12px 10px;
        font-size: 0.82rem;
        font-weight: 600;
        border-radius: 50px;
        background: linear-gradient(135deg, #7cb342, #558b2f);
        border: none;
        color: #ffffff;
        justify-content: center;
        letter-spacing: 0.2px;
        box-shadow: 0 3px 10px rgba(124,179,66,0.25);
        transition: none;
        transform: none !important;
    }

    .filter-tab-btn:hover {
        background: linear-gradient(135deg, #7cb342, #558b2f);
        color: #ffffff;
        transform: none !important;
        box-shadow: 0 3px 10px rgba(124,179,66,0.25);
        border-color: transparent;
    }

    .filter-tab-btn.active {
        background: linear-gradient(135deg, #558b2f, #33691e);
        border: none;
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(124,179,66,0.4);
    }
}
        justify-content: center;
        min-width: calc(50% - 4px);
    }
}

@media (max-width: 768px) {
    .property-search-bar {
        padding: 16px;
        gap: 10px;
    }
    .search-field { min-width: calc(50% - 6px); flex: unset; }
    .search-field:first-child { min-width: 100%; }
    .btn-search { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .search-field { min-width: 100%; }
}

/* =====================================================
   FILTER TABS
   ===================================================== */
.filter-tabs-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-tab-btn {
    padding: 9px 22px;
    background: #fff;
    border: 1.5px solid var(--re-border);
    border-radius: 30px;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--re-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab-btn:hover {
    border-color: var(--re-green);
    color: var(--re-green);
}

.filter-tab-btn.active {
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

/* =====================================================
   PROPERTY DETAIL PAGE
   ===================================================== */
.property-detail-container {
    max-width: 1160px;
    margin: 40px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .property-detail-container {
        padding: 0 10px;
        margin: 20px auto 40px;
    }
}

.property-detail-header {
    margin-bottom: 10px;
}

.property-detail-header h1 {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--re-text);
    margin-bottom: 10px;
}

.property-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.meta-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-badge.sale  { background: var(--re-sale-bg); color: var(--re-sale-color); }
.meta-badge.rent  { background: var(--re-rent-bg); color: var(--re-rent-color); }
.meta-badge.type  { background: #f3f4f6; color: var(--re-text); }

.meta-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--re-muted);
    font-size: 0.9rem;
    font-family: 'Heebo', sans-serif;
}

.meta-location i { color: var(--re-green); }

/* Gallery */
.property-gallery {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    margin-bottom: 32px;
    height: 420px;
    background: linear-gradient(135deg, #1e3a5f, #10b981);
}

.property-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #f8fafc;
}

.property-gallery.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-gallery.no-image i {
    font-size: 100px;
    color: rgba(255,255,255,0.25);
}

/* Detail grid */
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .property-detail-grid { grid-template-columns: 1fr; }
    .property-gallery { height: 280px; }
}

/* Specs panel */
.property-specs-panel {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--re-border);
    box-shadow: var(--re-shadow);
    padding: 24px;
}

.property-specs-panel h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--re-text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--re-border);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
}

.spec-row:last-of-type { border-bottom: none; }

.spec-row .spec-label {
    color: var(--re-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-row .spec-label i { color: var(--re-green); width: 16px; }

.spec-row .spec-value {
    font-weight: 600;
    color: var(--re-text);
    text-align: right;
}

/* Price block */
.property-price-block {
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    color: #fff;
    text-align: center;
}

.property-price-block .price-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px;
}

.property-price-block .price-amount {
    font-family: 'Jost', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.property-price-block .price-unit {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

/* CTA buttons */
.property-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}

.btn-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: #fff;
    color: var(--re-green) !important;
    border: 2px solid var(--re-green);
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: var(--re-green);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

.btn-cta-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: #f59e0b;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-call:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.4);
}

/* Description & amenities */
.property-description-block {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--re-border);
    box-shadow: var(--re-shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.property-description-block h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--re-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-description-block h2 i {
    color: var(--re-green);
}

.property-description-block p {
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Amenities chips */
.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.amenity-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #166534;
    font-family: 'Heebo', sans-serif;
}

.amenity-chip i { font-size: 0.75rem; color: var(--re-green); }

/* =====================================================
   INQUIRY FORM PAGE
   ===================================================== */
.inquiry-container {
    max-width: 780px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.inquiry-property-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--re-border);
    box-shadow: var(--re-shadow);
    padding: 20px;
    margin-bottom: 28px;
    align-items: center;
}

.inquiry-property-thumb {
    width: 110px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a5f, #10b981);
}

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

.inquiry-property-info h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--re-text);
    margin-bottom: 4px;
}

.inquiry-property-info .inquiry-price {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--re-green);
    margin-bottom: 4px;
}

.inquiry-property-info .inquiry-location {
    font-size: 0.82rem;
    color: var(--re-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.inquiry-property-info .inquiry-location i { color: var(--re-green); }

.inquiry-form-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--re-border);
    box-shadow: var(--re-shadow);
    padding: 32px;
}

.inquiry-form-card h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--re-text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inquiry-form-card h2 i { color: var(--re-green); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--re-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--re-border);
    border-radius: 8px;
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
    color: var(--re-text);
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--re-green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit-inquiry {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-submit-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16,185,129,0.4);
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .inquiry-form-card { padding: 20px 16px; }
    .inquiry-property-card { flex-direction: column; }
    .inquiry-property-thumb { width: 100%; height: 160px; }
}

/* =====================================================
   HOMEPAGE — FEATURED PROPERTIES SECTION
   ===================================================== */
.featured-properties-section {
    padding: 80px 0;
    background: #ffffff;
}

@media (max-width: 768px) {
    .featured-properties-section {
        padding: 30px 0 60px;
    }
}

.featured-properties-section .section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 5px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.featured-properties-section .section-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--re-text);
    margin-bottom: 10px;
}

.featured-properties-section .section-subtitle {
    font-family: 'Heebo', sans-serif;
    color: var(--re-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

/* =====================================================
   HOMEPAGE — CATEGORIES SECTION
   ===================================================== */
.property-categories-section {
    padding: 80px 0;
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .category-grid { grid-template-columns: 1fr; gap: 14px; }
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.07);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.80) 0%, rgba(15,23,42,0.2) 60%, transparent 100%);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    z-index: 2;
}

.category-card-content .cat-icon {
    width: 42px;
    height: 42px;
    background: rgba(16,185,129,0.85);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-card-content .cat-icon i {
    font-size: 1.1rem;
    color: #fff;
}

.category-card-content h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.category-card-content p {
    font-family: 'Heebo', sans-serif;
    font-size: 0.8rem;
    opacity: 0.85;
}

/* =====================================================
   HOMEPAGE — TRUST / WHY CHOOSE US
   ===================================================== */
.why-choose-us-section {
    padding: 80px 0;
    background: #f8f9fa;
    color: #333;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .why-grid { grid-template-columns: 1fr; gap: 20px; }
}

.why-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.why-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7cb342, #689f38);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(124,179,66,0.25);
}

.why-icon i { font-size: 1.6rem; color: #fff; }

.why-card h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.why-card p {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* =====================================================
   HOMEPAGE — HERO SEARCH BOX
   ===================================================== */
.hero-search-box {
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    margin-top: 28px;
    backdrop-filter: blur(8px);
}

.hero-search-box .hs-field {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-search-box .hs-field label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--re-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search-box .hs-field select,
.hero-search-box .hs-field input {
    padding: 9px 12px;
    border: 1.5px solid var(--re-border);
    border-radius: 7px;
    font-size: 0.85rem;
    font-family: 'Heebo', sans-serif;
    color: var(--re-text);
    outline: none;
    transition: border-color 0.25s;
    background: #fff;
}

.hero-search-box .hs-field select:focus,
.hero-search-box .hs-field input:focus {
    border-color: var(--re-green);
}

.hero-search-box .btn-hero-search {
    padding: 9px 22px;
    background: linear-gradient(135deg, var(--re-green), var(--re-green-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    align-self: flex-end;
}

.hero-search-box .btn-hero-search:hover {
    background: linear-gradient(135deg, var(--re-green-dark), #047857);
    box-shadow: 0 6px 18px rgba(16,185,129,0.4);
}

@media (max-width: 600px) {
    .hero-search-box { padding: 14px; }
    .hero-search-box .hs-field { min-width: calc(50% - 5px); flex: unset; }
    .hero-search-box .btn-hero-search { width: 100%; justify-content: center; }
}

/* =====================================================
   DARK MODE
   ===================================================== */
[data-theme="dark"] .property-card,
[data-theme="dark"] .property-specs-panel,
[data-theme="dark"] .property-description-block,
[data-theme="dark"] .inquiry-form-card,
[data-theme="dark"] .inquiry-property-card {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .property-card-title,
[data-theme="dark"] .spec-row .spec-value,
[data-theme="dark"] .property-detail-header h1,
[data-theme="dark"] .property-description-block h2 {
    color: #f9fafb !important;
}

[data-theme="dark"] .property-card-location,
[data-theme="dark"] .spec-row .spec-label,
[data-theme="dark"] .property-description-block p {
    color: #9ca3af !important;
}

[data-theme="dark"] .property-search-bar,
[data-theme="dark"] .hero-search-box {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .search-field input,
[data-theme="dark"] .search-field select,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .hero-search-box .hs-field select,
[data-theme="dark"] .hero-search-box .hs-field input {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

[data-theme="dark"] .filter-tab-btn {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #9ca3af !important;
}

[data-theme="dark"] .why-choose-us-section {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

[data-theme="dark"] .featured-properties-section {
    background: #111827;
}

[data-theme="dark"] .property-categories-section {
    background: #1f2937;
}

/* Ensure white text in price badges across all themes */
[data-theme="dark"] .pc-badge-price,
[data-theme="light"] .pc-badge-price,
.pc-badge-price * {
    color: #ffffff !important;
}

/* =============================================
   PC-CARD — NEW CARD DESIGN (shared across pages)
   ============================================= */
.pc-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1.5px solid #e5e7eb;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    display: flex;
    flex-direction: column;
}
.pc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(16,185,129,0.13);
}
[data-theme="dark"] .pc-card { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .pc-card:hover { 
    box-shadow: 0 14px 40px rgba(16,185,129,0.13);
}

.pc-image {
    position: relative; 
    width: 100%; 
    height: 200px;
    overflow: hidden; 
    cursor: pointer; 
    flex-shrink: 0;
    background: #f8fafc;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
}
.pc-image img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    display: block !important;
    background: #f8fafc;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
}
.pc-card:hover .pc-image img { 
    transform: scale(1.06);
    filter: brightness(1.05) saturate(1.1);
}
.pc-image.no-img { display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, #1e3a5f, #10b981); }
.pc-image.no-img i { font-size:56px; color:rgba(255,255,255,0.3); }

.pc-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: none;
}
.pc-badge-price { 
    font-family:'Jost',sans-serif; 
    font-size:0.8rem; 
    font-weight:700; 
    color:#ffffff !important; 
    text-shadow:0 1px 3px rgba(0,0,0,0.5); 
    background:#7cb342 !important; 
    padding:4px 10px; 
    border-radius:12px; 
    display:inline-block; 
    line-height:1.2; 
}
.pc-badge-price small { 
    font-size:0.65rem; 
    font-weight:600; 
    color:#ffffff !important; 
    opacity:0.95; 
    margin-left:1px; 
}
.pc-badge-listing { padding:4px 10px; border-radius:20px; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; }
.pc-badge-listing.for-sale { background:#dcfce7; color:#15803d; }
.pc-badge-listing.for-rent { background:#dbeafe; color:#1d4ed8; }

.pc-body { padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; gap:6px; }

.pc-title { font-family:'Jost',sans-serif; font-size:0.98rem; font-weight:700; color:#111827; margin:0; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
[data-theme="dark"] .pc-title { color:#f9fafb; }

.pc-location { display:flex; align-items:center; gap:5px; font-family:'Heebo',sans-serif; font-size:0.82rem; color:#6b7280; }
.pc-location i { color:#10b981; font-size:0.78rem; }

.pc-specs { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 0; border-top:1px solid #f3f4f6; border-bottom:1px solid #f3f4f6; margin:2px 0; }
[data-theme="dark"] .pc-specs { border-color:#374151; }
.pc-spec { display:flex; align-items:center; gap:4px; font-family:'Heebo',sans-serif; font-size:0.8rem; font-weight:600; color:#374151; }
[data-theme="dark"] .pc-spec { color:#d1d5db; }
.pc-spec i { color:#10b981; font-size:0.75rem; }

.pc-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:4px; }
.pc-btn-call, .pc-btn-email { display:flex; align-items:center; justify-content:center; gap:6px; padding:9px 10px; border-radius:8px; font-family:'Jost',sans-serif; font-size:0.82rem; font-weight:700; text-decoration:none; cursor:pointer; transition:all 0.25s ease; border:none; }
.pc-btn-call { background:#7cb342; color:#ffffff !important; }
.pc-btn-call:hover { background:#689f38; transform:translateY(-1px); box-shadow:0 4px 12px rgba(124,179,66,0.35); }
.pc-btn-call.pc-btn-disabled { background:#d1fae5; color:#6b7280 !important; cursor:default; pointer-events:none; }
.pc-btn-email { background:#f0f9ef; color:#7cb342 !important; border:1.5px solid #c8e6c0; }
.pc-btn-email:hover { background:#7cb342; color:#ffffff !important; border-color:#7cb342; transform:translateY(-1px); }
[data-theme="dark"] .pc-btn-email { background:#064e3b; color:#34d399 !important; border-color:#065f46; }

.pc-view-details { display:flex; align-items:center; justify-content:center; gap:7px; padding:10px; margin-top:6px; border-radius:8px; background:#f0f9ef; border:1.5px solid #c8e6c0; font-family:'Jost',sans-serif; font-size:0.85rem; font-weight:700; color:#7cb342 !important; text-decoration:none; transition:all 0.25s ease; }
.pc-view-details:hover { background:#7cb342; color:#ffffff !important; border-color:#7cb342; }
.pc-view-details i { font-size:0.75rem; transition:transform 0.25s ease; }
.pc-view-details:hover i { transform:translateX(4px); }
[data-theme="dark"] .pc-view-details { background:#374151; border-color:#4b5563; color:#d1d5db !important; }
[data-theme="dark"] .pc-view-details:hover { background:#10b981; color:#ffffff !important; border-color:#10b981; }

@media (max-width:540px) {
    .pc-image { height:180px; }
    .pc-title  { font-size:0.92rem; }
}
