/* =========================================================
   Deep Real State - Main Stylesheet
   Brand: Navy Blue / Bright Blue / Green / Orange-Gold
   ========================================================= */
:root {
  --navy: #0b2545;
  --blue: #1d78d1;
  --blue-light: #e8f2fc;
  --green: #1fa971;
  --orange: #f0932b;
  --gold: #f0932b;
  --gray-bg: #f6f8fb;
  --text-dark: #16243a;
  --text-muted: #5b6b82;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 16px 40px rgba(11, 37, 69, 0.15);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .brand-text { font-family: var(--font-heading); font-weight: 700; }
.brand-text { color: var(--navy); font-size: 1.35rem; letter-spacing: -0.3px; }
a { color: var(--blue); text-decoration: none; }
.text-muted-custom { color: var(--text-muted); }
.section-pad { padding: 70px 0; }
.bg-soft { background: var(--gray-bg); }
.eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.8rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 0.5rem; }
.section-sub { color: var(--text-muted); max-width: 640px; }

/* Buttons */
.btn-brand-primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; border-radius: 8px; }
.btn-brand-primary:hover { background: #d97e1e; border-color: #d97e1e; color: #fff; }
.btn-brand-navy { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; border-radius: 8px; }
.btn-brand-navy:hover { background: #071a33; color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--blue); color: var(--blue); font-weight: 600; border-radius: 8px; }
.btn-outline-brand:hover { background: var(--blue); color: #fff; }

/* Header */
.topbar { background: var(--navy); }
.site-header .navbar { z-index: 1030; }
.navbar-nav .nav-link { color: var(--text-dark); font-weight: 500; padding: 0.55rem 0.9rem !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--blue); }

/* Hero */
.hero-section {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(11,37,69,.75), rgba(11,37,69,.55)), #0b2545;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-section p.lead { color: #e7eefc; }

.search-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 1.5rem;
  margin-top: -70px;
  position: relative;
  z-index: 5;
}
.search-tabs .nav-link { color: var(--navy); font-weight: 600; border-radius: 8px 8px 0 0; }
.search-tabs .nav-link.active { background: var(--navy); color: #fff; }

/* Property Cards */
.property-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.property-card-img { position: relative; height: 220px; overflow: hidden; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-card-img img { transform: scale(1.08); }
.badge-listing { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: #fff; }
.badge-sale { background: var(--green); }
.badge-rent { background: var(--blue); }
.badge-featured { position: absolute; top: 14px; right: 52px; background: var(--orange); color: #fff; padding: 5px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.favorite-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.favorite-btn.active i { color: #e0245e; font-weight: 900; }
.property-card-body { padding: 18px 20px 20px; }
.property-price { color: var(--orange); font-weight: 800; font-size: 1.15rem; }
.property-title { font-size: 1.05rem; margin: 6px 0 4px; }
.property-title a { color: var(--navy); }
.property-location { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 10px; }
.property-meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-dark); }
.property-meta i { color: var(--blue); margin-right: 4px; }
.property-type-chip { background: var(--blue-light); color: var(--blue); padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* Feature icon boxes */
.feature-box { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); height: 100%; }
.feature-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 16px; }

/* Category tiles */
.category-tile { position: relative; border-radius: var(--radius); overflow: hidden; height: 180px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11,37,69,.85)); }
.category-tile span { position: relative; z-index: 2; padding: 16px; font-weight: 700; font-family: var(--font-heading); }

/* How it works */
.step-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; margin: 0 auto 14px; }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; height: 100%; }
.testimonial-stars { color: var(--orange); }

/* Agents */
.agent-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.agent-card img { width: 100%; height: 260px; object-fit: cover; }
.agent-social a { color: var(--navy); margin: 0 6px; }

/* Blog */
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-category-tag { background: var(--blue-light); color: var(--blue); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* CTA */
.cta-section { background: linear-gradient(120deg, var(--navy), #123a63); color: #fff; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy); color: #cfe0f7; margin-top: 60px; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-text { color: #b9cbe6; font-size: 0.92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-links a { color: #cfe0f7; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { background: #071a33; color: #9fb6d8; }
.footer-bottom a { color: #9fb6d8; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; }
.social-icon:hover { background: var(--orange); color: #fff; }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: var(--shadow-hover); z-index: 1050; }
.viber-float { position: fixed; bottom: 94px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: #7360F2; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: var(--shadow-hover); z-index: 1050; }

/* Page header (interior pages) */
.page-header { background: linear-gradient(180deg, rgba(11,37,69,.85), rgba(11,37,69,.75)), url('../images/page-header-placeholder.jpg') center/cover; color: #fff; padding: 80px 0 50px; }
.breadcrumb-custom a { color: #cfe0f7; }
.breadcrumb-custom .active { color: var(--orange); }

/* Property Details */
.pd-gallery-main { border-radius: var(--radius); overflow: hidden; height: 460px; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.pd-gallery-thumbs img { height: 90px; width: 100%; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .75; }
.pd-gallery-thumbs img:hover, .pd-gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--orange); }
.pd-info-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.pd-amenity-chip { background: var(--blue-light); color: var(--blue); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; margin: 0 8px 8px 0; display: inline-block; }
.agent-mini-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.agent-mini-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* Forms */
.form-control, .form-select { border-radius: 8px; padding: 0.6rem 0.9rem; border: 1px solid #d9e2ef; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 0.2rem rgba(29,120,209,.15); }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }

/* Pagination */
.pagination .page-link { color: var(--navy); border-radius: 8px !important; margin: 0 3px; border: 1px solid #e1e8f2; }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); }

/* Alerts */
.alert-brand-success { background: #e5f8ef; color: #106a45; border: 1px solid #b7ecd2; }

/* FAQ */
.accordion-button:not(.collapsed) { background: var(--blue-light); color: var(--navy); }
.accordion-button:focus { box-shadow: none; }

/* Utilities */
.rounded-xl { border-radius: var(--radius); }
.shadow-soft { box-shadow: var(--shadow); }

@media (max-width: 991.98px) {
  .hero-section { min-height: 520px; }
  .search-box { margin-top: 20px; }
}
@media (max-width: 575.98px) {
  .section-pad { padding: 46px 0; }
  .pd-gallery-main { height: 280px; }
}
