:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --text: #172033;
  --muted: #64748b;
  --primary: #0f4c81;
  --primary-dark: #082d4e;
  --accent: #f5b942;
  --border: #dfe7f3;
  --shadow: 0 18px 40px rgba(7, 21, 43, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-dark);
}
.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 20px;
}
.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  transform: translateY(-1px);
}
.contact-btn,
.ghost-btn,
.appointment-form button,
.chat-form button,
.category-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.22);
}
.contact-btn:hover,
.ghost-btn:hover,
.appointment-form button:hover,
.chat-form button:hover,
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.18);
}
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 24px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 21, 43, 0.8), rgba(7, 21, 43, 0.4));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  color: white;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin: 0 0 16px;
}
.hero-content p {
  margin: 0 auto 28px;
  max-width: 700px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}
.search-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--text);
}
.search-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}
.search-panel select,
.appointment-form input,
.appointment-form select,
.chat-form input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}
.search-panel button {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  height: 6vh;
  min-height: 6vh;
  background: linear-gradient(135deg, var(--accent), #ffcf69);
  color: var(--primary-dark);
  font-weight: 700;
  margin-top:24px;
}
.section {
  padding: 72px 24px;
}
.section-heading {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-heading h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0 0 8px;
}
.subtext {
  margin: 0;
  color: var(--muted);
}
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  max-width: 1160px;
}
.ghost-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--primary);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}
.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--surface);
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 8px 16px rgba(15, 76, 129, 0.05);
}
.category-card.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.hidden {
  display: none !important;
}
.all-properties-page {
  background: #f8fbff;
}
.property-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 100%;
  border: 1px solid rgba(15, 76, 129, 0.08);
}
.property-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.property-card h3 { margin: 0; font-size: 1.1rem; }
.property-meta { color: var(--muted); font-size: 0.95rem; }
.property-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}
.property-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.property-actions a {
  flex: 1;
  min-width: 110px;
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
}
.property-actions .call-btn {
  background: var(--surface-2);
  color: var(--primary);
}
.property-actions .wa-btn {
  background: linear-gradient(135deg, #25d366, #1fbe5d);
  color: white;
}
.appointment-section {
  background: linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
}
.appointment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}
.appointment-form,
.appointment-info {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.appointment-form {
  display: grid;
  gap: 14px;
}
.appointment-form label { display: grid; gap: 6px; font-weight: 600; }
.appointment-form button {
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 700;
}
.appointment-info ul { padding-left: 18px; color: var(--muted); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1rem; }
.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.about-images img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-images img:first-child { grid-column: 1 / -1; height: 220px; }
.map-section iframe {
  display: block;
  width: min(100%, 1160px);
  height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.92);
  padding: 44px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 100%;
}
.site-footer h3, .site-footer h4 { color: white; margin-bottom: 10px; }
.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  border: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 24px;
  box-shadow: 0 16px 32px rgba(15, 76, 129, 0.25);
  z-index: 50;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 76, 129, 0.28);
}
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: min(92vw, 360px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(7, 21, 43, 0.16);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 49;
  border: 1px solid rgba(15, 76, 129, 0.08);
}
.chat-panel.open { display: flex; }
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f4c81 0%, #1d5f97 45%, #5e8bbd 100%);
  color: white;
}
.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 16px;
}
.chat-header h3 {
  margin: 0;
  font-size: 1rem;
}
.chat-header p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
}
.chat-header button {
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.chat-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow: auto; }
.chat-bubble { padding: 10px 12px; border-radius: 12px; max-width: 85%; }
.chat-bubble.bot { background: linear-gradient(135deg, #f4f7ff 0%, #eef4ff 100%); color: var(--text); border: 1px solid #e2ebff; }
.chat-bubble.user { background: linear-gradient(135deg, #0f4c81 0%, #f5b942 100%); color: white; margin-left: auto; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; border: 1px solid #dfe7f3; }
.chat-form button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f4c81 0%, #f5b942 100%);
  color: white;
  padding: 10px 12px;
  min-width: 44px;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .search-panel,
  .appointment-grid,
  .about-grid,
  .site-footer { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr 1fr; }
  .section-heading-row { flex-direction: column; align-items: start; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .contact-btn { display: none; }
  .hero { min-height: auto; padding: 72px 18px 56px; }
  .section { padding: 56px 18px; }
  .search-panel { grid-template-columns: 1fr; padding: 14px; }
  .search-panel button { width: 100%; }
  .property-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .property-card {
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(7, 21, 43, 0.08);
    position: relative;
    width: 100%;
  }
  .property-card img { height: 200px; }
  .property-actions { flex-direction: column; }
  .property-actions a { width: 100%; }
  .category-grid { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: 1fr; }
  .about-images img:first-child { height: 180px; }
  .chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 78px; }
  .chat-toggle { right: 12px; bottom: 16px; }
}
/* footer */
footer {
    background: #0A1E33;
    color: #B9C9DB;
    padding: 50px 0 24px;
    margin-top: 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

footer h4 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 34px;
    padding-top: 18px;
    font-size: 12.5px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/*contact-wrapper*/
/* Make the contact cards sit next to each other and wrap if space runs out */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    /* Adds vertical and horizontal spacing between contacts */
    margin-top: 10px;
    max-width: 500px;
    /* Limits how far it expands horizontally */
}

/* Style the contact card blocks */
.contact-card {
    min-width: 200px;
    /* Ensures they don't get squished too small */
    flex: 1 1 auto;
}

/* Fix text sizing so headings match footer aesthetic */
.contact-name {
    color: #fff;
    font-size: 14px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.contact-card p {
    margin: 0;
    color: #afad9c;
    line-height: 1.4;
}
brand-name{
  font-size:25px;
}
