/* Renaissance Salon Suites - Modern Luxury Earth-Tone Design System */

:root {
  --obsidian: #08100e;
  --deep: #0f2e27;
  --forest: #194d41;
  --green-accent: #257060;
  --gold: #d4af37;
  --gold-glow: #f5db7b;
  --clay: #c06346;
  --clay-hover: #d27254;
  --paper: #f9f6f0;
  --paper-card: #ffffff;
  --mist: #e2ece8;
  --ink: #111d1a;
  --muted: #5a6b67;
  --line: rgba(17, 29, 26, 0.12);
  --glass-bg: rgba(15, 46, 39, 0.88);
  --glass-border: rgba(212, 175, 55, 0.35);
  --shadow-sm: 0 4px 16px rgba(8, 16, 14, 0.06);
  --shadow-md: 0 12px 36px rgba(8, 16, 14, 0.12);
  --shadow-lg: 0 24px 64px rgba(8, 16, 14, 0.22);
  --depth-edge: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -1px 0 rgba(8, 16, 14, 0.06), 0 10px 22px rgba(8, 16, 14, 0.08);
  --depth-field: inset 0 1px 2px rgba(8, 16, 14, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.78), 0 1px 0 rgba(255, 255, 255, 0.72);
  --depth-button: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -2px 0 rgba(8, 16, 14, 0.18), 0 8px 18px rgba(8, 16, 14, 0.12);
  --font-heading: "Cinzel", "Playfair Display", Georgia, serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

body::selection {
  background: var(--gold);
  color: var(--obsidian);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0;
  color: var(--ink);
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

[data-page="admin"] .section-container {
  width: min(100% - 32px, 1680px);
  max-width: 1680px;
}

.text-center {
  text-align: center;
}

.margin-top-md {
  margin-top: 24px;
}

.width-full {
  width: 100%;
}

body[data-home-page="true"] main {
  padding-top: 76px;
}

/* Header Navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 64px);
  color: #fff;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(15, 46, 39, 0.6));
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.brand-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  position: relative;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.admin-menu-toggle,
.site-menu-toggle,
.admin-mobile-menu {
  display: none;
}

.nav-icon,
.btn-icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--gold), #b89327);
  color: var(--obsidian);
  border: none;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
}

.header-session-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.header-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-text-link:hover {
  color: #ffffff;
}

.header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.user-name-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.header-logout-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.header-logout-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Auth Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 16, 14, 0.82);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--paper);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.modal-tab {
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab.is-active {
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.modal-login-form {
  display: none;
}

.modal-login-form.is-active {
  display: block;
}

.demo-chip-box {
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed var(--gold);
  border-radius: 8px;
}

.demo-chip-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 4px;
}

.demo-chip-btn {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.demo-chip-btn:hover {
  background: var(--gold);
  color: var(--obsidian);
}

.input-field-group {
  margin-bottom: 16px;
}

.input-field-group label, .field-item label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.input-field-group input, .field-item input, .field-item select, .field-item textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--depth-field);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.input-field-group input:focus, .field-item input:focus, .field-item select:focus, .field-item textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: inset 0 1px 1px rgba(8, 16, 14, 0.05), 0 0 0 3px rgba(25, 77, 65, 0.15), 0 10px 22px rgba(8, 16, 14, 0.08);
  background: #ffffff;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--depth-button);
}

.button-gold {
  background: linear-gradient(135deg, var(--gold), #b89327);
  color: var(--obsidian);
  border-color: rgba(8, 16, 14, 0.12);
}

.button-gold:hover {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), inset 0 -2px 0 rgba(8, 16, 14, 0.16), 0 12px 28px rgba(212, 175, 55, 0.4);
}

.button:active,
.small-button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(8, 16, 14, 0.16), 0 3px 8px rgba(8, 16, 14, 0.1);
}

.button-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.button-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), inset 0 -1px 0 rgba(8, 16, 14, 0.1), 0 10px 24px rgba(8, 16, 14, 0.16);
}

.button-glass.dark {
  background: rgba(8, 16, 14, 0.08);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--depth-button);
}

/* Hero Section */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 90vh;
  overflow: hidden;
  color: #ffffff;
  background: var(--obsidian);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("renaissance-salon-hero.png");
  background-position: center;
  background-size: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.12s linear;
}

.hero:hover .hero-image {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 14, 0.96) 0%, rgba(15, 46, 39, 0.85) 45%, rgba(8, 16, 14, 0.5) 80%, rgba(8, 16, 14, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 16, 14, 0.7), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(740px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 100px);
  padding-top: 110px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-strip {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-pill strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
}

.stat-pill span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Highlights Strip */
.intro-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 36px clamp(20px, 6vw, 80px);
  background: var(--deep);
  color: #ffffff;
  border-bottom: 3px solid var(--gold);
}

.intro-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.intro-icon {
  font-size: 1.8rem;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.intro-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.intro-card span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}

.intro-link {
  display: block;
  margin-top: 12px;
  color: var(--gold-glow);
  font-size: 1.02rem;
  font-weight: 900;
  text-decoration: none;
}

.intro-link:hover {
  color: #ffffff;
}

/* Section Layouts */
.section {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 80px);
}

.section-light {
  background: var(--paper);
}

.section-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--clay);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-kicker.gold {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(180, 140, 20, 0.12);
  border: 1px solid #b38b14;
  border-radius: 20px;
  color: #7a5c07 !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  box-shadow: none !important;
  text-shadow: none !important;
}

.section-ink .section-kicker.gold {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  color: var(--gold-glow) !important;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px auto;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 1.1rem;
  color: var(--muted);
}

.section-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.section-actions.text-center {
  display: flex;
}

.section-primary-service {
  padding-block: clamp(72px, 9vw, 116px);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: inset 0 16px 34px rgba(255, 255, 255, 0.52);
}

.section-primary-service .section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-primary-service .section-heading h2 {
  font-size: clamp(2.35rem, 4.6vw, 3.5rem);
}

.section-primary-service .section-heading p {
  color: #31433f;
  font-size: clamp(1.12rem, 1.8vw, 1.28rem);
  font-weight: 500;
}

/* Salon Vibe / Finish Palette */
.section-salon-vibe {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f2ea 100%);
  border-top: 1px solid rgba(8, 16, 14, 0.08);
  border-bottom: 1px solid rgba(8, 16, 14, 0.08);
}

.vibe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.vibe-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.vibe-copy p {
  color: #384844;
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.vibe-media {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.vibe-hero-image,
.vibe-image-row img,
.vibe-proof-card,
.suite-vibe-strip {
  border: 1px solid rgba(17, 29, 26, 0.12);
  box-shadow: var(--depth-edge);
}

.vibe-hero-image {
  margin: 0;
  aspect-ratio: 47 / 26;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mist);
}

.vibe-hero-image img,
.vibe-image-row img,
.vibe-proof-card img,
.suite-vibe-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vibe-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
}

.vibe-image-row img {
  aspect-ratio: 16 / 5;
  border-radius: 10px;
  background: #ffffff;
}

.vibe-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vw, 42px);
}

.vibe-proof-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 184px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
}

.vibe-proof-card img {
  border-radius: 8px;
}

.vibe-proof-card div {
  align-self: center;
  min-width: 0;
}

.vibe-proof-card h3 {
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 1.1rem;
}

.vibe-proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.suite-vibe-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: center;
  margin: -10px auto 34px;
  padding: 14px;
  max-width: 1040px;
  border-radius: 12px;
  background: #ffffff;
}

.suite-vibe-strip img {
  aspect-ratio: 47 / 26;
  border-radius: 9px;
}

.suite-vibe-strip h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  margin-bottom: 8px;
}

.suite-vibe-strip p {
  margin: 0;
  color: var(--muted);
}

/* Suite Directory Grid */
.directory-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-button {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.filter-button.is-active {
  background: var(--forest);
  color: #ffffff;
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(25, 77, 65, 0.3);
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.suite-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--depth-edge);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.suite-card.is-clickable {
  cursor: pointer;
}

.suite-card:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.65);
  outline-offset: 4px;
}

.suite-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.suite-photo, .suite-photo-placeholder {
  height: 210px;
  background: var(--mist);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suite-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.suite-card:hover .suite-photo img {
  transform: scale(1.06);
}

.suite-photo span {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--forest);
  opacity: 0.3;
}

.suite-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.suite-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.suite-topline span {
  color: var(--clay);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.suite-topline strong {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(25, 77, 65, 0.12);
  color: var(--forest);
  font-size: 0.78rem;
}

.suite-topline.muted strong {
  background: rgba(192, 99, 70, 0.12);
  color: var(--clay);
}

.suite-body h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.suite-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.rent-price {
  font-size: 1.3rem !important;
  font-weight: 800;
  color: var(--deep) !important;
  margin-bottom: 14px !important;
}

.rent-price span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.suite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.suite-meta span {
  padding: 4px 10px;
  background: var(--paper);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.suite-body dl {
  margin: 0 0 20px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  display: grid;
  gap: 6px;
}

.suite-body dl div {
  display: flex;
  justify-content: space-between;
}

.suite-body dt { color: var(--muted); }
.suite-body dd { margin: 0; font-weight: 600; }

.text-link {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  margin-top: auto;
}

.text-link:hover {
  color: var(--clay-hover);
  text-decoration: underline;
}

.suite-body .text-link + .text-link {
  margin-top: 8px;
}

.suite-detail-container {
  display: grid;
  gap: 30px;
}

.suite-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: stretch;
}

.suite-detail-media {
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
  box-shadow: var(--shadow-sm);
}

.suite-detail-media img,
.suite-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.suite-detail-summary,
.suite-detail-panel,
.suite-detail-empty {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--depth-edge);
}

.suite-detail-summary {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.suite-detail-summary h1,
.suite-detail-empty h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

.suite-detail-summary p {
  color: var(--muted);
  margin-bottom: 16px;
}

.suite-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.suite-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.suite-detail-panel {
  padding: 24px;
}

.suite-detail-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.suite-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.suite-detail-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.suite-detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.suite-detail-facts dt {
  color: var(--muted);
}

.suite-detail-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.suite-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.suite-detail-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.suite-detail-empty {
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}

/* Portal Section - Warm Sand/Ivory Theme */
.section-portal {
  background: linear-gradient(180deg, #f3ebd9 0%, #eae0c9 100%);
  color: var(--ink);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.section-rental-support {
  padding-block: clamp(56px, 7vw, 84px);
}

.portal-teaser-banner {
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 48px clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.section-rental-support .portal-teaser-banner {
  border-width: 1px;
  border-radius: 14px;
  padding: 40px clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

.teaser-kicker {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(192, 99, 70, 0.12);
  border: 1px solid var(--clay);
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--clay);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.teaser-content h2 {
  color: var(--deep);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}

.section-rental-support .teaser-content h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
}

.teaser-content p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 24px;
}

.section-rental-support .teaser-content p {
  font-size: 1rem;
}

.teaser-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.chip-icon {
  font-size: 1.2rem;
}

/* Dashboards (Authenticated) */
.portal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid var(--gold);
  border-radius: 12px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.user-info-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #ffffff;
  color: var(--ink);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stat-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--deep);
  margin-top: 4px;
}

.portal-workspace {
  display: grid;
  gap: 28px;
}

.nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--gold);
  padding-left: 10px;
  padding-right: 10px;
}

.nav-links a.is-active::after {
  width: 100%;
}

.admin-workspace {
  align-items: start;
}

[data-page="admin"] {
  background: #f5f7f6;
}

[data-page="admin"] .site-header {
  position: sticky;
  top: 0;
  inset: auto;
  flex-wrap: wrap;
  min-height: 64px;
  padding: 10px 32px;
  background: #173f36;
  box-shadow: 0 2px 12px rgba(12, 31, 27, 0.18);
}

[data-page="admin"] .brand-logo,
[data-page="tenant"] .brand-logo,
[data-page="notifications"] .brand-logo {
  height: 36px;
}

[data-page="admin"] .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

[data-page="admin"] .brand-text strong {
  font-size: 1rem;
}

[data-page="admin"] .nav-links {
  gap: 6px;
  justify-content: flex-end;
  align-content: center;
}

[data-page="admin"] .nav-links a {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 0.88rem;
}

[data-page="tenant"] .site-header {
  flex-wrap: wrap;
}

[data-page="admin"] .page-top {
  min-height: calc(100vh - 64px);
  padding-top: 22px;
  padding-bottom: 36px;
}

[data-page="admin"] .section-portal {
  background: #f5f7f6;
  border: 0;
}

[data-page="tenant"],
[data-page="notifications"] {
  background: #f5f7f6;
}

[data-page="tenant"] .site-header,
[data-page="notifications"] .site-header {
  position: sticky;
  top: 0;
  inset: auto;
  min-height: 64px;
  padding: 10px 32px;
  background: #173f36;
  box-shadow: 0 2px 12px rgba(12, 31, 27, 0.18);
}

[data-page="tenant"] .brand-mark,
[data-page="notifications"] .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

[data-page="tenant"] .brand-text strong,
[data-page="notifications"] .brand-text strong {
  font-size: 1rem;
}

[data-page="tenant"] .page-top,
[data-page="notifications"] .page-top {
  min-height: calc(100vh - 64px);
  padding-top: 22px;
  padding-bottom: 36px;
}

[data-page="tenant"] .section-portal,
[data-page="notifications"] .section-portal {
  background: #f5f7f6;
  border: 0;
}

[data-page="tenant"] .section-container,
[data-page="notifications"] .section-container {
  width: min(100% - 32px, 1440px);
  max-width: 1440px;
}

.notification-tray {
  position: relative;
  flex: 0 0 auto;
}

.notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  background: rgba(255,255,255,0.15);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #d77923;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #173f36;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(12,31,27,0.22);
  padding: 14px;
  color: var(--ink);
}

.notification-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.notification-menu-head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--deep);
}

.notification-menu-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 0;
}

.notification-menu-actions[hidden] {
  display: none;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-top: 10px;
}

.notification-list > p {
  margin: 4px 0;
  color: var(--muted);
}

.notification-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-left: 4px solid #6b8f83;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f9fbfa;
  color: var(--ink);
  text-decoration: none;
}

.notification-list .notification-item {
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: start;
}

.notification-item-body {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.notification-delete-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(147, 43, 43, 0.18);
  border-radius: 8px;
  background: rgba(147, 43, 43, 0.06);
  color: #932b2b;
  cursor: pointer;
}

.notification-delete-button:hover,
.notification-delete-button:focus-visible {
  background: rgba(147, 43, 43, 0.12);
  border-color: rgba(147, 43, 43, 0.3);
  outline: none;
}

.notification-delete-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-item.is-unread {
  border-color: rgba(25, 77, 65, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(12,31,27,0.08);
}

.notification-item.is-read {
  opacity: 0.72;
  background: #f5f6f4;
}

.notification-item.urgent {
  border-left-color: #d77923;
  background: #fff8ef;
}

.notification-item strong {
  color: var(--deep);
  font-size: 0.92rem;
}

.notification-item span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.notification-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

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

.notifications-page .notification-item {
  grid-template-columns: 1fr;
  padding: 13px 14px;
}

.notifications-page {
  width: min(980px, 100%);
  margin: 0 auto;
}

.notifications-page .admin-section-heading {
  align-items: center;
}

.notifications-page .portal-card {
  background: rgba(255, 255, 255, 0.9);
}

.admin-section-panel {
  display: grid;
  gap: 16px;
}

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

.admin-tab-viewer {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-tab-nav {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(25, 77, 65, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(12, 31, 27, 0.06);
}

.admin-tab-nav-label {
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(25, 77, 65, 0.14);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-tab-nav button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.admin-tab-nav button:hover {
  background: rgba(25, 77, 65, 0.07);
}

.admin-tab-nav button.is-active {
  background: #173f36;
  color: #ffffff;
}

.admin-tab-content,
.admin-tab-panel {
  min-width: 0;
}

.admin-tab-panel {
  display: grid;
  gap: 14px;
}

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

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.admin-page-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-user-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 680px;
}

.admin-section-heading .site-user-summary-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(25, 77, 65, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 5px 12px rgba(12, 31, 27, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.admin-section-heading .site-user-summary-chip strong {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1;
}

.admin-section-heading .site-user-summary-chip span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.site-user-summary-chip.total {
  background: rgba(25, 77, 65, 0.1);
  border-color: rgba(25, 77, 65, 0.22);
}

.site-user-summary-chip.superuser {
  background: rgba(147, 43, 43, 0.08);
  border-color: rgba(147, 43, 43, 0.18);
}

.site-user-summary-chip.admin {
  background: rgba(43, 112, 82, 0.09);
  border-color: rgba(43, 112, 82, 0.2);
}

.site-user-summary-chip.tenant {
  background: rgba(212, 175, 55, 0.13);
  border-color: rgba(184, 147, 39, 0.24);
}

.site-user-summary-chip.guest {
  background: rgba(106, 92, 79, 0.09);
  border-color: rgba(106, 92, 79, 0.18);
}

.admin-section-heading span {
  display: block;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-section-heading h2 {
  margin: 5px 0 0 0;
  color: var(--deep);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.admin-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.admin-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.admin-list-grid .request-manager {
  grid-column: auto;
}

.admin-compact-card,
.admin-list-card {
  padding: 18px;
  border-radius: 8px;
}

[data-page="admin"] .portal-card {
  border: 1px solid rgba(25, 77, 65, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(8, 16, 14, 0.04), 0 8px 18px rgba(12, 31, 27, 0.08);
}

[data-page="admin"] .field-item {
  margin-bottom: 8px;
}

[data-page="admin"] .portal-card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

[data-page="admin"] .property-item,
[data-page="admin"] .manager-room,
[data-page="admin"] .request-card,
[data-page="admin"] .invoice-row {
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(12, 31, 27, 0.06);
}

.admin-billing-grid > .portal-card {
  min-width: 0;
  height: 100%;
}

.admin-billing-grid .property-form {
  display: flex;
  flex-direction: column;
}

.admin-billing-grid .property-form .button {
  align-self: flex-start;
}

.admin-billing-grid .property-manager {
  grid-column: 1 / -1;
}

.report-invoice-workspace {
  align-items: start;
}

.stripe-settings-card {
  margin-top: 14px;
}

.admin-split-panel,
.tenant-payments-grid,
.tenant-requests-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.program-offering-manager {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.program-offering-manager .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-upload-preview,
.program-document-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.program-upload-preview img {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-document-file strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.tenant-overview-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) repeat(2, minmax(260px, 0.9fr));
  gap: 14px;
  align-items: start;
}

.admin-collapsible {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.admin-collapsible summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--deep);
  border-bottom: 1px solid var(--line);
}

.admin-collapsible form {
  padding: 18px;
}

.list-tools {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, auto) minmax(130px, auto);
  gap: 8px;
  margin-bottom: 10px;
}

.list-tools input,
.list-tools select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--depth-field);
}

.scroll-list {
  max-height: 640px;
  overflow: auto;
  padding-right: 3px;
}

.compact-actions {
  margin-top: 14px;
}

.notice-banner {
  border: 1px solid #f0c36d;
  background: #fff7e6;
  color: #7c4a03;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

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

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.invoice-row.overdue {
  border-color: #d77923;
  background: #fff8ef;
}

.invoice-row span,
.invoice-row small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.invoice-row > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
  text-align: right;
}

.settings-layout {
  display: grid;
  gap: 18px;
  max-width: 1040px;
}

.settings-panel {
  border-radius: 8px;
  padding: 22px;
}

.settings-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.settings-panel-head h3 {
  margin: 0 0 4px 0;
  color: var(--deep);
  font-family: var(--font-sans);
  font-size: 1.08rem;
}

.settings-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.settings-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 8px 0 18px 0;
}

.settings-toggle-grid label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(8, 16, 14, 0.05);
  cursor: pointer;
}

.settings-toggle-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 1px solid rgba(12, 35, 30, 0.22);
  border-radius: 999px;
  background: #d8dfdc;
  box-shadow: inset 0 1px 2px rgba(8, 16, 14, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-toggle-grid input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(8, 16, 14, 0.24);
  transition: transform 0.18s ease;
}

.settings-toggle-grid input[type="checkbox"]:checked {
  border-color: rgba(212, 175, 55, 0.72);
  background: #173f36;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.24), 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.settings-toggle-grid input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.settings-toggle-grid input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.settings-toggle-grid span {
  display: grid;
  gap: 2px;
}

.settings-toggle-grid small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

[data-page="tenant"] .tenant-profile-form .settings-toggle-grid {
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 6px 0 14px 0;
}

[data-page="tenant"] .tenant-profile-form .settings-toggle-grid label {
  align-items: center;
  padding: 9px 10px;
  background: #ffffff;
}

[data-page="tenant"] .tenant-profile-form .settings-toggle-grid span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

[data-page="tenant"] .tenant-profile-form .settings-toggle-grid small {
  text-align: right;
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.property-form .field-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-compact-card textarea {
  min-height: 58px;
}

.portal-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--depth-edge);
}

.form-note a {
  color: var(--emerald);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.form-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-title-row h3 {
  font-size: 1.3rem;
  margin: 0;
}

.heading-muted {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 600;
}

.image-preview {
  margin: 12px 0 20px 0;
  padding: 16px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  box-shadow: inset 0 1px 2px rgba(8, 16, 14, 0.05), 0 4px 12px rgba(8, 16, 14, 0.04);
}

.listing-picture-field {
  gap: 8px;
}

.photo-upload-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-upload-control .button {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.photo-upload-control span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.image-preview img {
  max-height: 140px;
  border-radius: 6px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.image-preview-tile {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: grab;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 6px 14px rgba(8, 16, 14, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.image-preview-tile.is-main {
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 0 2px rgba(189, 163, 93, 0.2), 0 8px 18px rgba(8, 16, 14, 0.1);
}

.image-preview-tile.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.image-preview-tile.is-drop-target {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(23, 63, 54, 0.18);
  transform: translateY(-2px);
}

.image-preview-order {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(5, 11, 10, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.image-preview-order span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--obsidian);
}

.image-preview-order b {
  font-size: 0.68rem;
  text-transform: uppercase;
}

.image-preview-tile img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: #eef3f1;
}

.image-preview-tile figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  font-size: 0.82rem;
}

.image-preview-tile label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--deep);
  font-weight: 800;
}

.image-preview-tile input {
  width: auto;
}

.room-list, .request-list {
  display: grid;
  gap: 14px;
}

.manager-room {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.manager-thumb {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mist);
  flex-shrink: 0;
}

.manager-thumb img,
.tenant-suite-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manager-thumb span,
.tenant-suite-visual span {
  font-family: var(--font-heading);
  color: var(--forest);
  opacity: 0.45;
}

.tenant-suite-visual {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
}

.manager-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 4px 0 8px 0;
}

.manager-row-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.small-button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -1px 0 rgba(8, 16, 14, 0.06), 0 4px 10px rgba(8, 16, 14, 0.06);
  transition: all 0.2s ease;
}

.small-button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(8, 16, 14, 0.06), 0 7px 14px rgba(8, 16, 14, 0.09);
}

.small-button.danger {
  border-color: rgba(192, 99, 70, 0.4);
  color: var(--clay);
}

.lease-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 16, 14, 0.52);
}

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

.lease-detail-dialog {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(25, 77, 65, 0.18);
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.lease-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lease-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
}

.lease-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lease-detail-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.95rem;
}

.lease-terms-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.lease-terms-panel h4 {
  margin: 0 0 8px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.lease-terms-panel p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.5;
}

.tenant-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(8, 16, 14, 0.05);
}

.tenant-admin-row.is-active {
  border-color: rgba(25, 77, 65, 0.45);
  background: #eef6f3;
}

.tenant-admin-row button {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tenant-admin-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-user-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.program-auth-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 14px;
  width: min(780px, 100%);
}

[data-page="programs"] .portal-card {
  border: 1px solid rgba(25, 77, 65, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(12, 31, 27, 0.08);
}

.program-portal-list {
  display: grid;
  gap: 12px;
}

.program-portal-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(8, 16, 14, 0.05);
}

.program-portal-thumb {
  min-height: 128px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, #153f36, #d4af37);
  display: grid;
  place-items: center;
}

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

.program-portal-thumb .brand-mark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.program-portal-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.program-portal-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.program-portal-card h4 {
  margin: 0;
  color: var(--deep);
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.program-portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.program-my-form {
  display: grid;
  gap: 10px;
}

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

.program-list-tools {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, auto) minmax(140px, auto);
}

.program-signup-list,
.program-offering-list {
  display: grid;
  gap: 12px;
}

.program-signup-row,
.program-offering-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(8, 16, 14, 0.05);
}

.program-signup-row header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.program-signup-row header span:not(.pill),
.program-offering-row .section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-signup-row h4,
.program-offering-row h4 {
  margin: 0 0 3px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--deep);
}

.program-signup-row p,
.program-offering-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.program-signup-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.program-signup-meta div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 9px 10px;
}

.program-signup-meta strong {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-signup-meta span {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.program-signup-controls {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(240px, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.program-signup-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.program-signup-controls select,
.program-signup-controls textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: var(--depth-field);
}

.program-offering-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.program-offering-row.is-active {
  border-color: rgba(25, 77, 65, 0.48);
  background: #eef6f3;
}

.program-offering-image {
  display: grid;
  place-items: center;
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
}

.program-offering-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tenant-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tenant-detail-header h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.tenant-detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tenant-detail-grid {
  margin-bottom: 14px;
}

.tenant-detail-ledger {
  margin-top: 14px;
}

.tenant-detail-ledger h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.request-item {
  padding: 16px;
  background: var(--paper);
  border-radius: 8px;
  border-left: 4px solid var(--forest);
}

.request-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--mist);
  color: var(--forest);
}

.pill.urgent { background: #fee2e2; color: #b91c1c; }
.pill.high { background: #fef3c7; color: #b45309; }
.pill.closed { background: #e5e7eb; color: #6b7280; }
.pill.success { background: #dcfce7; color: #166534; }
.pill.danger { background: #fee2e2; color: #b91c1c; }

.settings-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: -6px 0 18px 0;
}

.billing-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.billing-status-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(8, 16, 14, 0.05);
}

.billing-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.billing-status-grid strong {
  display: block;
  color: var(--deep);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.tenant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.portal-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 10px;
}

.rent-total {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--deep);
  margin-bottom: 12px;
}

.tenant-detail-list div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.tenant-detail-list dt { color: var(--muted); }
.tenant-detail-list dd { margin: 0; font-weight: 600; }

/* Barber Education Section - Dark Obsidian & Gold Spotlight Theme */
.section-ink {
  background: radial-gradient(ellipse at top right, #11362e 0%, #060c0b 80%);
  color: #ffffff;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.section-education-support {
  padding-block: clamp(48px, 6vw, 76px);
  border-top-width: 1px;
  border-bottom-width: 1px;
}

#scbc-title {
  color: var(--gold-glow) !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.section-education-support #scbc-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem) !important;
}

.gold-highlight {
  color: var(--gold-glow) !important;
  text-shadow: 0 0 24px rgba(243, 215, 121, 0.5);
}

.scbc-description {
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 1.15rem !important;
  line-height: 1.6;
  max-width: 580px;
}

.section-education-support .scbc-description {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 1.02rem !important;
  max-width: 540px;
}

.scbc-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.education-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-education-support .education-panel {
  padding: 30px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.education-panel h3 {
  font-size: 1.5rem;
  color: var(--gold-glow);
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-glow);
  font-weight: 800;
}

/* Community Initiatives Section Styles */
.community-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--obsidian) !important;
  margin-top: 10px;
  margin-bottom: 12px;
  text-shadow: none !important;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}

.title-accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  margin: 12px auto 16px auto;
  border-radius: 2px;
}

.community-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: #c06346;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.community-description {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #4a5a56;
  max-width: 660px;
  margin: 0 auto 44px auto;
}

.section-white {
  background: #ffffff;
}

.section-community-quiet {
  padding-block: clamp(44px, 5vw, 66px);
}

.section-community-quiet .section-heading {
  margin-bottom: 30px;
}

.section-community-quiet .community-main-title {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem) !important;
}

.section-community-quiet .title-accent-line {
  width: 44px;
  opacity: 0.76;
}

.section-community-quiet .community-subtitle {
  color: rgba(192, 99, 70, 0.84);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.featured-program-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(15, 46, 39, 0.12);
  box-shadow: 0 8px 30px rgba(8, 16, 14, 0.08);
  background: #ffffff;
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.section-community-quiet .featured-program-card {
  border-color: rgba(15, 46, 39, 0.1);
  box-shadow: var(--shadow-sm);
}

.featured-program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(8, 16, 14, 0.16);
  border-color: var(--gold);
}

.section-community-quiet .featured-program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.program-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.section-community-quiet .program-image-wrapper {
  height: 190px;
}

.program-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.6s ease;
}

.featured-program-card:hover .program-image-wrapper img {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.12);
}

.program-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 14, 0.1) 0%, rgba(8, 16, 14, 0.88) 100%);
}

.program-hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  -webkit-font-smoothing: antialiased;
}

.program-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.section-community-quiet .program-card-body {
  padding: 22px;
}

.program-subheading {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 10px;
}

.program-card-body p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.program-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.program-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: stretch;
}

.program-detail-copy,
.program-detail-media,
.detail-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--depth-edge);
}

.program-detail-copy {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  align-content: center;
}

.program-detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.program-detail-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.program-detail-media {
  min-height: 380px;
  overflow: hidden;
}

.program-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

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

.rental-business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.detail-card,
.cta-panel {
  padding: 22px;
}

.detail-card h2,
.detail-card h3,
.cta-panel h2 {
  margin-bottom: 10px;
  color: var(--deep);
}

.detail-card p,
.detail-card li,
.cta-panel p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
}

.process-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(8, 16, 14, 0.05);
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--deep);
  color: #ffffff;
  font-weight: 800;
}

.cta-panel {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.program-story-panel,
.program-signup-section {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--depth-edge);
}

.program-story-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: clamp(22px, 4vw, 34px);
  align-items: center;
}

.program-story-panel h2,
.program-signup-copy h2 {
  color: var(--deep);
  margin-bottom: 10px;
}

.program-story-panel p,
.program-signup-copy p {
  color: var(--muted);
  margin: 0;
}

.program-mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-mini-list li {
  position: relative;
  padding: 11px 12px 11px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}

.program-mini-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.sponsor-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sponsor-levels span {
  padding: 7px 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.program-signup-section {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  padding: clamp(18px, 3vw, 26px);
  align-items: stretch;
}

.program-signup-copy {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(25, 77, 65, 0.12);
  border-radius: 10px;
  background: var(--paper);
}

.program-signup-form {
  padding: 24px;
  border-radius: 10px;
  box-shadow: none;
}

.program-signup-form.signup-account-form {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 12px 26px rgba(12, 31, 27, 0.1);
}

.brand-image-strip {
  position: relative;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
}

.brand-image-strip img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.brand-image-strip .brand-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(8, 16, 14, 0.72);
}

/* Contact Section */
.section-contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}

.contact-meta-box {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.contact-meta-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-signup-flow {
  background: #f5f7f6;
}

.signup-flow-layout {
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  align-items: start;
}

.signup-flow-copy {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(25, 77, 65, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--depth-edge);
}

.signup-step-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.signup-step-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(25, 77, 65, 0.13);
  border-radius: 8px;
  background: var(--paper);
}

.signup-step-list strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--deep);
  color: #ffffff;
  font-size: 0.86rem;
}

.signup-step-list span {
  color: var(--ink);
  font-weight: 750;
}

.contact-form {
  background: #ffffff;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.signup-account-form {
  border-color: rgba(25, 77, 65, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 16px 34px rgba(12, 31, 27, 0.12);
}

.signup-form-head {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.signup-form-head span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signup-form-head strong {
  color: var(--deep);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.field-item {
  margin-bottom: 16px;
}

.page-top {
  padding-top: calc(76px + clamp(42px, 6vw, 72px));
}

.page-top h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
}

/* Property Management */
.property-form,
.property-manager,
.reports-manager,
.tenant-payment-form,
.tenant-ledger-card {
  border-color: rgba(25, 77, 65, 0.18);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.property-list {
  display: grid;
  gap: 14px;
}

.property-list.compact {
  gap: 8px;
}

.property-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 5px 14px rgba(8, 16, 14, 0.06);
}

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

.property-item h4 {
  margin: 0 0 3px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.property-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.balance-due {
  color: #b91c1c;
}

.balance-current {
  color: #166534;
}

.ledger-lines {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ledger-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
}

.ledger-line span:first-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ledger-line strong {
  font-variant-numeric: tabular-nums;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.report-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 6px 16px rgba(8, 16, 14, 0.06);
}

.report-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-card strong {
  display: block;
  color: var(--deep);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin: 5px 0 8px 0;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.expense-category-list,
.expense-list {
  display: grid;
  gap: 10px;
}

.expense-category-row,
.expense-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.expense-category-row:last-child,
.expense-row:last-child {
  border-bottom: 0;
}

.expense-category-row strong,
.expense-row strong {
  display: block;
  color: var(--deep);
}

.expense-category-row span,
.expense-row span,
.expense-row p {
  display: block;
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.expense-category-row b,
.expense-row b {
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.line-item-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.line-item-actions span,
.line-item-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.attachment-preview {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(226, 236, 232, 0.38);
  color: var(--muted);
  font-size: 0.88rem;
}

.attachment-preview img {
  width: min(180px, 100%);
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.report-title-row {
  align-items: flex-start;
}

.report-title-row h3 {
  margin-bottom: 2px;
}

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

.report-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(226, 236, 232, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 5px 14px rgba(8, 16, 14, 0.05);
}

.report-toolbar .field-item {
  margin-bottom: 0;
}

.report-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.report-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(8, 16, 14, 0.07);
}

.report-panel h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.report-panel .form-title-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 10px;
  min-height: 250px;
  padding-top: 18px;
}

.report-chart.compact {
  min-height: 220px;
}

.chart-month {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.chart-bars {
  height: 190px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
}

.chart-bars.single {
  gap: 0;
}

.bar {
  width: 9px;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
}

.bar.billed,
.chart-key .billed {
  background: var(--forest);
}

.bar.collected,
.chart-key .collected {
  background: var(--gold);
}

.bar.expense,
.chart-key .expense {
  background: var(--clay);
}

.chart-month small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
}

.chart-key {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-key span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.report-donut-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 250px;
}

.report-donut {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.report-donut::after {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: #fff;
}

.report-donut span {
  position: relative;
  z-index: 1;
  color: var(--deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.report-legend {
  display: grid;
  gap: 8px;
}

.report-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.report-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.report-legend strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.report-table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-table-wrap.wide {
  max-height: 520px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.84rem;
}

.report-table th,
.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-table th button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.table-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--emerald);
  font: inherit;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.table-link-button:hover {
  color: var(--deep);
}

.report-table td {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.report-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: normal;
}

@media print {
  .site-header,
  .hero,
  .intro-strip,
  .section-light,
  .section-ink,
  .section-white,
  .section-contact,
  .site-footer,
  .portal-status-bar,
  .room-form,
  .room-manager,
  .request-manager,
  .property-form,
  .property-manager,
  .tenant-grid,
  .portal-teaser-banner {
    display: none !important;
  }

  body.printing-reports .admin-billing-grid,
  body.printing-reports .admin-section-heading,
  body.printing-reports .report-toolbar,
  body.printing-reports .report-actions {
    display: none !important;
  }

  .section-portal,
  .portal-dashboard,
  .reports-manager {
    display: block !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .reports-manager {
    padding: 0 !important;
  }

  .report-grid,
  .report-visual-grid {
    grid-template-columns: 1fr 1fr !important;
    break-inside: avoid;
  }

  .report-panel,
  .report-card {
    break-inside: avoid;
    box-shadow: none !important;
  }

  .report-table-wrap,
  .report-table-wrap.wide {
    max-height: none !important;
    overflow: visible !important;
  }

  .report-table th {
    position: static;
  }
}

@media (max-width: 980px) {
  .report-toolbar,
  .report-visual-grid {
    grid-template-columns: 1fr;
  }

  .report-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .report-legend {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  background: #050b0a;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px clamp(20px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.back-to-top {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.footer-sitemap {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-sitemap strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.footer-sitemap a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sitemap a:hover {
  color: var(--gold);
}

.footer-copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

/* Address in Footer */
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-address a:hover {
  color: var(--gold);
}

.footer-address .address-icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Social Buttons in Footer */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.social-btn .social-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.social-btn:hover .social-icon {
  transform: scale(1.08);
}

.floating-back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 10px;
  background: var(--glass-bg);
  color: var(--gold-glow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(8, 16, 14, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.floating-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-back-to-top:hover {
  background: rgba(15, 46, 39, 0.96);
}

.floating-back-to-top .btn-icon {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .program-image-wrapper img {
    transform: scale(1.04) !important;
    transition: none;
  }

  .floating-back-to-top {
    transition: none;
  }
}

@media (max-width: 900px) {
  .portal-teaser-banner { grid-template-columns: 1fr; }
  .suite-detail-hero,
  .suite-detail-grid,
  .program-detail-hero,
  .detail-grid,
  .detail-grid.two,
  .vibe-layout,
  .vibe-proof-grid,
  .suite-vibe-strip,
  .rental-business-grid,
  .program-story-panel,
  .program-signup-section {
    grid-template-columns: 1fr;
  }

  .vibe-layout {
    align-items: start;
  }

  .vibe-proof-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .suite-detail-media {
    min-height: 280px;
  }

  .program-detail-media {
    min-height: 280px;
  }

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

@media (max-width: 768px) {
  .nav-links { display: none; }

  .site-header {
    min-height: 70px;
    padding: 12px 16px;
    gap: 12px;
  }

  body[data-home-page="true"] main {
    padding-top: 76px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-text strong {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text small {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-login-btn {
    min-width: 112px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
  }

  .has-session-actions .site-header {
    gap: 8px;
  }

  .has-session-actions .brand {
    max-width: calc(100% - 112px);
  }

  .header-session-actions {
    gap: 8px;
    margin-left: auto;
  }

  .header-session-actions .header-login-btn,
  .header-session-actions .header-text-link {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 999px;
  }

  .header-session-actions .header-text-link {
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.32);
  }

  .header-session-actions .btn-icon {
    width: 20px;
    height: 20px;
  }

  .header-session-actions .header-login-btn span,
  .header-session-actions .header-text-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  [data-page="public"] .site-menu-toggle,
  [data-page="programs"] .site-menu-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 16px rgba(8, 16, 14, 0.12);
    cursor: pointer;
  }

  [data-page="public"] .site-menu-toggle:hover,
  [data-page="public"] .site-menu-toggle[aria-expanded="true"],
  [data-page="programs"] .site-menu-toggle:hover,
  [data-page="programs"] .site-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(212, 175, 55, 0.62);
  }

  [data-page="public"] .site-menu-toggle .nav-icon,
  [data-page="programs"] .site-menu-toggle .nav-icon {
    width: 24px;
    height: 24px;
  }

  [data-page="public"] .site-menu-toggle span,
  [data-page="programs"] .site-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  [data-page="public"] .nav-links,
  [data-page="programs"] .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 140;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: none;
    margin: 0;
    padding: 12px;
    overflow: visible;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 18px 46px rgba(8, 16, 14, 0.28);
  }

  [data-page="public"] .site-header.mobile-menu-open .nav-links,
  [data-page="programs"] .site-header.mobile-menu-open .nav-links {
    display: grid;
  }

  [data-page="public"] .nav-links a,
  [data-page="programs"] .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(8, 16, 14, 0.05);
  }

  [data-page="public"] .nav-links a::after,
  [data-page="programs"] .nav-links a::after {
    display: none;
  }

  [data-page="public"] .nav-links .nav-icon,
  [data-page="programs"] .nav-links .nav-icon {
    width: 22px;
    height: 22px;
  }

  [data-home-page="true"] .hero {
    display: block;
    min-height: auto;
  }

  [data-home-page="true"] .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1774 / 887;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    transform: none !important;
    transition: none;
  }

  [data-home-page="true"] .hero:hover .hero-image {
    transform: none !important;
  }

  [data-home-page="true"] .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 16, 14, 0.08) 0%, rgba(8, 16, 14, 0.28) 36%, rgba(8, 16, 14, 0.96) 58%, rgba(8, 16, 14, 0.98) 100%);
  }

  [data-home-page="true"] .hero-content {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding-top: 26px;
    padding-bottom: 56px;
  }

  .section-primary-service {
    padding-block: 54px;
  }

  .vibe-image-row {
    grid-template-columns: 1fr;
  }

  .vibe-image-row img {
    aspect-ratio: 4 / 1;
  }

  .vibe-proof-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 166px;
  }

  .suite-vibe-strip {
    margin-bottom: 28px;
  }

  .section-rental-support .portal-teaser-banner {
    padding: 30px 20px;
  }

  .section-community-quiet .program-image-wrapper {
    height: 180px;
  }

  [data-page="tenant"] .site-header,
  [data-page="admin"] .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    align-items: center;
    min-height: 64px;
    padding: 10px 16px;
    backdrop-filter: none;
  }

  [data-page="admin"] .admin-menu-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
  }

  [data-page="admin"] .admin-menu-toggle:hover,
  [data-page="admin"] .admin-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(212, 175, 55, 0.62);
  }

  [data-page="admin"] .admin-menu-toggle .nav-icon {
    width: 23px;
    height: 23px;
  }

  [data-page="admin"] .admin-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  [data-page="admin"] .admin-mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 140;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 18px 46px rgba(8, 16, 14, 0.28);
  }

  [data-page="admin"] .admin-mobile-menu[hidden] {
    display: none !important;
  }

  [data-page="admin"] .admin-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
  }

  [data-page="admin"] .admin-mobile-menu a.is-active {
    border-color: #173f36;
    background: #173f36;
    color: #ffffff;
  }

  [data-page="tenant"] .nav-links,
  [data-page="programs"] .nav-links,
  [data-page="admin"] .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(44px, 1fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    margin: 0;
    padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    overflow: hidden;
    background: rgba(12, 35, 30, 0.96);
    border-top: 1px solid rgba(212, 175, 55, 0.32);
    box-shadow: 0 -10px 30px rgba(8, 16, 14, 0.28);
    backdrop-filter: blur(14px);
  }

  [data-page="admin"] .nav-links {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-columns: minmax(0, 1fr);
  }

  [data-page="admin"] .nav-links a:not(.mobile-primary) {
    display: none;
  }

  [data-page="admin"] .nav-links a {
    height: 40px;
    min-width: 0;
    padding: 0 4px;
  }

  [data-page="tenant"] .nav-links a,
  [data-page="programs"] .nav-links a {
    height: 40px;
    min-width: 0;
    padding: 0 4px;
  }

  [data-page="tenant"] .nav-links a,
  [data-page="programs"] .nav-links a,
  [data-page="admin"] .nav-links a {
    justify-content: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
  }

  [data-page="tenant"] .nav-links a span,
  [data-page="programs"] .nav-links a span,
  [data-page="admin"] .nav-links a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  [data-page="tenant"] .nav-links a::after,
  [data-page="programs"] .nav-links a::after,
  [data-page="admin"] .nav-links a::after {
    display: none;
  }

  [data-page="tenant"] .nav-links a.is-active,
  [data-page="programs"] .nav-links a.is-active,
  [data-page="admin"] .nav-links a.is-active {
    color: var(--gold-glow);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  [data-page="tenant"] .nav-links .nav-icon,
  [data-page="programs"] .nav-links .nav-icon,
  [data-page="admin"] .nav-links .nav-icon {
    width: 28px;
    height: 28px;
  }

  [data-page="tenant"] .page-top,
  [data-page="programs"] .page-top,
  [data-page="admin"] .page-top,
  [data-page="notifications"] .page-top {
    min-height: calc(100vh - 64px);
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .notification-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    width: auto;
    max-width: none;
    max-height: min(72vh, 520px);
    overflow: hidden;
    padding: 16px;
    border-radius: 12px;
  }

  .notification-list {
    max-height: calc(min(72vh, 520px) - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hero-content { margin-left: 20px; }
  .hero-stats-strip { flex-wrap: wrap; gap: 16px; }
  .ledger-line { grid-template-columns: 1fr; gap: 2px; }
  .property-item header { display: block; }
  .form-actions .button { width: 100%; }
  .admin-list-grid,
  .admin-compact-grid,
  .admin-billing-grid { grid-template-columns: 1fr; }
  .list-tools { grid-template-columns: 1fr; }
  .program-signup-meta,
  .program-signup-controls,
  .program-offering-row,
  .program-portal-card,
  .program-auth-grid {
    grid-template-columns: 1fr;
  }
  .program-offering-image {
    width: 100%;
    aspect-ratio: 16 / 7;
  }
  .scroll-list { max-height: 430px; }
  .invoice-row { display: grid; }
  .invoice-row > div:last-child { justify-items: start; text-align: left; }
}

@media (max-width: 980px) {
  .admin-tab-viewer,
  .admin-split-panel,
  .tenant-overview-grid,
  .tenant-payments-grid,
  .tenant-requests-grid {
    grid-template-columns: 1fr;
  }

  .admin-tab-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .admin-tab-nav-label {
    grid-column: 1 / -1;
    padding: 8px 10px;
  }

  .admin-tab-nav button {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .admin-compact-grid,
  .admin-billing-grid {
    grid-template-columns: 1fr;
  }

  [data-page="admin"] .section-container {
    width: calc(100% - 28px);
    max-width: none;
  }
}

@media (max-width: 520px) {
  .vibe-proof-card {
    grid-template-columns: 1fr;
  }

  .vibe-proof-card img {
    aspect-ratio: 16 / 9;
  }

  .vibe-image-row img {
    aspect-ratio: 3 / 1;
  }

  .admin-tab-nav {
    grid-template-columns: 1fr 1fr;
    padding: 6px;
  }

  .admin-tab-nav button {
    min-height: 46px;
    padding: 9px 8px;
    font-size: 0.82rem;
  }

  .portal-card {
    padding: 20px;
  }

  .form-title-row {
    align-items: flex-start;
    gap: 10px;
  }
}

/* About Page Specific Styles */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr);
  gap: 48px;
  align-items: start;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-owner-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.about-owner-card h3 {
  font-family: var(--font-heading);
  color: var(--obsidian);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.about-owner-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 0 0;
}

.about-owner-card .owner-background {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.65;
}

.about-social-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
}

.about-social-card h4 {
  margin: 0 0 12px;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.about-social-links {
  display: grid;
  gap: 10px;
}

.about-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.about-social-links a:hover {
  border-color: var(--gold);
  color: var(--forest);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.about-social-links .social-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-story h2 {
  font-family: var(--font-heading);
  color: var(--obsidian);
  margin-top: 0;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  display: inline-block;
}

.about-story p {
  line-height: 1.7;
  color: var(--ink);
  font-size: 1.05rem;
}

.about-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.55);
}

.contact-card h4 {
  font-family: var(--font-heading);
  color: var(--forest);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.contact-card h4 svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
  flex-grow: 1;
}

.contact-card .button {
  margin-top: 12px;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 8px 16px;
}

.about-owner-card image,
.about-owner-card img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px; 
}
