:root {
  --primary: #123c69;
  --primary-dark: #0b253f;
  --accent: #f4a261;
  --accent-dark: #e76f51;
  --soft: #f5f7fb;
  --dark: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
}

.bg-light,
.bg-soft {
  background: var(--soft) !important;
}

.btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 700;
  font-size: .85rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-accent,
.btn-warning {
  background: var(--accent) !important;
  color: #111827 !important;
  border: 0 !important;
}

.btn-accent:hover,
.btn-warning:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.badge {
  border-radius: var(--radius-xs) !important;
  font-size: .68rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 40px;
  font-size: .85rem;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(18,60,105,.12);
}

/* Header */
.property-navbar {
  transition: all .25s ease;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar-brand {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: .95rem;
}

.property-navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
  opacity: .9;
  font-size: .82rem;
}

.property-navbar .nav-link:hover,
.property-navbar .nav-link:focus {
  color: var(--accent) !important;
  opacity: 1;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: .25rem .45rem;
}

.navbar-toggler-icon {
  filter: invert(1);
  width: 1.1rem;
  height: 1.1rem;
}

.navbar-home {
  background: rgba(11,37,63,.35);
  backdrop-filter: blur(10px);
}

.navbar-home.is-scrolled,
.navbar-inner {
  background: rgba(11,37,63,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(15,23,42,.18);
}

/* Home hero */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 105px 0 58px;
  background:
    linear-gradient(90deg, rgba(11,37,63,.92), rgba(11,37,63,.62), rgba(11,37,63,.25)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  margin-bottom: .85rem;
  font-size: .78rem;
}

.hero-title {
  max-width: 620px;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.025em;
}

.hero-subtitle {
  max-width: 560px;
  color: rgba(255,255,255,.86);
  font-size: .9rem;
  line-height: 1.55;
}

.search-panel {
  max-width: 960px;
  margin-top: 1.5rem;
  background: rgba(255,255,255,.97);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: .9rem;
  box-shadow: 0 20px 54px rgba(0,0,0,.22);
}

.search-panel label {
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.search-panel .form-control,
.search-panel .form-select {
  min-height: 40px;
  font-size: .82rem;
}

.stats-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-sm);
  padding: .75rem;
  color: #fff;
  height: 100%;
  font-size: .78rem;
}

.stats-card strong {
  display: block;
  font-size: .95rem;
  line-height: 1.1;
  margin-bottom: .3rem;
}

/* Common sections */
.section-space {
  padding: 3.4rem 0;
}

.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}

.section-title {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--primary-dark);
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  font-size: .86rem;
  line-height: 1.55;
}

.page-content {
  min-height: 55vh;
}

.page-hero {
  padding: 3.1rem 0 2rem;
}

.page-title {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--primary-dark);
}

.featured-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--primary-dark);
}

.form-title,
.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Cards */
.property-type-card,
.property-card,
.highlight-card,
.cta-card,
.post-card,
.testimonial-card,
.event-card,
.gallery-album,
.sidebar-card,
.content-card {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(15,23,42,.08);
  overflow: hidden;
  background: #fff;
}

.property-type-card,
.cta-card,
.testimonial-card,
.sidebar-card,
.content-card {
  height: 100%;
}

.property-type-card,
.cta-card,
.testimonial-card {
  transition: .2s ease;
}

.property-type-card:not(.card),
.cta-card,
.testimonial-card {
  padding: 1.25rem;
}

.property-type-card:hover,
.cta-card:hover,
.post-card:hover,
.event-card:hover,
.gallery-album:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(15,23,42,.12);
}

.property-type-card img,
.post-card img,
.event-card img,
.gallery-album img {
  height: 190px;
  object-fit: cover;
}

.post-card .card-body,
.event-card .card-body,
.property-type-card .card-body {
  padding: 1.25rem;
}

.property-type-card h5,
.property-card h5,
.cta-card h5,
.post-card h5,
.event-card h5,
.article-card h5 {
  font-size: .95rem;
  line-height: 1.35;
}

.property-type-card p,
.cta-card p,
.post-card p,
.event-card p,
.property-card-text {
  font-size: .83rem;
  line-height: 1.5;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(18,60,105,.10);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .85rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18,60,105,.10);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-card p {
  color: #4b5563;
  font-size: .85rem;
  line-height: 1.55;
}

.post-meta {
  font-size: .75rem;
  color: var(--muted);
}

.content-image {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 14px 35px rgba(15,23,42,.08);
  object-fit: cover;
}

.blog-content,
.event-single,
.page-article {
  line-height: 1.75;
  font-size: .9rem;
}

.blog-content img,
.event-single img,
.page-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Slider */
.property-carousel .carousel-inner {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15,23,42,.12);
}

.property-slide {
  min-height: 300px;
  display: flex;
  align-items: end;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.75));
}

.property-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

.property-slide-content h3 {
  font-size: 1.1rem;
}

.property-slide-content p {
  font-size: .85rem;
  line-height: 1.5;
}

.slide-house {
  background-image: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80');
}

.slide-land {
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1200&q=80');
}

.slide-commercial {
  background-image: url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1200&q=80');
}

.carousel-indicators [data-bs-target] {
  width: 20px;
  height: 3px;
  border-radius: var(--radius-xs);
}

/* Detail components */
.event-date {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .45rem .65rem;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
}

.side-event img,
.sidebar-card img {
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.gallery-album {
  cursor: pointer;
}

.gallery-carousel {
  position: relative;
  min-height: 240px;
}

.modal-content {
  border: 0;
  border-radius: var(--radius-md);
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.empty-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.pagination .page-link {
  color: var(--primary);
  border-radius: var(--radius-sm) !important;
  margin: 0 .15rem;
  font-size: .85rem;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* CTA */
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  color: #fff;
  padding: 2.25rem;
  box-shadow: 0 24px 60px rgba(11,37,63,.25);
}

.cta-title {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Footer */
.footer-wrap {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  font-size: .83rem;
}

.footer-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-wrap a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.footer-wrap a:hover,
.footer-wrap a:focus {
  color: #fff;
}

.property-logo-mini {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.08);
  font-size: .7rem;
}

.social-links a,
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  margin-right: .5rem;
}

/* Compatibility: old default class names if DB content still uses them */
.school-card,
.highlight-card,
.testimonial-card,
.post-card,
.cta-card {
  border-radius: var(--radius-md) !important;
}

.rounded,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5,
.rounded-pill,
.rounded-circle {
  border-radius: var(--radius-sm) !important;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-size: 1.35rem !important;
}

.lead {
  font-size: .92rem;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 96px 0 48px;
  }

  .section-space {
    padding: 2.6rem 0;
  }

  .cta-strip {
    padding: 1.6rem;
  }

  .property-slide {
    min-height: 260px;
  }
}

@media (max-width: 575.98px) {
  .search-panel {
    padding: .75rem;
  }

  .page-hero {
    padding: 2.5rem 0 1.6rem;
  }
}
