@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,600;6..96,700&family=Great+Vibes&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #0c1524; --muted: #5d6d7c; --paper: #d4e0ec; --paper-deep: #c2d2e0;
  --forest: #0c1a2e; --forest-deep: #07101c; --moss: #1c334f; --sand: #8aa0b4; --sand-soft: #b7c9d8;
  --line: rgba(12,26,46,.12); --surface: #f7f9fc; --header-bg: rgba(212,224,236,.86);
  --footer-bg: rgba(247,249,252,.72); --toggle-bg: rgba(255,255,255,.72);
  --shadow: 0 22px 50px rgba(12,21,36,.12);
  --sky: #c5d5e4; --navy: #0c1a2e; --blush: #c43b7a;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --ink: #e8eef5; --muted: #93a3b5; --paper: #0b1420; --paper-deep: #152232;
  --forest: #d5e4f2; --forest-deep: #f3f7fb; --moss: #9eb6cc; --sand: #24364c; --sand-soft: #152232;
  --line: rgba(213,228,242,.14); --surface: #121c2a; --header-bg: rgba(11,20,32,.88);
  --footer-bg: rgba(11,20,32,.78); --toggle-bg: rgba(21,34,50,.88);
  --shadow: 0 22px 50px rgba(0,0,0,.45);
  --sky: #0b1420; --navy: #e8eef5; --blush: #e46aa0;
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: Outfit, 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--sky);
}
h1,h2,h3, .font-display, .font-mkt-serif {
  font-family: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.03em;
  font-weight: 600;
}
.font-script { font-family: 'Great Vibes', cursive; font-weight: 400; letter-spacing: 0; }
nav[aria-label="Primary"] a,
nav[aria-label="Footer"] a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
header .font-semibold, footer .font-semibold {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field-input {
  width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); padding: .7rem 1rem; font: inherit;
}
textarea.field-input { border-radius: 1.1rem; }
.field-input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

.btn-primary, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .75rem 1.55rem; border: 0; border-radius: 999px;
  font-family: Outfit, 'DM Sans', 'Segoe UI', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; text-align: center; transition: background .2s ease, transform .2s ease;
}
.btn-primary { background: #0c1a2e; color: #fff; }
.btn-primary:hover { background: #1c334f; color: #fff; transform: translateY(-1px); }
html[data-theme='dark'] .btn-primary { background: #e8eef5; color: #0c1a2e; }
html[data-theme='dark'] .btn-primary:hover { background: #fff; color: #0c1a2e; }
.btn-light { background: #fff; color: #0c1a2e; }
.btn-light:hover { background: #eef3f8; transform: translateY(-1px); }
.btn-sm { min-height: 2.35rem; padding: .45rem 1.15rem; font-size: .68rem; }
.btn-lg { min-height: 52px; padding: .9rem 1.9rem; font-size: .78rem; }
.btn-primary:disabled { cursor: wait; opacity: .88; transform: none; }

.home-page { background: var(--sky); }
.page-frame {
  margin: .85rem auto 1.4rem;
  width: min(1440px, calc(100% - 1.2rem));
  overflow: hidden;
  border-radius: 2.4rem;
  background: #d7e4ef;
  box-shadow: var(--shadow);
}
html[data-theme='dark'] .page-frame { background: #101a28; }
.home-page header {
  position: relative;
  z-index: 40;
  color: var(--ink);
}
.home-page header a:not(.btn-primary):not(.btn-light),
.home-page header .text-white,
.home-page header .text-white\/75 { color: inherit; }
.site-mobile-nav {
  background: rgba(12,26,46,.94);
  color: #fff;
}

.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92vh, 980px);
  color: var(--ink);
  background: linear-gradient(180deg, #d7e4ef 0%, #c5d5e4 38%, #b7c9da 100%);
}
html[data-theme='dark'] .hero-art {
  background: linear-gradient(180deg, #101a28 0%, #0b1420 42%, #081018 100%);
  color: #e8eef5;
}
.hero-art__photo {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  overflow: hidden;
}
.hero-art__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(215,228,239,.92) 0%, rgba(215,228,239,.12) 28%, rgba(12,21,36,.18) 100%);
}
html[data-theme='dark'] .hero-art__photo::after {
  background: linear-gradient(180deg, rgba(16,26,40,.94) 0%, rgba(16,26,40,.2) 32%, rgba(0,0,0,.35) 100%);
}
.hero-art__copy {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.25rem 12rem;
}
.hero-art h1 {
  max-width: 16ch;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: .88;
  font-weight: 600;
}
.hero-art__lede {
  margin-top: 1.1rem;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  color: var(--ink);
}
.hero-card {
  position: absolute;
  z-index: 12;
  width: min(190px, 28vw);
  padding: .7rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(12,21,36,.14);
  text-decoration: none;
  color: #0c1a2e;
}
html[data-theme='dark'] .hero-card { background: #18263a; color: #e8eef5; }
.hero-card--left { left: max(1.2rem, 6vw); top: 52%; }
.hero-card--right { right: max(1.2rem, 6vw); top: 58%; }
.hero-card img {
  display: block;
  width: 100%;
  height: 7.4rem;
  object-fit: cover;
  border-radius: .8rem;
}
.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-card__go {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border-radius: .35rem;
  background: #0c1a2e;
  color: #fff;
}
.hero-bloom {
  pointer-events: none;
  position: absolute;
  top: -2rem;
  right: -1.2rem;
  z-index: 11;
  width: min(280px, 42vw);
  height: 220px;
  background:
    radial-gradient(circle at 62% 38%, rgba(196,59,122,.55) 0 18%, transparent 42%),
    radial-gradient(circle at 38% 52%, rgba(214,90,150,.42) 0 14%, transparent 36%),
    radial-gradient(circle at 70% 62%, rgba(168,36,96,.35) 0 12%, transparent 30%);
  filter: blur(1px);
}
@media (max-width: 767px) {
  .hero-card { display: none; }
  .hero-art__copy { padding-bottom: 8rem; }
}

.about-split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.about-media-col,
.about-copy { min-width: 0; }
.about-media-col { position: relative; min-height: 20rem; }
.about-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.5rem;
  background: #0c1a2e url("/images/about-estate.webp") 78% 36% / cover no-repeat;
  border: 1px solid rgba(255,255,255,.18);
}
.about-media img {
  position: absolute; inset: 0; z-index: 0; display: block;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 78% 36%;
}
.about-copy {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem !important;
}
@media (min-width: 768px) {
  .about-split { flex-direction: row; align-items: stretch; gap: 1.75rem; }
  .about-media-col { flex: 1.28 1 0; min-height: 0; align-self: stretch; }
  .about-copy { flex: 1 1 0; align-self: stretch; }
}
.about-badge {
  position: absolute; z-index: 1;
  background: linear-gradient(160deg, rgba(12,26,46,.62), rgba(7,16,28,.7));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 12px 28px rgba(12,21,36,.22);
  backdrop-filter: blur(18px) saturate(1.35);
}
.host-pill { background: rgba(255,255,255,.55); border: 1px solid rgba(12,26,46,.1); }
.host-avatar {
  object-fit: cover; object-position: center 22%; background: var(--paper-deep);
}
html[data-theme='dark'] .host-pill { background: rgba(21,34,50,.72); border-color: rgba(213,228,242,.16); }
.band-forest { background: #0c1a2e; }
html[data-theme='dark'] .band-forest { background: #152232; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.hero-slide { opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-dot { background: rgba(12,26,46,.28); }
.hero-dot.is-active { background: #0c1a2e; }
html[data-theme='dark'] .hero-dot { background: rgba(255,255,255,.35); }
html[data-theme='dark'] .hero-dot.is-active { background: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); border: 0; }
.lightbox__frame { position: relative; z-index: 1; max-width: min(1100px, 92vw); }
.lightbox__img { max-height: 82vh; width: auto; max-width: 100%; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; cursor: pointer; font-size: 1.4rem;
}
.lightbox__close { top: -2.6rem; right: 0; }
.lightbox__nav--prev { left: -3rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: -3rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { color: #fff; text-align: center; margin-top: .5rem; }
@media (max-width: 800px) {
  .lightbox__nav--prev { left: .4rem; } .lightbox__nav--next { right: .4rem; }
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.35rem; padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-family: Outfit, 'DM Sans', 'Segoe UI', sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }
.login-page { min-height: 100vh; background: var(--sky); }
.login-split { min-height: 100vh; display: grid; }
.login-visual {
  display: none; position: relative; min-height: 100vh;
  background: #0c1a2e center / cover no-repeat;
}
.login-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,26,46,.2), rgba(12,26,46,.72));
}
.login-visual__copy { position: relative; z-index: 1; max-width: 28rem; color: #fff; padding: 2.5rem; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 1.25rem 2.5rem; }
.login-card { width: min(440px, 100%); margin: 0 auto; }
.seg-control {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.seg-control button {
  border: 0; border-radius: 999px; min-height: 2.4rem; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.seg-control button.is-active { background: #0c1a2e; color: #fff; }
html[data-theme='dark'] .seg-control button.is-active { background: #e8eef5; color: #0c1a2e; }
.demo-box {
  margin-top: 1rem; padding: .9rem 1rem; border: 1px dashed var(--line);
  border-radius: 1rem; background: var(--paper); font-size: .82rem; color: var(--muted);
}
.auth-error { display: none; margin-top: .75rem; color: #9b2c2c; font-size: .9rem; }
.auth-error.is-visible { display: block; }
.portal-layout { display: grid; gap: 1.5rem; }
.portal-side {
  border: 1px solid var(--line); background: var(--surface); border-radius: 1.25rem; padding: 1rem;
  height: fit-content;
}
.portal-nav { display: grid; gap: .35rem; }
.portal-nav button, .portal-nav a {
  display: flex; align-items: center; width: 100%; text-align: left;
  border: 0; border-radius: .85rem; padding: .7rem .85rem; background: transparent;
  color: var(--ink); font: inherit; cursor: pointer;
}
.portal-nav button.is-active, .portal-nav a.is-active { background: var(--paper-deep); color: var(--forest); font-weight: 600; }
.portal-panel { display: none; }
.portal-panel.is-active { display: block; }
.portal-panel[hidden] { display: none !important; }
.stat-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid--2 { max-width: 28rem; }
.stat-card, .portal-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: 1.25rem; padding: 1.1rem 1.15rem;
}
.stat-card strong { display: block; font-family: 'Bodoni Moda', Georgia, serif; font-size: 1.8rem; letter-spacing: -.03em; }
.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-pending { background: rgba(180, 140, 40, .16); color: #8a6914; }
.badge-confirmed { background: rgba(12, 26, 46, .1); color: var(--forest); }
.badge-completed { background: rgba(93, 109, 124, .16); color: var(--muted); }
.badge-cancelled { background: rgba(155, 44, 44, .12); color: #9b2c2c; }
.badge-open { background: rgba(12, 26, 46, .1); color: var(--forest); }
.badge-closed { background: rgba(93, 109, 124, .16); color: var(--muted); }
.badge-busy { background: rgba(12, 26, 46, .1); color: var(--forest); }
.badge-free { background: rgba(93, 109, 124, .16); color: var(--muted); }
html[data-theme='dark'] .badge-pending { color: #e4c56b; }
html[data-theme='dark'] .badge-cancelled { color: #f0a8a8; }
.table-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.portal-table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.portal-table td { padding: .85rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.empty-state { color: var(--muted); padding: 1.25rem 0; }
@media (min-width: 900px) {
  .login-split { grid-template-columns: 1fr 1fr; }
  .login-visual { display: flex; align-items: flex-end; }
  .login-panel { padding: 2.5rem; }
  .portal-layout { grid-template-columns: 240px 1fr; align-items: start; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
