/* style.css - custom styling for Finding Hive demo */

:root {
    --brand: #28a745;
    --muted: #6c757d;
}

/* Navbar styling */
.navbar .bg-green {
    background-color: #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navbar brand logo */
.navbar-brand .brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-brand {
    color: #28a745 !important;
}

.navbar-nav .nav-link {
    color: #28a745 !important;
}

@media (max-width: 576px) {
    .navbar-brand .brand-logo {
        width: 28px;
        height: 28px;
    }
}

.dropdown-item:hover {
    background-color: #eaf7ef;
    color: #198754;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7fb;
    color: #222;
    line-height: 1.4;
}

/* Submenu positioning */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0.1rem;
    }

/* Show submenu on hover (desktop) */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* HERO */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 90px 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
    }

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
}


.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 65vh;
    }

        .hero-section h1 {
            font-size: 1.5rem;
        }

        .hero-section .form-control-lg,
        .hero-section .form-select-lg {
            font-size: 0.95rem;
            padding: 0.5rem 0.75rem;
        }
}

/* Dropdown Property type on hover */
.dropdown-menu .dropdown-item:hover {
    background-color: #28a745;
    color: #fff;
}

#minPrice,
#maxPrice,
#pricePreset {
    border-radius: 0.6rem;
}

#searchForm .form-control-lg,
#searchForm .form-select-lg {
    border-radius: 0.6rem;
}

/* Premium section title badge */
.premium-badge {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Premium card highlight */
.premium-card {
    border: 1px solid rgba(212, 175, 55, 0.6);
}

/* Premium icon on card */
.premium-icon {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #000;
    border-radius: 50%;
    padding: 6px 8px;
    font-size: 0.9rem;
}

#premium-properties h2 {
    color: #28a745;
}

/* TRUST INDICATORS */

.trust-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    background: #ffffff;
}

    .trust-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: rgba(40, 167, 69, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .trust-icon i {
        font-size: 28px;
        color: #28a745;
    }

/* Card */
.card-prop {
    border: 0;
    overflow: hidden;
    position: relative;
}

    .card-prop .card-img-top {
        height: 220px;
        object-fit: cover;
    }

#contact h3,
#about h3 {
    color: #fff;
}

#contact h5,
#properties h2 {
    color: #28a745;
}

/* Card image hover zoom */
.card-prop .card-img-top {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

.card-prop:hover .card-img-top {
    transform: scale(1.06);
    filter: saturate(1.03);
}

#detailBadge {
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* WHY CHOOSE US */

.choose-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    background: #ffffff;
}

    .choose-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

.choose-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: rgba(40, 167, 69, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .choose-icon i {
        font-size: 28px;
        color: #28a745;
    }

/* Blog card image zoom on hover */
#blogsContainer .card img {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

#blogsContainer .card:hover img {
    transform: scale(1.06);
    filter: saturate(1.03);
}

#blogsContainer .card {
    overflow: hidden;
}

.blog-image-wrapper {
    width: 100%;
    max-height: 420px;
    /* controls visual height */
    overflow: hidden;
    border-radius: 12px;
}

    .blog-image-wrapper img {
        width: 100%;
        height: 420px;
        /* MUST match wrapper height */
        object-fit: cover;
        /* key line */
        object-position: center;
        display: block;
    }

/* Buttons */
.btn-outline-primary {
    border-color: #28a745;
    color: #28a745;
}

    .btn-outline-primary:hover {
        background: rgba(40, 167, 69, 0.1);
        color: #28a745;
        border-color: #28a745;
    }

.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-primary:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

/* Share Button */
.btn-outline-info {
    border-color: #28a745;
    color: #28a745;
}

    .btn-outline-info:hover {
        background-color: #28a745;
        color: #fff;
    }

/* Search Button */
#searchBtn {
    margin-top: 7%;
}

/* Send Message Button */
.btn-send-msg {
    background-color: #1e7e34;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

    /* Hover state of Send Message Button */
    .btn-send-msg:hover {
        background-color: #218838;
    }

#blogs h2 {
    color: #28a745;
}

/* Footer */
footer {
    margin-top: 30px;
    background-color: #28a745;
}

.footer-section {
    background-color: #1e7e34;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}

#about p {
    max-width: 600px;
    line-height: 1.7;
}

#about ul li {
    margin-bottom: 6px;
}

.footer-section p,
.footer-section small,
.footer-muted {
    color: #e9f7ef;
    font-size: 0.95rem;
}

.col-md-4 {
    color: #fff;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

    .footer-link:hover {
        color: #1e7e34;
        text-decoration: none;
    }

.footer-links {
    color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        color: #e9f7ef;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #1e7e34;
        }

.footer-social {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 10px;
    transition: color 0.2s ease;
}

    .footer-social:hover {
        color: #1e7e34;
    }

.property-main-image img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
}

.property-gallery {
    display: flex;
    gap: 12px;
}

.property-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .property-thumbnails img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 6px;
        border: 2px solid transparent;
    }

        .property-thumbnails img.active {
            border-color: #28a745;
        }

.property-main img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
}

/* Modal image — keep property images uniform in modal */
#propModalImg {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }

    .card-prop .card-img-top {
        height: 180px;
    }

    #propModalImg {
        height: 220px;
    }
}

/* Ad-banner */
.ad-banner {
    text-align: center;
    margin: 20px 0;
}

    .ad-banner img {
        display: block;
        max-height: 90px;
        width: auto;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

.property-thumbnails {
    display: flex;
    gap: 10px;
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.2s ease;
}

    .testimonial-card:hover {
        transform: translateY(-4px);
    }

/* Wide screen fix */
@media (min-width: 1400px) {
    .container {
        max-width: 95%;
    }
}

/* Request Property */
.request-property-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.request-form-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ==========================
   PROPERTY SHARE BUTTONS
========================== */

#facebookShare {
    color: #1877f2;
    border-color: #1877f2;
}

    #facebookShare:hover {
        background-color: #1877f2;
        color: #fff;
    }

#whatsappShare {
    color: #25d366;
    border-color: #25d366;
}

    #whatsappShare:hover {
        background-color: #25d366;
        color: #fff;
    }

#downloadPdf {
    color: #dc3545;
    border-color: #dc3545;
}

    #downloadPdf:hover {
        background-color: #dc3545;
        color: #fff;
    }

#copyLink {
    color: #6c757d;
    border-color: #6c757d;
}

    #copyLink:hover {
        background-color: #6c757d;
        color: #fff;
    }

#universalShare {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

    #universalShare:hover {
        background-color: #0dcaf0;
        color: #fff;
    }

/* Button sizing consistency */
#facebookShare,
#whatsappShare,
#copyLink,
#downloadPdf,
#universalShare {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Mobile refinement */
@media (max-width: 576px) {

    #facebookShare,
    #whatsappShare,
    #copyLink,
    #downloadPdf,
    #universalShare {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ==========================
   AD WRAPPER (CENTERING)
========================== */

.ad-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.25rem 1rem;
    /* top/bottom + side breathing space */
}

/* ==========================
   AD SLOT (RESPONSIVE)
========================== */

.ad-slot {
    width: 100%;
    max-width: 300px;
    /* desktop size */
    aspect-ratio: 300 / 250;
    background: #f4f4f4;
    border-radius: 8px;
    overflow: hidden;
}

    .ad-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ==========================
   DESKTOP VARIANTS
========================== */

.ad-728x90 {
    max-width: 728px;
    aspect-ratio: 728 / 90;
}

.ad-160x600 {
    max-width: 160px;
    aspect-ratio: 160 / 600;
}

/* ==========================
   MOBILE OPTIMIZATION
========================== */

@media (max-width: 768px) {
    .ad-wrapper {
        margin: 0.25rem 0.75rem;
    }

    .ad-slot {
        max-width: 100%;
    }
}

/* Filter Sidebar Sytling */
.filter-card {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
}

@media (max-width: 991px) {
    .filter-card {
        position: static;
    }
}
