
/* ===== Real Estate Hero Section ===== */
.realestate-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.realestate-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.realestate-hero p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ===== Property Row System (Similar to NikahFinder) ===== */
.property-row-wrapper {
    position: relative;
    margin: 15px 0;
    overflow: visible;
}

.property-row-wrapper h2 {
    margin: 10px 0 8px 20px;
    font-size: 1.4rem;
    color: #333;
    text-align: center;
}

.property-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 15px 10px;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-width: 0; /* fit the centre column and scroll sideways (was 1480px: cards slid under the right sidebar) */
    width: 100%;
    box-sizing: border-box;
}

.property-row::-webkit-scrollbar {
    height: 0;
    background: transparent;
}

/* ===== Property Card ===== */
.property-card {
    flex: 0 0 280px;
    width: 280px;
    height: auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.property-badge {
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-badge.new {
    background: #10b981;
}

.property-badge.hot {
    background: #ef4444;
}

.property-badge.reduced {
    background: #3b82f6;
}

.property-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.property-favorite:hover {
    background: #fff;
    transform: scale(1.1);
}

.property-favorite i {
    color: #dc2626;
    font-size: 18px;
}

.property-favorite.saved i {
    color: #dc2626;
}

.property-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.property-price-reduced {
    color: #ef4444;
}

.property-price-per-sqft {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.property-address {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-address i {
    color: #667eea;
    font-size: 12px;
}

.property-details {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-detail i {
    color: #667eea;
    font-size: 12px;
}

.property-type {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    text-transform: capitalize;
    margin-top: 6px;
    align-self: flex-start;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.property-status {
    font-size: 11px;
    color: #999;
}

.property-status.active {
    color: #10b981;
}

.property-actions {
    display: flex;
    gap: 5px;
}

.property-action-btn {
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.property-action-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ===== Row Arrows (Similar to NikahFinder) ===== */
.row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 230, 230, 0.95);
    color: #000;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 101;
    opacity: 0;
    transition: opacity 0.4s ease, color 0.2s ease, background 0.2s ease;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-row-wrapper:hover .row-arrow {
    opacity: 1;
}

.row-arrow:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.row-arrow.left {
    left: 2px;
}

.row-arrow.right {
    right: 2px;
}

.property-row-wrapper {
    overflow: hidden; /* keep cards inside the centre column */
}

/* ===== Mortgage Calculator Section ===== */
@media (max-width: 768px) {
    .realestate-calc-grid { grid-template-columns: 1fr !important; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .realestate-hero h1 {
        font-size: 1.8rem;
    }
    
    .property-row {
        padding: 15px 20px;
        min-width: auto;
    }
    
    .property-card {
        flex: 0 0 260px;
        width: 260px;
    }
}
