/* Eslia brand theme layered on top of Bootstrap 5 */
:root {
  --navy: #0f1b3d;
  --navy-light: #17275a;
  --orange: #f2600c;
  --orange-dark: #d9550a;
  --logo-blue: #010066;
  --bs-primary: #f2600c;
  --bs-primary-rgb: 242, 96, 12;
  --bs-link-color: #f2600c;
  --bs-link-hover-color: #d9550a;
  --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bs-body-color: #1f2937;
}

body { background: #f2f2f2; }
a { text-decoration: none; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }
.text-orange { color: var(--orange) !important; }
.bg-orange { background-color: var(--orange) !important; }

.btn-primary { background-color: var(--orange); border-color: var(--orange); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline-primary { color: var(--orange); border-color: var(--orange); }
.btn-outline-primary:hover { background-color: var(--orange); border-color: var(--orange); }
.btn-navy { background-color: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background-color: var(--navy-light); border-color: var(--navy-light); color: #fff; }
.btn-outline-navy { color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background-color: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: #f3f4f6; color: var(--orange-dark); }

h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 700; }
.eyebrow { color: var(--orange); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; display: inline-block; }

/* Navbar */
.site-navbar { background: #fff; border-bottom: 1px solid #e5e8f0; padding: .9rem 0; position: sticky; top: 0; z-index: 1030; }
.site-navbar .navbar-brand img { height: 55px; }
.site-navbar .nav-link { font-weight: 600; color: var(--navy); }
.site-navbar .nav-link.active { color: var(--orange) !important; }

/* Page hero banner used on inner pages: a full-bleed background photo with a
   white-to-transparent gradient overlay across it (solid white at the left
   edge, fully transparent by the horizontal middle) — the heading/breadcrumb
   sit directly on that overlay (no background of their own). */
.page-hero { position: relative; background-size: cover; background-position: center right; padding: 3rem 0; min-height: 360px; display: flex; align-items: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 45%, rgba(255,255,255,0) 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .hero-panel { max-width: 560px; }

/* On mobile there isn't enough width for the desktop's early fade-out without
   the write-up spilling onto bare photo — so the white overlay covers the
   full banner instead, fading out only in the rightmost 20%, and the text
   column is capped at 70% of the screen so it stays within the solid-white
   area. Desktop is untouched. */
@media (max-width: 767.98px) {
    .page-hero::before { background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 20%, #fff 100%); }
    .page-hero .hero-panel { max-width: 70%; }
}
.breadcrumb-nav { font-size: .85rem; color: #6b7280; }
.breadcrumb-nav a { color: var(--orange); font-weight: 600; }

/* Homepage full-bleed hero (auto-sliding carousel of banner images behind
   static overlay content — see index.php) */
.home-hero { position: relative; padding: 7.8rem 0 11.7rem; color: #fff; overflow: hidden; }
.home-hero .hero-slides { position: absolute; inset: 0; z-index: 0; }
.home-hero .hero-slides, .home-hero .hero-slides .carousel-inner, .home-hero .hero-slides .carousel-item { height: 100%; }
.home-hero .hero-slides .carousel-item { background-size: cover; background-position: center; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,27,61,.88), rgba(15,27,61,.4)); }
.home-hero .hero-content { position: relative; z-index: 2; max-width: 620px; }
.home-hero h1 { color: #fff; font-size: 2.7rem; }
.home-hero h1 span { color: var(--orange); }

.search-card { background: #fff; border-radius: 14px; box-shadow: 0 15px 45px rgba(15,27,61,.15); margin-top: -6.5rem; position: relative; z-index: 2; }
.search-tabs .nav-link { color: #6b7280; font-weight: 600; font-size: .9rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .4rem .2rem; margin-right: 1.3rem; }
.search-tabs .nav-link.active { color: var(--orange); border-bottom-color: var(--orange); background: none; }

/* Property card */
.property-card { background: #fff; border: 1px solid #e5e8f0; border-radius: 12px; overflow: hidden; transition: box-shadow .15s; height: 100%; }
.property-card:hover { box-shadow: 0 14px 34px rgba(15,27,61,.1); }
.property-card .thumb { position: relative; aspect-ratio: 1 / 1; }
.property-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.property-card .tag { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 4px; text-transform: uppercase; }
.property-card .tag.land { background: #16a34a; }
.property-card .fav { position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.property-card .price { color: var(--orange); font-weight: 700; font-size: 1.15rem; }
.property-card .meta-row { border-top: 1px solid #e5e8f0; padding-top: .6rem; margin-top: .6rem; font-size: .82rem; color: #6b7280; }

/* Thumbnail mini-carousel — lets a guest flip through a property's photos
   directly on the listing card, without opening the property. */
.property-card .thumb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15,27,61,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s, background .15s; z-index: 2; }
.property-card .thumb:hover .thumb-nav { opacity: 1; }
.property-card .thumb-nav:hover { background: rgba(15,27,61,.85); }
.property-card .thumb-prev { left: 8px; }
.property-card .thumb-next { right: 8px; }
.property-card .thumb-count { position: absolute; bottom: 10px; right: 10px; background: rgba(15,27,61,.65); color: #fff; font-size: .68rem; font-weight: 600; padding: .2rem .5rem; border-radius: 4px; z-index: 2; }

/* Icon circle */
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: #fdece0; color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.icon-circle.navy { background: #e7eaf3; color: var(--navy); }

/* Stats bar */
.stats-bar { background: var(--navy); color: #fff; padding: 2.5rem 0; }
.stats-bar .num { font-size: 1.8rem; font-weight: 700; }
.stats-bar .label { font-size: .85rem; opacity: .85; }

/* Testimonial card */
.testimonial-card { background: #fff; border: 1px solid #e5e8f0; border-radius: 12px; padding: 1.5rem; height: 100%; }
.testimonial-card .quote-mark { color: var(--orange); font-size: 2rem; line-height: 1; }
.testimonial-card .person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* CTA banner */
.cta-banner { background: linear-gradient(90deg, var(--orange), var(--orange-dark)); border-radius: 14px; padding: 2rem; color: #fff; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer h5 { color: #fff; font-size: .95rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--orange); }
.site-footer .social-icons a { width: 36px; height: 36px; border-radius: 50%; background: #1c2a55; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.footer-bottom { border-top: 1px solid #22305e; padding-top: 1.1rem; margin-top: 2rem; font-size: .85rem; }

/* FAQ accordion tweaks */
.accordion-button:not(.collapsed) { color: var(--orange); background: #fff7f0; }
.accordion-button:focus { box-shadow: none; border-color: #e5e8f0; }

/* Sidebar cards (blog, faq) */
.sidebar-card { background: #fff; border: 1px solid #e5e8f0; border-radius: 12px; padding: 1.25rem; }

/* Pagination — matches the blue used in the site logo */
.pagination .page-link { color: var(--logo-blue); }
.pagination .page-item.active .page-link { background-color: var(--logo-blue); border-color: var(--logo-blue); }
.pagination .page-link:hover { color: var(--logo-blue); background-color: #eef0fa; }
.pagination .page-link:focus { box-shadow: 0 0 0 .2rem rgba(1,0,102,.25); }

/* Misc */
.rounded-14 { border-radius: 14px; }
.form-control, .form-select { padding: .65rem .9rem; }
.section-pad { padding: 3.5rem 0; }
