.hidden {
  display: none !important;
}

.booking-layout {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.booking-layout__intro {
  display: grid;
  gap: 14px;
}

.booking-layout__intro h3 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.booking-layout__intro p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 62ch;
}

.booking-layout__content {
  background: rgba(248, 247, 245, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 46, 43, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: clamp(16px, 3vw, 32px);
}

.booking-layout__footer {
  text-align: center;
  color: var(--color-text-muted);
}

.booking-layout__footer small {
  font-size: 0.85rem;
}

.public-layout {
  display: flex;
  justify-content: center;
  width: 100%;
  flex: 1;
  align-items: flex-start;
  padding: 1.2rem 0.9rem 2.4rem;
}

.public-main {
  width: min(100%, 960px);
  display: grid;
  gap: 1.45rem;
  margin: 0 auto;
  align-content: start;
  justify-items: stretch;
}

.public-calendar-section,
.public-times-section,
.public-summary-section {
  display: grid;
  gap: 1.1rem;
  max-width: var(--width-control-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.public-calendar-section {
  align-content: start;
  gap: 1.3rem;
  border-top: 1px solid var(--color-card-border);
  padding-top: 1.15rem;
}


.public-calendar-section .booking-calendar {
  width: 100%;
}

.public-times-section {
  border-top: 1px solid var(--color-card-border);
  padding-top: 1.15rem;
  align-content: start;
}

.public-times-section > p,
.public-summary-section > p {
  margin: 0;
}

.public-summary-section {
  align-content: start;
  gap: 1.45rem;
}


.time-slot-wrapper h3 {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.time-slot-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.booking-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  max-width: var(--width-control-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.booking-form__section {
  border: none;
  margin: 0;
  padding: 0;
}

.public-calendar-section,
.public-times-section,
.public-summary-section {
  max-width: var(--width-control-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.booking-form__section:not(:first-of-type) {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-card-border);
}

.booking-form__section legend {
  padding: 0;
  margin: 0 0 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.booking-field span {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.booking-field select,
.booking-field input {
  appearance: none;
  border: 1px solid rgba(26, 46, 35, 0.16);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.booking-field input::placeholder {
  color: rgba(26, 46, 35, 0.38);
}

.booking-field select:focus-visible,
.booking-field input:focus-visible {
  outline: none;
  border-color: rgba(111, 221, 150, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 221, 150, 0.25);
}

.booking-field select:disabled,
.booking-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(26, 46, 35, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 246, 0.95));
  transition: opacity 0.2s ease;
  align-items: stretch;
}

.radio-group--loading {
  opacity: 0.6;
  pointer-events: none;
}

.radio-pill {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
  display: inline-flex;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.radio-pill__content {
  display: inline-flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  width: 100%;
}

.radio-pill__photo {
  width: 180px;
  height: 180px;
  border-radius: 1rem;
  border: 2px dashed rgba(26, 46, 35, 0.18);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(26, 46, 35, 0.35);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

@media (max-width: 640px) {
  .radio-pill {
    flex: 1 1 160px;
    min-width: 160px;
  }

  .radio-pill__photo {
    width: 150px;
    height: 150px;
  }
}

.radio-pill__photo::before {
  content: "FOTO";
}

.radio-pill__photo--has-image {
  border-style: solid;
  border-color: rgba(26, 46, 35, 0.24);
  color: transparent;
  background-color: rgba(255, 255, 255, 1);
}

.radio-pill__photo--has-image::before {
  content: "";
}

.radio-group--has-selection .radio-pill:not(.is-selected) {
  opacity: 0.7;
  transform: scale(0.96);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.radio-group--has-selection .radio-pill:not(.is-selected) .radio-pill__label {
  border-color: rgba(26, 46, 35, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.radio-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.radio-pill__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 46, 35, 0.14);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease;
}

.radio-pill__label--stacked {
  padding: 0.45rem 0.75rem;
  width: auto;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  text-align: center;
}

.radio-pill__label:hover {
  border-color: rgba(111, 221, 150, 0.5);
  box-shadow: 0 2px 6px rgba(38, 84, 63, 0.12);
}

.radio-pill__title {
  font-weight: 600;
  width: 100%;
}

.radio-pill__description {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  font-weight: 500;
  width: 100%;
  margin-top: 0.18rem;
  display: block;
}

.radio-pill input:focus-visible + .radio-pill__label {
  outline: none;
  border-color: rgba(111, 221, 150, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 221, 150, 0.28);
}

.radio-pill.is-selected .radio-pill__label {
  border-color: rgba(111, 221, 150, 0.9);
  background: linear-gradient(135deg, rgba(111, 221, 150, 0.2), rgba(111, 221, 150, 0.3));
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(38, 84, 63, 0.15);
}

.radio-group__placeholder {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  border: 1px dashed rgba(26, 46, 35, 0.18);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.success {
  color: var(--color-accent-contrast);
  font-weight: 600;
  margin: 0.9rem 0 0;
}

.error {
  color: var(--color-danger);
  font-weight: 600;
  margin: 0.9rem 0 0;
}

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

.booking-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking-calendar__header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.calendar-nav {
  border: 1px solid rgba(26, 46, 35, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.calendar-nav:hover {
  border-color: rgba(111, 221, 150, 0.55);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.calendar-nav:focus-visible {
  outline: none;
  border-color: rgba(111, 221, 150, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 221, 150, 0.25);
}

.booking-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

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

.calendar-day {
  border: 1px solid rgba(26, 46, 35, 0.12);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0.55rem;
  min-height: 66px;
  padding: 0.4rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.calendar-day:focus-visible {
  outline: none;
  border-color: rgba(111, 221, 150, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 221, 150, 0.25);
}

.calendar-day:hover {
  border-color: rgba(111, 221, 150, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -18px rgba(33, 56, 44, 0.28);
}

.calendar-day__marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.calendar-day__marker.is-blocked {
  background: var(--color-danger);
}

.calendar-day__marker.is-available {
  background: var(--color-accent);
}

.calendar-day__marker.is-potential {
  background: #f29b38;
}

.calendar-day__number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.calendar-day--muted {
  color: var(--color-text-muted);
  opacity: 0.55;
}

.calendar-day[disabled] {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.calendar-day--status-blocked {
  border-color: rgba(221, 44, 79, 0.28);
  background: rgba(255, 236, 240, 0.9);
}

.calendar-day--status-blocked .calendar-day__number {
  color: var(--color-danger);
}

.calendar-day--status-unavailable {
  border-color: rgba(221, 44, 79, 0.32);
  background: rgba(255, 228, 234, 0.88);
}

.calendar-day--status-unavailable .calendar-day__number {
  color: var(--color-danger);
}

.calendar-day--status-potential {
  border-color: rgba(235, 150, 45, 0.36);
  background: rgba(253, 209, 147, 0.32);
}

.calendar-day--status-potential .calendar-day__number {
  color: #a05c12;
}

.calendar-day--status-available {
  border-color: rgba(111, 221, 150, 0.55);
  background: rgba(111, 221, 150, 0.2);
}

.calendar-day--status-available .calendar-day__number {
  color: var(--color-accent-contrast);
}

.calendar-day--selected {
  border-color: rgba(24, 144, 86, 0.85);
  box-shadow: 0 16px 32px -18px rgba(24, 144, 86, 0.5);
  transform: scale(1.05);
}

.calendar-day--selected .calendar-day__number {
  font-weight: 700;
}

.calendar-day--selected .calendar-day__marker {
  transform: scale(1.1);
}

.calendar-day {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.calendar-day--other {
  transform: scale(0.97);
  opacity: 0.92;
}

.calendar-day--today {
  border-style: dashed;
}

.time-slot-wrapper {
  display: grid;
  gap: 0.8rem;
  margin-top: 0;
}

#public-times-list {
  display: grid;
  gap: 0.7rem;
}

.time-slot-wrapper h3 {
  margin: 0;
  font-size: 1rem;
}

.time-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.time-slot {
  border: 1px solid rgba(26, 46, 35, 0.16);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.time-slot:hover {
  border-color: rgba(111, 221, 150, 0.55);
  transform: translateY(-1px);
}

.time-slot:focus-visible {
  outline: none;
  border-color: rgba(111, 221, 150, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 221, 150, 0.25);
}

.time-slot[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: rgba(221, 44, 79, 0.35);
  background: rgba(255, 236, 240, 0.82);
}

.time-slot--selected {
  border-color: rgba(111, 221, 150, 0.75);
  background: linear-gradient(135deg, rgba(111, 221, 150, 0.9), rgba(157, 234, 183, 0.85));
  color: var(--color-accent-contrast);
}

.time-slot-group {
  display: grid;
  gap: 0.4rem;
}

.time-slot-group + .time-slot-group {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-card-border);
}

.time-slot-group__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.summary-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.summary-photo-frame {
  width: 180px;
  height: 180px;
  border-radius: 0.9rem;
  border: 2px dashed rgba(26, 46, 35, 0.25);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.summary-photo-frame__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-photo-frame__placeholder {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(26, 46, 35, 0.35);
}

.summary-photo-frame--has-photo {
  border-style: solid;
  border-color: rgba(26, 46, 35, 0.28);
  background: transparent;
}

.summary-photo-frame--has-photo .summary-photo-frame__placeholder {
  display: none;
}

@media (max-width: 640px) {
  .summary-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .summary-photo-frame {
    width: 150px;
    height: 150px;
  }
}

.booking-summary {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-card-border);
  display: grid;
  gap: 0.8rem;
}

.public-summary-section .booking-summary {
  margin-top: 0;
}

.booking-summary h3 {
  margin: 0;
  font-size: 1.02rem;
}

.booking-summary dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.booking-summary dt {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.booking-summary dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
}

.reservation-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.reservation-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reservation-actions {
  display: flex;
  justify-content: flex-start;
}

#public-submit {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: 0 16px 32px rgba(33, 119, 97, 0.26);
}

#public-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#public-submit:not(:disabled):hover,
#public-submit:not(:disabled):focus-visible {
  box-shadow: 0 18px 36px rgba(33, 119, 97, 0.32);
}

.reservation-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: 18px 14px 28px;
}

.reservation-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 46, 43, 0.45);
  backdrop-filter: blur(2px);
}

.reservation-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin-top: 8px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(31, 46, 43, 0.1);
  box-shadow: 0 24px 60px rgba(23, 63, 58, 0.28);
  outline: none;
}

.reservation-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(31, 46, 43, 0.12);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reservation-dialog__close:hover,
.reservation-dialog__close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(33, 119, 97, 0.45);
  box-shadow: 0 12px 30px rgba(23, 63, 58, 0.16);
  outline: none;
}

.reservation-dialog__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
}

.reservation-dialog__lede {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.reservation-dialog__panel h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.25;
}

.reservation-dialog__details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.2rem;
}

.reservation-dialog__details dt {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.12rem;
}

.reservation-dialog__details dd {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .public-main {
    gap: 1.3rem;
  }

  .public-calendar-section,
  .public-times-section,
  .public-summary-section {
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .public-layout {
    padding: 1.05rem 0.7rem 2.1rem;
  }

  .public-main {
    gap: 1.15rem;
  }

  .radio-group {
    padding: 0.35rem;
  }

  .time-slot {
    padding: 0.38rem 0.75rem;
  }
}

@media (max-width: 760px) {
  .radio-pill {
    min-width: 100px;
  }

  .booking-calendar__weekdays,
  .booking-calendar__grid {
    gap: 0.25rem;
  }

  .calendar-day {
    min-height: 58px;
    padding: 0.35rem 0.25rem;
  }

  .calendar-nav {
    padding: 0.25rem 0.6rem;
  }
}
.radio-group--column {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.radio-group--column .radio-pill {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

@media (max-width: 600px) {
  .public-layout {
    padding-bottom: 1.8rem;
  }

  .public-main {
    gap: 1rem;
  }

  .public-calendar-section,
  .public-times-section,
  .public-summary-section {
    padding-top: 0.9rem;
  }

  .booking-form {
    gap: 0.7rem;
  }

  .summary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .summary-photo-frame {
    width: 120px;
    height: 120px;
    justify-self: flex-start;
  }

  .booking-summary dt {
    font-size: 0.82rem;
  }

  .booking-summary dd {
    font-size: 0.94rem;
  }
}

@media (max-width: 460px) {
  .radio-pill {
    min-width: 0;
  }

  .time-slot-list {
    gap: 0.35rem;
  }

  .time-slot {
    padding: 0.34rem 0.7rem;
    font-size: 0.86rem;
  }

  .public-times-section,
  .public-summary-section {
    gap: 0.85rem;
  }

  .summary-photo-frame {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 720px) {
  .reservation-dialog {
    padding: 12px 10px 22px;
  }

  .reservation-dialog__panel {
    margin-top: 0;
    width: min(640px, 100%);
  }

  .reservation-dialog__details {
    grid-template-columns: minmax(0, 1fr);
  }

  .reservation-dialog__close {
    top: 10px;
    right: 10px;
  }
}
