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

:root {
  --primary: #0f766e;
  --primary-dark: #0b5d57;
  --secondary: #f4f7f8;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  transition: 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 70px 0;
}

.hero-text {
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-text p {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
}

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

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

.btn-secondary {
  background: var(--white);
  color: var(--text);
}

.btn-secondary:hover {
  opacity: 0.9;
}

.search-box {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-box h3 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.full-width {
  width: 100%;
}

/* Stats */
.stats {
  margin-top: -45px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 6px;
}

/* Headings */
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 2rem;
}

/* Filters */
.filter-section {
  padding: 80px 0;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
}

.property-image {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.property-image img {
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--white);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
}

.property-info {
  padding: 20px;
}

.property-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.property-top h3 {
  font-size: 1.2rem;
}

.price {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
}

.price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: normal;
}

.location {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.description {
  margin-bottom: 14px;
  color: #4b5563;
}

.property-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.property-features span {
  background: var(--secondary);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn-card {
  width: 100%;
  text-align: center;
  background: var(--text);
  color: var(--white);
}

.btn-card:hover {
  background: #111827;
}

.no-results {
  display: none;
  text-align: center;
  margin-top: 25px;
  color: #b91c1c;
  font-weight: 600;
}

/* Why us */
.why-us {
  padding: 30px 0 80px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--white);
  padding: 30px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.why-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* CTA */
.cta {
  padding: 0 0 80px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), #115e59);
  color: var(--white);
  padding: 35px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Footer */
.footer {
  background: #111827;
  color: #d1d5db;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 12px;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 10px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content,
  .property-grid,
  .why-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 75px;
    right: 5%;
    background: var(--white);
    width: 220px;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .property-grid,
  .why-grid,
  .footer-grid,
  .stats-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: block;
    text-align: center;
  }

  .cta-box .btn {
    margin-top: 15px;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .property-top {
    flex-direction: column;
  }
}

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }

/* ── Loading text ────────────────────────────────────────────────────────────── */
.loading-text {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 1rem;
}

/* ── Textarea ────────────────────────────────────────────────────────────────── */
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.form-group textarea:focus { border-color: var(--primary); }

/* ── Form row (two columns) ──────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Nav right controls ──────────────────────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.lang-btn:hover { background: var(--primary-dark); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 130px;
  z-index: 999;
}
.lang-menu.open { display: block; }

.lang-menu button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.lang-menu button:hover { background: var(--secondary); color: var(--primary); }

/* ── Nav admin link ──────────────────────────────────────────────────────────── */
.nav-admin-link {
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 6px 14px;
}
.nav-admin-link:hover { background: var(--primary); color: var(--white) !important; }

/* ── Contact section ─────────────────────────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  background: var(--secondary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.contact-detail strong { color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-detail span   { color: var(--text); font-size: 1rem; }
.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ── Auth pages ──────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
}
.auth-icon {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}
.auth-card h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.auth-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}
.auth-link {
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}
.auth-link a { color: var(--primary); font-weight: 600; }

/* ── Admin dashboard ─────────────────────────────────────────────────────────── */
.auth-guard {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: var(--muted);
  font-size: 1.1rem;
}
.admin-header {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.admin-nav .logo small {
  font-size: 0.6em;
  color: var(--muted);
  font-weight: 400;
}
.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-greeting {
  color: var(--muted);
  font-size: 0.95rem;
}
.admin-main {
  padding: 36px 0 60px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

.admin-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 8px 8px 0 0;
  transition: .2s;
}
.tab-btn.active,
.tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-header h3 { font-size: 1.3rem; }

/* Admin list items */
.admin-list { display: flex; flex-direction: column; gap: 12px; }

.admin-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.admin-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

.badge-pill {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}
.text-muted { color: var(--muted); font-size: 0.9rem; }

.btn-sm {
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: .2s;
}
.btn-edit   { background: #dbeafe; color: #1d4ed8; }
.btn-edit:hover   { background: #bfdbfe; }
.btn-delete { background: #fee2e2; color: #b91c1c; }
.btn-delete:hover { background: #fecaca; }

/* Inquiry card */
.inquiry-item { flex-direction: column; align-items: flex-start; }
.inquiry-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}
.inquiry-date { margin-left: auto; }
.inquiry-message { color: #374151; line-height: 1.6; }

/* Empty / error states */
.admin-empty { color: var(--muted); padding: 30px 0; text-align: center; }
.admin-error { color: #b91c1c; padding: 20px 0; text-align: center; font-weight: 600; }

/* Admin form */
.admin-form { max-width: 760px; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; }

/* Analytics */
.analytics-summary {
  background: var(--secondary);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}
.analytics-table { display: flex; flex-direction: column; gap: 8px; }
.analytics-header {
  display: grid;
  grid-template-columns: 2fr 80px 1fr;
  gap: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 4px;
}
.analytics-row {
  display: grid;
  grid-template-columns: 2fr 80px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.bar-wrap {
  background: var(--secondary);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .4s ease;
}