:root {
    --primary: #B39755;
    --primary-light: #d6c7a0;
    --primary-dark: #9a8249;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --darker-gray: #495057;
    --secondary: #1a2a3a;
}

body {
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
    color: #333;
}


/* =============================================================================
   HERO
   ============================================================================= */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    margin-bottom: 30px;
}
.hero-section h1 { font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-section p  { font-size: 1.2rem; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
    .hero-section { padding: 100px 0; }
    .hero-section h1 { font-size: 2.5rem; }
}
@media (max-width: 576px) {
    .hero-section { padding: 80px 0; }
}


/* =============================================================================
   FILTER SECTION
   ============================================================================= */
.filter-section {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--white);
    color: var(--darker-gray);
    border: 1px solid #dee2e6;
    border-radius: 30px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s;
    font-weight: 500;
}
.filter-btn i { margin-right: 8px; }
.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .filter-btn { padding: 6px 12px; font-size: 0.9rem; }
}


/* =============================================================================
   SECTION TITLE
   ============================================================================= */
.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    color: var(--darker-gray);
    font-weight: 600;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background-color: var(--primary);
}


/* =============================================================================
   PROPERTY CARDS
   ============================================================================= */
.property-card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    height: 100%;
}
.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.card-img-top { height: 200px; object-fit: cover; transition: transform 0.5s; }
.property-card:hover .card-img-top { transform: scale(1.05); }

.badge-custom {
    background-color: var(--primary);
    position: absolute;
    top: 15px; left: 15px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 4px;
    color: white;
}
.badge-rent { background-color: #28a745; }

.property-price { color: var(--primary); font-weight: 700; font-size: 1.4rem; margin-top: 10px; }
.property-location { color: var(--dark-gray); margin-bottom: 15px; }

.property-features {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}
.feature { text-align: center; }
.feature i { color: var(--primary); font-size: 1.2rem; margin-bottom: 5px; }
.feature span { display: block; font-size: 0.9rem; color: var(--dark-gray); }

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.property-type {
    display: inline-block;
    background: rgba(179,151,85,0.1);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-top: 5px;
}

@media (max-width: 576px) {
    .property-card { margin-bottom: 30px; }
    .property-features { flex-direction: column; }
    .feature { margin-bottom: 10px; }
}


/* =============================================================================
   STATS
   ============================================================================= */
.stats-box {
    background: linear-gradient(135deg, rgba(179,151,85,0.1) 0%, rgba(179,151,85,0.05) 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s;
}
.stats-box:hover { transform: translateY(-5px); }

.stats-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.stats-label  { font-size: 1rem; color: var(--darker-gray); font-weight: 500; }

@media (max-width: 768px) {
    .stats-box { padding: 15px; }
    .stats-number { font-size: 2rem; }
}


/* =============================================================================
   CITY FILTER
   ============================================================================= */
.city-filter { margin-bottom: 25px; }

.city-btn {
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 30px;
    padding: 5px 15px;
    margin: 5px;
    transition: all 0.3s;
}
.city-btn:hover,
.city-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .city-btn { padding: 6px 12px; font-size: 0.9rem; }
}


/* =============================================================================
   SEARCH BAR
   ============================================================================= */
.search-bar {
    background-color: var(--white);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.search-bar .input-group { border-radius: 50px; overflow: hidden; }
.search-bar input { border: none; background: transparent; width: 100%; padding: 5px 10px; }
.search-bar input:focus { outline: none; }
.search-bar button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    transition: all 0.3s;
}
.search-bar button:hover { background: var(--primary-dark); }

@media (max-width: 576px) {
    .search-bar { padding: 8px 15px; }
    .search-bar button { padding: 6px 15px; }
}


/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination-custom .page-link {
    color: var(--primary);
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-custom .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination-custom .page-link:hover { background-color: rgba(179,151,85,0.1); }


/* =============================================================================
   CTA SECTION
   ============================================================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 20px;
    border-radius: 10px;
    margin: 50px 0;
}
.cta-section h2 { font-weight: 700; }


/* =============================================================================
   FOOTER
   ============================================================================= */
.footer-dark {
    background-color: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
}
.footer-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.social-icon {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    width: 45px; height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
}
.social-icon:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: translateY(-5px);
}


/* =============================================================================
   HIGHLIGHT
   ============================================================================= */
.highlight { position: relative; z-index: 1; }
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0;
    width: 100%; height: 12px;
    background: rgba(231,200,115,0.3);
    z-index: -1;
    transform: skewX(-15deg);
}


/* =============================================================================
   ANIMATIONS
   ============================================================================= */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }


/* =============================================================================
   UTILITIES
   ============================================================================= */
.bg-custom-light { background-color: var(--light-gray) !important; }
.bg-deep-blue    { background-color: var(--secondary); }
.ptb-6           { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.mb-6            { margin-bottom: 3rem !important; }
.lead            { font-size: 1.25rem; font-weight: 400; }


/* cards style */
#serachpropertiesChennai {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    padding: 8px 0;
}
#serachpropertiesChennai.row { display: grid !important; }

/* Spinner takes full width */
#serachpropertiesChennai .prop-loading {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    #serachpropertiesChennai {
        grid-template-columns: 1fr;
    }
}

/* ── Card shell ── */
.prop-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid #ede9df;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 28px rgba(179,151,85,0.07);
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    height: 100%;
    min-height: 240px;
    position: relative;
}
/* Gold left-edge accent bar */
.prop-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 18px 0 0 18px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.prop-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 18px 48px rgba(179,151,85,0.14);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}
.prop-card:hover::before { opacity: 1; }

/* ── LEFT: image — 44% ── */
.prop-card__image {
    flex: 0 0 44%;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}
.prop-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}
.prop-card:hover .prop-card__image img { transform: scale(1.07); }

/* Gradient fade at bottom of image */
.prop-card__image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
}

/* Status ribbon — top right corner */
.prop-card__ribbon {
    position: absolute;
    top: 0; right: 0;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom-left-radius: 14px;
    z-index: 3;
}
.ribbon-gold  { background: linear-gradient(135deg, #c9a84c, #B39755); }
.ribbon-dark  { background: linear-gradient(135deg, #243547, #1a2a3a); }
.ribbon-green { background: linear-gradient(135deg, #1e8c54, #1a7a4a); }

/* Interior support button — bottom of image, above gradient */
.prop-card__overlay-btn {
    position: absolute;
    bottom: 12px; left: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    z-index: 3;
}
.prop-card__overlay-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── RIGHT: info ── */
.prop-card__info {
    flex: 1;
    padding: 22px 20px 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: #fff;
}

/* Title + subtitle */
.prop-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prop-card__subtitle {
    font-size: 0.78rem;
    color: #8a96a3;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price block */
.prop-card__price-block {
    background: linear-gradient(135deg, rgba(179,151,85,0.08), rgba(179,151,85,0.04));
    border: 1px solid rgba(179,151,85,0.2);
    border-radius: 10px;
    padding: 9px 13px;
    margin-bottom: 13px;
}
.prop-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 2px;
}
.prop-card__price-sqft {
    font-size: 0.72rem;
    color: #aaa;
    margin: 0;
}

/* Meta grid */
.prop-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 8px;
    margin-bottom: 11px;
    padding-bottom: 11px;
    border-bottom: 1px dashed #ede9df;
}
.prop-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.77rem;
    color: #495057;
    background: #f8f7f4;
    border-radius: 6px;
    padding: 4px 8px;
}
.prop-card__meta-item i {
    color: var(--primary);
    width: 13px;
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* Location */
.prop-card__location {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.78rem;
    color: #7a8795;
    margin-bottom: 13px;
    line-height: 1.4;
}
.prop-card__location i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Action buttons */
.prop-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.prop-btn-dark {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.prop-btn-dark:hover {
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(179,151,85,0.35);
    transform: translateY(-1px);
}
.prop-btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid #c8d0d8;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.prop-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(179,151,85,0.06);
}

/* Loading state */
.prop-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    width: 100%;
}

/* Mobile: stack vertically */
@media (max-width: 576px) {
    .prop-card { flex-direction: column; }
    .prop-card::before { width: 100%; height: 4px; border-radius: 18px 18px 0 0; }
    .prop-card__image { flex: none; min-height: 200px; width: 100%; }
    .prop-card__info { padding: 18px 16px 16px; }
}

.ribbon-gold  { background: var(--primary); }
.ribbon-dark  { background: var(--secondary); }
.ribbon-green { background: #1a7a4a; }