/* =====================================================================
   BIGLAND INVESTORS — MODERN THEME
   Load this AFTER style.css so it overrides the old template rules.
   ===================================================================== */

:root {
    --bl-primary: #0f4c3a;       /* deep emerald green */
    --bl-primary-dark: #0a3527;
    --bl-primary-light: #e7f2ed;
    --bl-accent: #d98c3d;        /* warm terracotta / amber */
    --bl-accent-dark: #b96f26;
    --bl-dark: #16201c;          /* near-black heading colour */
    --bl-muted: #667085;
    --bl-bg: #f7f6f2;            /* warm off-white section background */
    --bl-card: #ffffff;
    --bl-border: #eaeaea;
    --bl-radius: 16px;
    --bl-shadow: 0 6px 24px rgba(16, 24, 40, .07);
    --bl-shadow-hover: 0 16px 40px rgba(16, 24, 40, .14);
}

/* ---------- base / typography ---------- */
body {
    font-family: 'Heebo', sans-serif;
    color: var(--bl-dark);
    background: #fff;
}
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--bl-dark);
}
a { color: var(--bl-primary); }
a:hover { color: var(--bl-accent); }

.text-primary { color: var(--bl-primary) !important; }
.bg-primary   { background-color: var(--bl-primary) !important; }
.btn-primary {
    background-color: var(--bl-primary);
    border-color: var(--bl-primary);
    font-weight: 600;
    border-radius: 8px;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bl-primary-dark);
    border-color: var(--bl-primary-dark);
}
.btn-outline-primary {
    color: var(--bl-primary);
    border-color: var(--bl-primary);
    font-weight: 600;
    border-radius: 8px;
}
.btn-outline-primary:hover {
    background-color: var(--bl-primary);
    border-color: var(--bl-primary);
}
.btn-accent {
    background-color: var(--bl-accent);
    border-color: var(--bl-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}
.btn-accent:hover { background-color: var(--bl-accent-dark); color: #fff; }

/* Fluid, capped headings so text never balloons on wide desktop screens */
.bl-h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.15; }
.bl-h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem);  line-height: 1.2; }
.bl-section-title { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); margin-bottom: .5rem; }
.bl-lead { font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); color: var(--bl-muted); }

.bl-section { padding: 4rem 0; }
.bl-section-bg { background: var(--bl-bg); }
.bl-eyebrow {
    display: inline-block;
    color: var(--bl-accent);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: .5rem;
}

/* ---------- navbar ---------- */
.nav-bar { box-shadow: 0 2px 14px rgba(16,24,40,.06); }
.navbar { padding-top: .6rem; padding-bottom: .6rem; }
.navbar .nav-link {
    font-weight: 600;
    color: var(--bl-dark);
    margin: 0 .35rem;
    position: relative;
}
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--bl-primary); }
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--bl-accent);
    border-radius: 2px;
}

/* ---------- hero / banner ---------- */
.bl-hero {
    background: linear-gradient(180deg, var(--bl-primary-light) 0%, #fff 65%);
    padding: 3rem 0 2rem;
}
.bl-hero-carousel {
    position: relative;
    border-radius: var(--bl-radius);
    overflow: hidden;
    box-shadow: var(--bl-shadow);
}
.bl-hero-carousel img { border-radius: var(--bl-radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.bl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--bl-primary-light);
    color: var(--bl-primary);
    font-weight: 700;
    font-size: .8rem;
    padding: .4rem .9rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

/* ---------- pill nav (Feature / Commercial / Farm House / Industrial tabs) ---------- */
.bl-pill-nav .nav-link {
    border-radius: 30px;
    padding: .5rem 1.3rem;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid var(--bl-primary);
    color: var(--bl-primary);
}
.bl-pill-nav .nav-link.active {
    background: var(--bl-primary);
    color: #fff;
}

/* ---------- property card ---------- */
.bl-card {
    background: var(--bl-card);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    overflow: hidden;
    box-shadow: var(--bl-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}
.bl-card:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-hover); }

/* Plain content panel (Property Details / Layout / Video / Location /
   Sidebar on the detail page). Same look as .bl-card but WITHOUT
   height:100% or hover-lift — those are grid-card-only behaviours and
   caused the sidebar to stretch to the full row height on this page. */
.bl-panel {
    background: var(--bl-card);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    box-shadow: var(--bl-shadow);
}
.bl-card .bl-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.bl-card .bl-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.bl-card:hover .bl-card-img img { transform: scale(1.07); }
.bl-badge {
    position: absolute; top: 12px;
    font-size: .72rem; font-weight: 700;
    padding: .32rem .75rem; border-radius: 30px;
    color: #fff;
}
.bl-badge-sell { left: 12px; background: var(--bl-accent); }
.bl-badge-type { right: 12px; background: rgba(15, 76, 58, .9); text-align: right; max-width: 60%; }

.bl-card-body { padding: 1.15rem 1.25rem 1rem; }
.bl-price-lock {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--bl-accent-dark);
    background: #fff6ea;
    font-weight: 700; font-size: .78rem;
    padding: .25rem .6rem; border-radius: 30px;
    margin-bottom: .55rem;
}
.bl-card-title {
    font-size: clamp(1rem, .9rem + .35vw, 1.2rem);
    font-weight: 700;
    margin-bottom: .35rem;
    display: block;
    color: var(--bl-dark);
}
.bl-card-title:hover { color: var(--bl-primary); }
.bl-card-location {
    color: var(--bl-muted);
    font-size: .9rem;
    display: flex; align-items: center; gap: .35rem;
    margin-bottom: 0;
}
.bl-card-meta {
    display: flex;
    border-top: 1px solid var(--bl-border);
    margin-top: .9rem;
}
.bl-card-meta > div {
    flex: 1; text-align: center;
    font-size: .78rem; color: var(--bl-muted);
    padding: .6rem .4rem;
    border-right: 1px solid var(--bl-border);
}
.bl-card-meta > div:last-child { border-right: 0; }
.bl-card-meta i { color: var(--bl-primary); margin-right: .3rem; }

/* ---------- about / CTA blocks ---------- */
.bl-about-img, .bl-cta-img { border-radius: var(--bl-radius); overflow: hidden; box-shadow: var(--bl-shadow); }
.bl-check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.bl-check-list li { display: flex; gap: .6rem; margin-bottom: .7rem; color: var(--bl-muted); }
.bl-check-list i { color: var(--bl-primary); margin-top: .2rem; }
.bl-cta-box {
    background: var(--bl-primary);
    border-radius: var(--bl-radius);
    color: #fff;
}
.bl-cta-box .bl-lead { color: rgba(255,255,255,.85); }
.bl-cta-box h2 { color: #fff; }

/* ---------- team ---------- */
.bl-team-card {
    background: var(--bl-card);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    overflow: hidden;
    box-shadow: var(--bl-shadow);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.bl-team-card:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-hover); }
.bl-team-card .bl-team-img { aspect-ratio: 1/1; overflow: hidden; }
.bl-team-card .bl-team-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-team-social {
    display: flex; justify-content: center; gap: .4rem;
    padding: .8rem 0 0;
}
.bl-team-social a {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bl-primary-light); color: var(--bl-primary);
}
.bl-team-social a:hover { background: var(--bl-primary); color: #fff; }

/* ---------- page header (about/contact/privacy) ---------- */
.bl-page-header {
    background: var(--bl-primary);
    color: #fff;
    padding: 3.2rem 0 2.6rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.bl-page-header h1 { color: #fff; }
.bl-page-header p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--bl-dark) !important; }
.footer h5 { color: #fff; }
.footer a.btn-social {
    border-radius: 50%; width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border-color: rgba(255,255,255,.25);
}
.footer a.btn-social:hover { background: var(--bl-accent); border-color: var(--bl-accent); }
.back-to-top { background: var(--bl-primary) !important; }

/* ---------- bottom sticky action menu (property detail page, mobile only) ---------- */
#bottomMenu {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    display: none;
    background: #fff;
    border-top: 1px solid var(--bl-border);
    box-shadow: 0 -4px 16px rgba(16,24,40,.08);
}
#bottomMenu.show { display: flex; }
#bottomMenu a {
    flex: 1;
    text-align: center;
    padding: .55rem .25rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--bl-dark);
    text-decoration: none;
    line-height: 1.3;
}
#bottomMenu a i { display: block; font-size: 1.05rem; margin-bottom: .2rem; color: var(--bl-primary); }
#bottomMenu a span { display: block; }
/* This menu is a mobile convenience bar only — never show it on desktop,
   regardless of scroll position, so it can't overlap the sidebar/content. */
@media (min-width: 992px) {
    #bottomMenu, #bottomMenu.show { display: none !important; }
}
@media (max-width: 991.98px) {
    body { padding-bottom: 60px; } /* keep bottom menu from covering content */
}

/* ---------- owl-carousel nav arrows (hero + property gallery) ---------- */
.bl-hero-carousel,
.owl-carousel-wrap {
    position: relative;
}
/* The original template positions the whole nav wrapper at left:-25px
   (meant for a carousel with no overflow clipping around it). Our hero
   carousel has rounded corners + overflow:hidden, so that negative offset
   pushed the buttons half outside the box and they got clipped. Reset it
   to sit flush within the carousel instead. */
.header-carousel .owl-nav,
.testimonial-carousel .owl-nav {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
}
@media (max-width: 768px) {
    .header-carousel .owl-nav { left: 0 !important; }
}
/* The original template positions the whole nav wrapper at left:-25px
   (meant for a carousel with no overflow clipping around it). Our hero
   carousel has rounded corners + overflow:hidden, so that negative offset
   pushed the buttons half outside the box and they got clipped. Reset it
   to sit flush within the carousel instead. */
.header-carousel .owl-nav,
.testimonial-carousel .owl-nav {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    display: block !important;
}
@media (max-width: 768px) {
    .header-carousel .owl-nav { left: 0 !important; }
}

/* Nav buttons: small, semi-transparent "glass" circles, one flush to
   the left edge and one flush to the right edge of the image. The
   selector repeats with/without the "button" tag so it applies no
   matter which element owl.carousel renders for the arrows. */
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next,
.header-carousel .owl-nav button.owl-prev,
.header-carousel .owl-nav button.owl-next {
    position: absolute !important;
    top: 50% !important;
    left: auto !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .2) !important;
    border: 1px solid rgba(255, 255, 255, .5) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: .85rem !important;
    opacity: 1 !important;
    z-index: 6;
    transition: background .25s ease;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav button.owl-prev { left: 14px !important; }
.header-carousel .owl-nav .owl-next,
.header-carousel .owl-nav button.owl-next { right: 14px !important; }
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover,
.header-carousel .owl-nav button.owl-prev:hover,
.header-carousel .owl-nav button.owl-next:hover {
    background: rgba(255, 255, 255, .4) !important;
}

/* Dot indicators: overlaid near the bottom of the image (not pushed
   below it), since the carousel box clips anything outside its bounds.
   Round dots, active one stretches into a small pill. */
.header-carousel .owl-dots {
    position: absolute !important;
    left: 0; right: 0; bottom: 14px;
    display: flex !important;
    justify-content: center;
    gap: 7px;
    z-index: 6;
    margin: 0 !important;
}
.header-carousel .owl-dots .owl-dot span {
    display: block;
    width: 7px; height: 7px;
    margin: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transition: all .25s ease;
}
.header-carousel .owl-dots .owl-dot.active span,
.header-carousel .owl-dots .owl-dot:hover span {
    background: #fff;
    width: 20px;
    border-radius: 5px;
}

/* ---------- hero (single-column stacked, matches requested order) ---------- */
.bl-hero-v2 { padding: 2rem 0 2.5rem; background: linear-gradient(180deg, var(--bl-primary-light) 0%, #fff 70%); }
.bl-hero-v2-media {
    border-radius: var(--bl-radius);
    overflow: hidden;
    box-shadow: var(--bl-shadow);
    margin-bottom: 1.75rem;
}
.bl-hero-v2-media img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; }
.bl-hero-v2-text { text-align: center; max-width: 780px; margin: 0 auto; }
@media (max-width: 767.98px) {
    .bl-section { padding: 2.6rem 0; }
    .bl-hero { padding: 2rem 0 1.5rem; text-align: center; }
    .bl-card-meta { flex-wrap: wrap; }
}

/* ---------- property detail sidebar (desktop-only sticky) ---------- */
@media (min-width: 992px) {
    .bl-sidebar-sticky { position: sticky; top: 90px; }
}

/* ---------- defensive: prevent a stray modal-backdrop from ever
   visually sitting on top of page content (known Bootstrap edge case
   when a modal is opened/closed rapidly) ---------- */
.modal-backdrop { pointer-events: none; }
body:not(.modal-open) .modal-backdrop { display: none !important; }
