/* Uncle Brian's theme: styles for the pages this theme renders itself.
   The design system (ds-*.css) is ported from the approved design and must stay untouched.
   Everything here is in its tokens and its language, and replaces the Tailwind utilities
   the design's HTML used for one-off layout. */

/* ---------- small fixes where WordPress differs from the static design ---------- */
.admin-bar .ub-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ub-social--head { margin-top: 24px; }
.ub-card--soon { pointer-events: none; }
.ub-card--soon .ub-card__ph img { filter: none; }
/* The design adds Tailwind's w-full here: inside the hero's flex column an auto-margined wrap would otherwise shrink to its content. */
.ub-page-hero > .ub-wrap { width: 100%; }
.ub-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.ub-hero-actions__label { font-size: 19px; font-weight: 600; color: var(--ub-salt); }
.ub-empty { margin-bottom: 40px; }

/* ---------- header cart: an icon with the number of items, shown once the cart has something in it ----------
   Here, not in shop.css, because it shows on every page. The count is kept fresh by WooCommerce's cart fragments. */
.ub-nav__cart { position: relative; flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ub-edge); color: var(--ub-salt); transition: border-color var(--ub-fast), color var(--ub-fast); }
.ub-nav__cart:hover { border-color: var(--ub-salt); }
.ub-nav__carticon { width: 22px; height: 22px; }
.ub-nav__count { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--ub-pill); background: var(--ub-green); color: var(--ub-blacktop); box-shadow: 0 0 0 2px var(--ub-blacktop); font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Tours menu: one map per tour, stacked, with the hovered tour's showing (assets/js/menu.js) ----------
   In a tour's own map every route line is that tour's route, so it is always drawn lit. */
.ub-mega__maps { position: relative; }
.ub-mega__map .ub-map .ub-route { stroke: var(--ub-green); stroke-width: 3.5; opacity: 1; }
.ub-mega__map { animation: ub-map-in 260ms var(--ub-ease-out-quart); }
@keyframes ub-map-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ub-mega__map { animation: none; } }
/* With no map and no links beside it, the tour lists take the full width. */
.ub-mega__grid--lists { grid-template-columns: minmax(0, 1fr); }
/* Opening and closing: the panel and the dimmed page fade in while the
   contents rise into place, and fade out on the way out. chrome.js only flips `hidden`, so this is
   CSS alone: `display` waits out the fade (allow-discrete) and @starting-style gives the first frame.
   The panel itself never moves, so no gap opens under the header. Browsers without display
   transitions (older Firefox) still fade in and simply close at once. */
.ub-mega { opacity: 1; transition: opacity 220ms var(--ub-ease-out-quart), display 220ms allow-discrete; animation: ub-mega-still 380ms; }
.ub-mega > * { transform: none; transition: transform 320ms var(--ub-ease-out-quart); }
/* The panel scrolls when it is taller than the window, and contents nudged down while they rise
   would poke out of its foot and flash a scrollbar. So its overflow is clipped for as long as the
   contents move: on opening by this animation (it restarts each time the panel is shown), on closing
   by the hidden state itself. */
@keyframes ub-mega-still { from, to { overflow-y: hidden; } }
.ub-t .ub-mega[hidden] { opacity: 0; overflow-y: hidden; pointer-events: none; transition-duration: 160ms; transition-timing-function: ease-in; }
.ub-t .ub-mega[hidden] > * { transform: translateY(6px); transition-duration: 160ms; transition-timing-function: ease-in; }
@starting-style {
	.ub-mega { opacity: 0; }
	.ub-mega > * { transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
	.ub-mega > *, .ub-t .ub-mega[hidden] > * { transform: none; transition: none; }
	@starting-style { .ub-mega > * { transform: none; } }
}

/* ---------- forms: messages and action rows ---------- */
.ub-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 8px; }
.ub-form__note { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ub-mist); }
.ub-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ub-line); font-size: 17px; font-weight: 500; color: var(--ub-mist); }
.ub-form__error { margin-bottom: 18px; padding: 12px 16px; border: 1.5px solid var(--ub-salt); border-radius: var(--ub-r-sm); font-weight: 600; color: var(--ub-salt); background: var(--ub-kerb); }
.ub-field.is-invalid input, .ub-field.is-invalid textarea { border-color: var(--ub-salt); }
.ub-field__error { font-size: 14px; font-weight: 600; color: var(--ub-salt); }
.ub-field__error::before { content: "↑ "; }
.ub-done__tick { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 50%; background: var(--ub-kerb); color: var(--ub-green); }
.ub-done__title { font-family: var(--ub-display); font-size: clamp(36px, 3.8vw, 52px); line-height: .9; letter-spacing: .012em; text-transform: uppercase; color: var(--ub-salt); }
.ub-done__line { margin-top: 12px; max-width: 48ch; }
.ub-done .ub-form__actions { padding-top: 20px; }

/* ---------- search ---------- */
.ub-find { margin-top: 32px; max-width: 560px; }
.ub-search { display: flex; gap: 12px; align-items: stretch; }
.ub-search input[type="search"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 10px 18px; background: var(--ub-bitumen); color: var(--ub-salt);
  border: 1.5px solid var(--ub-edge); border-radius: var(--ub-pill); font-size: 17px;
}
.ub-search input[type="search"]::placeholder { color: var(--ub-dim); }
.ub-search input[type="search"]:focus-visible { outline: 3px solid var(--ub-salt); outline-offset: 2px; border-color: var(--ub-salt); }
.ub-results { border-top: 1px solid var(--ub-line); margin-top: 48px; }
.ub-tour-grid + .ub-results { margin-top: 88px; }
.ub-results:first-child { margin-top: 0; }
.ub-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px; padding: 22px 4px; border-bottom: 1px solid var(--ub-line); transition: padding var(--ub-fast); }
.ub-results a:hover { padding-left: 14px; }
.ub-results__title { font-family: var(--ub-display); font-size: 36px; line-height: .95; letter-spacing: .012em; text-transform: uppercase; }
.ub-results__line { grid-column: 1; color: var(--ub-mist); font-size: 16px; }
.ub-results .ub-i { grid-column: 2; grid-row: 1 / span 2; color: var(--ub-green); width: 22px; height: 22px; }
.ub-pager { margin-top: 48px; }
.ub-pager .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ub-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ub-edge); border-radius: var(--ub-pill); font-weight: 600; }
.ub-pager .page-numbers.current { background: var(--ub-salt); color: var(--ub-blacktop); border-color: var(--ub-salt); }

/* ---------- agents: request access ---------- */
.ub-request { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px 96px; align-items: start; }
.ub-request__aside { position: sticky; top: calc(var(--ub-header-h) + 24px); }
.ub-holds { margin-top: 32px; border-top: 1px solid var(--ub-line); }
.ub-holds li { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ub-line); }
.ub-holds__pic { flex: none; width: 72px; height: 72px; border-radius: var(--ub-r-sm); box-shadow: var(--ub-shadow-sm); }
.ub-holds__name { font-family: var(--ub-display); font-size: 27px; line-height: 1; letter-spacing: .035em; text-transform: uppercase; }
.ub-holds__line { margin-top: 4px; font-size: 16px; color: var(--ub-mist); }

/* ---------- agents: login and password reset (one centred panel) ---------- */
.ub-gate { border-bottom: 1px solid var(--ub-line); }
.ub-gate__in { text-align: center; }
.ub-gate__title { font-size: clamp(52px, 7.4vw, 108px); }
.ub-gate__lede { margin: 24px auto 0; max-width: 46ch; }
.ub-gate__panel { max-width: 560px; margin: 40px auto 0; text-align: left; }
.ub-gate__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 32px auto 0; font-size: 15px; font-weight: 600; color: var(--ub-dim); }
.ub-gate__steps li { display: flex; align-items: center; gap: 10px; }
.ub-gate__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ub-edge); font-variant-numeric: tabular-nums; }
.ub-gate__steps .is-on { color: var(--ub-salt); }
.ub-gate__steps .is-on span { background: var(--ub-green); border-color: var(--ub-green); color: var(--ub-blacktop); }
.ub-gate__steps .is-done { color: var(--ub-mist); }
.ub-gate__steps .is-done span { border-color: var(--ub-green); color: var(--ub-green); }

/* ---------- agents: the portal ---------- */
.ub-portal-top__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-block: 72px 48px; }
.ub-portal-top__title { font-size: clamp(48px, 6.4vw, 92px); line-height: .86; }
.ub-portal-top .ub-lede { margin-top: 18px; max-width: 54ch; }
.ub-portal-top__who { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 15px; color: var(--ub-mist); text-align: right; }

.ub-portal__bar { position: sticky; top: var(--ub-header-h); z-index: 20; background: var(--ub-bitumen); border-block: 1px solid var(--ub-line); }
.admin-bar .ub-portal__bar { top: calc(var(--ub-header-h) + var(--wp-admin--admin-bar--height, 32px)); }
.ub-portal__barin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 14px; }
.ub-portal__set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ub-portal__label { margin-right: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ub-dim); }
.ub-portal .ub-chip { min-height: 40px; padding: 8px 16px 6px; font-size: 20px; cursor: pointer; }
.ub-portal .ub-chip:hover { transform: none; }
.ub-portal__find { flex: 1 1 220px; max-width: 340px; margin-left: auto; }
.ub-portal__find input {
  width: 100%; min-height: 44px; padding: 8px 18px; background: var(--ub-blacktop); color: var(--ub-salt);
  border: 1.5px solid var(--ub-edge); border-radius: var(--ub-pill); font-size: 16px;
}
.ub-portal__find input::placeholder { color: var(--ub-dim); }
.ub-portal__find input:focus-visible { outline: 3px solid var(--ub-salt); outline-offset: 2px; border-color: var(--ub-salt); }
html:not(.js) .ub-portal__js { display: none; }

.ub-portal__body { padding-block: 32px 104px; }
.ub-portal__count { min-height: 24px; font-size: 15px; font-weight: 600; color: var(--ub-mist); }
.ub-portal__none, .ub-portal__help, .ub-ptour__empty { margin-top: 40px; font-size: 19px; color: var(--ub-mist); }
.ub-portal__none button { font: inherit; }

.ub-ptour { margin-top: 32px; padding: 32px; background: var(--ub-bitumen); border: 1px solid var(--ub-line); border-radius: var(--ub-r); scroll-margin-top: calc(var(--ub-header-h) + 96px); }
.ub-ptour__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ub-line); }
.ub-ptour__thumb { width: 72px; height: 72px; border-radius: var(--ub-r-sm); overflow: hidden; background: var(--ub-edge); }
.ub-ptour__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ub-ptour__meta { margin-top: 6px; font-size: 16px; color: var(--ub-mist); }
.ub-ptour__all { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 14px; color: var(--ub-mist); text-align: right; }
.ub-ptour__all .ub-btn { gap: 10px; }
.ub-ptour__empty { margin-top: 24px; }

.ub-pgroup { margin-top: 28px; }
.ub-pgroup__h { display: flex; align-items: baseline; gap: 10px; font-family: var(--ub-display); font-size: 30px; line-height: 1; letter-spacing: .035em; text-transform: uppercase; color: var(--ub-salt); }
.ub-pgroup__h span { font-family: var(--ub-body); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ub-dim); }
.ub-pfiles { margin-top: 16px; }
.ub-pfiles--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 20px; }
.ub-pfiles--video { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ub-pfile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.ub-pfile__pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: var(--ub-r-sm); overflow: hidden; background: var(--ub-blacktop); }
.ub-pfile__pic--video { aspect-ratio: 16 / 9; }
.ub-pfile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ub-base) var(--ub-ease-out-quart); }
a.ub-pfile__pic:hover img { transform: scale(1.04); }
.ub-pfile__pic .ub-play-dot { position: absolute; left: 12px; bottom: 12px; }
.ub-pfile__name { max-width: 100%; font-weight: 600; color: var(--ub-salt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-pfile__meta { font-size: 14px; color: var(--ub-mist); font-variant-numeric: tabular-nums; }
.ub-pfile__dl { margin-top: 4px; }
.ub-pfile--row { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; background: var(--ub-blacktop); border: 1px solid var(--ub-line); border-radius: var(--ub-r-sm); }
.ub-pfile--row .ub-pfile__text { flex: 1; min-width: 0; }
.ub-pfile--row .ub-pfile__dl { margin-top: 0; }
.ub-pfile__icon { flex: none; display: grid; place-items: center; width: 48px; height: 56px; border-radius: 8px; background: var(--ub-kerb); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ub-green); }
.ub-pfile--soon { opacity: .6; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .ub-request { grid-template-columns: minmax(0, 1fr); }
  .ub-request__aside { position: static; }
}
@media (max-width: 860px) {
  .ub-portal-top__in { padding-block: 48px 32px; }
  .ub-portal-top__who { align-items: flex-start; text-align: left; }
  .ub-portal__bar { position: static; }
  .ub-portal__set { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--ub-gutter) * -1); padding-inline: var(--ub-gutter); scrollbar-width: none; max-width: 100vw; }
  .ub-portal__set::-webkit-scrollbar { display: none; }
  .ub-portal .ub-chip { flex: none; }
  .ub-portal__find { max-width: none; margin-left: 0; flex-basis: 100%; }
  .ub-ptour { padding: 20px; margin-inline: -8px; }
  .ub-ptour__head { grid-template-columns: auto minmax(0, 1fr); }
  .ub-ptour__all { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .ub-pfiles--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .ub-pfiles--video { grid-template-columns: minmax(0, 1fr); }
  .ub-pfile--row { flex-wrap: wrap; }
  .ub-search { flex-wrap: wrap; }
  .ub-results__title { font-size: 30px; }
}

/* Footer credit (Theme settings, Footer): bottom right, whatever else is in the row. */
.ub-foot__credit { margin-left: auto; }

/* Camera roll clips while a video loads and plays (assets/js/clips.js). The spinner sits in the middle of the
   cover from the moment of hover until TikTok reports the clip is playing. It fades in after a beat, so a clip
   that is already loaded starts without a flash of spinner. */
.ub-clip .ub-print.is-clip-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 3; width: 48px; height: 48px; margin: -24px 0 0 -24px; box-sizing: border-box;
  border: 4px solid rgba(246, 244, 238, .3); border-top-color: var(--ub-salt); border-radius: 50%;
  background: rgba(18, 17, 19, .55); box-shadow: 0 0 0 10px rgba(18, 17, 19, .55);
  animation: ub-clip-spin 700ms linear infinite, ub-clip-in 160ms 140ms both;
}
.ub-clip .ub-print.is-clip-loading > img { filter: brightness(.82); transition: filter 200ms 140ms; }
.ub-clip .ub-play-dot { transition: opacity 200ms; }
.ub-clip .ub-print.is-clip-loading .ub-play-dot, .ub-clip .ub-print.is-clip-playing .ub-play-dot { opacity: 0; }
.ub-clip__player { transition: opacity 220ms; }
@keyframes ub-clip-spin { to { transform: rotate(360deg); } }
@keyframes ub-clip-in { from { opacity: 0; } to { opacity: 1; } }

/* The cousins (inc/parts.php): a portrait fills its circle. */
.ub-avatar.ub-avatar--photo { overflow: hidden; border: 0; padding: 0; }
.ub-avatar--photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Films play where they sit (ub_film() in inc/parts.php, and YouTube rows in the agent portal). */
.ub-film__link { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 8px 14px; background: var(--ub-blacktop); color: var(--ub-salt); border-radius: var(--ub-pill); font-weight: 600; }
.ub-pfile__pic--film .ub-film__play { z-index: 1; }
.ub-pfile__pic--film .ub-film__play:hover .ub-play-dot { background: var(--ub-green); color: var(--ub-blacktop); }
.ub-pfile__pic--film iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
button.ub-pfile__dl { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.ub-pfile:has(.is-playing) [data-ub-watch] { display: none; }

/* Page heroes (inc/page-hero.php). The design laid these out with Tailwind utilities; these are the same rules. */
.ub-ph--tall { min-height: clamp(600px, calc(100svh - var(--ub-header-h) - 44px), 840px); }
.ub-page-hero .ub-page-hero__content.ub-ph__one { grid-template-columns: minmax(0, 1fr); }
.ub-ph-lede { margin-top: 24px; }
.ub-page-hero--plain .ub-ph-lede { max-width: 56ch; }
.ub-ph:not(.ub-page-hero--plain) .ub-ph-lede { color: var(--ub-salt); }
.ub-ph-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.ub-ph-row .ub-ph-lede { margin-top: 0; }
.ub-ph-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ub-ph-cta__lead { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 600; color: var(--ub-salt); }
.ub-ph-jumps { margin-top: 40px; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; border-top: 1px solid var(--ub-line); }
.ub-ph-jumps a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--ub-display); font-weight: 400; text-transform: uppercase; font-size: 27px; line-height: 1; letter-spacing: .035em; color: var(--ub-salt); transition: color var(--ub-fast); }
.ub-ph-jumps a:hover { color: var(--ub-green); }
.ub-ph-jumps .ub-i { transition: transform var(--ub-fast); }
.ub-ph-jumps a:hover .ub-i { transform: translateY(3px); }
@media (max-width: 639px) { .ub-ph-prints { min-height: 360px; } }

/* Contact details, phone and email rows, and the map (inc/contact.php). The design laid these out with Tailwind utilities. */
.ub-cd { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ub-line); }
.ub-cd__row { padding-block: 20px; border-bottom: 1px solid var(--ub-line); }
.ub-cd__row--phone { padding-block: 24px; }
.ub-cd__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--ub-mist); }
.ub-cd__phone { display: inline-block; margin-top: 8px; white-space: nowrap; font-size: clamp(46px, 5vw, 68px); line-height: .9; }
.ub-cd__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; font-weight: 600; color: var(--ub-salt); text-decoration: underline; text-decoration-color: var(--ub-green); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color var(--ub-fast); }
.ub-cd__link:hover { color: var(--ub-green); }
.ub-cd__link--wrap { min-width: 0; overflow-wrap: anywhere; }
.ub-cd__text { margin: 8px 0 0; font-size: 17px; color: var(--ub-salt); }
.ub-chat-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ub-line); }
.ub-chat-list__row { display: flex; align-items: center; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--ub-line); }
.ub-chat-list__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ub-kerb); color: var(--ub-green); }
.ub-map-embed { --tilt: -2deg; }
.ub-map-embed iframe { border: 0; filter: invert(.9) hue-rotate(180deg) grayscale(.2) contrast(.9); }

/* ---------- form field focus ("VERY thick white border on focus") ----------
   The design's 3px Salt outline, 2px out, sat on top of the reset's 4px white glow: about 9px of white.
   A focused field now lights its own border Salt with a 1px ring, about 2.5px in all, which still
   meets the 2px focus indicator in WCAG 2.2. Checkboxes keep a thin outline, as they have no border to light. */
html :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]), select, textarea):focus-visible {
  outline: 0; box-shadow: 0 0 0 1px var(--ub-salt); border-color: var(--ub-salt);
}
html :is(input[type="checkbox"], input[type="radio"]):focus-visible { box-shadow: none; outline: 2px solid var(--ub-salt); outline-offset: 2px; }
html .ub-cart :is(input, select, textarea):focus-visible { box-shadow: 0 0 0 1px var(--ub-green); border-color: var(--ub-green); }

/* ---------- review cards as carousels (assets/js/reviews.js) ----------
   Each card's reviews sit stacked in one grid cell, and every bubble stretches to that cell: the card
   is always the height of its longest review (client), so nothing jumps as they change. The name and
   dots sit at the bottom of the bubble. The one showing fades in. */
.ub-chat-row.ub-revs { display: grid; align-items: stretch; } /* the design's row centres its items; these must fill it */
.ub-rev { grid-area: 1 / 1; display: flex; align-items: center; margin: 0; min-width: 0; visibility: hidden; opacity: 0; transition: opacity 260ms var(--ub-ease-out-quart), visibility 0s 260ms; }
.ub-rev.is-on { visibility: visible; opacity: 1; transition: opacity 260ms var(--ub-ease-out-quart), visibility 0s; }
.ub-rev > .ub-bubble { align-self: stretch; display: flex; flex-direction: column; }
.ub-rev > .ub-bubble .ub-bubble__cite { margin-top: auto; padding-top: 14px; }
.ub-revs[data-ub-revs] { touch-action: pan-y; }
@media (max-width: 860px) {
  .ub-rev { display: flex; flex-direction: column; position: relative; }
  .ub-rev > .ub-bubble { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ub-rev, .ub-rev.is-on { transition: none; } }
/* The dots are buttons, set as close as the design's (client: not spaced far apart), each 24px tall
   to tap. They read on both cards: ink on the Salt Google card, Salt on the dark TripAdvisor card,
   the others at half strength (3:1 or better against either). */
/* The base reset colours every figcaption #333 and italic: invisible on the dark TripAdvisor card, name and dots both. */
.ub-bubble .ub-bubble__cite { color: inherit; font-style: normal; }
.ub-bubble__cite .ub-dots { opacity: 1; gap: 0; margin-right: -3px; }
.ub-dot { display: inline-grid; place-items: center; height: 24px; padding: 0 3px; margin: 0; border: 0; border-radius: var(--ub-pill); background: none; color: inherit; cursor: pointer; }
.ub-dot i { display: block; opacity: .5; transition: opacity var(--ub-fast), width var(--ub-fast); }
.ub-dot:hover i { opacity: .8; }
.ub-dot i.on { opacity: 1; }
html .ub-dot:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; box-shadow: none; }

/* ---------- a white edge on the prominent green ----------
   Only the things that matter most, as agreed: the green Book buttons, the green words in headlines and
   the big TripAdvisor #1. The way the wordmark's green pops off black. Body text, links and small type
   are left alone. The green words are filled with the wordmark's gradient, which a text outline would
   cover, so their edge is four stacked shadows, sized to the type. */
.ub-t :is(.ub-page-title, .ub-hero__title, .ub-h2, .ub-h3, .ub-behind__type, .ub-rank__n) .ub-jg,
.ub-t .ub-rank__n.ub-jg {
  filter: drop-shadow(.02em 0 0 var(--ub-salt)) drop-shadow(-.02em 0 0 var(--ub-salt)) drop-shadow(0 .02em 0 var(--ub-salt)) drop-shadow(0 -.02em 0 var(--ub-salt));
}
.ub-btn.ub-btn--book { box-shadow: 0 0 0 2px var(--ub-salt); }
.ub-btn.ub-btn--book:active { box-shadow: 0 0 0 2px var(--ub-salt); }

/* ---------- the agent portal's meeting request (inc/agent/meeting.php) ---------- */
.ub-portal-top__who .ub-btn { margin-bottom: 6px; }
.ub-meet__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 64px; align-items: start; }
.ub-meet__line { margin-top: 18px; max-width: 40ch; }
@media (max-width: 860px) { .ub-meet__in { grid-template-columns: minmax(0, 1fr); } }

/* The agent login page's headline is for screen readers only, so the welcome line starts the page. */
.ub-gate .sr-only + .ub-gate__lede { margin-top: 0; }

/* Ratings that link to their listing (Theme settings, Ratings): same look, underline on hover. */
.ub-t .ub-trust__a { display: flex; align-items: inherit; flex-direction: inherit; gap: inherit; color: inherit; text-decoration: none; border-radius: 6px; }
.ub-t .ub-trust__a:hover .ub-trust__t, .ub-t .ub-trust__a:focus-visible .ub-trust__t, .ub-t .ub-rank__a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ub-t .ub-rank__a { color: inherit; text-decoration: none; }
