:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --paper: #fffdf8;
  --paper-2: #efe7d9;
  --ink: #202523;
  --muted: #6a716d;
  --line: rgba(32, 37, 35, 0.14);
  --primary: #1f3a36;
  --accent: #c66a3d;
  --accent-2: #d8b45b;
  --deep: #161a1d;
  --shadow: 0 18px 50px rgba(28, 28, 24, 0.13);
  --radius: 8px;
  font-family: Inter, Arial, sans-serif;
}

body[data-theme="alleylight"] {
  --bg: #fff8ee;
  --paper: #fffdf7;
  --paper-2: #f3e3cc;
  --ink: #222733;
  --muted: #69707a;
  --line: rgba(34, 39, 51, 0.14);
  --primary: #22324a;
  --accent: #b23a2e;
  --accent-2: #e7a83e;
  --deep: #171c25;
  font-family: "Source Sans 3", Verdana, sans-serif;
}

body[data-theme="ridge"] {
  --bg: #f4f6f2;
  --paper: #ffffff;
  --paper-2: #e3e9e0;
  --ink: #161a1d;
  --muted: #626e72;
  --line: rgba(22, 26, 29, 0.13);
  --primary: #244c5a;
  --accent: #8a9a5b;
  --accent-2: #c98b4a;
  --deep: #101517;
  font-family: Roboto, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-width: 320px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

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

.primary-nav,
.theme-switcher,
.hero-actions,
.chip-row,
.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-nav {
  justify-content: center;
}

.nav-button,
.theme-chip,
.mini-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 13px;
}

.nav-button.active,
.theme-chip.active,
.mini-button {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.theme-switcher span {
  color: var(--muted);
  font-size: 0.82rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.listing-shell {
  background: var(--paper);
}

.listing-top {
  padding: clamp(28px, 5vw, 54px) clamp(16px, 5vw, 72px) 18px;
}

.listing-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.listing-title-row h1 {
  margin: 0;
  max-width: 1040px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

body[data-theme="ridge"] .listing-title-row h1 {
  font-family: Montserrat, Trebuchet MS, sans-serif;
}

.listing-meta,
.listing-actions,
.listing-jump-nav,
.booking-estimate,
.policy-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-meta {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.listing-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--paper-2) 42%, white);
}

.listing-actions {
  justify-content: flex-end;
}

.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(170px, 18vw));
  gap: 8px;
  padding: 0 clamp(16px, 5vw, 72px) 18px;
}

.listing-photo {
  position: relative;
  min-height: 170px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--deep);
  color: white;
}

.listing-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 12, 13, 0.66), rgba(8, 12, 13, 0.08) 58%),
    url("oak260-hero-v1.png") center / cover no-repeat;
  transition: transform 220ms ease;
}

.listing-photo:hover::before {
  transform: scale(1.03);
}

.listing-photo.main {
  grid-row: 1 / span 2;
}

.listing-photo.offices::before {
  background:
    linear-gradient(0deg, rgba(31, 58, 54, 0.74), rgba(31, 58, 54, 0.08) 60%),
    url("oak260-hero-v1.png") left center / cover no-repeat;
}

.listing-photo.studio::before {
  background:
    linear-gradient(0deg, rgba(138, 154, 91, 0.7), rgba(138, 154, 91, 0.12) 58%),
    url("oak260-hero-v1.png") right center / cover no-repeat;
}

.listing-photo.boardroom::before {
  background:
    linear-gradient(0deg, rgba(36, 76, 90, 0.72), rgba(36, 76, 90, 0.1) 58%),
    url("oak260-hero-v1.png") center top / cover no-repeat;
}

.listing-photo.alley::before {
  background:
    linear-gradient(0deg, rgba(198, 106, 61, 0.74), rgba(198, 106, 61, 0.08) 60%),
    url("oak260-hero-v1.png") center bottom / cover no-repeat;
}

.listing-photo span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.listing-jump-nav {
  position: sticky;
  top: 70px;
  z-index: 10;
  padding: 12px clamp(16px, 5vw, 72px);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.listing-jump-nav a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 11px;
}

.listing-jump-nav a:hover,
.listing-jump-nav a:focus-visible {
  background: var(--paper-2);
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(22px, 4vw, 48px);
  padding: 34px clamp(16px, 5vw, 72px) clamp(48px, 8vw, 96px);
  align-items: start;
}

.listing-content {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  min-width: 0;
}

.listing-section {
  scroll-margin-top: 150px;
}

.listing-section > h2 {
  margin: 0 0 14px;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-theme="ridge"] .listing-section > h2 {
  font-family: Montserrat, Trebuchet MS, sans-serif;
}

.listing-section > p {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

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

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

.detail-grid article,
.policy-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper-2) 32%, white);
}

.detail-grid span,
.policy-grid span,
.booking-lede {
  color: var(--muted);
  line-height: 1.55;
}

.listing-booking-card {
  position: sticky;
  top: 136px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(28, 28, 24, 0.18);
}

.listing-booking-card h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.booking-estimate {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.booking-estimate strong {
  font-size: 1.28rem;
}

.booking-estimate span,
.booking-estimate small {
  color: var(--muted);
}

.option-row.stacked {
  display: grid;
  gap: 9px;
}

.wide-button {
  width: 100%;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - 112px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--deep);
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 13, 0.86) 0%, rgba(8, 12, 13, 0.66) 35%, rgba(8, 12, 13, 0.2) 70%),
    url("oak260-hero-v1.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 74px);
  align-self: center;
}

.hero h1,
.portal-hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
}

body[data-theme="ridge"] .hero h1,
body[data-theme="ridge"] .portal-hero h1,
body[data-theme="ridge"] .section h2 {
  font-family: Montserrat, Trebuchet MS, sans-serif;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.25rem);
  max-width: 14ch;
}

.hero p {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 17px;
  font-weight: 800;
}

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

.button.secondary {
  background: var(--paper);
  color: var(--primary);
  border-color: var(--line);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: inherit;
  font-size: 0.72rem;
}

.button.secondary kbd {
  background: var(--paper-2);
  border-color: var(--line);
}

.hero-facts {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 0 clamp(16px, 4vw, 48px) clamp(18px, 4vw, 48px) 0;
}

.hero-facts span,
.stat-stack span,
.mini-metrics span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: clamp(44px, 8vw, 92px) clamp(16px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section h2,
.portal-hero h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.local-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 70px);
  background: var(--paper);
}

.story-grid,
.space-grid,
.landlord-grid {
  display: grid;
  gap: 16px;
}

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

.story-grid article,
.space-card,
.form-card,
.dashboard-panel,
.offering-panel,
.class-card,
.membership-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-grid article,
.space-card,
.form-card,
.dashboard-panel,
.offering-panel,
.class-card,
.membership-card {
  padding: 20px;
}

.story-grid h3,
.space-card h3,
.class-card h3 {
  margin: 0 0 8px;
}

.story-grid p,
.space-card p,
.offering-panel p,
.class-card p,
.portal-hero p,
.section p {
  color: var(--muted);
  line-height: 1.6;
}

.split-offerings,
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.offering-panel.offices {
  background: color-mix(in srgb, var(--primary) 8%, var(--paper));
}

.offering-panel.social {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
}

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

.plain-list li {
  padding-left: 22px;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

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

.space-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.chip-row {
  align-items: flex-start;
}

.chip-row span {
  font-size: 0.82rem;
  min-height: 30px;
  box-shadow: none;
}

.class-market {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  background: var(--paper-2);
}

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

.class-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  box-shadow: none;
}

.class-meta {
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
}

.inquiry-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.portal-hero {
  padding: clamp(42px, 8vw, 86px) clamp(16px, 5vw, 72px);
  background: var(--deep);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.portal-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 780px;
}

.stat-stack {
  display: grid;
  gap: 10px;
  min-width: min(360px, 100%);
}

.stat-stack strong,
.mini-metrics strong {
  margin-right: 6px;
}

.form-card,
.dashboard-panel {
  box-shadow: none;
}

.form-card h2,
.dashboard-panel h2 {
  margin-top: 0;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.option-row {
  align-items: flex-start;
  margin: 16px 0;
}

.option-row label,
.policy-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-row input,
.policy-line input {
  width: auto;
}

.form-status {
  min-height: 22px;
  font-weight: 800;
}

.form-status.ok {
  color: #257a3e;
}

.form-status.error,
.toast.error {
  color: #b42318;
}

.dashboard-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booking-list,
.stack-list,
.rate-summary {
  display: grid;
  gap: 10px;
}

.booking-list article,
.stack-list article,
.rate-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 74%, white);
}

.booking-list span,
.stack-list span,
.rate-summary span,
.muted {
  color: var(--muted);
}

.membership-card,
.compact-form {
  display: grid;
  gap: 10px;
}

.tenant-access {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  background: var(--paper-2);
}

.admin-tools {
  background: color-mix(in srgb, var(--primary) 5%, var(--paper));
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-form-grid form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 84%, white);
}

.admin-form-grid h3,
.membership-card h3,
.dashboard-panel h3 {
  margin: 0;
}

.action-row,
.two-column-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.mini-button.ghost {
  background: var(--paper);
  color: var(--primary);
  border-color: var(--line);
}

.inline-space-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) repeat(4, minmax(90px, 0.45fr)) auto;
  gap: 10px;
  align-items: end;
}

.inline-space-form textarea {
  min-height: 44px;
}

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

.landlord-grid .wide {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--paper-2);
  color: var(--primary);
  font-weight: 800;
}

.status.pending_approval {
  background: #fff2cc;
  color: #8a5b00;
}

.status.confirmed {
  background: #dff5e7;
  color: #1b6b39;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body[data-theme="alleylight"] .hero {
  grid-template-columns: minmax(0, 1fr);
}

body[data-theme="alleylight"] .hero-copy {
  max-width: 920px;
}

body[data-theme="alleylight"] .hero h1 {
  max-width: 15ch;
}

body[data-theme="ridge"] .space-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="ridge"] .space-card {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .hero,
  .local-story,
  .class-market,
  .inquiry-section,
  .portal-hero,
  .split-offerings,
  .app-grid,
  .tenant-access,
  .landlord-grid,
  .listing-title-row,
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .listing-actions {
    justify-content: flex-start;
  }

  .listing-jump-nav {
    top: 121px;
  }

  .listing-booking-card {
    position: static;
  }

  .hero-copy {
    padding-top: 58px;
  }

  .hero-facts {
    justify-self: start;
    margin-left: clamp(20px, 5vw, 74px);
  }

  .story-grid,
    .space-grid,
    .admin-form-grid,
    .two-column-stack,
    .inline-space-form,
    .detail-grid,
    .policy-grid,
    body[data-theme="ridge"] .space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand {
    min-width: auto;
  }

  .nav-button,
  .theme-chip {
    padding: 8px 10px;
  }

  .hero {
    min-height: 620px;
  }

  .listing-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .listing-photo,
  .listing-photo.main {
    grid-row: auto;
    min-height: 210px;
  }

  .listing-jump-nav {
    position: static;
  }

  .hero-copy {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .story-grid,
  .space-grid,
  body[data-theme="ridge"] .space-grid,
  .form-grid,
  .mini-metrics,
  .class-card,
    .admin-form-grid,
    .two-column-stack,
    .inline-space-form,
    .detail-grid,
    .policy-grid,
    body[data-theme="ridge"] .space-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding-left: 14px;
    padding-right: 14px;
  }
}
