.tour-section > h1 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.tour-subheader {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: #1e293b;
}

.tour-subheader a {
    color: #1e293b;
    text-decoration: underline;
}

.tour-subheader-region,
.tour-subheader-duration,
.tour-subheader-code {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.tour-subheader-code {
    font-size: 0.75rem;
}

.tour-subheader-region svg,
.tour-subheader-duration svg,
.tour-subheader-code svg {
    flex-shrink: 0;
}

.tour-subheader-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.tour-subheader-star {
    color: #f59e0b;
    font-size: 1.25rem;
}

.tour-subheader-dot {
    color: #94a3b8;
}

.tour-subheader-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* flex-basis:100% forces this onto its own line within
       .tour-subheader's own wrapping flex row — region/duration/rating
       stay together on the first line, Share/Add to Favorites always get
       a second line of their own instead of sharing space with them
       (confirmed with the user, 2026-07-22). margin-left:auto (the old
       same-line-but-pushed-right approach) is gone along with that —
       justify-content here takes over keeping the buttons right-aligned
       on their own line. */
    flex-basis: 100%;
    justify-content: flex-end;
    margin-top: 0.375rem;
}

.tour-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
}

.favorite-like-subheader {
    gap: 0.375rem;
    font-size: inherit;
    font-weight: 600;
}

/* tours/index.blade.php's "All Tours" listing header — unrelated to the
   tour detail page's h1 above, which no longer uses this class. */
.tour-hero {
    padding: 3rem 1.5rem;
    text-align: center;
    background: #f8fafc;
}

.tour-hero h1 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.tour-search {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tour-search input {
    width: 100%;
    max-width: 24rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin: 0 0 1.5rem;
}

.quick-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.quick-fact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
}

.quick-fact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.quick-fact-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.quick-fact-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.125rem;
}

@media (max-width: 40rem) {
    .quick-facts {
        grid-template-columns: 1fr;
    }
}

.tour-section {
    max-width: 83.75rem;
    margin: 0 auto;
    /* Matches .tour-grid's own card-to-card gap (tour-grid.css) instead
       of a bigger, unrelated value — same breathing room the user is
       already used to seeing between two tour cards. */
    padding: 1.25rem;
}

@media (max-width: 40rem) {
    .tour-section {
        /* Matches .tour-grid's mobile gap (tour-grid.css). */
        padding: 0.75rem;
    }
}

.tour-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0;
    /* padding, not margin — margin-top here would collapse into the
       previous sibling's own bottom margin (e.g. the itinerary's last
       <p>) instead of adding visible space, since nothing separates them
       anymore now that the itinerary's wrapping .card div is gone. */
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.tour-section p {
    margin-top: 0;
}

.tour-description h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.tour-description ul {
    margin-top: 0;
    padding-left: 1.25rem;
}

.tour-description li {
    margin-bottom: 0.25rem;
}

/* Whole-page two-column layout (restored per the user, 2026-07-18): main
   content (gallery through Starting Price) on the left, the booking form
   pinned top-right on the second column — NOT sticky (the user explicitly
   rejected a sticky/fixed form earlier). .tour-below (FAQs, Meeting Point,
   Regions/Categories) is a third grid item spanning both columns, always
   full width. Collapses to a single column below 56rem; because of the
   source order in tours/show.blade.php (tour-main, then tour-sidebar,
   then tour-below), the mobile stacking order is exactly Starting Price
   -> booking form -> FAQs, as requested. */
.tour-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.tour-sidebar {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

@media (min-width: 56rem) {
    .tour-layout {
        grid-template-columns: 1fr 22rem;
        column-gap: 0.75rem;
    }

    .tour-below {
        grid-column: 1 / -1;
    }
}

/* Asymmetric collage (a big lead photo + smaller supporting shots) instead
   of a same-size horizontal filmstrip — reads as one cohesive photo instead
   of a strip of thumbnails to scroll through. Each .gallery-N variant is a
   distinct hand-placed layout rather than one generic auto-grid, since a
   generic grid can't produce the "one big + stacked smaller" arrangement.
   Below 48rem, every variant collapses to the same simple scroll — the
   asymmetric grid only reads well with room to breathe. */
.gallery {
    display: grid;
    gap: 0.375rem;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 100%;
}

.gallery-item a {
    display: block;
    height: 100%;
    cursor: pointer;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Not the default 50% (dead center) — these are typically wide
       scenic shots (sky/mountains filling the top third) with the
       actual subject (people, animals, the thing being toured) lower
       in the frame. A plain center crop, on top of the square 900x900
       server-side crop this src already went through, kept losing the
       subject to empty sky above while creeping toward the bottom edge
       (where some source photos carry a watermark strip). This biases
       the visible window down toward the subject without going all the
       way to the very bottom. */
    object-position: center 80%;
    display: block;
}

.gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 23 42 / 0.55);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    /* Sits visually on top of the tile's own <a> (later in the DOM), but
       shouldn't intercept the click — let it fall through to the link
       underneath so the badge opens the lightbox too, not just the photo
       around it. */
    pointer-events: none;
}

@media (min-width: 48rem) {
    .gallery {
        height: 26rem;
    }

    /* A single photo doesn't need to share the same 26rem budget the
       multi-tile grids split across several narrower columns — at full
       content width that ends up a very wide, short crop (~2:1+),
       aggressively cutting into whatever isn't dead-center in the
       source photo. Taller here gives object-fit: cover a much more
       forgiving box to crop from. */
    .gallery-1 { grid-template-columns: 1fr; height: 34rem; }

    .gallery-2 { grid-template-columns: 1fr 1fr; }

    .gallery-3 {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .gallery-3 .gallery-item:nth-child(1) { grid-row: 1 / 3; }

    .gallery-4,
    .gallery-5 {
        grid-template-columns: 2.4fr 1.8fr 1.4fr;
        grid-template-rows: 1fr 1fr;
    }
    .gallery-4 .gallery-item:nth-child(1),
    .gallery-5 .gallery-item:nth-child(1) { grid-row: 1 / 3; }
    .gallery-4 .gallery-item:nth-child(2),
    .gallery-5 .gallery-item:nth-child(2) { grid-row: 1 / 3; }
}

@media (max-width: 47.9375rem) {
    .gallery {
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        overflow-x: auto;
        height: 14rem;
    }
}

/* "From" on its own small line, the actual amount(s) below — same
   top-label-then-amount shape as the tour card's own price (see
   tour-grid.css's .tour-price-label), not a page-specific one-off. No
   "per person" note anymore — the starting price is a blend of
   per-person and flat/group-rate cost items depending on the tour (see
   TourPricingCalculator on the katalay.org side), so that label was
   often just wrong; nothing here claims a pricing unit until there's a
   real per-tour signal to base it on. */
.price-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    /* #64748b (~4.35:1) failed WCAG AA against this row's #f1f5f9
       background — #475569 (same gray the nav links already use) clears
       4.5:1 there. */
    color: #475569;
    margin-bottom: 0.125rem;
}

.price-amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}

.price-amount {
    font-weight: 700;
    font-size: 1.5rem;
}

.price-amount-original {
    color: #94a3b8;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: line-through;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.875rem 1.125rem;
    /* Was desktop-only (inside the 56rem layout media query) — moved
       here so it's sticky at every width, mobile included (confirmed
       with the user, 2026-07-22). */
    position: sticky;
    bottom: 0;
}

ul.plain {
    margin-top: 0;
    padding-left: 1.25rem;
}

.lang-flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0;
}

.lang-flag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-flag {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    max-width: 1.25rem;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.check-list,
.cross-list {
    list-style: none;
    margin-top: 0;
    padding: 0;
}

.check-list li,
.cross-list li {
    position: relative;
    padding-left: 1.5rem;
}

.check-list li:not(.empty)::before,
.cross-list li:not(.empty)::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.check-list li:not(.empty)::before {
    content: '\2713';
    color: #16a34a;
}

.cross-list li:not(.empty)::before {
    content: '\2715';
    color: #dc2626;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.two-col > div:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 40rem) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.day-title {
    /* Matches .tour-section h2's own size — this heading (whether a
       package tour's "Day N" or an OCTO tour's "Practical Information")
       is the container for the h2 sub-section headings inside its own
       content, so it needs to read at least as prominent as they do, not
       smaller. */
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
}

.faq-item {
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item .faq-answer {
    margin-top: 0.75rem;
    color: #334155;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 40rem) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }
}

.reviews-overview-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.reviews-average {
    font-size: 2rem;
    font-weight: 700;
}

.reviews-average-max {
    font-size: 1.125rem;
    font-weight: 400;
    color: #64748b;
}

.reviews-stars {
    color: #f59e0b;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.reviews-count {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.reviews-sort,
.reviews-filter {
    position: relative;
    display: flex;
}

.reviews-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    padding: 0.375rem 0.875rem;
}

.reviews-filter-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
}

.reviews-filter-icon svg {
    width: 100%;
    height: 100%;
}

.reviews-filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    padding: 0.75rem;
    z-index: 5;
    min-width: 14rem;
}

.reviews-filter-heading {
    font-weight: 700;
    padding: 0 0.625rem 0.5rem;
}

.reviews-filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.reviews-filter-option:hover {
    background: #f8fafc;
}

.reviews-filter-option input {
    width: auto;
    accent-color: #2563eb;
}

.reviews-filter-option:first-of-type {
    color: #94a3b8;
}

.reviews-filter-stars {
    margin-left: auto;
    color: #f59e0b;
    letter-spacing: 0.05em;
}

.reviews-empty {
    color: #64748b;
    font-size: 0.9375rem;
}

.reviews-show-more {
    display: block;
    margin: 1.5rem auto 0;
    border: none;
    cursor: pointer;
}

.available-days-note {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.available-days-times {
    list-style: none;
    margin-top: 0.75rem;
    padding: 0;
    color: #334155;
    font-size: 0.9375rem;
}

.available-days-times li {
    position: relative;
    padding-left: 1.5rem;
}

.available-days-times li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.available-day-active::before {
    content: '\2713';
    color: #16a34a;
}

.available-day-inactive::before {
    content: '\2715';
    color: #dc2626;
}

.available-day-inactive {
    color: #94a3b8;
    text-decoration: line-through;
}

.reviews-sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
    padding: 0;
}

.reviews-sort-current {
    font-weight: 700;
    text-decoration: underline;
}

.reviews-sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    padding: 0.5rem;
    z-index: 5;
    min-width: 12rem;
}

.reviews-sort-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.reviews-sort-option:hover {
    background: #f8fafc;
}

.reviews-sort-option input {
    width: auto;
    accent-color: #2563eb;
}

.review-list {
    display: flex;
    flex-direction: column;
}

.review-card + .review-card {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-flag {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-author {
    font-weight: 600;
    font-size: 0.9375rem;
}

.review-header .review-stars {
    color: #f59e0b;
    font-size: 1.125rem;
    margin-left: auto;
}

.review-date {
    color: #94a3b8;
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}

.review-text {
    margin-top: 0.5rem;
    color: #334155;
    font-size: 0.9375rem;
}

a.back {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
}
