/* ============================================================
   Kirubel Ethiopian Real Estate - Modern CSS Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0f172a;        /* Deep Slate Navy */
  --primary-light: #1e293b;  /* Lighter Navy */
  --accent: #d4af37;         /* Ethiopian Gold / Warm Amber */
  --accent-hover: #b89628;
  --accent-light: #fef08a;
  --secondary: #059669;      /* Emerald Green */
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Navigation Bar --- */
.top-bar {
  background-color: var(--primary);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info span {
  margin-right: 20px;
}

.top-bar-info i {
  color: var(--accent);
  margin-right: 6px;
}

.main-header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #b89628);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

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

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

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

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 100px 0 120px;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
}

/* --- Glassmorphism Search Filter Box --- */
.search-filter-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  margin-top: 30px;
  text-align: left;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background-color: #fff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* --- Page Header Banner --- */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: #94a3b8;
  font-size: 16px;
}

/* --- Section Styling --- */
.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-badge {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 10px;
}

/* --- Property Grid & Card --- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.property-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

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

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

.badge-purpose {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #fff;
}

.badge-purpose.sale {
  background-color: var(--primary);
  border: 1px solid var(--accent);
}

.badge-purpose.rent {
  background-color: var(--secondary);
}

.badge-featured {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.card-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-location {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-location i {
  color: var(--accent);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  margin-top: auto;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Ethiopian Locations Grid --- */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.neighborhood-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.neighborhood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.neighborhood-overlay h3 {
  font-size: 20px;
  font-weight: 700;
}

.neighborhood-overlay span {
  font-size: 13px;
  color: var(--accent);
}

/* --- Affiliate Marketing Callout Banner --- */
.affiliate-banner {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 50px 40px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-lg);
}

.affiliate-banner-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.affiliate-banner-text p {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 600px;
}

/* --- Property Detail Page Styling --- */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.gallery-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  height: 420px;
}

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

.detail-specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  text-align: center;
}

.spec-item i {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.spec-item span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-item strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
}

.sidebar-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

/* --- Footer --- */
footer {
  background-color: var(--primary);
  color: #94a3b8;
  padding-top: 70px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links li {
  margin-bottom: 12px;
}

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

.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .affiliate-banner {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Video Tour & Embed Player */
.video-container-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 14px;
}

.video-container-wrap iframe,
.video-container-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.badge-video {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}
