/* ── Design tokens ── */
:root {
  --hm-navy: #002450;
  --hm-green: #558929;
  --hm-green-light: #8FCB5A;
  --hm-sage-bg: #EAF3DE;
  --hm-gray-bg: #F1EFE8;
  --hm-border: #E5E2D9;
  --hm-divider: #EFEDE6;
  --hm-text-muted: #5F5E5A;
  --hm-text-faint: #B4B2A9;
  --hm-font-display: 'Quicksand', sans-serif;
  --hm-font-body: 'Public Sans', sans-serif;
  --hm-radius-card: 14px;
  --hm-radius-input: 10px;
  --hm-radius-pill: 20px;
  --hm-max-width: 1200px;
}

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

body {
  font-family: var(--hm-font-body);
  background: #fff;
  color: var(--hm-navy);
  margin: 0;
  padding: 0;
  font-size: 16px;
}

h1, h2, h3, .display {
  font-family: var(--hm-font-display);
  font-weight: 700;
  color: var(--hm-navy);
}

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

/* ── Container ── */
.container {
  max-width: var(--hm-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 36, 80, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-inner {
  max-width: var(--hm-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo {
  height: 60px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--hm-green);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--hm-font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.brand-55 {
  color: var(--hm-green-light);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.nav-btn-primary {
  background: var(--hm-green);
  color: #fff;
}
.nav-btn-primary:hover { opacity: 0.9; }
.nav-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}
.nav-btn-outline:hover { background: rgba(255,255,255,0.1); }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ── Main content offset for fixed navbar ── */
.main-content { padding-top: 64px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  background: url('../img/hero-bg.jpg') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,36,80,0.72) 0%, rgba(0,36,80,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hm-green-light);
  margin: 0 0 14px;
}
.hero-headline {
  font-family: var(--hm-font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero-subline {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin: 0 0 36px;
  line-height: 1.5;
}
.hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 520px;
  margin: 0 auto;
}
.hero-card-label {
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--hm-navy);
  margin: 0 0 20px;
}
.hero-form { display: flex; flex-direction: column; gap: 12px; }
.hero-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--hm-border);
  border-radius: var(--hm-radius-input);
  padding: 12px 16px;
  background: var(--hm-gray-bg);
}
.hero-input-wrap i { color: var(--hm-text-muted); font-size: 18px; flex-shrink: 0; }
.hero-input {
  border: none;
  background: transparent;
  font-family: var(--hm-font-body);
  font-size: 15px;
  color: var(--hm-navy);
  width: 100%;
  outline: none;
}
.hero-btn {
  background: var(--hm-navy);
  color: #fff;
  border: none;
  border-radius: var(--hm-radius-input);
  padding: 14px;
  font-family: var(--hm-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.hero-btn:hover { background: #003370; }
.hero-card-links {
  margin-top: 16px;
  font-size: 13px;
  color: var(--hm-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-card-links a { color: var(--hm-navy); font-weight: 600; text-decoration: none; }
.hero-card-links a:hover { text-decoration: underline; }
.hero-card-divider { color: var(--hm-text-faint); }

/* ── How It Works ── */
.how-it-works {
  background: var(--hm-gray-bg);
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--hm-text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.step-card--accent { background: #edf6f0; border: 1px solid #b6dfc5; }
.step-card {
  background: #fff;
  border-radius: var(--hm-radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--hm-sage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--hm-green);
}
.step-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--hm-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Community Section ── */
.community-section { padding: 80px 0; background: #fff; }
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.community-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
  line-height: 1.2;
}
.community-text p {
  color: var(--hm-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.btn-primary-inline {
  display: inline-block;
  background: var(--hm-green);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--hm-radius-input);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s;
}
.btn-primary-inline:hover { opacity: 0.9; }
.community-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.community-img {
  width: 100%;
  border-radius: var(--hm-radius-card);
  object-fit: cover;
}
.community-img-top { height: 260px; margin-top: -32px; }
.community-img-bottom { height: 220px; margin-top: 32px; }

/* ── Rooms Section ── */
.rooms-section { padding: 80px 0; background: var(--hm-sage-bg); }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}
.room-card {
  background: #fff;
  border-radius: var(--hm-radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.room-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.room-card-body { padding: 20px; }
.room-card-label {
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--hm-navy);
  margin: 0 0 8px;
}
.room-card-desc {
  font-size: 14px;
  color: var(--hm-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--hm-navy);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand { pointer-events: auto; }
.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin: 0;
  font-style: italic;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin: 0;
}

/* ── Flash messages ── */
.flash { padding: 12px 24px; font-size: 13px; }
.flash-error   { background: #FAECE7; color: #993C1D; }
.flash-success { background: var(--hm-sage-bg); color: #3B6D11; }
.flash-info    { background: var(--hm-gray-bg); color: var(--hm-navy); }

/* ── Inner page layout (browse, profile, etc.) ── */
.inner-page {
  max-width: var(--hm-max-width);
  margin: 0 auto;
  padding: 40px 48px;
}
.inner-page-narrow {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 48px;
}
@media (max-width: 768px) {
  .inner-page { padding: 24px 20px; }
  .inner-page-narrow { padding: 24px 20px; }
}

/* ── Buttons ── */
.btn-primary { display: block; width: 100%; background: var(--hm-navy); color: #fff; border: none; border-radius: var(--hm-radius-input); padding: 13px; font-family: var(--hm-font-body); font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; transition: background 0.15s; }
.btn-primary:hover { background: #003370; }
.btn-secondary { display: block; width: 100%; background: #fff; color: var(--hm-navy); border: 1.5px solid var(--hm-navy); border-radius: var(--hm-radius-input); padding: 12px; font-family: var(--hm-font-body); font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }

/* ── Inputs ── */
.form-field { margin-bottom: 16px; }
.form-label { display: block; font-size: 15px; font-weight: 600; color: var(--hm-text-muted); margin-bottom: 6px; }
.form-input { width: 100%; background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-input); padding: 13px 15px; font-family: var(--hm-font-body); font-size: 16px; color: var(--hm-navy); }
.form-input:focus { outline: 2px solid var(--hm-navy); border-color: transparent; }

/* Honeypot */
.field-website { position: absolute; left: -9999px; }

/* ── Badges ── */
.badge { display: inline-block; font-family: var(--hm-font-body); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--hm-radius-pill); }
.badge-available { background: var(--hm-sage-bg); color: var(--hm-navy); }
.badge-neutral   { background: var(--hm-gray-bg); color: var(--hm-navy); }
.badge-muted     { background: var(--hm-gray-bg); color: var(--hm-text-muted); }
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-rejected  { background: #FAECE7; color: #993C1D; }

/* ── Browse page ── */
.browse-header {
  background: var(--hm-navy);
  padding: 32px 24px 0;
}
.browse-header h1 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 16px;
}
.wave-divider { display: block; width: 100%; height: 18px; margin-top: -1px; }

.browse-layout {
  max-width: var(--hm-max-width);
  margin: 0 auto;
  padding: 36px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.browse-filters {
  background: #fff;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  padding: 20px;
  position: sticky;
  top: 88px;
}
.browse-filters h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--hm-navy);
}
.filter-group { margin-bottom: 20px; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--hm-text-muted); margin-bottom: 6px; display: block; }
.filter-input { width: 100%; border: 1px solid var(--hm-border); border-radius: 8px; padding: 9px 12px; font-family: var(--hm-font-body); font-size: 13px; color: var(--hm-navy); background: var(--hm-gray-bg); }
.filter-input:focus { outline: 2px solid var(--hm-navy); border-color: transparent; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; cursor: pointer; }
.filter-btn-submit { width: 100%; background: var(--hm-navy); color: #fff; border: none; border-radius: 8px; padding: 10px; font-family: var(--hm-font-body); font-size: 13px; font-weight: 600; cursor: pointer; }

.browse-results h2 { font-size: 18px; margin: 0 0 16px; }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.listing-card {
  background: #fff;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
  display: block;
}
.listing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.listing-card-thumb {
  height: 180px;
  background: var(--hm-sage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--hm-green-light);
}
.listing-card-body { padding: 16px; }
.listing-card-title { font-family: var(--hm-font-display); font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.listing-card-location { font-size: 13px; color: var(--hm-text-muted); margin: 0 0 10px; }
.listing-card-price { font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; color: var(--hm-navy); margin: 0 0 10px; }
.listing-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Save button — property detail */
.btn-save { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--hm-green); background: #fff; color: var(--hm-green); font-family: var(--hm-font-body); font-size: 15px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.btn-save:hover { background: var(--hm-green); color: #fff; }
.btn-save--saved { background: var(--hm-green); color: #fff; }
.btn-save--saved:hover { background: #c0392b; border-color: #c0392b; }

/* Saved listings page */
.listing-card-wrap { position: relative; }
.saved-remove-form { margin: 0; }
.saved-remove-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 16px; background: none; border: none; border-top: 1px solid #eee; color: var(--hm-text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s; }
.saved-remove-btn:hover { color: #c0392b; }

.empty-state { text-align: center; padding: 80px 24px; color: var(--hm-text-muted); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 16px; }

/* ── Unlock banner ── */
.unlock-banner { background: var(--hm-gray-bg); padding: 14px 24px; font-size: 13px; color: var(--hm-navy); text-align: center; border-bottom: 1px solid var(--hm-border); }
.unlock-banner a { color: var(--hm-navy); font-weight: 600; }

/* ── Progress bar ── */
.progress-wrap { padding: 14px 0 6px; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.progress-track { height: 6px; background: var(--hm-gray-bg); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--hm-green); border-radius: 10px; }

/* ── Section label ── */
.section-label { font-size: 12px; font-weight: 600; color: var(--hm-text-muted); letter-spacing: 0.3px; padding: 14px 0 4px; margin: 0; }
.divider { border: none; border-top: 1px solid var(--hm-divider); margin: 0; }

/* ── Settings row ── */
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--hm-divider); }
.settings-label { font-size: 14px; font-weight: 500; }
.settings-value { font-size: 13px; color: var(--hm-text-muted); }
.settings-value.not-set { font-style: italic; color: var(--hm-text-faint); }

/* ── Choice card ── */
.choice-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card); padding: 16px; text-decoration: none; color: inherit; margin-bottom: 12px; transition: border-color 0.15s; }
.choice-card:hover { border-color: var(--hm-navy); }
.choice-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; background: var(--hm-sage-bg); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--hm-green); }
.choice-title { font-family: var(--hm-font-display); font-weight: 700; font-size: 14.5px; margin: 0; }
.choice-sub { font-size: 12px; color: var(--hm-text-muted); margin: 3px 0 0; }

/* ── Tab bar (mobile only) ── */
.tab-bar { display: none; border-top: 1px solid var(--hm-divider); padding: 10px 0; background: #fff; }
.tab-item { flex: 1; text-align: center; text-decoration: none; color: var(--hm-text-faint); }
.tab-item.active { color: var(--hm-navy); font-weight: 600; }
.tab-item .tab-icon { font-size: 20px; }
.tab-item .tab-label { font-size: 11px; display: block; margin-top: 2px; }

/* ── Back button ── */
.back-btn { color: var(--hm-navy); font-size: 20px; text-decoration: none; }
.header-sub { display: flex; align-items: center; gap: 12px; padding: 16px 0 4px; border-bottom: 1px solid var(--hm-divider); }
.header-sub .page-title { font-family: var(--hm-font-display); font-weight: 700; font-size: 17px; color: var(--hm-navy); margin: 0; }

/* ════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; gap: 40px; }
  .community-photos { grid-template-columns: 1fr 1fr; }
  .community-img-top { margin-top: 0; }
  .community-img-bottom { margin-top: 0; }
  .browse-layout { grid-template-columns: 240px 1fr; gap: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--hm-navy);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .navbar-links.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; }
  .nav-btn { text-align: center; padding: 12px 16px; width: 100%; }

  .hero { min-height: 100svh; }
  .hero-logo img { height: 40px; }
  .hero-card { padding: 24px 20px; }

  .steps-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-photos { grid-template-columns: 1fr 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }

  .browse-layout { grid-template-columns: 1fr; }
  .browse-filters { position: static; }
  .listings-grid { grid-template-columns: 1fr; }

  .tab-bar { display: flex; }
  .inner-page { padding: 24px 16px; }
  .inner-page-narrow { padding: 24px 16px; }

  .how-it-works { padding: 48px 0; }
  .community-section { padding: 48px 0; }
  .rooms-section { padding: 48px 0; }
}

/* ── Browse search bar ── */
.browse-header { background: var(--hm-navy); padding: 28px 0 36px; }
.browse-header h1 { color: #fff; font-size: 26px; margin: 0 0 18px; }
.browse-search-bar { display: flex; gap: 0; max-width: 600px; }
.browse-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  border-radius: var(--hm-radius-input) 0 0 var(--hm-radius-input);
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.browse-search-input i { color: var(--hm-text-muted); font-size: 17px; flex-shrink: 0; }
.browse-search-text {
  background: transparent;
  border: none;
  color: var(--hm-navy);
  font-family: var(--hm-font-body);
  font-size: 15px;
  width: 100%;
  outline: none;
}
.browse-search-text::placeholder { color: var(--hm-text-faint); }
.browse-search-btn {
  background: var(--hm-green);
  color: #fff;
  border: none;
  border-radius: 0 var(--hm-radius-input) var(--hm-radius-input) 0;
  padding: 14px 28px;
  font-family: var(--hm-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* ── Auth cards ── */
.auth-card {
  background: #fff;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  padding: 36px 32px;
  margin-top: 32px;
}
/* Edit property — sectioned layout */
.edit-section-card { background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card); padding: 28px 32px; margin-bottom: 20px; }
.edit-section-title { font-family: var(--hm-font-display); font-weight: 700; font-size: 17px; color: var(--hm-navy); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--hm-border); }
@media (max-width: 600px) { .edit-section-card { padding: 20px 16px; } }
.auth-title {
  font-family: var(--hm-font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--hm-navy);
}
.auth-sub { font-size: 16px; color: var(--hm-text-muted); margin: 0 0 24px; }
.auth-link { font-size: 13px; color: var(--hm-navy); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-link-bold { color: var(--hm-navy); font-weight: 600; text-decoration: none; }
.auth-link-bold:hover { text-decoration: underline; }
.auth-footer-text { text-align: center; font-size: 13px; color: var(--hm-text-muted); margin-top: 20px; }
.auth-back-row { display: flex; align-items: center; gap: 12px; }

/* ── Choice card buttons (register step 1) ── */
.choice-card-btn {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--hm-font-body);
}
.choice-card-btn:hover { border-color: var(--hm-navy); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ── Radio card (register step 2) ── */
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  padding: 16px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.radio-card:hover { border-color: var(--hm-navy); }
.radio-card input { margin-top: 3px; flex-shrink: 0; }

/* ── Property detail ── */
.detail-back { margin-bottom: 16px; }
.detail-back-link { color: var(--hm-navy); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.detail-back-link:hover { text-decoration: underline; }
.detail-photo {
  height: 220px;
  background: var(--hm-sage-bg);
  border-radius: var(--hm-radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.detail-gallery { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; border-radius: var(--hm-radius-card); }
.detail-gallery-img { height: 220px; min-width: 300px; max-width: 500px; object-fit: cover; border-radius: var(--hm-radius-card); flex-shrink: 0; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.photo-thumb-wrap { position: relative; width: 90px; height: 90px; }
.photo-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.photo-delete-form { position: absolute; top: 3px; right: 3px; }
.photo-delete-btn { background: rgba(0,0,0,0.55); border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 0; }
.photo-delete-btn:hover { background: rgba(200,30,30,0.8); }
.photo-order-btns { position: absolute; bottom: 3px; left: 3px; display: flex; gap: 2px; }
.photo-order-btn { background: rgba(0,0,0,0.55); border: none; border-radius: 4px; width: 22px; height: 22px; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 0; }
.photo-order-btn:hover { background: rgba(0,0,0,0.8); }
.room-list-link { text-decoration: none; color: inherit; cursor: pointer; }
.room-list-link:hover { background: var(--hm-sage-bg); }
.room-list-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.room-list-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.room-list-arrow { margin-left: auto; color: var(--hm-text-muted); display: flex; align-items: center; }
.room-detail-facts { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 8px; }
.room-detail-fact { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--hm-text-body); }
.room-detail-fact i { font-size: 18px; color: var(--hm-green-mid); }

/* My Listings compact cards */
.prop-card-list { display: flex; flex-direction: column; gap: 14px; }
.prop-card { display: flex; gap: 16px; background: var(--hm-card-bg); border: 1px solid var(--hm-divider); border-radius: var(--hm-radius-card); padding: 16px; align-items: flex-start; }
.prop-card-thumb { width: 100px; height: 80px; flex-shrink: 0; border-radius: 10px; background: var(--hm-sage-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prop-card-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.prop-card-body { flex: 1; min-width: 0; }
.prop-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.prop-card-name { font-family: var(--hm-font-display); font-weight: 700; font-size: 16px; margin: 0 0 3px; }
.prop-card-location { font-size: 12px; color: var(--hm-text-muted); margin: 0; }
.prop-card-meta { font-size: 12px; color: var(--hm-text-muted); margin: 0 0 12px; display: flex; align-items: center; gap: 4px; }
.prop-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Room list within My Listings card */
.prop-room-list { margin-top: 16px; border-top: 1px solid var(--hm-border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.prop-room-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--hm-bg-subtle, #f8f8f8); border-radius: 8px; }
.prop-room-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hm-text); min-width: 0; flex: 1; }
.prop-room-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-room-actions { display: flex; gap: 6px; flex-shrink: 0; }
.prop-room-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px; border: 1.5px solid var(--hm-green); color: var(--hm-green); text-decoration: none; background: transparent; transition: background 0.15s, color 0.15s; }
.prop-room-btn:hover { background: var(--hm-green); color: #fff; }
.prop-room-add { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--hm-text-muted); text-decoration: none; padding: 4px 2px; margin-top: 2px; }
.prop-room-add:hover { color: var(--hm-green); }

/* Community profile — edit form */
.community-privacy-note { font-size: 14px; color: var(--hm-text-muted); margin: 0 0 20px; display: flex; align-items: center; gap: 6px; }
.community-section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-green); margin: 24px 0 14px; }
.community-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.community-choice { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--hm-text-body); cursor: pointer; line-height: 1.5; }
.community-choice input[type="radio"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--hm-green); width: 18px; height: 18px; }
.community-card .form-label { font-size: 16px; line-height: 1.5; }
.community-card textarea.form-input { font-size: 16px; }
.community-q { font-size: 13px; font-weight: 600; color: var(--hm-text-muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.community-a { font-size: 17px; color: var(--hm-text-body); margin: 0; line-height: 1.6; }

/* Community profile — public view */
.community-profile-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.community-profile-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.community-profile-avatar { width: 80px; height: 80px; min-width: 80px; border-radius: 50%; background: var(--hm-navy); display: flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 700; font-size: 28px; color: #fff; }
.community-profile-name { font-family: var(--hm-font-display); font-weight: 700; font-size: 22px; margin: 0 0 2px; }
.community-profile-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hm-green); margin: 0 0 8px; }
.community-profile-bio { font-size: 14px; color: var(--hm-text-body); margin: 0; line-height: 1.5; }
.community-qa { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #eee; }
.community-qa:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.community-q { font-size: 11px; font-weight: 700; color: var(--hm-text-muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .07em; }
.community-a { font-size: 17px; font-weight: 500; color: #1a1a2e; margin: 0; line-height: 1.6; }

/* Meet the Host — property detail */
.meet-host-card { display: flex; gap: 16px; align-items: flex-start; }
.meet-host-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.meet-host-avatar { width: 60px; height: 60px; min-width: 60px; border-radius: 50%; background: var(--hm-navy); display: flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 700; font-size: 22px; color: #fff; }
.meet-host-body { flex: 1; }
.meet-host-name { font-family: var(--hm-font-display); font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.meet-host-bio { font-size: 13px; color: var(--hm-text-muted); margin: 0 0 8px; line-height: 1.5; }
.meet-host-link { font-size: 13px; font-weight: 600; color: var(--hm-green); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.meet-host-link:hover { text-decoration: underline; }

/* Drag and drop */
.photo-thumb-wrap[draggable="true"] { cursor: grab; }
.photo-thumb-wrap.dragging { opacity: 0.4; cursor: grabbing; }
.photo-grid { min-height: 40px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-title { font-size: 24px; margin: 0 0 6px; }
.detail-location { font-size: 14px; color: var(--hm-text-muted); margin: 0; display: flex; align-items: center; gap: 4px; }
.detail-price-block { text-align: right; flex-shrink: 0; }
.detail-price { font-family: var(--hm-font-display); font-size: 22px; font-weight: 700; color: var(--hm-navy); }
.detail-price-label { font-size: 13px; color: var(--hm-text-muted); }
.detail-section { border-top: 1px solid var(--hm-divider); padding: 20px 0; }
.detail-section-title { font-size: 16px; margin: 0 0 12px; }
.detail-room-count { font-family: var(--hm-font-body); font-weight: 400; font-size: 13px; color: var(--hm-text-muted); }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-rules-text { font-size: 14px; color: #444; line-height: 1.6; margin: 12px 0 0; }
.badge-safety { background: #eaf4ee; color: #1a6b3a; border: 1px solid #b6dfc5; }

/* Safety checkboxes — edit property form */
.safety-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.safety-check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--hm-navy); cursor: pointer; }
.safety-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--hm-green); flex-shrink: 0; cursor: pointer; }
.safety-check i { color: var(--hm-green); font-size: 16px; }
@media (max-width: 480px) { .safety-checks { grid-template-columns: 1fr; } }
.detail-residents-text { font-size: 16px; color: var(--hm-navy); line-height: 1.6; margin: 0; }
.detail-unlock-cta { background: var(--hm-gray-bg); border-radius: var(--hm-radius-card); padding: 24px; text-align: center; margin-top: 24px; }
.detail-unlock-cta p { font-size: 14px; color: var(--hm-navy); margin: 0 0 16px; }
.room-list { display: flex; flex-direction: column; gap: 12px; }
.room-list-item { display: flex; gap: 14px; align-items: flex-start; background: var(--hm-gray-bg); border-radius: var(--hm-radius-card); padding: 16px; }
.room-list-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: var(--hm-sage-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--hm-green); }
.room-list-body { flex: 1; }
.room-list-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.room-list-name { font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; margin: 0; color: var(--hm-navy); }
.room-list-price { font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; color: var(--hm-navy); white-space: nowrap; }
.room-list-sub { font-size: 13px; color: var(--hm-text-muted); margin: 0 0 8px; display: flex; align-items: center; gap: 4px; }

/* ── Navbar badge (unread count) ── */
.nav-link-badge { position: relative; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e04040;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Admin dashboard ── */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card);
  padding: 24px 20px;
  text-align: center;
}
.admin-stat-num {
  font-family: var(--hm-font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--hm-navy);
  margin: 0 0 4px;
}
.admin-stat-label {
  font-size: 13px;
  color: var(--hm-text-muted);
  margin: 0;
}
.admin-section { margin-bottom: 40px; }
.admin-section-title {
  font-family: var(--hm-font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--hm-navy);
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--hm-text-muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--hm-border);
}
.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--hm-divider);
  color: var(--hm-navy);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-actions { display: flex; gap: 8px; }
.admin-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--hm-font-body);
  text-decoration: none;
  white-space: nowrap;
}
.admin-btn-approve { background: var(--hm-sage-bg); color: var(--hm-green); }
.admin-btn-approve:hover { background: #d5edbb; }
.admin-btn-reject { background: #FAECE7; color: #993C1D; }
.admin-btn-reject:hover { background: #f4d5cb; }
.admin-btn-msg { background: var(--hm-gray-bg); color: var(--hm-navy); }
.admin-btn-msg:hover { background: var(--hm-border); }
.admin-btn-delete { background: #FEE2E2; color: #991B1B; }
.admin-btn-delete:hover { background: #FECACA; }
.admin-empty { color: var(--hm-text-muted); font-size: 14px; }
@media (max-width: 768px) {
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .admin-stats-row { grid-template-columns: 1fr; }
}

/* ── Messages ── */
.msg-inbox-list { display: flex; flex-direction: column; gap: 4px; }
.msg-inbox-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--hm-radius-card);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.msg-inbox-item:hover { background: var(--hm-gray-bg); border-color: var(--hm-border); }
.msg-inbox-item--unread { background: var(--hm-sage-bg); }
.msg-inbox-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--hm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.msg-inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-inbox-body { flex: 1; min-width: 0; }
.msg-inbox-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.msg-inbox-name { font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; margin: 0; }
.msg-inbox-time { font-size: 12px; color: var(--hm-text-muted); white-space: nowrap; }
.msg-inbox-preview { font-size: 13px; color: var(--hm-text-muted); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-unread-dot { font-size: 11px; font-weight: 700; color: var(--hm-green); }

.msg-thread { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; min-height: 200px; }
.msg-thread-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--hm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.msg-thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.msg-bubble-wrap--out { align-items: flex-end; }
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--hm-gray-bg);
  color: var(--hm-navy);
}
.msg-bubble--out {
  background: var(--hm-navy);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.msg-bubble-time { font-size: 11px; color: var(--hm-text-faint); margin: 4px 0 0; }
.msg-reply-form { padding: 16px 0 0; border-top: 1px solid var(--hm-divider); }
.msg-reply-input { resize: none; }
.msg-reply-btn { width: auto; padding: 12px 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .browse-layout { padding: 24px 20px; }
  .prop-card-thumb { width: 80px; height: 70px; }
  .detail-gallery-img { height: 180px; min-width: 240px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Global font & spacing bumps for 55+ */
  body { font-size: 16px; }
  .form-label { font-size: 14px; margin-bottom: 6px; }
  /* Prevent iOS auto-zoom on inputs (must be ≥16px) */
  .form-input, select.form-input, textarea.form-input { font-size: 16px; }
  .btn-primary, .btn-secondary { font-size: 16px; padding: 14px; }
  .badge { font-size: 12px; padding: 4px 10px; }

  /* Navbar */
  .navbar-inner { height: 56px; padding: 0 16px; }
  .main-content { padding-top: 56px; }
  .navbar-logo { height: 44px; }
  .navbar-links { top: 56px; }
  .nav-link { font-size: 16px; padding: 14px 16px; }
  .nav-btn { font-size: 16px; padding: 14px 16px; }

  /* Browse */
  .browse-layout { padding: 20px 16px; gap: 20px; }
  .browse-header { padding: 20px 16px 0; }
  .browse-header h1 { font-size: 20px; }
  .browse-search-bar { flex-direction: column; gap: 8px; }
  .browse-search-btn { border-radius: var(--hm-radius-input); padding: 12px; font-size: 16px; }
  .browse-search-input { border-radius: var(--hm-radius-input); }
  .filter-label { font-size: 14px; }
  .filter-input { font-size: 16px; padding: 11px 12px; }
  .filter-checkbox { font-size: 15px; gap: 10px; }

  /* Property cards (My Listings compact) */
  .prop-card { flex-direction: column; gap: 12px; }
  .prop-card-thumb { width: 100%; height: 160px; border-radius: 10px; }
  .prop-card-thumb-img { width: 100%; height: 100%; }
  .prop-card-name { font-size: 17px; }
  .prop-card-location, .prop-card-meta { font-size: 13px; }
  .prop-card-actions { gap: 10px; }
  .prop-card-actions a { flex: 1; text-align: center; font-size: 15px !important; }

  /* Property / Room detail */
  .detail-title { font-size: 20px; }
  .detail-header { flex-direction: column; gap: 8px; }
  .detail-price-block { text-align: left; }
  .detail-price { font-size: 20px; }
  .detail-gallery-img { height: 200px; min-width: 260px; }
  .room-list-item, .room-list-link { padding: 14px 12px; }
  .room-list-name { font-size: 16px; }
  .room-list-price { font-size: 14px; }
  .room-list-sub { font-size: 13px; }
  .room-detail-facts { gap: 14px; }
  .room-detail-fact { font-size: 15px; }

  /* Meet the Host */
  .meet-host-card { flex-direction: column; gap: 12px; }
  .meet-host-photo, .meet-host-avatar { width: 56px; height: 56px; min-width: 56px; }
  .meet-host-name { font-size: 17px; }
  .meet-host-bio, .meet-host-link { font-size: 15px; }

  /* Auth / profile cards */
  .auth-card { padding: 20px 16px; }
  .auth-title { font-size: 20px; }

  /* Edit forms — collapse 2-col grids */
  .form-2col { grid-template-columns: 1fr !important; }

  /* Manage property — room section */
  .photo-thumb-wrap { width: 80px; height: 80px; }
  .photo-thumb { width: 80px; height: 80px; }

  /* Community profile */
  .community-profile-header { flex-direction: column; gap: 14px; }
  .community-profile-photo, .community-profile-avatar { width: 72px; height: 72px; min-width: 72px; }
  .community-profile-name { font-size: 20px; }
  .community-a { font-size: 16px; }
  .community-choice { font-size: 15px; gap: 14px; }
  .community-choice input[type="radio"] { width: 20px; height: 20px; margin-top: 2px; }

  /* Admin table — horizontal scroll */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 560px; }
  .admin-stats-row { grid-template-columns: 1fr 1fr; }

  /* Messages */
  .msg-bubble { max-width: 88%; font-size: 15px; }
  .msg-inbox-item { padding: 14px 12px; }

  /* Progress bar label */
  .progress-label { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Small phones (≤ 480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .inner-page { padding: 16px 12px; }
  .inner-page-narrow { padding: 16px 12px; }
  .listing-card-title { font-size: 15px; }
  .detail-gallery-img { height: 180px; min-width: 220px; }
  .admin-stats-row { grid-template-columns: 1fr; }
  .prop-card-actions { flex-direction: column; }
  .prop-card-actions a { width: 100%; padding: 12px !important; font-size: 15px !important; }
}
