/* /book-a-tour/ — page-specific rules. Shared rules are in /assets/site.css.
   Values are production's sf-tour-css / sf-hero-css with the Astra
   `button` defaults (padding 15px 25px, uppercase, 1px tracking) that
   production's buttons inherited folded into the .sf-tour-* rules. */

/* hero: the site's standard hero (geometry in site.css) */
.hero--book-a-tour { background-image: url("/wp-content/uploads/2026/09/book-a-tour-hero.jpg"); }
.hero--book-a-tour::before { opacity: .2; }

/* intro */
.sf-page-header { text-align: center; }
.sf-page-intro {
  max-width: 640px;
  margin: 0 auto 2em;
  text-align: center;
  color: var(--c-text);
}

/* Astra's button:focus (the selected day / slot stays dark until focus moves);
   same (0,1,1) specificity and position as production so the sf-* rules below
   override it exactly as they did there. */
button:where(.sf-tour-nav, .sf-tour-day, .sf-tour-slot-btn):focus {
  color: var(--c-white);
  background-color: var(--c-brown);
  border-color: var(--c-brown);
}
/* Astra's global button:hover{color:#fff;background:brown;border-color:brown}
   also applied to these buttons on production: the page's .sf-* rules restore
   the background/border but not the colour, so the arrows and slot text turn
   white on hover, and disabled (inert) days go dark. Reproduced as measured. */
button:where(.sf-tour-nav, .sf-tour-slot-btn):hover { color: var(--c-white); }
.sf-tour-day-inert:hover {
  color: var(--c-white);
  background-color: var(--c-brown);
  border-color: var(--c-brown);
}

/* calendar */
.sf-tour-calendar-wrap {
  margin: 0 0 2em;
  padding: 1.5em;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-white);
}
.sf-tour-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1em; }
.sf-tour-cal-header h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  text-transform: none;
}
.sf-tour-nav {
  width: 34px; height: 34px;
  padding: 15px 25px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: none;
  color: var(--c-brown);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.sf-tour-nav:hover { background: #f2f2f2; }
.sf-tour-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  opacity: .6;
}
/* minmax(0, 1fr): columns share the card's width instead of growing to the buttons'
   content width, which pushed the week past the card on phones */
.sf-tour-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
/* the cards span the content width; the month itself stays a comfortable size in the middle (only bites on tablets) */
.sf-tour-cal-header, .sf-tour-weekdays, .sf-tour-grid { max-width: 640px; margin-left: auto; margin-right: auto; }
.sf-tour-day {
  aspect-ratio: 1 / 1;
  padding: 0; /* the square comes from aspect-ratio; the old 25px side padding forced 68px columns */
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  font: inherit;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-text);
  cursor: default;
}
.sf-tour-day-blank { visibility: hidden; }
.sf-tour-day-inert { opacity: .3; }
.sf-tour-day-active {
  border-color: var(--c-sand);
  background: var(--c-cream);
  font-weight: 600;
  color: var(--c-brown);
  cursor: pointer;
}
.sf-tour-day-active:hover { background: var(--c-sand); color: var(--c-white); }

/* slots */
.sf-tour-slots {
  margin: 0 0 2em;
  padding: 1.5em;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-white);
}
.sf-tour-slots h3 { margin: 0 0 1em; font-size: 20px; font-weight: 400; }
.sf-tour-slot-buttons { display: grid; gap: 10px; }
.sf-tour-slot-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #fafafa;
  color: var(--c-brown);
  font: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.sf-tour-slot-btn:hover { background: #f2f2f2; border-color: #a9a9a9; }
.sf-tour-slot-time { font-weight: 600; }
.sf-tour-slot-remaining { font-size: 12px; opacity: .7; }
.sf-tour-empty {
  margin: 0 0 2em;
  padding: 2em;
  border: 1px dashed var(--c-line);
  border-radius: 4px;
  text-align: center;
}

/* booking form */
.sf-tour-selected {
  display: inline-block;
  margin-bottom: 1em;
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--c-cream);
  font-size: 14px;
}
/* below 922px the page itself is cream, so the cream box vanished: white with a hairline, like the cards */
@media (max-width: 921px) { .sf-tour-selected { background: var(--c-white); border: 1px solid var(--c-line); } }
.sf-enquiry-wrap h2 { margin-bottom: .6em; font-size: 32px; }
.sf-tour-nav:hover, .sf-tour-day-active:hover { border-color: var(--c-brown); }

/* desktop: intro in the left column; calendar, times and booking form in the right (like /contact/) */
@media (min-width: 1025px) {
  .sf-tour-page > * { grid-column: 2; }
  .sf-tour-page > .sf-page-header { grid-column: 1; grid-row: 1 / span 4; text-align: left; }
  .sf-tour-page .sf-page-intro { max-width: none; margin: 0 0 1.5em; text-align: left; }
}
