*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #f5f7fa;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: #0b1f33;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo img {
  height: 52px;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  color: #e5e9f0;
}

.main-nav a:hover,
.main-nav a.active {
  background: #f59e0b;
  color: #0b1f33;
}

/* Home hero slider */
.hero {
  position: relative;
  height: 70vh;
  max-height: 640px;
  min-height: 420px;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,31,51,0.8), rgba(15,118,110,0.7));
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 640px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #e5e9f0;
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: #e5e9f0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #f59e0b;
  color: #0b1f33;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.btn-outline {
  background: transparent;
  color: #f9fafb;
  border-color: #e5e9f0;
}

.btn-outline:hover {
  background: #e5e9f0;
  color: #0b1f33;
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Inner page banner */
.page-hero {
  position: relative;
  height: 320px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,51,0.8), rgba(11,31,51,0.1));
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
}

.page-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #e5e9f0;
}

.page-hero-title {
  margin: 0.4rem 0 0;
  font-size: 2rem;
}

/* Sections and layout */
.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #6b7280;
}

.section-title {
  font-size: 1.75rem;
  margin: 0.4rem 0 0.35rem;
}

.section-subtitle {
  margin: 0;
  color: #6b7280;
  max-width: 540px;
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
  border: 1px solid rgba(148,163,184,0.4);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #4b5563;
  gap: 0.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.columns {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.columns.reversed {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.list-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-checks li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.list-checks span.icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 0.08rem;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.stat {
  flex: 1 1 140px;
}

.stat strong {
  font-size: 1.5rem;
  display: block;
}

.stat span {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Properties */
.properties-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search-box {
  position: relative;
  flex: 1 1 260px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  padding-right: 2.3rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

.search-box span.icon {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #9ca3af;
}

.property-card {
  position: relative;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.83rem;
  color: #6b7280;
}

.property-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

.property-price {
  font-weight: 700;
  color: #0f766e;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.form-group label {
  color: #4b5563;
}

.form-group input,
.form-group textarea,
.form-group select {
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding-top: 2.5rem;
  margin-top: 3rem;
}

.footer-main {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  font-size: 0.9rem;
}

.footer-logo img {
  height: 42px;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links a {
  color: #e5e7eb;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.35);
  margin-top: 2rem;
  padding: 0.9rem 0;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  color: #9ca3af;
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  font-size: 0.9rem;
}

.chat-toggle {
  border-radius: 999px;
  background: #0f766e;
  color: #f9fafb;
  border: none;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15,23,42,0.45);
}

.chat-toggle:hover {
  background: #115e59;
}

.chat-window {
  position: absolute;
  right: 0;
  bottom: 3.2rem;
  width: min(340px, 90vw);
  max-height: 440px;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.38);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background: #0b1f33;
  color: #e5e7eb;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.chat-header button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-messages {
  padding: 0.7rem 0.85rem;
  flex: 1 1 auto;
  overflow-y: auto;
  background: #f5f7fa;
}

.chat-message {
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.85rem;
  max-width: 90%;
  font-size: 0.86rem;
}

.chat-message.bot {
  background: #0f766e;
  color: #ecfeff;
  border-bottom-left-radius: 0.2rem;
}

.chat-message.user {
  background: #e5e7eb;
  margin-left: auto;
  border-bottom-right-radius: 0.2rem;
}

.chat-input-area {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid #e5e7eb;
}

.chat-input-area input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
}

.chat-input-area button {
  border-radius: 999px;
  border: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #0f766e;
  color: #ecfeff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .columns,
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    height: auto;
    min-height: 380px;
  }

  .hero-inner {
    padding: 3.5rem 0 3rem;
  }

  .page-hero {
    height: 240px;
  }
}
