/* Show Me Florence — booking ticket UI. Presentation only. WPBS stays the engine. */

:root {
  --brand: #C724D1;
  --brand-deep: #8E10A8;
  --brand-soft: #F9E9FA;
  --grad: linear-gradient(120deg, #C724D1, #9116D6);
  --ink: #231A26;
  --mute: #6E6276;
  --stone: #D9D2DE;
  --mist: #F3EFF5;
  --paper: #FBF8FC;
  --brass: #8E10A8;
  --stamp: #C724D1;
  --ok: #256C4E;
  --busy: #943057;
  --line: #E5DEE9;
  --shadow: 0 18px 40px rgba(20, 24, 30, 0.08);
  --sans-base: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans-base);   /* una sola familia, moderna */
  --sans: var(--sans-base);
}

body.page-id-215 {
  background: #EDE8F0 !important;
  color: var(--ink);
  font-family: var(--sans) !important;
}

body.page-id-215 .site-main,
body.page-id-215 .page-content {
  background: transparent;
}

#smf-book {
  max-width: 1120px;
  margin: 12px auto 48px;
  padding: 0 16px 108px;
  font-family: var(--sans);
  color: var(--ink);
}
#smf-book * { box-sizing: border-box; }

.smf-book__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.smf-book__step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: 2px solid var(--stone);
  background: transparent;
  color: var(--mute);
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}
.smf-book__step em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--brass);
}
.smf-book__step.is-on {
  color: var(--ink);
  border-bottom-color: var(--stamp);
}
.smf-book__step.is-done { color: var(--ok); border-bottom-color: var(--ok); }

.smf-book__head h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.smf-book__head p {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 1rem;
}

/* The wizard lives inside a narrow Elementor column, so the split must react to
   the container, not the viewport. Below ~960px of container width the ticket
   stacks under the calendars instead of overlapping them. */
#smf-book { container-type: inline-size; container-name: smfbook; }

.smf-book__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 18px;
  align-items: start;
}
.smf-book__stage,
.smf-book__ticket { min-width: 0; }

@container smfbook (max-width: 960px) {
  .smf-book__grid { grid-template-columns: minmax(0, 1fr); }
  .smf-book__ticket { position: static !important; top: auto !important; }
}
/* Fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
  .smf-book__grid { grid-template-columns: minmax(0, 1fr); }
  .smf-book__ticket { position: static !important; }
}
@media (max-width: 880px) {
  .smf-book__grid { grid-template-columns: 1fr; }
  .smf-book__ticket { position: static !important; }
}

.smf-book__stage,
.smf-book__ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.smf-book__stage { padding: 16px 16px 20px; }
.smf-book__ticket {
  position: sticky;
  top: 84px;
  padding: 0;
  overflow: hidden;
}
.smf-book__ticket::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--stamp) 0 16px,
    var(--brass) 16px 20px
  );
}
.smf-book__ticket-inner { padding: 18px 18px 16px; }
.smf-book__stamp {
  float: right;
  width: 64px;
  height: 64px;
  margin: 0 0 8px 8px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(12deg);
  opacity: 0.85;
}
.smf-book__ticket h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.smf-book__rows { list-style: none; margin: 0; padding: 0; clear: both; }
.smf-book__rows li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9375rem;
}
.smf-book__rows span { color: var(--mute); }
.smf-book__rows strong { font-weight: 600; text-align: right; }
.smf-book__total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 1.625rem;
}
.smf-book__total small {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.smf-book__hint { margin: 10px 0 0; font-size: 0.875rem; color: var(--mute); }
.smf-book__err {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: #FAE7EF;
  color: var(--stamp);
  font-size: 0.9375rem;
}
.smf-book__err[hidden] { display: none !important; }

.smf-book__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.smf-book__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  flex: 1;
}
.smf-book__btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stone);
}
.smf-book__btn--go {
  background: var(--ink);
  color: #FBF8FC;
}
.smf-book__btn--go:hover { background: var(--stamp); }
.smf-book__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* The theme paints generic <button> orange+square with high specificity:
   pin every visual property or the ticket (i) turns into an orange box. */
.smf-book__i,
:is(body.page-id-215, body.home) button.smf-book__i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  margin-left: 6px !important;
  padding: 0 !important;
  border: 1.5px solid var(--brand-deep, #8E10A8) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--brand-deep, #8E10A8) !important;
  font: 700 13px/1 var(--serif) !important;
  box-shadow: none !important;
  cursor: pointer;
  vertical-align: middle;
}

:is(body.page-id-215, body.home) .wpbs-main-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
:is(body.page-id-215, body.home) .wpbs-container,
:is(body.page-id-215, body.home) .wpbs-calendars-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
:is(body.page-id-215, body.home) .wpbs-legend {
  display: flex !important;
  gap: 16px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.875rem !important;
  color: var(--mute) !important;
}
:is(body.page-id-215, body.home) .wpbs-calendars {
  display: grid !important;
  /* auto-fit so a second month wraps to its own row instead of spilling
     out of the stage and under the ticket */
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)) !important;
  gap: 12px !important;
}
:is(body.page-id-215, body.home) .wpbs-calendars-wrapper,
:is(body.page-id-215, body.home) .wpbs-container { max-width: 100% !important; overflow: visible !important; }
:is(body.page-id-215, body.home) .wpbs-calendar { min-width: 0 !important; }
/* The plugin shrink-wraps each calendar; with a width:100% table inside,
   that collapses to min-content (13px cells). Fill the grid track. */
:is(body.page-id-215, body.home) .wpbs-calendar { width: 100% !important; }
:is(body.page-id-215, body.home) .wpbs-calendar table {
  width: 100% !important;
  table-layout: fixed !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 10px 8px 12px !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar-header,
:is(body.page-id-215, body.home) .wpbs-heading {
  background: transparent !important;
  border: 0 !important;
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  padding: 4px 4px 10px !important;
}
:is(body.page-id-215, body.home) .wpbs-prev,
:is(body.page-id-215, body.home) .wpbs-next {
  background: var(--mist) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  width: 32px !important;
  height: 32px !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 3px !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar th {
  font-size: 0.8125rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--mute) !important;
  font-weight: 600 !important;
}
:is(body.page-id-215, body.home) .wpbs-date {
  border-radius: 0 !important;
  min-height: 46px !important;
  vertical-align: top !important;
}
:is(body.page-id-215, body.home) .wpbs-date .wpbs-date-number {
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}
:is(body.page-id-215, body.home) .wpbs-date .wpbs-date-price,
:is(body.page-id-215, body.home) .wpbs-date [class*="price"] {
  font-size: 0.72rem !important;
  color: var(--mute) !important;
  font-weight: 500 !important;
}
:is(body.page-id-215, body.home) .wpbs-is-bookable { background: #E9F2EC !important; }
:is(body.page-id-215, body.home) .wpbs-legend-item-6 { background: #FAE7EF !important; color: var(--busy) !important; }
:is(body.page-id-215, body.home) .wpbs-start-date,
:is(body.page-id-215, body.home) .wpbs-end-date,
:is(body.page-id-215, body.home) .wpbs-date-selected,
:is(body.page-id-215, body.home) .wpbs-selected,
:is(body.page-id-215, body.home) td.wpbs-booked-selection {
  background: var(--ink) !important;
  color: #FBF8FC !important;
}
:is(body.page-id-215, body.home) .wpbs-start-date .wpbs-date-price,
:is(body.page-id-215, body.home) .wpbs-end-date .wpbs-date-price,
:is(body.page-id-215, body.home) .wpbs-date-selected .wpbs-date-price {
  color: #FFFFFF !important;
}

body.page-id-215 .wpbs-form-container {
  background: transparent !important;
  border: 0 !important;
  padding: 12px 0 0 !important;
  box-shadow: none !important;
}
body.page-id-215 .wpbs-form-field-label label,
body.page-id-215 .wpbs-form-field-label {
  font-size: 0.8125rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--mute) !important;
  font-weight: 600 !important;
}
body.page-id-215 .wpbs-form-field input,
body.page-id-215 .wpbs-form-field select,
body.page-id-215 .wpbs-form-field textarea {
  border: 1px solid var(--stone) !important;
  border-radius: 0 !important;
  background: #fff !important;
  min-height: 44px !important;
  font-family: var(--sans) !important;
}
body.page-id-215 .wpbs-form-submit-button button,
body.page-id-215 .wpbs-form-submit-button input[type="submit"] {
  background: var(--stamp) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  padding: 14px 18px !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.smf-book-s1 .wpbs-form-field-email,
body.smf-book-s1 .wpbs-form-field-phone,
body.smf-book-s1 .wpbs-form-field-payment_method,
body.smf-book-s1 .wpbs-form-field-total,
body.smf-book-s1 .wpbs-form-submit-button { display: none !important; }

body.smf-book-s2 .wpbs-main-wrapper { display: none !important; }
body.smf-book-s2 .smf-book__extras { display: block !important; }

body.smf-book-s3 .wpbs-container,
body.smf-book-s3 .wpbs-calendars-wrapper,
body.smf-book-s3 .wpbs-legend { display: none !important; }
body.smf-book-s3 .wpbs-form-field-2-8,
body.smf-book-s3 .wpbs-form-field-2-14 { display: none !important; }
body.smf-book-s3 .wpbs-form-field-email,
body.smf-book-s3 .wpbs-form-field-phone,
body.smf-book-s3 .wpbs-form-field-payment_method,
body.smf-book-s3 .wpbs-form-field-total,
body.smf-book-s3 .wpbs-form-submit-button { display: block !important; }

.smf-book__extras { display: none; background: var(--paper); border: 1px solid var(--line); padding: 16px; }
.smf-book__extras iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
  background: transparent;
}

body.page-id-215 .smf-cancel-wrap { display: none !important; }
body.page-id-215 #smf-directbar { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}


/* ---- corrections 2026-08-18 ---- */

/* Total is a placeholder until both dates are picked; never show a hard price. */
.smf-book__total #smf-book-total.is-placeholder {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mute);
}

/* Step 2 hides the calendar, so the empty stage panel must go with it. */
body.smf-book-s2 .smf-book__stage { display: none !important; }
body.smf-book-s2 .smf-book__grid { grid-template-columns: minmax(0, 1fr); }

/* One forward colour across every step; Back is quiet, not louder than Next. */
#smf-book .smf-book__btn--ghost,
#smf-book .smf-book__btn--ghost:hover,
#smf-book .smf-book__btn--ghost:focus {
  background: transparent !important;
  color: var(--mute) !important;
  border: 1px solid var(--stone) !important;
  flex: 0 0 auto !important;
  padding: 12px 14px !important;
}
#smf-book .smf-book__btn--go {
  background: var(--stamp) !important;
  color: #fff !important;
  flex: 1 1 auto !important;
  letter-spacing: 0.04em;
}
#smf-book .smf-book__btn--go:hover:not(:disabled) { background: var(--ink) !important; }
#smf-book .smf-book__btn:disabled { opacity: 0.45; }
#smf-book .smf-book__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Calendar palette on the brand neutrals, not stock green/red. */
:is(body.page-id-215, body.home) .wpbs-is-bookable { background: #E9F2EC !important; }
:is(body.page-id-215, body.home) .wpbs-legend-item-6 { background: #FAE7EF !important; color: var(--busy) !important; }
:is(body.page-id-215, body.home) .wpbs-legend-item-5 { background: #E9F2EC !important; }

/* The month picker ships as an unstyled native select. */
:is(body.page-id-215, body.home) .wpbs-calendar select,
:is(body.page-id-215, body.home) .wpbs-month-select,
:is(body.page-id-215, body.home) .wpbs-calendar-header select {
  border: 1px solid var(--line) !important;
  background: #fff !important;
  border-radius: 0 !important;
  font-family: var(--serif) !important;
  font-size: 0.95rem !important;
  padding: 4px 8px !important;
  min-height: 34px !important;
}

/* Touch targets and readable body copy on phones. */
@media (max-width: 720px) {
  #smf-book { padding-bottom: 40px; }
  .smf-book__rows li { font-size: 0.95rem; }
  .smf-book__btn { min-height: 48px; font-size: 1rem; }
  :is(body.page-id-215, body.home) .wpbs-date { min-height: 52px !important; }
}

/* Selected range must beat the availability tint declared above it.
   WPBS marks the range with wpbs-selected-first / -middle / -last. */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-date-selected,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-first,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-last {
  background: var(--stamp) !important;
  color: #fff !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-date-selected .wpbs-date-number,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-first .wpbs-date-number,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle .wpbs-date-number,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-last .wpbs-date-number { color: #fff !important; }
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-date-selected [class*="price"],
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-first [class*="price"],
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle [class*="price"],
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-last [class*="price"] { color: #FFFFFF !important; }

/* The legend only names Available / Booked; half-shaded cells are the
   changeover days and had no entry at all. */
:is(body.page-id-215, body.home) .wpbs-legend { flex-wrap: wrap !important; }
:is(body.page-id-215, body.home) .wpbs-legend::after {
  content: attr(data-smf-note);
  flex: 0 0 100%;
  display: block;
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* ---- Home: live availability calendar ---- */

/* The wrapper is stripped transparent by the shared skin above; give it the
   page rhythm here (later + !important so it wins the shared reset). */
body.home .wpbs-main-wrapper {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  font-family: var(--sans);
  color: var(--ink);
}
/* Booking form fields never render on the homepage (JS hides inline too). */
body.home .wpbs-form-container { display: none !important; }

.smf-home-cal__head {
  max-width: 1120px;
  margin: 32px auto 12px;
  padding: 0 16px;
  font-family: var(--sans);
  color: var(--ink);
}
.smf-home-cal__head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.smf-home-cal__head p {
  margin: 0 0 10px;
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* Two months side by side, one column on phones. */
body.home .wpbs-calendars {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 720px) {
  body.home .wpbs-calendars { grid-template-columns: 1fr !important; }
}

.smf-home-cal__ctawrap {
  max-width: 1120px;
  margin: 18px auto 56px;
  padding: 0 16px;
  text-align: center;
}
.smf-home-cal__cta {
  display: inline-block;
  background: var(--stamp);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
}
.smf-home-cal__cta:hover { background: var(--ink); }
.smf-home-cal__cta:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }


/* ============================================================
   Show Me Florence — WPBS calendar reskin patch (2026-08-18)
   Patterns adapted from 21st.dev references:
   ruixen.ui dropdown-range-date-picker, shadcn calendar
   (range band anatomy), OriginUI RangeCalendar (unavailable /
   motion / focus). CSS only — WPBS DOM untouched.
   APPEND AFTER the existing rules in book.css: several blocks
   deliberately re-declare earlier !important rules and win by
   cascade order at equal specificity.
   ============================================================ */

/* Shared knobs. --smf-band: light burgundy tint for the middle of
   the selected range (hex fallback first; color-mix wins where
   supported and keeps the tint derived from --stamp). */
:is(body.page-id-215, body.home) .wpbs-calendar {
  --smf-band: #F9E9FA;
  --smf-band: color-mix(in srgb, var(--stamp) 12%, #fff);
  --smf-gap: 3px; /* must match the table's border-spacing */
}

/* ------------------------------------------------------------
   1. Range band: solid burgundy endpoints with rounded OUTER
   corners, light tinted middle, band visually continuous.
   (shadcn: range_start/rounded-l, range_middle/rounded-none,
   range_end/rounded-r.)
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-first,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-last {
  background: var(--stamp) !important;
  color: #fff !important;
  position: relative;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-first {
  border-radius: 10px 0 0 10px !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-last {
  border-radius: 0 10px 10px 0 !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle {
  background: var(--smf-band) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  position: relative;
}
/* Middle-cell text stays ink on the light tint (overrides the
   earlier white-on-burgundy rule for middles). */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle .wpbs-date-number {
  color: var(--ink) !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle [class*="price"] {
  color: var(--mute) !important;
}

/* Bridge the 3px border-spacing gaps so the band reads as one
   capsule: each middle cell paints a strip into the gap on both
   sides; endpoints paint a strip toward the inside of the range. */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle::before,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--smf-gap);
  background: var(--smf-band);
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle::before { left: calc(-1 * var(--smf-gap)); }
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-middle::after { right: calc(-1 * var(--smf-gap)); }
:is(body.page-id-215, body.home) .wpbs-calendar td:not(:last-child) .wpbs-date.wpbs-selected-first::after,
:is(body.page-id-215, body.home) .wpbs-calendar td:not(:first-child) .wpbs-date.wpbs-selected-last::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--smf-gap);
  background: var(--smf-band);
}
:is(body.page-id-215, body.home) .wpbs-calendar td:not(:last-child) .wpbs-date.wpbs-selected-first::after { right: calc(-1 * var(--smf-gap)); }
:is(body.page-id-215, body.home) .wpbs-calendar td:not(:first-child) .wpbs-date.wpbs-selected-last::before { left: calc(-1 * var(--smf-gap)); }

/* When the band wraps across a week row, soften the cut edges and
   don't bleed the strip outside the table (shadcn row-edge rule). */
:is(body.page-id-215, body.home) .wpbs-calendar td:first-child .wpbs-date.wpbs-selected-middle { border-radius: 6px 0 0 6px !important; }
:is(body.page-id-215, body.home) .wpbs-calendar td:last-child .wpbs-date.wpbs-selected-middle { border-radius: 0 6px 6px 0 !important; }
:is(body.page-id-215, body.home) .wpbs-calendar td:first-child .wpbs-date.wpbs-selected-middle::before,
:is(body.page-id-215, body.home) .wpbs-calendar td:last-child .wpbs-date.wpbs-selected-middle::after { display: none; }

/* ------------------------------------------------------------
   2. Price hierarchy inside cells. Tabular numerals everywhere a
   number appears so columns of figures align (€95 vs €180).
   Endpoint prices flip to the brass-on-burgundy tint; the
   checkout-day price is dimmed (that night is not paid).
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-date,
:is(body.page-id-215, body.home) .wpbs-date .wpbs-date-number,
:is(body.page-id-215, body.home) .wpbs-date [class*="price"] {
  font-variant-numeric: tabular-nums;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-first [class*="price"] {
  color: #FFFFFF !important;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-selected-last [class*="price"] {
  color: #FFFFFF !important;
  opacity: 0.55;
}

/* ------------------------------------------------------------
   3. Booked nights crossed out and inert (OriginUI unavailable
   pattern: line-through + lowered opacity + no pointer). The
   pale --busy tint stays as the second cue.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-legend-item-6 {
  pointer-events: none;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-legend-item-6 .wpbs-date-number {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--busy) !important;
  opacity: 0.75;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-legend-item-6 [class*="price"] {
  visibility: hidden; /* a price on an unbookable night is noise */
}

/* ------------------------------------------------------------
   4. Hover affordance on bookable, unselected cells: inset ring
   in burgundy keeps the availability tint readable underneath.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-is-bookable {
  cursor: pointer;
  touch-action: manipulation;
}
:is(body.page-id-215, body.home)
  .wpbs-calendar
  td .wpbs-date.wpbs-is-bookable:hover:not(.wpbs-selected-first):not(.wpbs-selected-middle):not(.wpbs-selected-last):not(.wpbs-date-selected) {
  box-shadow: inset 0 0 0 2px var(--stamp);
}

/* ------------------------------------------------------------
   5. Keyboard focus that neighbours can't clip (shadcn z-index
   trick): brass ring, cell lifted above adjacent backgrounds.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date:focus-visible,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------
   6. Month navigation promoted to the caption language.
   Arrows: quiet by default, ink fill on hover, brass focus ring.
   Month select: native control disguised as the serif heading,
   caret drawn with two gradient strips (no external assets).
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-prev,
:is(body.page-id-215, body.home) .wpbs-next {
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
:is(body.page-id-215, body.home) .wpbs-prev:hover,
:is(body.page-id-215, body.home) .wpbs-next:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}
:is(body.page-id-215, body.home) .wpbs-prev:focus-visible,
:is(body.page-id-215, body.home) .wpbs-next:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
:is(body.page-id-215, body.home) .wpbs-calendar select,
:is(body.page-id-215, body.home) .wpbs-month-select,
:is(body.page-id-215, body.home) .wpbs-calendar-header select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 26px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 14px) 55%,
    calc(100% - 9px) 55% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
}
:is(body.page-id-215, body.home) .wpbs-calendar select:focus-visible,
:is(body.page-id-215, body.home) .wpbs-calendar-header select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   7. Micro-transitions on cells (OriginUI); fully disabled for
   reduced motion at the end of the file.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date {
  transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* ------------------------------------------------------------
   8. Legend as chips: small bordered pills instead of leftover
   text; the data-smf-note ::after line from book.css still works.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-legend > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   9. Empty / filler cells go silent: no tint, no hover, no hand.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date:empty,
:is(body.page-id-215, body.home) .wpbs-calendar td:not(:has(.wpbs-date)) {
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
}
/* Real day cells must ALWAYS take pointer events (WPBS 5.12 wraps
   div.wpbs-date inside a classless td; never inert the td). */
:is(body.page-id-215, body.home) .wpbs-calendar td,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date {
  pointer-events: auto;
}
:is(body.page-id-215, body.home) .wpbs-calendar .wpbs-date.wpbs-legend-item-6,
:is(body.page-id-215, body.home) .wpbs-calendar .wpbs-date.wpbs-legend-item-7 {
  pointer-events: none;
}

/* ------------------------------------------------------------
   10. Today marker: quiet 3px brass dot under the number
   (OriginUI), hidden when the day sits inside a selection
   (shadcn: today yields to the range). Targeted defensively —
   harmless if WPBS emits neither class.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-today,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-current-date {
  position: relative;
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-today .wpbs-date-number::after,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-current-date .wpbs-date-number::after {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: var(--brass);
}
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-today.wpbs-selected-first .wpbs-date-number::after,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-today.wpbs-selected-middle .wpbs-date-number::after,
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.wpbs-today.wpbs-selected-last .wpbs-date-number::after {
  display: none;
}

/* ------------------------------------------------------------
   11. Hook for the (optional, later) JS hover range preview:
   in-between cells get .smf-preview while hovering an end date.
   Pure CSS cannot express "cells between start and :hover"
   across table rows, so without the JS this rule simply never
   matches.
   ------------------------------------------------------------ */
:is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date.smf-preview {
  background: var(--smf-band) !important;
  box-shadow: none;
}

/* ------------------------------------------------------------
   12. Ticket figures align like a receipt (booking page only).
   ------------------------------------------------------------ */
body.page-id-215 .smf-book__rows li strong,
body.page-id-215 .smf-book__total {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   13. Phones: bigger targets, slightly larger date numbers.
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  :is(body.page-id-215, body.home) .wpbs-date .wpbs-date-number {
    font-size: 0.95rem !important;
  }
  :is(body.page-id-215, body.home) .wpbs-prev,
  :is(body.page-id-215, body.home) .wpbs-next {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ------------------------------------------------------------
   14. Reduced motion: kill every transition this patch added.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  :is(body.page-id-215, body.home) .wpbs-calendar td .wpbs-date,
  :is(body.page-id-215, body.home) .wpbs-prev,
  :is(body.page-id-215, body.home) .wpbs-next {
    transition: none !important;
  }
}


/* ------------------------------------------------------------
   WPBS search widget on the home: stock plugin styling clashes
   with everything. Skin it onto the same card language.
   ------------------------------------------------------------ */
body.home .wpbs_s-search-widget,
body.home form.wpbs_s-search-widget-form {
  max-width: 1120px;
  margin: 0 auto 24px !important;
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 0 !important;
  padding: 18px !important;
  font-family: var(--sans) !important;
}
body.home .wpbs_s-search-widget h1,
body.home .wpbs_s-search-widget h2,
body.home .wpbs_s-search-widget h3 {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 1.35rem !important;
  margin: 0 0 10px !important;
}
body.home .wpbs_s-search-widget input,
body.home .wpbs_s-search-widget select {
  border: 1px solid var(--stone) !important;
  border-radius: 0 !important;
  min-height: 44px !important;
  background: #fff !important;
}
body.home .wpbs_s-search-widget button,
body.home .wpbs_s-search-widget input[type="submit"] {
  background: var(--stamp) !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Home picker: our own selection classes over the display calendar,
   same band anatomy as the booking range. */
body.home .wpbs-calendar td .wpbs-date.smf-pick-start,
body.home .wpbs-calendar td .wpbs-date.smf-pick-end {
  background: var(--stamp) !important;
  color: #fff !important;
}
body.home .wpbs-calendar td .wpbs-date.smf-pick-start { border-radius: 10px 0 0 10px !important; }
body.home .wpbs-calendar td .wpbs-date.smf-pick-end { border-radius: 0 10px 10px 0 !important; }
body.home .wpbs-calendar td .wpbs-date.smf-pick-start .wpbs-date-number,
body.home .wpbs-calendar td .wpbs-date.smf-pick-end .wpbs-date-number { color: #fff !important; }
body.home .wpbs-calendar td .wpbs-date.smf-pick-start [class*="price"],
body.home .wpbs-calendar td .wpbs-date.smf-pick-end [class*="price"] { color: #FFFFFF !important; }
body.home .wpbs-calendar td .wpbs-date.smf-pick-mid {
  background: #F9E9FA !important;
  background: color-mix(in srgb, var(--stamp) 12%, #fff) !important;
}
body.home .wpbs-calendar td .wpbs-date.wpbs-is-bookable { cursor: pointer; }


/* ============================================================
   Home availability section — composition pass 2026-08-19.
   The display widget arrives with WPBS inline sizing (table
   width:229px) and a redundant Search card; rebuild the section
   as one centered, breathing block.
   ============================================================ */

/* The Search card duplicates the calendar picker's job on the home
   and reads as a second, clashing UI. Gone. */
body.home .wpbs_s-search-widget,
body.home form.wpbs_s-search-widget-form { display: none !important; }

/* Section frame */
body.home #smf-home-cal { 
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 0;
  text-align: center;
}
body.home #smf-home-cal h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
body.home #smf-home-cal p {
  color: var(--mute);
  font-size: 1rem;
  max-width: 56ch;
  margin: 0 auto 6px;
}

/* Legend + changeover note: one quiet centered line */
body.home .wpbs-legend {
  justify-content: center !important;
  margin: 18px auto 6px !important;
}
body.home .wpbs-legend::after {
  text-align: center;
}

/* Calendars: two real columns, filled, centered */
body.home .wpbs-main-wrapper { max-width: 1120px; margin: 0 auto !important; }
body.home .wpbs-calendars {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(300px, 480px)) !important;
  justify-content: center !important;
  gap: 24px !important;
}
@media (max-width: 720px) {
  body.home .wpbs-calendars { grid-template-columns: minmax(0, 480px) !important; }
}
body.home .wpbs-calendar {
  width: 100% !important;
  max-width: none !important;
  padding: 14px 12px 16px !important;
}
/* WPBS sets an inline pixel width on the table; win with !important. */
body.home .wpbs-calendar table {
  width: 100% !important;
  table-layout: fixed !important;
}
body.home .wpbs-date { min-height: 52px !important; }
body.home .wpbs-date .wpbs-date-number { font-size: 0.95rem !important; }
body.home .wpbs-date .wpbs-date-price,
body.home .wpbs-date [class*="price"] { font-size: 0.68rem !important; }

/* CTA: generous, centered, unmissable */
body.home .smf-home-cal__ctawrap { text-align: center; margin: 26px 0 8px; }
body.home #smf-home-cta {
  display: inline-block;
  background: var(--stamp);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 40px;
  min-width: 320px;
}
body.home #smf-home-cta:hover { background: var(--ink); }
body.home #smf-home-cta:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }


/* ---- polish pass 2, 2026-08-19 ---- */

/* "Cancelación (i)" chip: was a loose orange box floating above the
   legend. Restyle as a quiet centered link-chip under the legend. */
body.home .smf-cancel-wrap {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 2px auto 10px !important;
  font-size: 0.8rem;
  color: var(--mute);
}
body.home .smf-cancel-wrap .smf-cancel-i,
body.page-id-215 .smf-cancel-wrap .smf-cancel-i {
  background: transparent !important;
  color: var(--stamp) !important;
  border: 1.5px solid var(--stamp) !important;
  border-radius: 50% !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 15px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  cursor: pointer;
}

/* Month headers: August ships a prev-arrow + dropdown, September a
   centered title + next-arrow. Make both read as one system. */
:is(body.page-id-215, body.home) .wpbs-calendar-header-navigation {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-family: var(--serif) !important;
  font-size: 1.02rem !important;
  color: var(--ink) !important;
  min-height: 38px;
}
:is(body.page-id-215, body.home) .wpbs-prev,
:is(body.page-id-215, body.home) .wpbs-next {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 0 !important;
  flex: 0 0 auto;
  cursor: pointer;
}
:is(body.page-id-215, body.home) .wpbs-prev:hover,
:is(body.page-id-215, body.home) .wpbs-next:hover { border-color: var(--stamp) !important; }
:is(body.page-id-215, body.home) .wpbs-calendar-header select {
  border: 0 !important;
  background: transparent !important;
  font-family: var(--serif) !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  min-height: 0 !important;
  padding: 2px 4px !important;
  cursor: pointer;
}

/* Today marker: WPBS paints a blue outline that belongs to no palette. */
:is(body.page-id-215, body.home) .wpbs-date.wpbs-today,
:is(body.page-id-215, body.home) .wpbs-date[class*="today"] {
  outline: none !important;
  box-shadow: inset 0 0 0 2px var(--brass) !important;
  border-color: var(--brass) !important;
}

/* Empty lead/tail cells: drop the grey slabs, keep the grid airy. */
:is(body.page-id-215, body.home) .wpbs-date:not([data-day]),
:is(body.page-id-215, body.home) .wpbs-date.wpbs-gap {
  background: transparent !important;
  border: 0 !important;
}

/* Changeover triangles: soften — the stock diagonal is loud. */
:is(body.page-id-215, body.home) .wpbs-date[class*="split"],
:is(body.page-id-215, body.home) .wpbs-date .wpbs-diagonal { opacity: 0.85; }


/* Split-day triangles are inline SVGs with WPBS's loud stock fills.
   Desaturate them into the calendar's palette instead of fighting
   each polygon's fill. */
:is(body.page-id-215, body.home) .wpbs-date .wpbs-legend-item-icon {
  filter: saturate(0.38) opacity(0.8);
}
:is(body.page-id-215, body.home) .wpbs-legend .wpbs-legend-item-icon {
  filter: saturate(0.38) opacity(0.8);
}


/* ── Direct-booking savings badge ─────────────────────────────────────────
   Discreet pill next to the price — brand tokens, never a coupon banner. */
.smf-savebadge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-soft, #F9E9FA);
  color: #8E10A8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.smf-savebadge small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}
.smf-book__save {
  margin: 8px 0 0;
  text-align: right;
}
.smf-book__save[hidden] { display: none; }
.smf-home-cal__ctawrap #smf-home-savebadge {
  margin-left: 10px;
  vertical-align: middle;
}


/* The old booking page keeps Elementor sections after the wizard
   ("Disfruta de tu estancia" hero, floating photos). Kill everything
   that follows the wizard's own container. */
body.page-id-215 #smf-book ~ * ,
body.page-id-215 .smf-book-on .elementor-location-single > section:not(:first-child) { }
body.smf-book-on #smf-book ~ *:not(script):not(style) { display: none !important; }


/* Booking-page pick layer (same anatomy as the home picker). */
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-start,
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-end {
  background: var(--stamp) !important;
  color: #fff !important;
}
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-start { border-radius: 10px 0 0 10px !important; }
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-end { border-radius: 0 10px 10px 0 !important; }
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-start .wpbs-date-number,
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-end .wpbs-date-number { color: #fff !important; }
body.page-id-215 .wpbs-calendar td .wpbs-date.smf-pick-mid {
  background: #F9E9FA !important;
}


/* Sidebar itineraries block on /booking/. */
#smf-sideitin { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
#smf-sideitin .smf-sideitin__h {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  margin: 0 0 4px; color: var(--ink);
}
#smf-sideitin .smf-sideitin__sub { font-size: 0.8rem; color: var(--mute); margin: 0 0 12px; }
#smf-sideitin .smf-sideitin__card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; margin: 0 0 8px;
  background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
#smf-sideitin .smf-sideitin__card:hover { border-color: var(--stamp); }
#smf-sideitin img { width: 48px; height: 48px; object-fit: cover; flex: 0 0 auto; }
#smf-sideitin .smf-sideitin__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#smf-sideitin .smf-sideitin__body strong { font-size: 0.85rem; line-height: 1.25; }
#smf-sideitin .smf-sideitin__meta { font-size: 0.72rem; color: var(--mute); }
#smf-sideitin .smf-sideitin__price {
  flex: 0 0 auto; font-weight: 700; font-size: 0.85rem; color: var(--stamp);
}
#smf-sideitin .smf-sideitin__price.is-free { color: var(--ok); }
#smf-sideitin .smf-sideitin__bundle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; margin-top: 4px;
  background: var(--brand-soft, #F9E9FA); font-size: 0.82rem;
}
#smf-sideitin .smf-sideitin__save { color: var(--stamp); font-weight: 700; font-size: 0.75rem; }

/* Limpieza y tasa turística: se avisan aquí, se cobran en el check-in. */
.smf-book__atcheckin {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b6b73;
  border-top: 1px dashed #e3e3e8;
  padding-top: 10px;
}

/* `hidden` por sí solo no oculta el botón: la clase trae display:inline-flex
   y gana por especificidad. Sin esto salían dos botones de continuar. */
.smf-book__btn[hidden] { display: none !important; }

/* Banderas del selector de teléfono.
   El sprite que trae el plugin está roto: 1600x4 px cuando la hoja de estilos
   espera 5652x15, así que cada bandera salía como una caja gris. Se apunta al
   sprite oficial de intl-tel-input v17 servido desde el Command Center; así no
   se tocan ficheros del plugin y sobrevive a sus actualizaciones. */
.iti__flag {
  background-image: url("https://command.showmeflorence.com/itinerary/assets/iti-flags.png") !important;
  background-size: 5652px 15px !important;
  background-repeat: no-repeat !important;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://command.showmeflorence.com/itinerary/assets/iti-flags@2x.png") !important;
  }
}
