:root {
  color-scheme: dark;
  --bg: #08060d;
  --bg-soft: rgba(18, 15, 31, 0.78);
  --card: rgba(22, 18, 35, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f3ff;
  --muted: #b6accf;
  --accent: #f0a3c2;
  --accent-strong: #f0c48a;
  --success: #87f4bf;
  --danger: #ff9db8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(240, 163, 194, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(240, 196, 138, 0.18), transparent 35%),
    linear-gradient(180deg, #09070f 0%, #08060d 50%, #100a18 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient {
  position: fixed;
  inset: auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}

.ambient-one {
  top: 5rem;
  left: -4rem;
  background: rgba(240, 163, 194, 0.8);
}

.ambient-two {
  top: 20rem;
  right: -5rem;
  background: rgba(240, 196, 138, 0.7);
}

.site-header,
.site-footer,
.section,
.admin-shell {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  align-items: center;
}

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

.brand h1,
.hero-copy h2,
.section-heading h3,
.admin-panel h1,
.dashboard-header h1,
.section-heading h2 {
  margin: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(240, 163, 194, 0.24), rgba(240, 196, 138, 0.2));
  border: 1px solid var(--line);
}

.header-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--accent-strong);
}

.lead,
.section-text,
.form-hint,
.panel-copy p,
.feature-list,
.process-list,
.site-footer,
.status-pill,
label span {
  color: var(--muted);
}

.section {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy,
.hero-panel,
.admin-panel,
.dashboard-header,
.booking-form,
.dashboard-grid > article,
.dashboard-grid + section,
.slot-card {
  padding: 1.25rem;
}

.hero-copy h2 {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 0.95;
  max-width: 12ch;
}

.lead {
  max-width: 62ch;
  line-height: 1.6;
}

.hero-actions,
.dashboard-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, rgba(240, 163, 194, 0.3), rgba(240, 196, 138, 0.22));
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button.status {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.stats-grid,
.content-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  margin-top: 1.25rem;
}

.stats-grid article,
.booking-card,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid article {
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.panel-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
  font-size: 0.82rem;
}

.hero-portrait {
  margin-top: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.content-grid article {
  padding: 1.25rem;
}

.feature-list,
.process-list {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gallery-grid,
.booking-list,
.slots-grid {
  display: grid;
  gap: 1rem;
}

.slot-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.slot-card .slot-card-info {
  flex: 1 1 220px;
  min-width: 0;
}

.slot-card .slot-card-info strong {
  display: block;
}

.slot-card .slot-card-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-card button {
  flex-shrink: 0;
}

.selected-slot-banner {
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-card-content {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

.booking-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.slot-batch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}

.slot-batch-row .full-width {
  grid-column: 1 / -1;
}

.slot-batch-row .remove-row {
  grid-column: 1 / -1;
  justify-self: start;
}

label {
  display: grid;
  gap: 0.5rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.status-message {
  min-height: 1.5rem;
  margin: 0;
}

.status-success {
  color: var(--success);
}

.status-error {
  color: var(--danger);
}

.admin-body {
  display: grid;
  align-items: center;
}

.admin-shell {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
}

.admin-panel {
  max-width: 32rem;
  margin: 0 auto;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
}

.booking-card,
.gallery-card-content.admin {
  padding: 1rem;
}

.booking-card-header,
.gallery-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.booking-meta,
.booking-card p,
.gallery-card p {
  margin: 0;
  line-height: 1.5;
}

.booking-actions,
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.status-pill.pending {
  color: #ffd598;
}

.status-pill.approved {
  color: var(--success);
}

.status-pill.rejected {
  color: var(--danger);
}

.status-pill.open {
  color: var(--success);
}

.status-pill.cancelled {
  color: var(--danger);
}

.status-pill.reserved,
.status-pill.booked {
  color: #ffd598;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .hero,
  .content-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy,
  .hero-panel,
  .admin-panel,
  .dashboard-header,
  .booking-form,
  .dashboard-grid > article,
  .dashboard-grid + section {
    padding: 1rem;
  }
}
