/* Color Variables */
:root {
    --primary-color: #2E86C1; /* Professional Blue */
    --secondary-color: #28B463; /* Success Green */
    --dark-color: #212529;
}

body {
    background-color: #f8f9fa;
    /* Important: Add padding top so content isn't hidden behind sticky nav */
    padding-top: 70px; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Tweaks */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* --- Professional Property Card Styles --- */
.property-card {
    border: none;
    border-radius: 12px; /* Softer corners */
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden; /* Keeps image inside corners */
}

.property-card:hover {
    transform: translateY(-0.2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

/* Image Container */
.card-img-wrap {
    height: 100%;
    min-height: 220px; /* Ensure height consistency */
    position: relative;
    overflow: hidden;
}

.card-img-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-img-wrap img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Badges */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.badge-rent { background-color: #2E86C1; color: white; }
.badge-sale { background-color: #28B463; color: white; }
.badge-sold { background-color: #cb4335; color: white; }

/* Content Area */
.card-body {
    padding: 1.5rem;
}

.prop-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.prop-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    text-decoration: none;
    display: block;
}
.prop-title:hover { color: #2E86C1; }

.prop-location {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.prop-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2E86C1;
}

.prop-period {
    font-size: 0.9rem;
    font-weight: normal;
    color: #95a5a6;
}

/* Clean Metadata Row (No "Newspaper" look) */
.prop-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.2rem;
}
.prop-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Separator dot */
.prop-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 15px;
    color: #ccc;
}

/* Footer Actions */
.card-footer-custom {
    border-top: 1px solid #f1f1f1;
    padding-top: 1rem;
    margin-top: auto; /* Pushes to bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Pagination */
.page-link {
    color: var(--primary-color);
}
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer a:hover {
    color: #fff !important;
}

/* Ensure main slider images don't look stretched */
.object-fit-cover {
    object-fit: cover;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .property-card .row > div {
        width: 100%;
    }
    .property-card .img-fluid {
        height: 200px; /* Fixed height for mobile images */
    }
    .card-img-wrap { min-height: 200px; }

    #propertyCarousel div[style*="height: 500px"] {
        height: 300px !important;
    }
}