/* Options and prices on the tour page (single-tour.php, section .opts). It looks like step 1 of the booking window:
   the resident toggle (.switch, desktop.css) and the group bars (.optg__head, booking.css, loaded before this file).
   Behaviour: assets/tour.js. Computer: one grid for every group, so the price columns line up (subgrid).
   Phone (max-width 760): one card per option, prices in one line — "Adult €44, Child €32".
   At the end: the "i" after an option's name, used here and in the booking window (parts/booking.php). */

.opts__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.tour-section .opts__head h2 { margin: 0; }
.opts__head .switch { margin: 0; font-size: 14.5px; }
.opts__note { margin: -4px 0 14px; }

.opts__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 28px; }
.opts--nochild .opts__grid { grid-template-columns: minmax(0, 1fr) auto auto; }
.opts__cols, .opts__group, .opts__list, .opts__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.opts__cols { padding: 0 17px 6px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.35; }
.opts__group .optg__head { grid-column: 1 / -1; }
.opts__list { border: 1px solid var(--line); border-radius: var(--radius-15); overflow: hidden; background: #fff; }
.opts__group .opts__list { margin-top: 8px; }

.opts__row { align-items: center; padding: 13px 16px; font-size: 15px; }
.opts__row:not([hidden]) ~ .opts__row { border-top: 1px solid var(--line-soft); }
.opts__row:hover { background: #FFFBF6; }
.opts__name { min-width: 0; font-weight: 500; line-height: 1.4; }
.opts__name .tag { margin-left: 4px; vertical-align: 1px; }
.opts__name small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
/* The "i" after the name (.info-i, at the end of this file) opens the option's text under the name; the row turns cream */
.opts__row.is-open, .opts__row.is-open:hover { background: #FFF8F0; }
.opts__info { grid-column: 1 / -2; margin: 6px 0 2px; color: var(--text-2); font-size: 14px; font-weight: 400; line-height: 1.55; }
.opts__prices { display: contents; }
.opts__price { font-weight: 600; white-space: nowrap; }
.opts__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opts__sep { display: none; }
.opts__choose { justify-self: end; white-space: nowrap; }

/* Browsers without subgrid: fixed price columns. */
@supports not (grid-template-columns: subgrid) {
  .opts__grid, .opts__group, .opts__list { display: block; }
  .opts__cols, .opts__row { grid-template-columns: minmax(0, 1fr) 7em 7em 6.5em; column-gap: 16px; }
  .opts--nochild .opts__cols, .opts--nochild .opts__row { grid-template-columns: minmax(0, 1fr) 7em 6.5em; }
}

@media (max-width: 760px) {
  .opts__head { flex-direction: column; align-items: flex-start; }
  .opts__grid, .opts__group, .opts__list { display: block; }
  .opts__cols { display: none; }
  .opts__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 14px; }
  .opts__name { flex: 0 0 100%; }
  .opts__prices { display: block; flex: 1 1 auto; min-width: 0; }
  .opts__lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); font-size: 13.5px; font-weight: 400; }
  .opts__sep { display: inline; color: var(--muted); }
  .opts__price--none { display: none; }
  .opts__choose { margin-left: auto; }
  /* The text right under the name, then the prices and "Choose" */
  .opts__info { order: 1; flex: 0 0 100%; margin: 2px 0 4px; }
  .opts__prices { order: 2; }
  .opts__choose { order: 3; }
}

/* ---- The "i" after an option's name, on the tour page and in the booking window (inc/tours.php info_button(),
   owner's choice 2026-11-14 instead of the "Details" link). It sits on the line of the name, its middle at the middle of
   the capital letters; orange while its text is open. ---- */
.info-i { position: relative; display: inline-block; width: 18px; height: 18px; margin-left: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--orange-text); vertical-align: calc(.35em - 9px); vertical-align: calc(.5cap - 9px); cursor: pointer; transition: background .15s, color .15s; }
.info-i svg { display: block; }
/* The last word of the name and the "i" (name_with_info()): they never part, so the "i" never takes a line of its own */
.info-nw { white-space: nowrap; }
.info-i::after { content: ""; position: absolute; inset: -9px -8px; } /* a larger target for a finger */
.info-i:hover, .info-i[aria-expanded="true"] { background: var(--orange-btn); color: #fff; }
.info-i:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Booking window (parts/booking.php): the radio, then the name with the "i"; the text under the name, without a box.
   The old "Details" link and box (.opt__more, .opt__details in desktop.css and mobile.css) are no longer used. */
.opt__top { grid-area: main; display: flex; align-items: center; gap: 12px; min-width: 0; }
.opt__top .opt__main { flex: none; }
.opt__top .opt__name { min-width: 0; }
.opt.is-sel .info-i:not([aria-expanded="true"]) { background: #fff; } /* the chosen card is cream itself */
.opt__info { grid-area: details; margin: 6px 0 2px 34px; color: var(--text-2); font-size: 14px; line-height: 1.55; cursor: auto; }
