:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(29, 29, 31, 0.2);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --pink: #ffe8ef;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(29, 29, 31, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 232, 239, 0.9), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(223, 244, 255, 0.88), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f6fbff 48%, #fbfbfd 100%);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.booking-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  min-height: 3.6rem;
  margin: 1rem auto 0;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 60px rgba(29, 29, 31, 0.08);
  backdrop-filter: blur(22px) saturate(180%);
}

.brand-link,
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.brand-link {
  gap: 0.65rem;
  padding: 0 1rem 0 0.35rem;
}

.brand-link span {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.home-link {
  padding: 0 1rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.58);
}

.booking-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.4rem) 0 4rem;
}

.booking-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.booking-copy {
  display: grid;
  min-height: 420px;
  align-content: center;
  padding: clamp(1.8rem, 5vw, 4.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(3.1rem, 8vw, 7rem);
  font-weight: 750;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 750;
  line-height: 1.12;
}

.booking-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(29, 29, 31, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 600;
  line-height: 1.75;
}

.booking-photo {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 244, 255, 0.84), rgba(255, 232, 239, 0.72)),
    #fff;
  box-shadow: var(--shadow);
}

.booking-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.24));
  pointer-events: none;
}

.booking-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 380ms ease,
    transform 700ms ease;
}

.booking-photo.has-photo img {
  opacity: 1;
  transform: scale(1);
}

.booking-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 1rem;
  align-items: start;
  margin-top: 1.2rem;
}

.calendar-panel,
.booking-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}

.calendar-panel {
  padding: 1rem;
}

.calendar-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-toolbar span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.month-card {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.month-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
}

.month-title strong {
  font-size: 1.1rem;
  font-weight: 760;
}

.month-title span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

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

.day-cell {
  position: relative;
  display: grid;
  min-height: 4.7rem;
  align-content: space-between;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.day-cell:not(:disabled):hover,
.day-cell:not(:disabled):focus-visible {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.day-cell.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.day-cell.is-booked {
  color: rgba(29, 29, 31, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 232, 239, 0.9), rgba(255, 255, 255, 0.66)),
    #fff;
}

.day-cell.is-past {
  color: rgba(29, 29, 31, 0.34);
  background: rgba(245, 245, 247, 0.72);
}

.day-cell:disabled {
  cursor: not-allowed;
}

.day-number {
  font-size: 1rem;
  font-weight: 800;
}

.day-status {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.day-status.is-open {
  color: var(--blue);
}

.blank-cell {
  min-height: 4.7rem;
}

.booking-card {
  position: sticky;
  top: 5.2rem;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.booking-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.6;
}

#bookingForm {
  display: grid;
  gap: 0.7rem;
}

#bookingContact {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 0.9rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}

#bookingContact:focus {
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

#bookingForm button {
  min-height: 3rem;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

#bookingForm button:disabled {
  background: #c7c7cc;
  cursor: not-allowed;
}

.booking-note {
  padding-top: 0.2rem;
  font-size: 0.82rem !important;
}

.booking-toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 30;
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.booking-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .booking-photo,
  .booking-photo img {
    min-height: 360px;
  }

  .booking-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .booking-header {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .booking-shell {
    width: calc(100% - 1rem);
    padding-top: 2.2rem;
  }

  .booking-copy {
    min-height: auto;
    padding: 2.2rem 0 0.6rem;
  }

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

  .calendar-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .day-cell,
  .blank-cell {
    min-height: 4.2rem;
  }
}

@media (max-width: 430px) {
  .weekday-row,
  .days-grid {
    gap: 0.22rem;
  }

  .day-cell {
    min-height: 3.65rem;
    padding: 0.42rem;
  }

  .day-number {
    font-size: 0.9rem;
  }

  .day-status {
    font-size: 0.64rem;
  }
}
