:root {
  --brand-green: #0a4736;
  --brand-green-deep: #072b20;
  --brand-green-soft: #e6f2ec;
  --brand-orange: #e87a1e;
  --brand-red: #d9262e;
  --brand-gold: #c09b54;

  --bg: #f6f9f7;
  --bg-alt: #edf3ef;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #102033;
  --text-muted: #4b5e6f;
  --border: #d5e2db;
  --shadow: 0 16px 40px rgba(10, 42, 30, 0.08);
  --shadow-sm: 0 6px 20px rgba(10, 42, 30, 0.06);
  --hero-bg: radial-gradient(circle at 12% 18%, rgba(10, 71, 54, 0.12), transparent 46%),
    radial-gradient(circle at 86% 20%, rgba(232, 122, 30, 0.14), transparent 44%),
    linear-gradient(135deg, #f6f9f7 0%, #eaf3ee 55%, #f8f5ef 100%);
  --radius: 18px;
}

html[data-theme="dark"] {
  --bg: #0b1622;
  --bg-alt: #112031;
  --surface: #152536;
  --surface-elevated: #1a2e42;
  --brand-green-soft: rgba(16, 128, 92, 0.2);
  --text: #f1f6f4;
  --text-muted: #a6bac9;
  --border: #253b4e;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --hero-bg: radial-gradient(circle at 14% 20%, rgba(16, 128, 92, 0.26), transparent 46%),
    radial-gradient(circle at 88% 18%, rgba(232, 122, 30, 0.2), transparent 42%),
    linear-gradient(135deg, #09141f 0%, #0d2229 55%, #0c1824 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.view-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-panel {
  flex: 1;
  animation: viewFade 0.22s ease-out;
}

.view-panel[hidden] {
  display: none;
}

@keyframes viewFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3, h4, .brand-text strong {
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--brand-green);
}

html[data-theme="dark"] .brand-text strong {
  color: #8ee0be;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  background: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 71, 54, 0.25);
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--brand-orange);
  color: #ffffff;
}

.nav-count[hidden] {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--brand-orange);
}

/* Mobile Bottom Nav */
.bottom-nav {
  display: none;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.16s ease, background 0.16s ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bottom-nav-item.active {
  color: var(--brand-green);
  background: var(--brand-green-soft);
}

html[data-theme="dark"] .bottom-nav-item.active {
  color: #9be8c7;
}

.bottom-icon-wrap {
  position: relative;
  display: inline-flex;
}

.bottom-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-badge[hidden] {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.98rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 71, 54, 0.22);
}

.btn-primary:hover {
  background: var(--brand-green-deep);
}

.btn-accent {
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(232, 122, 30, 0.25);
}

.btn-accent:hover {
  background: #d26812;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

html[data-theme="dark"] .btn-outline:hover {
  border-color: #8ee0be;
  color: #8ee0be;
}

.btn-ghost {
  background: var(--brand-green-soft);
  color: var(--brand-green);
}

html[data-theme="dark"] .btn-ghost {
  color: #9be8c7;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 1.2rem;
}

html[data-theme="dark"] .eyebrow {
  color: #9be8c7;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.accent-text {
  color: var(--brand-orange);
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 500px;
}

.metric {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: left;
}

.metric-btn {
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.15s ease;
}

.metric-btn:hover {
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-green);
}

html[data-theme="dark"] .metric strong {
  color: #9be8c7;
}

.metric span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.hero-card-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-logo {
  max-height: 76px;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
}

html[data-theme="dark"] .hero-logo {
  background: #ffffff;
  padding: 6px 12px;
}

.tri-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.bar-green { background: var(--brand-green); }
.bar-red { background: var(--brand-red); }
.bar-orange { background: var(--brand-orange); }

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.95rem;
}

.feature-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-badge {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-top: 2px;
}

html[data-theme="dark"] .check-badge {
  color: #9be8c7;
}

.feature-checklist strong {
  display: block;
  font-size: 0.92rem;
}

.feature-checklist p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-card-actions {
  display: grid;
  gap: 0.65rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header.centered p {
  max-width: 60ch;
}

.section-kicker {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  margin-bottom: 0.4rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Listings Toolbar & Grid */
.listings-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-box input,
.sort-box select,
.field-row input,
.field-row textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

.search-box input:focus,
.sort-box select:focus,
.field-row input:focus,
.field-row textarea:focus {
  outline: none;
  border-color: var(--brand-green);
}

html[data-theme="dark"] .search-box input:focus,
html[data-theme="dark"] .sort-box select:focus,
html[data-theme="dark"] .field-row input:focus,
html[data-theme="dark"] .field-row textarea:focus {
  border-color: #8ee0be;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip.active,
.chip:hover {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #ffffff;
}

.listings-state {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.listings-state[hidden] {
  display: none;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 305px), 1fr));
  gap: 1.4rem;
}

.unit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.unit-media {
  position: relative;
  height: 195px;
  background: linear-gradient(135deg, #0a4736 0%, #123c4e 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
}

.unit-media.has-photos {
  cursor: pointer;
}

.unit-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.unit-media.has-photos:hover img {
  transform: scale(1.04);
}

.photo-count-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 22, 34, 0.76);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.unit-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 23, 18, 0.72) 0%, rgba(7, 23, 18, 0.12) 60%, transparent 100%);
}

.unit-media-tags {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: #0a4736;
}

.tag-orange {
  background: var(--brand-orange);
  color: #ffffff;
}

.unit-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.unit-title {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 0;
}

.unit-location {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.unit-rent {
  font-family: "Montserrat", sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--brand-green);
  margin: 0.25rem 0;
}

html[data-theme="dark"] .unit-rent {
  color: #9be8c7;
}

.unit-rent span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.unit-charges {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.unit-charges-title {
  font-weight: 700;
  color: var(--brand-green);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme="dark"] .unit-charges-title {
  color: #9be8c7;
}

.unit-charge-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
}

.unit-charge-total {
  border-top: 1px dashed var(--border);
  margin-top: 0.2rem;
  padding-top: 0.28rem;
  font-weight: 700;
  color: var(--text);
}

.unit-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.unit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* Office Chat Workspace */
.chat-header-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.chat-workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.2rem;
  min-height: 480px;
}

.chat-sidebar,
.chat-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-head,
.chat-main-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-main-head strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
}

.chat-main-head small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.chat-thread-list {
  padding: 0.65rem;
  display: grid;
  gap: 0.45rem;
  overflow-y: auto;
  flex: 1;
}

.chat-empty-note {
  margin: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.chat-thread-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chat-thread-item:hover {
  border-color: var(--brand-green);
}

.chat-thread-item.active {
  background: var(--brand-green-soft);
  border-color: var(--brand-green);
}

.chat-thread-item strong {
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-item small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.chat-messages {
  flex: 1;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  max-height: 440px;
}

.chat-placeholder {
  margin: auto;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.48;
  word-break: break-word;
}

.chat-bubble.prospect {
  align-self: flex-end;
  background: var(--brand-green);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.staff {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble-meta {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.chat-composer {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-composer[hidden] {
  display: none;
}

.chat-composer input {
  flex: 1;
  padding: 0.68rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.chat-composer input:focus {
  outline: none;
  border-color: var(--brand-green);
}

.chat-closed-banner {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

.chat-closed-banner[hidden] {
  display: none;
}

/* Android App & Onboarding */
.app-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: start;
}

.release-card {
  margin-top: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.release-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.badge-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  margin-bottom: 0.45rem;
}

html[data-theme="dark"] .badge-pill {
  color: #9be8c7;
}

.release-size {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.release-notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: pre-line;
  margin: 0.6rem 0 1.2rem;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.release-checksum {
  margin: 0.9rem 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.onboarding-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 1.15rem;
}

.steps-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-green);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.steps-list p {
  margin: 0.2rem 0 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.onboarding-note {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--brand-green-soft);
  font-size: 0.86rem;
}

.onboarding-note a {
  font-weight: 700;
  color: var(--brand-green);
}

html[data-theme="dark"] .onboarding-note a {
  color: #9be8c7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
}

.contact-card strong a {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  text-decoration: none;
}

.contact-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex: 1;
}

.contact-link {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
}

html[data-theme="dark"] .contact-link {
  color: #9be8c7;
}

.contact-strip {
  margin-top: 1.5rem;
  padding: 1.15rem 1.4rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  font-size: 0.88rem;
}

.contact-cta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #081e17;
  color: #d6e6de;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-brand small {
  font-size: 0.72rem;
  color: #9ec0b1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.88rem;
}

.footer-links a {
  text-decoration: none;
  color: #cde3d8;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #8fb3a4;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 19, 30, 0.68);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.65rem;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-subtitle {
  margin: 0.35rem 0 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.field-row {
  margin-bottom: 0.95rem;
}

.field-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req { color: var(--brand-red); }
.muted { color: var(--text-muted); font-weight: 400; }

.form-feedback {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.form-feedback.error {
  background: rgba(217, 38, 46, 0.12);
  color: #c81e26;
  border: 1px solid rgba(217, 38, 46, 0.3);
}

html[data-theme="dark"] .form-feedback.error {
  color: #ff9da2;
}

.form-feedback.success {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

html[data-theme="dark"] .form-feedback.success {
  color: #86efac;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

/* Gallery Modal */
.gallery-card {
  width: min(760px, 100%);
}

.gallery-stage {
  position: relative;
  margin: 0.9rem 0 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  background: #08131d;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 22, 34, 0.72);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: var(--brand-orange);
}

.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }

.gallery-counter {
  position: absolute;
  bottom: 0.65rem;
  right: 0.75rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 22, 34, 0.75);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--brand-orange);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cyber-Cafe Secure Tenant Web Portal */
.portal-security-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 71, 54, 0.12), rgba(227, 130, 30, 0.1));
  border: 1px solid var(--brand-green);
}

.portal-sec-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sec-shield {
  font-size: 1.4rem;
}

.portal-sec-status strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--brand-green);
}

html[data-theme="dark"] .portal-sec-status strong {
  color: #9be8c7;
}

.portal-sec-status small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.portal-sec-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: #c82333;
  color: #ffffff;
  border: 1px solid #c82333;
}

.btn-danger:hover {
  background: #a71d2a;
}

.portal-login-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.portal-login-card,
.portal-security-explainer,
.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.portal-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.portal-alerts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.portal-alert-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  background: rgba(227, 130, 30, 0.14);
  border: 1px solid var(--brand-orange);
}

.portal-alert-banner strong {
  display: block;
  font-size: 0.92rem;
}

.portal-alert-banner p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portal-subtabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.portal-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-subtab.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.subtab-badge {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
}

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.portal-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.portal-stat-card small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.portal-stat-card strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  margin-top: 0.25rem;
  color: var(--brand-green);
}

html[data-theme="dark"] .portal-stat-card strong {
  color: #9be8c7;
}

.portal-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.payment-channel-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin: 0.75rem 0;
}

.payment-channel-box small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.payment-channel-box strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
  color: var(--brand-green);
}

html[data-theme="dark"] .payment-channel-box strong {
  color: #9be8c7;
}

.portal-muted-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
}

.portal-record-list {
  display: grid;
  gap: 0.65rem;
  max-height: 390px;
  overflow-y: auto;
}

.portal-record-item {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.84rem;
}

.portal-record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.portal-record-sub {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.portal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.portal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lease-proof-box {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(10, 71, 54, 0.12);
  border: 1px solid var(--brand-green);
  margin-bottom: 1rem;
  font-size: 0.84rem;
}

.lease-document-box {
  max-height: 540px;
  overflow-y: auto;
  padding: 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.86rem;
  line-height: 1.62;
}

.lease-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0.9rem 0 1.2rem;
}

.lease-clause-item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.lease-clause-item strong {
  display: block;
  color: var(--brand-green);
  margin-bottom: 0.2rem;
}

html[data-theme="dark"] .lease-clause-item strong {
  color: #9be8c7;
}

.lease-accept-box {
  margin-top: 1.15rem;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--brand-orange);
  background: rgba(227, 130, 30, 0.08);
  display: grid;
  gap: 0.85rem;
}

.lease-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.lease-checkbox-row input {
  margin-top: 0.22rem;
  width: 18px;
  height: 18px;
}

.doc-status-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-detail-cell {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.profile-detail-cell small {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.profile-detail-cell strong {
  font-size: 0.88rem;
  word-break: break-word;
}

.portal-chat-box {
  min-height: 240px;
  max-height: 340px;
  overflow-y: auto;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.portal-msg-form {
  display: flex;
  gap: 0.55rem;
}

.portal-msg-form input {
  flex: 1;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.portal-subhead {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .app-layout,
  .chat-workspace,
  .portal-login-layout,
  .portal-two-col {
    grid-template-columns: 1fr;
  }

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

  .field-grid-2,
  .lease-schedule-grid,
  .profile-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listings-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-tabs,
  .header-actions .btn-primary {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  }

  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .hero {
    padding: 2.5rem 0 2.5rem;
  }

  .section {
    padding: 2.5rem 0 3rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.hero-ctas.hero-ctas-mobile {
  display: none;
}

.move-in-estimate {
  margin-block: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
}

.move-in-estimate summary { cursor: pointer; }
.move-in-estimate dl > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.move-in-estimate dd { margin: 0; text-align: right; }
.move-in-estimate p { color: var(--text-muted); font-size: 0.875rem; }

.listing-video-dialog {
  width: min(720px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  background: var(--surface);
}

.listing-video-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.listing-video-dialog video { width: 100%; max-height: 65vh; }

@media (max-width: 600px) {
  .hero-ctas.hero-ctas-mobile {
    display: flex;
    margin-block: 0.75rem 1rem;
  }

  .hero-ctas.hero-ctas-desktop {
    display: none;
  }
}
