/* ==========================================================================
   KSUNIQ PROPERTY - MAIN STYLESHEET (FINDHOUSES INSPIRED)
   ========================================================================== */

/* Variables (Change colors here easily) */
:root {
    --theme-primary: #ff5a5f;      /* Premium Pink/Red */
    --theme-primary-dark: #e04a4e; /* Darker shade for hover */
    --text-dark: #222222;
    --text-muted: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

/* Typography & Helpers */
.text-theme-primary { color: var(--theme-primary) !important; }
.bg-theme-primary { background-color: var(--theme-primary) !important; }
.btn-theme-primary {
    background-color: var(--theme-primary);
    color: #fff;
    border: none;
    transition: all 0.3s;
}
.btn-theme-primary:hover {
    background-color: var(--theme-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}
.hover-theme:hover { color: var(--theme-primary) !important; transition: 0.3s; }

/* Custom Logo Resize */
.custom-logo {
    max-width: 200px; /* Logo ki max width set karein */
    height: auto;     /* Height apne aap adjust ho jayegi */
    max-height: 50px; /* Navbar ke hisaab se height limit */
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    /* Yahan aapni pasand ki image ka link daalein */
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80') center center/cover no-repeat;
    height: 85vh; /* Takes 85% of screen height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay over the image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% black overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Keeps text above the dark overlay */
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   FLOATING SEARCH BAR
   -------------------------------------------------------------------------- */
.search-box-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    max-width: 900px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
}

.search-box-wrapper .form-select,
.search-box-wrapper .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.search-box-wrapper .form-select:focus,
.search-box-wrapper .form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.2) !important;
}

/* --------------------------------------------------------------------------
   PROPERTY CARDS (GRID)
   -------------------------------------------------------------------------- */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.property-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    transform: translateY(-8px);
}
.property-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.property-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.property-card:hover .property-img-wrap img {
    transform: scale(1.08); /* Smooth zoom */
}
.badge-sale {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--theme-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}
.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(34, 34, 34, 0.85);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    z-index: 2;
}
.property-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-footer {
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .search-box-wrapper { padding: 20px; margin: 0 15px; }
    .hero-section { height: auto; padding: 100px 0; }
}
/* =========================================
   Popular Places Section CSS
========================================= */

.place-card {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Hover par card thoda upar uthega aur shadow dark hogi */
.place-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #e0e0e0 !important;
}

/* Image ka dibba */
.place-img-wrap {
    width: 180px; /* Fixed width taaki sab barabar dikhein */
    height: 150px;
    overflow: hidden;
    flex-shrink: 0; /* Mobile par image choti na ho */
}

.place-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover karne par image thoda zoom hogi */
.place-card:hover .place-img-wrap img {
    transform: scale(1.1); 
}

/* Content Area */
.place-content {
    flex-grow: 1;
    overflow: hidden;
}

.place-content h5 {
    transition: color 0.3s ease;
}

.place-card:hover .place-content h5 {
    color: #0d6efd !important; /* Is color ko apne theme primary color (blue/red jo bhi hai) se replace kar lein */
}
/* =========================================
   GLOBAL THEME COLOR: rgb(255, 90, 95)
========================================= */

/* Solid Buttons */
.btn-theme-primary, 
.btn-primary,
.bg-theme-primary {
    background-color: rgb(255, 90, 95) !important;
    border-color: rgb(255, 90, 95) !important;
    color: #ffffff !important;
}

/* Solid Buttons Hover Effect (Thoda dark shade) */
.btn-theme-primary:hover, 
.btn-primary:hover {
    background-color: rgb(235, 75, 80) !important; 
    border-color: rgb(235, 75, 80) !important;
    color: #ffffff !important;
}

/* Outline Buttons (Border wale buttons) */
.btn-outline-primary {
    color: rgb(255, 90, 95) !important;
    border-color: rgb(255, 90, 95) !important;
    background-color: transparent !important;
}

/* Outline Buttons Hover Effect */
.btn-outline-primary:hover {
    background-color: rgb(255, 90, 95) !important;
    color: #ffffff !important;
}

/* Text & Icons Color (Jahan blue dikh raha tha wahan ab ye color aayega) */
.text-theme-primary,
.hover-theme:hover {
    color: rgb(255, 90, 95) !important;
}

/* "For Sale" Badge Color (Reference image jaisa same color) */
.badge-sale {
    background-color: rgb(255, 90, 95) !important;
    color: #ffffff !important;
}
/* =========================================
   List View Properties CSS
========================================= */

.property-list-card {
    transition: all 0.3s ease;
}

.property-list-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.list-img-wrap img {
    transition: transform 0.5s ease;
}

.property-list-card:hover .list-img-wrap img {
    transform: scale(1.05);
}

/* Hover Theme Color for Links */
.hover-theme:hover {
    color: #0d6efd !important; /* Update with your primary theme color */
}

/* Mobile Responsiveness for List View */
@media (max-width: 767px) {
    .property-list-card {
        flex-direction: column !important; /* Mobile me image upar, text niche */
    }
    .list-img-wrap {
        flex: 0 0 auto !important;
        height: 250px;
    }
}