:root {
  --bg: #f8f1e7;
  --panel: rgba(255, 250, 244, 0.92);
  --panel-strong: #fff9f2;
  --line: rgba(26, 43, 56, 0.14);
  --text: #1a2b38;
  --muted: #5a6a73;
  --accent: #f26a4b;
  --accent-soft: rgba(242, 106, 75, 0.18);
  --accent-dark: #ce5337;
  --shadow: 0 24px 70px rgba(26, 43, 56, 0.12);
  --radius: 24px;
  --label-width: 220px;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(242, 106, 75, 0.14), transparent 28%),
    linear-gradient(180deg, #fff7ed 0%, var(--bg) 45%, #f2e7d7 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header,
.page-shell,
.site-footer,
.flash {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffe89f 0%, #ffd56c 42%, #ffb347 72%, #f26a4b 100%);
  box-shadow:
    0 0 0 8px rgba(255, 213, 108, 0.16),
    0 12px 26px rgba(242, 106, 75, 0.24);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 213, 108, 0.92) 0deg 18deg,
      transparent 18deg 42deg,
      rgba(255, 213, 108, 0.92) 42deg 60deg,
      transparent 60deg 84deg,
      rgba(255, 213, 108, 0.92) 84deg 102deg,
      transparent 102deg 126deg,
      rgba(255, 213, 108, 0.92) 126deg 144deg,
      transparent 144deg 168deg,
      rgba(255, 213, 108, 0.92) 168deg 186deg,
      transparent 186deg 210deg,
      rgba(255, 213, 108, 0.92) 210deg 228deg,
      transparent 228deg 252deg,
      rgba(255, 213, 108, 0.92) 252deg 270deg,
      transparent 270deg 294deg,
      rgba(255, 213, 108, 0.92) 294deg 312deg,
      transparent 312deg 336deg,
      rgba(255, 213, 108, 0.92) 336deg 354deg,
      transparent 354deg 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0 64%, #000 66%);
  mask: radial-gradient(circle, transparent 0 64%, #000 66%);
  pointer-events: none;
}

.brand-mark-core {
  position: relative;
  z-index: 1;
  color: #14202b;
  font-size: clamp(2.15rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.brand-text {
  display: flex;
  align-items: center;
  font-size: clamp(2.15rem, 4.5vw, 3rem);
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.page-shell {
  padding-bottom: 64px;
}

.hero,
.panel,
.calendar-panel,
.auth-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  padding: 34px;
  border-radius: 32px;
}

.hero-copy h1,
.auth-card h1,
.dashboard-hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.hero-copy p:last-child {
  max-width: 58ch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-card,
.panel,
.auth-card,
.calendar-panel {
  border-radius: var(--radius);
}

.hero-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 232, 200, 0.74), rgba(255, 250, 244, 0.94));
  border: 1px solid rgba(242, 106, 75, 0.16);
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff9651);
  color: #fff8f1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(242, 106, 75, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid rgba(26, 43, 56, 0.12);
}

.button-ghost {
  background: rgba(26, 43, 56, 0.08);
  color: var(--text);
}

.flash {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
}

.flash-success {
  background: rgba(65, 152, 109, 0.14);
  color: #164f34;
}

.flash-error {
  background: rgba(204, 62, 37, 0.14);
  color: #7d2414;
}

.calendar-panel,
.panel {
  margin-top: 28px;
  padding: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.range-label,
.helper-text,
.site-footer,
.row-label span,
.availability-item p {
  color: var(--muted);
}

.timeline-shell {
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-shell-wrap {
  position: relative;
}

.timeline-shell-wrap::before,
.timeline-shell-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 42px;
  z-index: 6;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.timeline-shell-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 241, 231, 0.98), rgba(248, 241, 231, 0));
}

.timeline-shell-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 241, 231, 0.98), rgba(248, 241, 231, 0));
}

.timeline-shell-wrap.is-at-start::before {
  opacity: 0.2;
}

.timeline-shell-wrap.is-at-end::after {
  opacity: 0.2;
}

.timeline-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.view-toggle-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.view-toggle {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(26, 43, 56, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.view-toggle.is-active {
  background: linear-gradient(135deg, var(--accent), #ff9651);
  color: #fff8f1;
  border-color: transparent;
}

.timeline-grid {
  min-width: calc(var(--label-width) + var(--timeline-width));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: var(--label-width) var(--timeline-width);
  gap: 10px;
  align-items: stretch;
}

.row-label {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.row-label-button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.row-label-head {
  min-height: 56px;
  justify-content: center;
  font-weight: 700;
}

.row-subhead {
  font-size: 0.9rem;
}

.timeline-header,
.timeline-track {
  position: relative;
  width: var(--timeline-width);
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.timeline-header {
  display: flex;
  min-height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
}

.timeline-row-months .timeline-header {
  min-height: 52px;
}

.month-segment,
.day-cell {
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-segment {
  font-weight: 700;
}

.day-cell {
  width: var(--day-width);
  flex: 0 0 var(--day-width);
  font-size: 0.72rem;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 0;
}

.timeline-track {
  min-height: 74px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(26, 43, 56, 0.04),
      rgba(26, 43, 56, 0.04) calc(var(--day-width) - 1px),
      rgba(26, 43, 56, 0.11) calc(var(--day-width) - 1px),
      rgba(26, 43, 56, 0.11) var(--day-width)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(251, 246, 238, 0.92));
}

.availability-bar {
  position: absolute;
  top: 12px;
  bottom: 12px;
  border: none;
  border-radius: 14px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(242, 106, 75, 0.92), rgba(255, 153, 97, 0.95));
  color: #fff7ef;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(242, 106, 75, 0.18);
}

.availability-bar span {
  white-space: nowrap;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(26, 43, 56, 0.16);
}

.empty-state.compact {
  padding: 18px;
}

.auth-layout {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.auth-card {
  width: min(520px, 100%);
  padding: 32px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

label,
.modal-details div {
  display: grid;
  gap: 8px;
}

.choice-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 12px;
}

.choice-fieldset legend {
  padding: 0;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.choice-chip {
  position: relative;
  display: block;
}

.choice-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.choice-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(26, 43, 56, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.choice-chip input:checked + span {
  border-color: var(--accent);
  background: rgba(242, 106, 75, 0.12);
  color: var(--accent-dark);
}

.choice-chip input:focus-visible + span,
.choice-chip input:hover + span {
  border-color: var(--accent);
  transform: translateY(-1px);
}

label span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 43, 56, 0.14);
  border-radius: 16px;
  padding: 13px 15px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
}

textarea {
  resize: vertical;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-top: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
}

.dashboard-page .panel,
.dashboard-page .dashboard-hero,
.dashboard-page .form-stack,
.dashboard-page label,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page button,
.dashboard-page a {
  position: relative;
  z-index: 1;
}

.dashboard-page .panel,
.dashboard-page .form-stack,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.photo-grid,
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.upload-form + .photo-grid {
  margin-top: 18px;
}

.upload-form {
  margin-top: 20px;
}

.upload-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.upload-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.file-picker {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px dashed rgba(26, 43, 56, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  cursor: pointer;
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-status {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.upload-preview-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.upload-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.upload-preview-meta {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}

.upload-preview-meta strong,
.upload-preview-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.photo-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.photo-card img,
.modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card form {
  padding: 12px;
}

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

.form-stack + .availability-list,
.form-stack + .empty-state.compact {
  margin-top: 18px;
}

.availability-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 24, 0.58);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  border-radius: 28px;
  background: #fffaf4;
  box-shadow: 0 30px 90px rgba(12, 18, 24, 0.28);
}

.modal-content {
  padding: 28px;
}

.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 56px);
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 16px 16px 0 auto;
  border: none;
  border-radius: 999px;
  background: rgba(26, 43, 56, 0.08);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-price {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.modal-details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.modal-details dd {
  margin: 0;
  font-weight: 700;
}

.modal-section h4 {
  margin-bottom: 8px;
}

.site-footer {
  padding: 0 0 24px;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .dashboard-hero,
  .availability-item,
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-grid {
    min-width: calc(var(--label-width) + var(--timeline-width));
  }

  .modal-details {
    grid-template-columns: 1fr;
  }

  .brand {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --label-width: 160px;
  }

  .site-header,
  .page-shell,
  .site-footer,
  .flash {
    width: min(100vw - 20px, 100%);
  }

  .hero,
  .calendar-panel,
  .panel,
  .auth-card {
    padding: 20px;
  }
}


#availability-modal-description, #availability-modal-conditions {
  white-space: pre-line !important;
}
