/**
 * "Classic Layout" trip template.
 *
 * Loads alongside new-itinerary.css (not instead of it) - that file already
 * carries the shared layout/typography/header/footer rules (.hero, .subnav,
 * .layout, .band, .btn*, .modal, .quotes, .guide, .trust, .profile-card,
 * .seasons/.pane, etc.) that both templates use identically. This file only
 * adds the section styles that are unique to the classic design, using the
 * original mockup's class names - the redesign template renamed away from
 * all of these, so there is no collision when both stylesheets are enqueued.
 */

/* ---------- copy: rich text from the WP editor (overview + guide bio) ---------- */
.copy h2,
.copy h3,
.copy h4 {
    margin-top: 1.4em;
    margin-bottom: .5em
}

.copy h2:first-child,
.copy h3:first-child,
.copy h4:first-child {
    margin-top: 0
}

.copy h2 {
    font-size: clamp(1.4rem, 2.1vw, 1.85rem)
}

.copy h3 {
    font-size: 1.24rem
}

.copy h4 {
    font-size: 1rem
}

.copy p {
    color: var(--ink-2);
    font-size: 1rem;
    margin: 0 0 1.1em
}

.copy ul,
.copy ol {
    margin: 0 0 1.1em;
    padding-left: 1.3em;
    color: var(--ink-2)
}

.copy li {
    font-size: 1rem;
    margin-bottom: .4em
}

.copy li:last-child {
    margin-bottom: 0
}

.copy strong,
.copy b {
    color: var(--ink);
    font-weight: 700
}

.copy a {
    color: var(--primary)
}

.copy>*:last-child {
    margin-bottom: 0
}

/* ---------- hero: full-width banner, edge to edge ---------- */
.hero.has-banner {
    padding: 0;
    border-bottom: 0
}

.hero-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--line-soft)
}

.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

/* Shorter on narrower screens so it stays in proportion. */
@media (max-width:1080px) {
    .hero-banner {
        height: 520px
    }
}

@media (max-width:760px) {
    .hero-banner {
        height: 340px
    }
}

@media (max-width:480px) {
    .hero-banner {
        height: 260px
    }
}

/* ---------- title block + sidebar: two columns under the banner ---------- */
.layout--inline-nav {
    grid-template-areas:
        "head rail"
        "main rail";
    /* keep the title row tight - the tall sidebar's extra height goes to the content row */
    grid-template-rows: auto 1fr;
    row-gap: 0
}

.layout--inline-nav > .trip-head {
    grid-area: head
}

.layout--inline-nav > main {
    grid-area: main;
    min-width: 0
}

.layout--inline-nav > .rail {
    grid-area: rail
}

.trip-head {
    padding-bottom: 26px
}

.trip-head .crumbs {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px
}

.trip-head .crumbs i {
    color: var(--ink-3)
}

.trip-head .crumbs span {
    color: var(--ink-2);
    font-weight: 600
}

.trip-head h1 {
    font-size: clamp(2.1rem, 4.4vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 12px
}

.trip-head .kicker {
    color: var(--ink-2);
    font-size: 1.05rem;
    max-width: 66ch;
    margin: 0
}

.rail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    color: var(--ink-2)
}

.rail-share span {
    flex-shrink: 0
}

.hero-share {
    margin-top: 0
}

/* ShareThis centres its buttons by default. */
.hero-share,
.hero-share > div {
    text-align: left !important
}

/* ---------- photo gallery section (below the guides) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--line-soft)
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease
}

.gallery-item:hover img {
    transform: scale(1.05)
}

.gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 12, 18, .55);
    color: #fff;
    font-size: .95rem;
    font-weight: 600
}

@media (max-width:760px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px
    }
}

/* ---------- trip facts (grid of icon/label/value cells) ---------- */
.tf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden
}

.cell {
    background: var(--card);
    padding: 18px 20px 20px;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0 12px;
    align-items: start
}

.ci {
    padding-top: 2px
}

.ci svg,
.ci img {
    width: 22px;
    height: 22px;
    display: block
}

.cx {
    min-width: 0
}

.cell .k {
    font-size: .77rem;
    color: var(--ink-3);
    margin-bottom: 3px
}

.cell .v {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.15
}

.cell .v em {
    font-style: normal;
    font-size: 1.04rem
}

/* ---------- season / note panel ---------- */
.sgpanel {
    margin-top: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    padding: 22px 26px
}

.sgpanel h3 {
    font-size: 1.08rem;
    margin-bottom: 8px
}

.sgpanel p {
    font-size: .95rem;
    color: var(--ink-2);
    max-width: 74ch
}

.sgpanel ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 26px;
    font-size: .9rem;
    color: var(--ink-2)
}

.sgpanel li {
    padding-left: 24px;
    position: relative
}

.sgpanel li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700
}

/* ---------- highlights ---------- */
.hl {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft)
}

.hl .alt {
    font-family: var(--display);
    font-size: 1.02rem;
    color: var(--primary);
    min-width: 66px;
    padding-top: 1px
}

.hl h4 {
    font-family: var(--body);
    font-weight: 600;
    font-size: .99rem;
    margin-bottom: 2px
}

.hl p {
    font-size: .92rem;
    color: var(--ink-2);
    margin: 0
}

/* ---------- brief (tour-in-brief) itinerary list ---------- */
.brief {
    margin-top: 26px;
    border-top: 1px solid var(--line)
}

.brief-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .95rem;
    align-items: baseline
}

.brief-row .d {
    color: var(--ink-3);
    font-size: .85rem
}

.brief-row .a {
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    font-size: .88rem
}

.brief-row.peak {
    background: linear-gradient(90deg, rgba(238, 188, 29, .22), transparent 72%)
}

.brief-row.peak .t {
    font-weight: 600
}

/* ---------- detailed itinerary accordion ---------- */
.acc-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 16px;
    flex-wrap: wrap
}

.linkbtn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px
}

.day-n {
    font-family: var(--display);
    color: var(--ink-3);
    font-size: .95rem
}

.day-t {
    font-weight: 600;
    font-size: 1rem
}

.chev {
    width: 14px;
    height: 14px;
    border-right: 1.8px solid var(--ink-3);
    border-bottom: 1.8px solid var(--ink-3);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform .22s ease
}

.open .chev {
    transform: rotate(225deg) translate(-2px, -2px)
}

/* ---------- section-level accordion (dates & prices, inc/exc, route, guides, reviews) ---------- */
.sec-acc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 16px 20px
}

.sec-acc h2 {
    margin: 0;
    font-size: 24px;
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.3
}

.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    cursor: pointer
}

.sec-head:hover {
    color: var(--primary)
}

.sec-head .chev {
    flex: none
}

.sec-head:hover .chev {
    border-color: var(--primary)
}

.sec-body {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line)
}

.sec-acc.open .sec-body {
    display: block
}

/* ---------- included / not included ---------- */
.inc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px
}

.inc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 24px 26px
}

.inc h3 {
    font-size: 1.06rem;
    margin-bottom: 14px
}

.inc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .93rem;
    color: var(--ink-2)
}

.inc li {
    padding: 7px 0 7px 26px;
    position: relative;
    border-bottom: 1px solid var(--line-soft)
}

.inc li:last-child {
    border-bottom: 0
}

.inc li::before {
    position: absolute;
    left: 0;
    top: 7px;
    font-size: .9rem
}

.inc.yes li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700
}

.inc.no li::before {
    content: "–";
    color: var(--ink-3);
    font-weight: 700
}

/* ---------- departures ---------- */
.dep-intro {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    padding: 18px 22px;
    margin-top: 22px
}

.dep-intro p {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-2)
}

.dep-intro b {
    color: var(--ink)
}

.dep-table {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--card)
}

.dep-th {
    display: grid;
    grid-template-columns: 1.5fr 1.15fr .95fr .9fr 40px;
    gap: 18px;
    padding: 12px 22px;
    background: #F3EDEA;
    font-size: .81rem;
    color: var(--ink-2);
    font-weight: 600;
    border-bottom: 1px solid var(--line)
}

.dep {
    border-bottom: 1px solid var(--line-soft)
}

.dep:last-child {
    border-bottom: 0
}

.dep-row {
    display: grid;
    grid-template-columns: 1.5fr 1.15fr .95fr .9fr 40px;
    gap: 18px;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font: inherit;
    padding: 18px 22px;
    cursor: pointer
}

.dep-row:hover {
    background: #FCFAF9
}

.dep-date {
    font-family: var(--display);
    font-size: 1.08rem
}

.dep-date small {
    display: block;
    font-family: var(--body);
    font-size: .82rem;
    color: var(--ink-3);
    margin-top: 2px
}

.dep-variant {
    font-size: .9rem;
    color: var(--ink-2)
}

.dep-variant b {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: .93rem
}

.dep-price {
    font-family: var(--display);
    font-size: 1.08rem;
    font-variant-numeric: tabular-nums
}

.dep-price small {
    display: block;
    font-family: var(--body);
    font-size: .8rem;
    color: var(--ink-3)
}

.tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px
}

.tag.open {
    background: #F3E7E9;
    color: #791E30
}

.tag.few {
    background: #FBF0CE;
    color: #8A6A06
}

.tag.full {
    background: #F0EBE9;
    color: var(--ink-3)
}

.dep-body {
    display: none;
    padding: 4px 22px 26px 22px;
    background: #FCFAF9;
    border-top: 1px solid var(--line-soft)
}

.dep.open .dep-body {
    display: block
}

.dep.open .dep-row {
    background: #FCFAF9
}

.dep-body h4 {
    font-family: var(--body);
    font-size: .93rem;
    font-weight: 600;
    margin: 16px 0 8px
}

.dep-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line)
}

.privatebox {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 26px 28px;
    margin-top: 20px
}

.privatebox h3 {
    font-size: 1.15rem;
    margin-bottom: 10px
}

.privatebox p {
    font-size: .96rem;
    color: var(--ink-2);
    max-width: 70ch
}

/* ---------- essential information accordion ---------- */
.ei {
    margin-top: 24px;
    border-top: 1px solid var(--line)
}

.eirow {
    border-bottom: 1px solid var(--line)
}

.eihead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font: inherit;
    padding: 17px 2px;
    cursor: pointer
}

.eihead:hover .eit {
    color: var(--primary)
}

.eit {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.3
}

.eihead .chev {
    flex: none
}

.eibody {
    display: none;
    padding: 0 2px 24px;
    max-width: 76ch
}

.eirow.open .eibody {
    display: block
}

.eibody p {
    font-size: .96rem;
    color: var(--ink-2);
    margin: 0 0 14px
}

/* Extra-fields titles read better in the body face than the shared
   FAQ display font, so scope the override to just this section. */
#extra .eit {
    font-family: var(--body)
}

.eibody p:last-child {
    margin-bottom: 0
}

.eibody ul {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: .96rem;
    color: var(--ink-2)
}

.eibody li {
    margin-bottom: 7px
}

.eibody b {
    color: var(--ink)
}

/* ---------- reviewer (who left the quote) ---------- */
.quote .who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft)
}

.quote .who img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--line-soft)
}

.quote .who b {
    font-size: .93rem;
    display: block;
    font-weight: 600
}

.quote .who span {
    font-size: .84rem;
    color: var(--ink-3)
}

/* ---------- related trips: light list of title + days / trip type ---------- */
.band:has(#related) {
    padding-bottom: 44px
}

.band #related {
    padding-top: 34px
}

#related h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink-2)
}

#related .related-list {
    margin-top: 10px;
    padding: 0;
    list-style: none
}

#related .related-list li {
    display: inline-block;
    margin: 0 28px 4px 0;
    vertical-align: top
}

#related .related-list a {
    display: inline-block;
    padding: 6px 0;
    color: inherit;
    text-decoration: none
}

#related .related-list b {
    font-family: var(--body);
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--ink)
}

#related .related-list span {
    font-size: .85rem;
    color: var(--ink-3);
    white-space: nowrap
}

#related .related-list a:hover b {
    color: var(--primary)
}

/* ---------- sidebar (price card + trip facts + map) ---------- */
.rail {
    position: sticky;
    top: 15px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pricecard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.pc-top {
    padding: 22px 24px 20px;
    border-bottom: 1px solid var(--line-soft)
}

.pc-from {
    font-size: .84rem;
    color: var(--ink-3)
}

.pc-price {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.05rem;
    line-height: 1.1;
    margin: 2px 0 6px;
    color: var(--primary)
}

.pc-note {
    font-size: .84rem;
    color: var(--ink-2)
}

.pc-top .smallgroup {
    margin-top: 13px;
    font-size: .78rem;
    padding: 5px 12px 5px 9px
}

.pc-top .smallgroup svg {
    width: 15px;
    height: 15px
}

.pc-acts {
    padding: 18px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.pc-meta {
    font-size: .82rem;
    color: var(--ink-3);
    text-align: center;
    margin-top: 4px
}

.railfacts {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden
}

.railhead {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: #FBF8F6;
    font-family: var(--body);
    font-weight: 700;
    font-size: .79rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-2)
}

.railfacts .tf {
    display: block;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent
}

.railfacts .cell {
    padding: 11px 18px;
    grid-template-columns: 24px 1fr;
    gap: 0 11px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft)
}

.railfacts .cell:last-child {
    border-bottom: 0
}

.railfacts .ci img {
    width: 20px;
    height: 20px
}

.railfacts .cell .k {
    font-size: .74rem;
    margin-bottom: 1px
}

.railfacts .cell .v {
    font-size: 1.04rem
}

.railfacts .cell .v em {
    font-size: .95rem
}

.railmap {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--card)
}

.railmap img {
    width: 100%
}

.railmap .cap {
    padding: 10px 16px;
    font-size: .82rem;
    color: var(--ink-3);
    border-top: 1px solid var(--line-soft)
}

/* ---------- mobile bar ---------- */
.mobar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px -14px rgba(24, 35, 43, .4)
}

.mobar .r {
    display: flex;
    align-items: center;
    gap: 12px
}

.mobar .p {
    flex: 1;
    font-size: .82rem;
    color: var(--ink-3);
    line-height: 1.25
}

.mobar .p b {
    display: block;
    font-family: var(--display);
    font-size: 1.2rem;
    color: var(--ink)
}

/* ---------- responsive ---------- */
@media (max-width:1080px) {
    .sgpanel ul {
        grid-template-columns: 1fr 1fr
    }

    .rail {
        order: -1;
        position: static;
        padding-top: 26px;
        gap: 0
    }

    .layout--inline-nav {
        grid-template-areas:
            "head"
            "rail"
            "main";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto
    }

    .layout--inline-nav > .rail {
        padding-top: 0;
        padding-bottom: 26px
    }

    .rail-share {
        padding-bottom: 16px
    }

    .pricecard,
    .railmap {
        display: none
    }

    .railfacts {
        width: 100%
    }

    .railfacts .tf {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .railfacts .cell {
        border-right: 1px solid var(--line-soft)
    }

    .railfacts .cell:nth-child(2n) {
        border-right: 0
    }

    .railfacts .cell.cell-full {
        grid-column: 1 / -1;
        border-right: 0
    }

    .mobar {
        display: block
    }

    .inc-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }
}

@media (max-width:980px) {

    .dep-th,
    .dep-row {
        grid-template-columns: 1.4fr 1.1fr .9fr .9fr;
        gap: 14px
    }

    .dep-th div:last-child,
    .dep-row .chev {
        display: none
    }
}

@media (max-width:760px) {
    .sec-acc {
        padding: 14px 16px
    }

    .sgpanel {
        padding: 18px 20px
    }

    .sgpanel ul {
        grid-template-columns: 1fr
    }

    .cell {
        padding: 15px 17px 17px;
        grid-template-columns: 24px 1fr;
        gap: 0 11px
    }

    .railfacts .tf {
        grid-template-columns: 1fr
    }

    .railfacts .cell {
        border-right: 0
    }

    .inc {
        padding: 20px 20px
    }

    .acc-tools {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .brief-row {
        grid-template-columns: 52px 1fr;
        gap: 10px;
        padding: 10px 0
    }

    .brief-row .a {
        grid-column: 2;
        font-size: .82rem
    }

    .dep-th {
        display: none
    }

    .dep-row {
        grid-template-columns: 1fr auto;
        gap: 6px 14px;
        padding: 15px 15px
    }

    .dep-row .dep-variant {
        grid-column: 1/-1;
        order: 3
    }

    .dep-date {
        font-size: 1rem
    }

    .dep-body {
        padding: 4px 15px 22px
    }

    .dep-actions {
        gap: 9px
    }

    .dep-actions .btn {
        flex: 1 1 100%;
        justify-content: center
    }

    .privatebox {
        padding: 20px
    }

    .trip .tb {
        padding: 14px 16px 16px
    }
}

@media (max-width:520px) {
    .hl {
        flex-direction: column;
        gap: 3px
    }

    .hl .alt {
        min-width: 0
    }

    .mobar .p {
        font-size: .76rem
    }

    .mobar .p b {
        font-size: 1rem
    }

    .mobar .btn {
        padding: 10px 14px;
        font-size: .86rem
    }
}

/* ---------- dates & prices: one card per departure ---------- */
.depcards {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.depcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px
}

.depcard-main {
    padding: 20px 22px
}

.depcard-title {
    font-family: var(--body);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 16px
}

.depcard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px
}

.depcard-dates {
    display: flex;
    align-items: flex-end;
    gap: 22px
}

.depcard-to {
    color: var(--ink-2);
    padding-bottom: 1px
}

.depcard-k {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 5px
}

.depcard-grid b {
    font-size: 1rem;
    white-space: nowrap
}

.depcard-v {
    font-size: .95rem
}

.depcard-note {
    margin: 18px 0 0;
    font-size: .86rem;
    color: var(--ink-2)
}

.depcard-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px 22px;
    border-left: 1px solid var(--line-soft)
}

.depcard-price {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink)
}

.depcard-price small {
    font-size: .8rem;
    font-weight: 400;
    color: var(--ink-3)
}




.depcard-ask {
    align-self: center;
    font-size: .85rem;
    color: var(--ink-2)
}

.depcard.is-full {
    background: var(--line-soft)
}

/* per-departure "Cost breakdown" dropdown, full card width */
.depcard-more {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft)
}

.depcard-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 22px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    list-style: none
}

.depcard-more summary::-webkit-details-marker {
    display: none
}

.depcard-more .chev {
    width: 10px;
    height: 10px;
    border-color: var(--primary);
    transform: rotate(45deg) translate(-2px, -2px)
}

.depcard-more[open] .chev {
    transform: rotate(225deg) translate(-2px, -2px)
}

.depcard-more-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px 40px;
    padding: 4px 22px 22px
}

.depcard-more-body h4 {
    font-family: var(--body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 10px
}

.depcard-diffs {
    margin: 0;
    padding-left: 18px;
    font-size: .9rem;
    color: var(--ink-2)
}

.depcard-diffs li + li {
    margin-top: 8px
}

.depcard-diffs b {
    color: var(--ink)
}

.depcard-groups {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem
}

.depcard-groups th,
.depcard-groups td {
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: left
}

.depcard-groups th {
    font-size: .74rem;
    font-weight: 700;
    color: var(--ink-3)
}

.depcard-groups th:last-child,
.depcard-groups td:last-child {
    text-align: right;
    font-weight: 700;
    white-space: nowrap
}

@media (max-width:760px) {
    .depcard-more summary {
        padding: 13px 18px
    }

    .depcard-more-body {
        grid-template-columns: 1fr;
        padding: 4px 18px 18px
    }
}

@media (max-width:760px) {
    .depcard {
        grid-template-columns: 1fr
    }

    .depcard-main {
        padding: 18px 18px 14px
    }

    .depcard-side {
        padding: 16px 18px 18px;
        border-left: 0;
        border-top: 1px solid var(--line-soft)
    }

    .depcard-grid {
        gap: 14px 28px
    }
}

/* ".open .chev" flips every chevron inside an open section; a closed row
   inside an open "Good to know" keeps its own closed chevron. */
.sec-acc.open .eirow:not(.open) .chev {
    transform: rotate(45deg) translate(-3px, -3px)
}

/* A departure's "Price details" (trip admin), full width above the differences and group prices */
.depcard-pricedetails {
    grid-column: 1 / -1;
    font-size: .92rem;
    color: var(--ink-2)
}

.depcard-pricedetails p {
    margin: 0 0 8px
}

.depcard-pricedetails p:last-child {
    margin-bottom: 0
}
