:root {
  color-scheme: light;
  --ink: #13201a;
  --muted: #5f6f67;
  --line: #dce6df;
  --paper: #fbfdfb;
  --soft: #eef7f2;
  --mint: #12a86b;
  --mint-dark: #087044;
  --sun: #f7b731;
  --sky: #2f80ed;
  --rose: #d94c68;
  --charcoal: #1f2933;
  --shadow: 0 18px 60px rgba(19, 32, 26, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

header.app-shell {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 251, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 230, 223, 0.74);
}

header .topbar {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.brand small,
.footer span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-actions a {
  padding: 8px 10px;
  border-radius: 7px;
}

.nav-actions a:hover {
  background: var(--soft);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(92svh - 72px);
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 28, 19, 0.78), rgba(6, 28, 19, 0.45), rgba(6, 28, 19, 0.16)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center / cover;
  z-index: -1;
}

.hero-content {
  padding: 78px 0 42px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8df0c0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.07;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.search-panel {
  width: min(100%, 980px);
  margin-top: 28px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.83rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(18, 168, 107, 0.14);
}

.primary-button,
.secondary-button,
.contact-button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-weight: 900;
}

.primary-button {
  align-self: end;
  background: var(--mint);
  color: white;
}

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

.secondary-button {
  background: var(--ink);
  color: white;
}

.trust-band {
  background: var(--ink);
  color: white;
}

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

.trust-grid div {
  display: grid;
  gap: 4px;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.contact-strip {
  padding: 34px 0;
  background: white;
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.contact-grid h2 {
  margin-bottom: 6px;
}

.contact-grid p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.section-grid,
#subscriptions {
  padding: 68px 0;
}

.section-heading {
  max-width: 680px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.listing-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.filter-chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
}

.filter-chip.active {
  border-color: var(--mint);
  background: var(--soft);
  color: var(--mint-dark);
}

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

.listing-card,
.listing-detail,
.report-box,
.dashboard-form,
.admin-panel,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 36px rgba(19, 32, 26, 0.06);
}

.listing-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag,
.status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.tag {
  background: var(--soft);
  color: var(--mint-dark);
}

.status-pill {
  color: white;
}

.available {
  background: var(--mint);
}

.booked {
  background: var(--sun);
  color: var(--ink);
}

.occupied {
  background: var(--rose);
}

.rent {
  color: var(--mint-dark);
  font-weight: 950;
  font-size: 1.18rem;
}

.card-actions,
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-button {
  background: var(--soft);
  color: var(--mint-dark);
}

.contact-button.whatsapp {
  background: #e9fff3;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  gap: 18px;
  padding-bottom: 68px;
}

.map-band {
  padding: 68px 0;
  background: #f4f8fb;
  border-block: 1px solid var(--line);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(320px, 0.95fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: center;
}

.kenya-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 168, 107, 0.14), rgba(47, 128, 237, 0.12)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80") center / cover;
  box-shadow: var(--shadow);
}

.kenya-map::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  min-height: 36px;
  border: 2px solid white;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 28px rgba(19, 32, 26, 0.22);
  font-weight: 900;
}

.map-pin.active,
.map-pin:hover {
  background: var(--mint);
}

.map-pin.nairobi {
  left: 48%;
  top: 39%;
}

.map-pin.kiambu {
  left: 42%;
  top: 28%;
}

.map-pin.rongai {
  left: 54%;
  top: 51%;
}

.map-pin.thika {
  left: 59%;
  top: 24%;
}

.map-pin.kisumu {
  left: 17%;
  top: 39%;
}

.map-pin.mombasa {
  right: 10%;
  bottom: 12%;
}

.area-results {
  display: grid;
  gap: 10px;
}

.area-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.area-card strong {
  font-size: 1.05rem;
}

.listing-detail {
  overflow: hidden;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.detail-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

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

.detail-stats div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.detail-stats span,
.form-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-stats strong {
  display: block;
}

.report-box {
  padding: 20px;
  align-self: start;
}

.report-box form,
.dashboard-form,
.admin-panel {
  display: grid;
  gap: 13px;
}

.landlord-band {
  padding: 68px 0;
  background: linear-gradient(180deg, #eff8f3, #f8fbf8);
  border-block: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.dashboard-form,
.login-panel,
.admin-panel {
  padding: 20px;
}

.dashboard-form {
  grid-column: 2;
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 36px rgba(19, 32, 26, 0.06);
  display: grid;
  gap: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-panel {
  grid-column: 2;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.approval-actions button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 8px 10px;
  font-weight: 900;
}

.pricing-heading {
  margin-bottom: 24px;
}

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

.pricing-card {
  padding: 20px;
  display: grid;
  gap: 13px;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--mint);
  box-shadow: 0 18px 56px rgba(18, 168, 107, 0.15);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.plan-badge {
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
}

.plan-price {
  font-size: 1.7rem;
  font-weight: 950;
}

.crypto-price {
  display: grid;
  gap: 4px;
  color: var(--mint-dark);
  font-weight: 900;
  line-height: 1.35;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.payment-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 36px rgba(19, 32, 26, 0.06);
}

.payment-panel ol {
  margin: 14px 0;
  padding-left: 20px;
  color: var(--muted);
}

.payment-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.payment-steps div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--soft);
}

.payment-steps span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.payment-steps strong {
  display: block;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.footer a {
  color: var(--mint-dark);
  font-weight: 900;
}

.policy-page {
  padding: 66px 0;
}

.policy-hero {
  max-width: 820px;
  margin-bottom: 30px;
}

.policy-hero h1 {
  color: var(--ink);
}

.policy-hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.policy-grid article,
.policy-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 36px rgba(19, 32, 26, 0.06);
}

.policy-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-callout {
  margin-top: 16px;
}

.policy-callout p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .search-panel,
  .listings-grid,
  .detail-layout,
  .dashboard-grid,
  .map-layout,
  .pricing-grid,
  .contact-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: start;
  }

  .admin-panel {
    grid-column: auto;
  }

  .dashboard-form {
    grid-column: auto;
  }

  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 22px, 1140px);
  }

  .topbar {
    min-height: 64px;
  }

  .brand small,
  .nav-actions a:nth-child(2) {
    display: none;
  }

  .nav-actions {
    gap: 2px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: calc(92svh - 64px);
  }

  .hero-content {
    padding: 58px 0 28px;
  }

  .nav-actions a:nth-child(4),
  .nav-actions a:nth-child(6) {
    display: none;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .search-panel {
    padding: 12px;
  }

  .section-grid,
  .map-band,
  #subscriptions,
  .landlord-band {
    padding: 46px 0;
  }

  .kenya-map {
    min-height: 330px;
  }

  .map-pin {
    font-size: 0.78rem;
    padding: 6px 9px;
  }

  .detail-layout {
    padding-bottom: 46px;
  }

  .form-row,
  .card-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .payment-steps {
    grid-template-columns: 1fr;
  }
}
