/* ============================================================
   APEX REAL ESTATE - MAIN STYLESHEET
   Bootstrap 5.3 Extension & Custom Premium Real Estate Styling
   ============================================================ */

:root {
    --primary-color: #0d2b45;
    --primary-hover: #071927;
    --secondary-color: #d4af37; /* Warm Gold */
    --secondary-hover: #b89726;
    --accent-color: #20b2aa;
    --dark-color: #1a1e21;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(13, 43, 69, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar */
.main-navbar {
    background: #ffffff;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.main-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navbar .navbar-brand span {
    color: var(--secondary-color);
}

.main-navbar .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    padding: 0.6rem 1rem !important;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--secondary-color);
}

/* Hero Section & Search */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(13, 43, 69, 0.75), rgba(13, 43, 69, 0.85)), url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 100px 0 140px;
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    background-color: #0f172a;
}

.hero-slide {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0 140px;
    color: #ffffff;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.0) 0%, rgba(15, 23, 42, 0.0) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 40%;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

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

.hero-carousel .carousel-indicators {
    bottom: 80px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: var(--transition);
}

.hero-carousel .carousel-indicators .active {
    width: 32px;
    border-radius: 6px;
    background-color: var(--accent-color);
}

.hero-search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    background: transparent;
    transition: var(--transition);
}

.search-tabs .nav-link.active {
    background: var(--primary-color);
    color: #ffffff;
}

/* Property Cards */
.property-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: #cbd5e1;
}

.property-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img-wrapper img {
    transform: scale(1.06);
}

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-featured {
    background: var(--secondary-color);
    color: #ffffff;
}

.badge-verified {
    background: #10b981;
    color: #ffffff;
}

.badge-purpose {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(13, 43, 69, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

.wishlist-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: #ef4444;
    color: #ffffff;
}

.property-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.property-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.property-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.property-title a:hover {
    color: var(--secondary-color);
}

.property-location {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #475569;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Project Cards */
.project-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.project-card .project-img {
    height: 240px;
    position: relative;
}

.project-card .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-dev-logo {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-dev-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sticky Contact Card on Property Details */
.sticky-contact-card {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-gold {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #ffffff;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #ffffff;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
    color: #ffffff;
}

/* Property Detail Gallery */
.property-gallery-main {
    height: 460px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.property-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-thumb {
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.property-gallery-thumb.active,
.property-gallery-thumb:hover {
    border-color: var(--secondary-color);
}

.property-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Amenity Icons Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.amenity-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.amenity-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* EMI Calculator Widget */
.emi-widget {
    background: linear-gradient(135deg, #0d2b45, #1d4063);
    color: #ffffff;
    border-radius: 16px;
    padding: 30px;
}

.emi-result-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    background-color: #071927;
    color: #94a3b8;
    padding: 70px 0 25px;
    border-top: 3px solid var(--secondary-color);
}

.footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0 100px;
    }
    .hero-search-box {
        margin-top: -30px;
    }
    .property-gallery-main {
        height: 320px;
    }
}
