/* ============================================================
   Indori Property — Main Stylesheet
   Base: Bootstrap 5
   ============================================================ */

:root {
    --ip-primary:   #1a6fc4;
    --ip-accent:    #f59e0b;
    --ip-dark:      #1e293b;
    --ip-muted:     #64748b;
    --ip-border:    #e2e8f0;
    --ip-radius:    0.5rem;
    --ip-shadow:    0 2px 12px rgba(0,0,0,0.08);
}

/* -------------------------------------------------------
   Typography
------------------------------------------------------- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ip-dark);
    background: #f8fafc;
}

/* -------------------------------------------------------
   Navbar
------------------------------------------------------- */
.navbar {
    z-index: 1040;
}
.navbar-brand {
    letter-spacing: -0.02em;
}

/* -------------------------------------------------------
   Hero Section
------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #1a6fc4 0%, #1e40af 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
}
.hero-search {
    max-width: 900px;
    margin: 0 auto;
}
.hero-search .form-control,
.hero-search .form-select {
    border-color: #e2e8f0;
    font-size: 0.95rem;
}

/* -------------------------------------------------------
   Property Cards
------------------------------------------------------- */
.property-card {
    border-radius: var(--ip-radius);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.property-img-wrap {
    height: 200px;
    background: #e2e8f0;
}
.property-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.property-card:hover .property-thumb {
    transform: scale(1.03);
}

/* -------------------------------------------------------
   Property Detail
------------------------------------------------------- */
.property-gallery-img {
    height: 420px;
    object-fit: cover;
    background: #e2e8f0;
}
.spec-box {
    transition: border-color 0.2s, background 0.2s;
}
.spec-box:hover {
    border-color: var(--ip-primary) !important;
    background: #eff6ff;
}

/* -------------------------------------------------------
   Category Cards
------------------------------------------------------- */
.category-card .card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--ip-primary) !important;
}

/* -------------------------------------------------------
   Contact Revealed
------------------------------------------------------- */
.contact-revealed {
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------
   Seller Panel Layout
------------------------------------------------------- */
.seller-layout {
    min-height: 100vh;
}
.seller-sidebar {
    width: 240px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1045;
}
.seller-main {
    margin-left: 240px;
}
@media (max-width: 991px) {
    .seller-sidebar { transform: translateX(-100%); pointer-events: none; }
    .seller-main    { margin-left: 0; }
    .seller-sidebar.open { transform: translateX(0); pointer-events: auto; }
}

/* -------------------------------------------------------
   Image Upload Preview
------------------------------------------------------- */
.img-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.img-preview-item {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 2px solid #e2e8f0;
    cursor: grab;
}
.img-preview-item.is-cover {
    border-color: var(--ip-primary);
}
.img-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-preview-item .img-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220,38,38,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

/* -------------------------------------------------------
   Search Filters
------------------------------------------------------- */
.filter-sidebar .form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

/* -------------------------------------------------------
   Stats Bar
------------------------------------------------------- */
.stats-bar .fw-bold {
    font-size: 1.75rem;
}

/* -------------------------------------------------------
   Utility
------------------------------------------------------- */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer link hover */
.footer-link:hover { color: #fff !important; }

/* Seller sidebar overlay (mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1039;
    display: none;
    pointer-events: none;
}
.sidebar-overlay.active {
    display: block !important;
    pointer-events: auto;
}

/* -------------------------------------------------------
   Hero Carousel
------------------------------------------------------- */
.hero-carousel-wrap {
    overflow: hidden;
}
.hero-slide {
    min-height: 460px;
    /* do NOT set display here — Bootstrap needs to control display:none on inactive .carousel-item */
}
.hero-slide-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
}
.hero-slide--1 {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.60) 100%),
        url('/assets/img/hero/slide1.jpg') center/cover no-repeat;
}
.hero-slide--2 {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.60) 100%),
        url('/assets/img/hero/slide2.jpg') center/cover no-repeat;
}
.hero-slide--3 {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.60) 100%),
        url('/assets/img/hero/slide3.jpg') center/cover no-repeat;
}
.hero-slide-content {
    padding: 4rem 1rem 7rem;
    max-width: 700px;
    margin: 0 auto;
}
.hero-slide-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}
.hero-search-bar {
    position: relative;
    margin-top: -4rem;
    z-index: 10;
    padding-bottom: 0;
}
.hero-carousel-wrap .carousel-indicators {
    bottom: 5.5rem;
}
@media (max-width: 575px) {
    .hero-slide, .hero-slide-wrap { min-height: 380px; }
    .hero-slide-content { padding-bottom: 5.5rem; }
    .hero-search-bar { margin-top: -2rem; }
    .hero-carousel-wrap .carousel-indicators { bottom: 3rem; }
}

/* -------------------------------------------------------
   Scroll Animations
------------------------------------------------------- */
.animate-ready {
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-ready[data-animate="fade-up"]    { opacity: 0; transform: translateY(36px); }
.animate-ready[data-animate="fade-left"]  { opacity: 0; transform: translateX(-50px); }
.animate-ready[data-animate="fade-right"] { opacity: 0; transform: translateX(50px); }
.animate-ready.animated { opacity: 1 !important; transform: none !important; }

/* -------------------------------------------------------
   Hero Category Badges (slide-fill on hover)
------------------------------------------------------- */
.hero-cat-badge {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: #fff;
    color: var(--ip-primary);
    border: 1px solid rgba(26,111,196,0.25);
    border-radius: 999px;
    font-weight: 500;
    transition: color 0.35s ease, border-color 0.35s ease;
    z-index: 0;
}
.hero-cat-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ip-primary);
    transform: translateX(-101%);
    transition: transform 0.35s ease;
    z-index: -1;
}
.hero-cat-badge:hover::before {
    transform: translateX(0);
}
.hero-cat-badge:hover {
    color: #fff !important;
    border-color: var(--ip-primary);
}

/* -------------------------------------------------------
   Section Heading Accent
------------------------------------------------------- */
.section-heading-accent::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--ip-accent);
    border-radius: 2px;
    margin-top: 6px;
}

/* -------------------------------------------------------
   How It Works
------------------------------------------------------- */
.section-how-it-works {
    background: #f0f7ff;
}
.hiw-card {
    background: #fff;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hiw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.hiw-step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ip-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* -------------------------------------------------------
   About Us
------------------------------------------------------- */
.about-content p { margin-bottom: 0.75rem; }
.about-usp li { padding: 0.3rem 0; font-size: 0.95rem; }
.about-stats-card {
    background: #f8fafc;
    border-radius: var(--ip-radius);
    padding: 2rem;
    box-shadow: var(--ip-shadow);
}
.about-stat-box {
    background: #fff;
    border-radius: var(--ip-radius);
    padding: 1.25rem 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.about-stat-num { font-size: 1.75rem; line-height: 1.1; }
.about-stat-label { font-size: 0.78rem; color: var(--ip-muted); margin-top: 4px; }
.letter-spacing-wide { letter-spacing: 0.08em; }

/* -------------------------------------------------------
   Testimonials
------------------------------------------------------- */
.testi-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.testi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
}
.testi-quote {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--ip-dark);
}
.testi-stars { font-size: 0.85rem; }
#testimonialCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--ip-primary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    filter: invert(25%) sepia(90%) saturate(600%) hue-rotate(190deg);
}

/* -------------------------------------------------------
   CTA Enhanced
------------------------------------------------------- */
.cta-section-enhanced { background: #f0f7ff; }
.cta-inner {
    background: linear-gradient(135deg, #1a6fc4 0%, #1e40af 60%, #0f4c8a 100%);
    position: relative;
}
.cta-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}
.cta-deco--1 {
    width: 320px; height: 320px;
    background: #fff;
    top: -120px; right: -80px;
}
.cta-deco--2 {
    width: 200px; height: 200px;
    background: var(--ip-accent);
    bottom: -70px; left: 5%;
}
@media (max-width: 767px) {
    .cta-inner { padding: 2.5rem 1.5rem !important; }
    .cta-inner h2 { font-size: 1.5rem; }
}
