/* =============================================================
   ImmoTrust CI — Custom Styles
   Green/teal theme reflecting Côte d'Ivoire's national colors
   ============================================================= */

:root {
    --immo-primary: #1b7a43;
    --immo-primary-dark: #145a32;
    --immo-primary-light: #27ae60;
    --immo-secondary: #f39c12;
    --immo-accent: #e67e22;
    --immo-dark: #2c3e50;
    --immo-light: #f8f9fa;
    --immo-text: #333;
    --immo-muted: #6c757d;
}

/* --- Global --- */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: var(--immo-text);
}

a {
    color: var(--immo-primary);
    text-decoration: none;
}

a:hover {
    color: var(--immo-primary-dark);
}

.main-content {
    min-height: calc(100vh - 180px);
}

/* --- Navbar --- */
.navbar-immo {
    background: linear-gradient(135deg, var(--immo-primary), var(--immo-primary-dark));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-immo .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
}

.navbar-immo .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-immo .nav-link:hover,
.navbar-immo .nav-link.active {
    color: #fff !important;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--immo-primary), var(--immo-primary-dark));
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--immo-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .form-control {
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-search .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

/* --- Buttons --- */
.btn-immo {
    background-color: var(--immo-primary);
    border-color: var(--immo-primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s;
}

.btn-immo:hover {
    background-color: var(--immo-primary-dark);
    border-color: var(--immo-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 122, 67, 0.3);
}

.btn-immo-outline {
    background: transparent;
    border: 2px solid var(--immo-primary);
    color: var(--immo-primary);
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s;
}

.btn-immo-outline:hover {
    background-color: var(--immo-primary);
    color: #fff;
}

.btn-accent {
    background-color: var(--immo-secondary);
    border-color: var(--immo-secondary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--immo-accent);
    border-color: var(--immo-accent);
    color: #fff;
}

/* --- Property Cards --- */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.property-card .card-body {
    padding: 1.2rem;
}

.property-card .price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--immo-primary);
}

.property-card .location-text {
    color: var(--immo-muted);
    font-size: 0.9rem;
}

/* --- Badge Styles --- */
.badge-new { background-color: #95a5a6; }
.badge-verified { background-color: #3498db; }
.badge-trusted { background-color: var(--immo-primary); }
.badge-top { background-color: var(--immo-secondary); }
.badge-warned { background-color: #e74c3c; }
.badge-banned { background-color: #2c3e50; }

/* --- Rating Stars --- */
.rating-stars .bi-star-fill { color: var(--immo-secondary); }
.rating-stars .bi-star { color: #ddd; }

/* --- Stats Section --- */
.stats-section {
    background-color: var(--immo-primary);
    color: #fff;
    padding: 60px 0;
}

.stats-section .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.stats-section .stat-label {
    font-size: 1rem;
    opacity: 0.85;
}

/* --- How It Works --- */
.how-it-works .step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--immo-primary-light), var(--immo-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 2rem;
}

/* --- Footer --- */
.footer-immo {
    background-color: var(--immo-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
}

.footer-immo h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-immo a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-immo a:hover {
    color: var(--immo-primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 30px;
}

/* --- Auth Pages --- */
.auth-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-container h2 {
    font-weight: 700;
    color: var(--immo-dark);
    margin-bottom: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--immo-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-btn {
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* --- Dashboard --- */
.dashboard-card {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

/* --- Section Titles --- */
.section-title {
    font-weight: 700;
    color: var(--immo-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--immo-muted);
    margin-bottom: 2rem;
}

/* --- Trust Section --- */
.trust-icon {
    width: 60px;
    height: 60px;
    background: rgba(27, 122, 67, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--immo-primary);
    margin-bottom: 1rem;
}

/* =============================================================
   HERO CAROUSEL
   ============================================================= */
.hero-carousel-section {
    position: relative;
}

.hero-slide {
    min-height: 72vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide-1 { background: linear-gradient(135deg, #1b7a43 0%, #0f9b8e 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #e65100 0%, #f9a825 100%); }
.hero-slide-4 { background: linear-gradient(135deg, #4a148c 0%, #3949ab 100%); }
.hero-slide-5 { background: linear-gradient(135deg, #00695c 0%, #1b7a43 100%); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem 0;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-bar {
    max-width: 600px;
}

.hero-search-bar .form-control {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 14px 24px;
    font-size: 1rem;
}

/* Carousel indicators — brand colored dots */
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: none;
    transition: background-color 0.3s;
}
#heroCarousel .carousel-indicators .active {
    background-color: var(--immo-secondary);
    transform: scale(1.3);
}

/* =============================================================
   3-COLUMN LIVE LAYOUT
   ============================================================= */
.live-layout {
    align-items: start;
}

.live-panel-col {
    width: 280px;
    flex: 0 0 280px;
}

.live-center-col {
    flex: 1;
    min-width: 0;
}

.live-panel {
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
}

.live-panel-header {
    background: linear-gradient(90deg, var(--immo-primary), var(--immo-primary-light));
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 14px;
}

.live-panel-body {
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.live-panel-footer {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    font-size: 0.82rem;
}

/* Live feed rows */
.feed-row {
    transition: background-color 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.feed-row:last-child {
    border-bottom: none;
}

.feed-row:hover,
.hover-bg:hover {
    background-color: #f0f9f4;
}

.feed-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Pulsing live dot */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Mobile live strips */
.live-strip-wrap {
    padding: 12px 0;
}

.live-strip {
    -webkit-overflow-scrolling: touch;
}

.strip-card {
    flex: 0 0 120px;
    width: 120px;
}

.strip-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* =============================================================
   FOOTER NEWSLETTER BAND
   ============================================================= */
.footer-newsletter {
    background: linear-gradient(135deg, var(--immo-primary), var(--immo-primary-dark));
    margin-top: 0;
}

/* Footer link hover */
.footer-link:hover {
    color: var(--immo-primary-light) !important;
}

.social-link:hover {
    color: var(--immo-primary-light) !important;
}

/* =============================================================
   PROPERTY LIST — sticky sidebar + sort dropdown
   ============================================================= */
@media (min-width: 992px) {
    .filter-sidebar {
        position: sticky;
        top: 80px;
    }
}

.sort-bar {
    background: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* Empty state polish */
.empty-state {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* =============================================================
   PROPERTY DETAIL — thumbnail strip
   ============================================================= */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.75;
    flex-shrink: 0;
}

.gallery-thumbnails img.active,
.gallery-thumbnails img:hover {
    border-color: var(--immo-primary);
    opacity: 1;
}

/* =============================================================
   STATS ANIMATION — counter overrides
   ============================================================= */
.stats-section .counter {
    display: inline-block;
    min-width: 80px;
}

/* =============================================================
   HERO CAROUSEL — reduced search bar
   ============================================================= */
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hero-search-bar {
    max-width: 460px;  /* reduced from 600px */
}

.hero-search-bar .form-control {
    border: none;
    box-shadow: 0 3px 14px rgba(0,0,0,0.18);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.hero-search-bar .btn {
    padding: 10px 20px;
}

/* =============================================================
   AD SHOWCASE SECTION
   ============================================================= */
.ad-showcase-section {
    background: #f4f6f8;
    border-bottom: 1px solid #e8e8e8;
}

.ad-showcase-card {
    display: flex;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    background: #111;
    height: 500px;
    animation: showcase-glow 3s ease-in-out infinite;
}

@keyframes showcase-glow {
    0%, 100% { box-shadow: 0 8px 40px rgba(27,122,67,0.15), 0 0 0 0 rgba(27,122,67,0); }
    50%       { box-shadow: 0 8px 60px rgba(27,122,67,0.3),  0 0 0 4px rgba(27,122,67,0.12); }
}

/* Main image area */
.ad-main-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.ad-main-img-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Image fills frame using absolute positioning */
.ad-main-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.18s ease;
}

video.ad-main-img {
    object-fit: cover;
    background: #000;
}

/* Gradient overlay at bottom */
.ad-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.ad-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.ad-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--immo-secondary);
}

.text-white-75 { color: rgba(255,255,255,0.82); }

/* Thumbnail strip — RIGHT side, vertical */
.ad-thumbs-wrap {
    width: 110px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.ad-thumb-item {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
}

.ad-thumb-item:hover {
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.03);
}

.ad-thumb-item.active {
    border-color: var(--immo-secondary);
}

.ad-thumb-img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.2s;
}

.ad-thumb-item:hover .ad-thumb-img,
.ad-thumb-item.active .ad-thumb-img {
    filter: brightness(1);
}

.ad-thumb-num {
    position: absolute;
    bottom: 3px;
    right: 4px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.5);
    padding: 1px 4px;
    border-radius: 3px;
}

.ad-thumb-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Live badge */
.ad-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2ecc71;
}

/* =============================================================
   HOME THREE-COLUMN LAYOUT
   ============================================================= */
.main-grid-section {
    background: #f4f6f8;
}

/* Sidebar wrapper */
.main-grid-section aside.col-lg-2 {
    -ms-flex-item-align: start;
    align-self: flex-start;
}

/* Sidebar widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.sidebar-widget-title {
    background: #1b7a43; /* IE fallback — no CSS vars */
    background: linear-gradient(90deg, var(--immo-primary), var(--immo-primary-light));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.sidebar-widget-body {
    padding: 10px;
}

.sidebar-widget-footer {
    border-top: 1px solid #f0f0f0;
    padding: 8px 14px;
    background: #fafafa;
    font-size: 0.8rem;
}

/* Category links */
.sidebar-cat-link {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--immo-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.sidebar-cat-link:hover,
.sidebar-cat-link.active {
    background: rgba(27,122,67,0.1);
    color: var(--immo-primary);
}

/* City chips */
.city-chip {
    font-size: 0.73rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.city-chip:hover {
    background: var(--immo-primary) !important;
    color: #fff !important;
    border-color: var(--immo-primary) !important;
}

/* Stats widget */
.sidebar-stats-widget .sidebar-widget-body {
    padding: 8px 12px;
}

.sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.8rem;
}

.sidebar-stat:last-child { border-bottom: none; }

.sidebar-stat-num {
    font-weight: 700;
    color: var(--immo-primary);
    font-size: 0.95rem;
}

.sidebar-stat-label {
    color: var(--immo-muted);
    font-size: 0.75rem;
}

/* CTA / map / land widgets */
.sidebar-cta-widget .sidebar-widget-body,
.sidebar-map-widget .sidebar-widget-body,
.sidebar-land-widget .sidebar-widget-body {
    padding: 16px 12px;
}

/* Live feed rows in sidebar */
.feed-row {
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s;
}

.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: #f0f9f4; }

.feed-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Pulsing live dot */
.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ecc71;
    animation: pulse-dot 1.8s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* =============================================================
   RESPONSIVE — ad showcase on small screens
   ============================================================= */
@media (max-width: 767px) {
    .ad-showcase-card { flex-direction: column; max-height: none; }
    .ad-thumbs-wrap {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: 80px;
        padding: 4px 6px;
    }
    .ad-thumb-item { flex-shrink: 0; width: 110px; }
    .ad-thumb-img  { width: 110px; height: 68px; }
}


/* =============================================================
   POLISH -- Professional UI refinements
   ============================================================= */

body {
    font-family: Poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-immo {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.2s ease;
}

.navbar-immo .nav-link {
    font-size: 0.875rem;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.navbar-immo .nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}

.navbar-immo .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    margin-top: 0.4rem;
    animation: dropFadeIn 0.15s ease;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar-immo .dropdown-item {
    font-size: 0.86rem;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    margin: 2px 6px;
    transition: background 0.12s;
}

.navbar-immo .dropdown-item:hover {
    background: rgba(27,122,67,0.09);
    color: var(--immo-primary);
}

.navbar-immo .input-group .form-control {
    border-radius: 20px 0 0 20px !important;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.82rem;
}

.navbar-immo .input-group .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.navbar-immo .input-group .form-control:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
    color: #fff;
}

.navbar-immo .input-group .btn-light {
    border-radius: 0 20px 20px 0 !important;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.navbar-immo .input-group .btn-light:hover {
    background: rgba(255,255,255,0.35);
}

/* Richer hero slide gradients */
.hero-slide-1 { background: linear-gradient(140deg, #1b7a43 0%, #0d5c32 40%, #0f9b8e 100%); }
.hero-slide-2 { background: linear-gradient(140deg, #0d2759 0%, #1a3d8f 50%, #1565c0 100%); }
.hero-slide-3 { background: linear-gradient(140deg, #bf360c 0%, #e65100 50%, #f9a825 100%); }
.hero-slide-4 { background: linear-gradient(140deg, #38006b 0%, #6a1b9a 50%, #3949ab 100%); }
.hero-slide-5 { background: linear-gradient(140deg, #004d40 0%, #00695c 50%, #1b7a43 100%); }

/* Hero CTA buttons */
.hero-slide-content .btn-lg {
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-slide-content .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Carousel controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255,255,255,0.35);
}

/* Property card polish */
.property-card {
    border-radius: 14px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
}

.property-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.13) !important;
}

.property-card .position-relative {
    overflow: hidden;
}

.property-card .card-img-top {
    transition: transform 0.35s ease;
}

.property-card:hover .card-img-top {
    transform: scale(1.05);
}

.property-card .position-relative > div.bg-secondary {
    background: linear-gradient(135deg, #90a4ae 0%, #607d8b 100%) !important;
}

.property-card .badge.bg-dark {
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.72) !important;
}

.property-card .badge.bg-success {
    box-shadow: 0 1px 6px rgba(39,174,96,0.4);
}

.property-card .card-body {
    padding: 1rem 1rem 0.6rem;
}

.property-card .card-title a {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
}

.property-card .card-footer {
    padding: 0.6rem 1rem;
    background: #fafafa !important;
}

/* Section title underline */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--immo-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--immo-primary);
    border-radius: 2px;
}

/* Main grid background */
.main-grid-section {
    background: #f5f7fa;
    min-height: 60vh;
}

/* Sidebar */
.sidebar-widget-title {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-cat-link.active {
    border-left: 3px solid var(--immo-primary);
    padding-left: 7px;
}

.sidebar-stat-num {
    font-size: 1rem;
    font-weight: 800;
}

.feed-thumb {
    border-radius: 8px !important;
    width: 50px;
    height: 50px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--immo-primary);
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}

.pagination .page-item.active .page-link {
    background: var(--immo-primary);
    border-color: var(--immo-primary);
}

.pagination .page-link:hover {
    background: rgba(27,122,67,0.1);
    border-color: var(--immo-primary);
    color: var(--immo-primary);
}

.bg-opacity-60 { --bs-bg-opacity: 0.6; }

.btn { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:active { transform: scale(0.97); }

