/* BookMySafar – activity page (Views/Activities/Details.cshtml). Sits on bms-public.css tokens. */

/* the template floats every div/ul/li at 100% width; the new blocks opt out (see bms-public.css) */
:is(.bms-act__crumbs, .bms-act__head, .bmsg-car, .bms-act__facts, .bms-act__tabs, .bms-act__score, .bms-act__reviews, .bms-act__bar) :where(div, p, ul, ol, li, h1, h2, h3, nav, header, span, article) {
    float: none; width: auto;
}
.bms-act__crumbs, .bms-act__head, .bmsg-car, .bms-act__facts, .bms-act__tabs, .bms-act__score, .bms-act__reviews { float: none; width: auto; }

.bms-act { padding: 26px 0 80px; }
.bms-act__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--bms-muted); margin-bottom: 18px; }
.bms-act__crumbs a { color: var(--bms-muted); }
.bms-act__crumbs a:hover { color: var(--bms-brand); text-decoration: underline; }
.bms-act__crumbs [aria-current] { color: var(--bms-ink); font-weight: 500; max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- title row ---------- */
.bms-act__head { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.bms-act__heading { flex: 1 1 100%; min-width: 0; }
.bms-act__eyebrow {
    display: inline-block; padding: 5px 12px; border-radius: 30px; background: var(--bms-brand-soft); color: var(--bms-brand-dark);
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px;
}
.bms-act__eyebrow:hover { background: #cfe8e8; }
.bms-act__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 14px; color: var(--bms-ink); }
.bms-act__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--bms-ink-2); }
.bms-act__meta li { display: inline-flex; align-items: center; gap: 7px; }
.bms-act__meta svg { width: 18px; height: 18px; fill: none; stroke: var(--bms-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bms-act__rating { color: var(--bms-ink); display: inline-flex; align-items: center; gap: 5px; }
.bms-act__rating:hover span:last-child { text-decoration: underline; }
.bms-act__rating span:last-child { color: var(--bms-muted); }
.bms-act__star { color: var(--bms-ticket-dark); font-size: 18px; line-height: 1; }
.bms-act__badge { display: inline-block; padding: 4px 11px; border-radius: 30px; background: var(--bms-ticket); color: var(--bms-ink); font-size: 12px; font-weight: 700; }
.bms-act__head .bms-share { margin: 0; }

/* ---------- gallery ---------- */
.bms-act__gallery { margin-bottom: 36px; }
.bms-act__gallery .bmsg-car__viewport { box-shadow: var(--bms-shadow); }

/* ---------- body ---------- */
.bms-act__body { margin-bottom: 30px; }
.bms-act__main { min-width: 0; }
.bms-act__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.bms-act__facts li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--bms-line); border-radius: 14px; background: #fff; }
.bms-act__facts small { display: block; font-size: 12px; color: var(--bms-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.bms-act__facts b { display: block; font-size: 15px; font-weight: 600; color: var(--bms-ink); line-height: 1.35; }
.bms-act__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bms-bg); display: grid; place-items: center; }
.bms-act__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--bms-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bms-act__facts li.is-good { border-color: #bfe3cf; background: #f4fbf7; }
.bms-act__facts li.is-good .bms-act__icon { background: #e1f5ea; }
.bms-act__facts li.is-good svg { stroke: var(--bms-success); }

/* on-this-page tabs stick under the site header */
.bms-act__tabs {
    position: sticky; top: 79px; z-index: 20; display: flex; gap: 4px; margin: 0 0 8px; padding: 6px;
    background: rgba(255, 255, 255, .96); border: 1px solid var(--bms-line); border-radius: 14px; overflow-x: auto; scrollbar-width: none;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.bms-act__tabs::-webkit-scrollbar { display: none; }
.bms-act__tabs a { flex: none; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--bms-ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.bms-act__tabs a:hover { background: var(--bms-bg); color: var(--bms-ink); }
.bms-act__tabs a.is-active { background: var(--bms-ink); color: #fff; }

.bms-act__section { padding-top: 28px; scroll-margin-top: 150px; }
.bms-act__section + .bms-act__section { border-top: 1px solid var(--bms-line); margin-top: 30px; }
.bms-act__section .bms-h2 { margin-top: 0; }
.bms-act__accordion details {
    padding: 0 4px;
    display: inline;
}

/* reviews */
.bms-act__score { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 18px; border-radius: 14px; background: var(--bms-bg); }
.bms-act__score > b { font-family: var(--bms-display); font-size: 44px; line-height: 1; color: var(--bms-ink); }
.bms-act__score small { display: block; color: var(--bms-muted); font-size: 14px; }
.bms-act__stars { color: var(--bms-ticket-dark); letter-spacing: 2px; font-size: 17px; }
.bms-act__reviews { display: grid; gap: 14px; }
.bms-act__review { padding: 20px 22px; border: 1px solid var(--bms-line); border-radius: 14px; }
.bms-act__review header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bms-act__review header > span:nth-child(2) { flex: 1; min-width: 0; }
.bms-act__review header b { display: block; color: var(--bms-ink); }
.bms-act__review header small { font-size: 13px; }
.bms-act__review h3 { font-size: 16px; margin: 0 0 6px; }
.bms-act__review p { margin: 0; }
.bms-act__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bms-brand-soft); color: var(--bms-brand-dark); font-weight: 700; }
.bms-act__reply { margin-top: 12px; padding: 12px 14px; border-inline-start: 3px solid var(--bms-brand); background: var(--bms-bg); border-radius: 8px; font-size: 14px; }

/* booking card */
.bms-act .bms-book { top: 100px; }
.bms-act .bms-book .bms-card { border: 1px solid var(--bms-line); box-shadow: var(--bms-shadow-lg); }
.bms-act .bms-book__price b { font-size: 36px; }

/* mobile booking bar */
.bms-act__bar { display: none; }
@media (max-width: 960px) {
    .bms-act__bar {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 950; display: flex; align-items: center; justify-content: space-between; gap: 16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--bms-line);
        box-shadow: 0 -8px 24px rgba(20, 32, 59, .1); transform: translateY(110%); transition: transform .25s ease;
    }
    .bms-act__bar.is-shown { transform: none; }
    .bms-act__bar small { font-size: 12px; color: var(--bms-muted); }
    .bms-act__bar b { display: block; font-size: 20px; color: var(--bms-ink); line-height: 1.15; }
    .bms-act__bar .bms-btn { flex: none; }
    .bms-act { padding-bottom: 110px; }
    .bms-act .bms-book { position: static; }
}
@media (max-width: 640px) {
    .bms-act { padding-top: 16px; }
    .bms-act__crumbs { display: none; }
    .bms-act__head { margin-bottom: 16px; }
    .bms-act__gallery { margin-inline: -15px; }
    .bms-act__gallery .bmsg-car__viewport { border-radius: 0; box-shadow: none; }
    .bms-act__gallery .bmsg-car__thumbs { padding-inline: 15px; }
    .bms-act__facts { grid-template-columns: 1fr; }
    .bms-act__tabs { top: 70px; }
}
@media (prefers-reduced-motion: reduce) { .bms-act__bar { transition: none; } }

/* highlights and included / not included lists */
.bms-act__highlights, .bms-act__incl, .bms-act__incl > div, .bms-act__list, .bms-act__list li, .bms-act__highlights h3, .bms-act__incl h3, .bms-act__guestphotos h3 { float: none; width: auto; }
.bms-act__list, .bms-act__incl, .bms-act__guestphotos, .bms-act__revphotos { clear: both; }
.bms-act__highlights { padding: 18px 20px; margin: 0 0 22px; border-radius: 14px; background: var(--bms-bg); }
.bms-act__highlights h3, .bms-act__incl h3 { font-size: 17px; margin: 0 0 10px; }
.bms-act__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bms-act__list li { position: relative; padding-inline-start: 28px; line-height: 1.5; color: var(--bms-ink-2); }
.bms-act__list li::before { content: "\2605"; position: absolute; inset-inline-start: 0; top: 0; color: var(--bms-ticket-dark); font-weight: 700; }
.bms-act__list.is-yes li::before { content: "\2713"; color: var(--bms-success); }
.bms-act__list.is-no li::before { content: "\2715"; color: var(--bms-danger); }
.bms-act__incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--bms-line); }
@media (max-width: 640px) { .bms-act__incl { grid-template-columns: 1fr; } }

/* traveller photos in reviews */
.bms-act__guestphotos, .bms-act__guestgrid, .bms-act__revphotos { float: none; width: auto; }
.bms-act__guestphotos { margin: 0 0 18px; }
.bms-act__guestphotos h3 { font-size: 17px; margin: 0 0 10px; }
.bms-act__guestgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bms-act__guestgrid button, .bms-act__revphotos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--bms-bg); }
.bms-act__guestgrid img, .bms-act__revphotos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.bms-act__guestgrid button:hover img, .bms-act__revphotos button:hover img { transform: scale(1.06); }
.bms-act__revphotos { display: flex; gap: 8px; margin-top: 10px; }
.bms-act__revphotos button { width: 72px; }
