:root {
  --ink: #14312d;
  --muted: #5f6f69;
  --green: #00765f;
  --green-deep: #004c3d;
  --mint: #dff5ed;
  --coral: #d95b45;
  --yellow: #f3c94f;
  --paper: #fbfcfa;
  --cloud: #eef3f1;
  --line: #d7e0dc;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(20, 49, 45, 0.16);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body.owner-open {
  background: var(--cloud);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  min-height: 520px;
  height: 74svh;
  max-height: 720px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 44%;
  z-index: -2;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 34, 31, 0.88) 0%, rgba(9, 34, 31, 0.76) 34%, rgba(9, 34, 31, 0.28) 64%, rgba(9, 34, 31, 0.04) 100%),
    linear-gradient(0deg, rgba(9, 34, 31, 0.34), rgba(9, 34, 31, 0.08));
  z-index: -1;
}

.site-nav,
.owner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  padding: 18px 0;
}

.wordmark {
  text-decoration: none;
  font-weight: 750;
  line-height: 1.1;
}

.nav-actions,
.hero-actions,
.contact-list,
.owner-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.nav-button,
.action-button,
.tool-button,
.booking-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  padding: 0 0.9rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-button:hover,
.action-button:hover,
.tool-button:hover,
.booking-actions a:hover {
  transform: translateY(-1px);
}

.site-header .nav-button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.public-main {
  background:
    linear-gradient(180deg, var(--cloud) 0, var(--paper) 440px),
    var(--paper);
}

.booking-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.1rem;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0 clamp(44px, 7vw, 84px);
}

.profile-panel {
  align-self: start;
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 10px 34px rgba(20, 49, 45, 0.08);
}

.profile-photo {
  width: 112px;
  height: 136px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 52% 36%;
}

.profile-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.profile-panel p:last-child {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.profile-panel .hero-actions {
  align-items: stretch;
}

.profile-panel .action-button {
  width: 100%;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  backdrop-filter: none;
}

.profile-panel .action-button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.availability-panel {
  min-width: 0;
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(96px, 16vh, 150px);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--coral);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1,
.section-heading h2,
.contact-band h2,
.owner-heading h1,
.editor-panel h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-copy {
  max-width: 560px;
  margin: 1.1rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.action-button {
  min-width: 136px;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.action-button.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #24200b;
}

.contact-band {
  padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, 100%);
  margin: 0 auto 1.6rem;
}

.section-heading p:last-child {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.section-heading h2,
.contact-band h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.month-card {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 10px 34px rgba(20, 49, 45, 0.08);
}

.month-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.weekdays span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day,
.owner-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cloud);
  color: var(--muted);
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 48px;
  padding: 0.25rem;
}

.calendar-day strong {
  line-height: 1;
}

.calendar-day small {
  display: block;
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.67rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day.blank {
  visibility: hidden;
}

.calendar-day.available {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  cursor: pointer;
}

.calendar-day.selected {
  box-shadow: 0 0 0 3px var(--yellow);
}

.calendar-day.available:focus-visible,
.owner-day:focus-visible,
.status-segment button:focus-visible,
.action-button:focus-visible,
.tool-button:focus-visible,
.nav-button:focus-visible,
.booking-actions a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.calendar-day.past {
  opacity: 0.38;
}

.calendar-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem;
  color: var(--muted);
}

.booking-panel {
  width: min(1180px, 100%);
  margin: 1rem auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-deep);
  color: var(--white);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.booking-panel h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.booking-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.booking-actions a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--cloud);
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.owner-view {
  min-height: 100svh;
}

.owner-header {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.94);
  padding: 0.8rem clamp(16px, 4vw, 40px);
  backdrop-filter: blur(16px);
}

.owner-wordmark {
  color: var(--ink);
}

.tool-button {
  min-height: 40px;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.file-tool {
  position: relative;
  overflow: hidden;
}

.file-tool input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.owner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 1rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.owner-calendar-panel,
.editor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(20, 49, 45, 0.07);
}

.owner-calendar-panel {
  padding: 1rem;
}

.owner-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.owner-heading h1 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.owner-status {
  min-width: 130px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--mint);
  padding: 0.45rem 0.65rem;
  color: var(--green-deep);
  font-weight: 750;
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--cloud);
}

.legend-dot.available {
  background: var(--green);
}

.legend-dot.booked {
  background: var(--coral);
}

.legend-dot.unavailable {
  background: var(--muted);
}

.owner-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.owner-month {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
}

.owner-month h2 {
  margin: 0;
  font-size: 1rem;
}

.owner-day {
  aspect-ratio: 1;
  min-height: 34px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.owner-month .calendar-day.blank {
  min-height: 34px;
}

.owner-day.available {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.owner-day.booked {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

.owner-day.unavailable {
  background: var(--cloud);
  color: var(--muted);
}

.owner-day.selected {
  box-shadow: 0 0 0 3px var(--yellow);
}

.owner-day.has-note::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.editor-panel {
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 1rem;
}

.editor-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

#dayEditor {
  display: grid;
  gap: 0.85rem;
}

#dayEditor label,
.field-group {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

#dayEditor input,
#dayEditor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 0.7rem;
}

#dayEditor textarea {
  resize: vertical;
}

.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.status-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.status-segment button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.status-segment button.active[data-status="available"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.status-segment button.active[data-status="booked"] {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

.status-segment button.active[data-status="unavailable"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

@media (max-width: 1040px) {
  .booking-dashboard {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .profile-panel .hero-actions {
    grid-column: 1 / -1;
  }

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

  .owner-shell {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
  }

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

  .nav-link {
    display: none;
  }

  .section-heading,
  .contact-band {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .calendar-grid,
  .owner-months {
    grid-template-columns: 1fr;
  }

  .contact-list {
    align-items: stretch;
  }

  .contact-list a,
  .action-button,
  .booking-actions a {
    width: 100%;
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

  .owner-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-toolbar {
    width: 100%;
  }

  .tool-button {
    flex: 1 1 auto;
  }

  .owner-heading {
    display: grid;
  }

  .owner-status {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-nav,
  .booking-dashboard {
    width: min(100% - 28px, 1180px);
  }

  .contact-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calendar-day {
    min-height: 42px;
  }

  .calendar-day small {
    display: none;
  }

  .time-row,
  .status-segment {
    grid-template-columns: 1fr;
  }
}
