/* TripWays plugin CSS – tour content only. Do NOT style header/footer (theme responsibility). */

/* Why we love it? – flat, minimal, distinct from other boxes */
.tripways-why-we-love-it {
    margin: 24px 0;
    padding: 18px 20px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.tripways-why-we-love-it__quote {
    position: absolute;
    top: -8px;
    left: 14px;
    width: clamp(4.75rem, 8.5vw, 7.25rem);
    height: clamp(4.75rem, 8.5vw, 7.25rem);
    color: rgba(255, 0, 0, 0.088);
    pointer-events: none;
    z-index: 0;
}

.tripways-why-we-love-it__icon {
    display: block;
    width: 100%;
    height: 100%;
}

.tripways-why-we-love-it__heading {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    position: relative;
    z-index: 1;
}

.tripways-why-we-love-it__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .tripways-why-we-love-it {
        padding: 16px 16px 16px 18px;
    }

    .tripways-why-we-love-it__quote {
        top: -14px;
        left: 6px;
        width: clamp(5.5rem, 20vw, 7.5rem);
        height: clamp(5.5rem, 20vw, 7.5rem);
    }
}

/* Tour description – truncated with Read more */
.tripways-tour-description {
    position: relative;
}

.tripways-tour-description__inner {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.tripways-tour-description.is-expanded .tripways-tour-description__inner {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.tripways-tour-description__toggle {
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--accent, #0ea5e9);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.tripways-tour-description__toggle:hover {
    color: #0284c7;
}

/* Tour shortcode containers */
.inclusions-list,
.exclusions-list,
.meeting-pickup,
.what-to-bring,
.know-before-you-go,
.please-note,
.cancellation-policy {
    margin: 15px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Title wrapper styles */
.title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Heading styles */
.inclusions-list h2,
.exclusions-list h2,
.meeting-pickup h2,
.what-to-bring h2,
.know-before-you-go h2,
.please-note h2,
.cancellation-policy h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3338;
    line-height: 1.2;
}

/* Icon styles */
.inclusions-list .title-wrapper i { color: #28a745; font-size: 1.2rem; margin-right: 0.5rem; }
.exclusions-list .title-wrapper i,
.cancellation-policy .title-wrapper i { color: #dc3545; font-size: 1.2rem; margin-right: 0.5rem; }
.meeting-pickup .title-wrapper i { color: #007bff; font-size: 1.2rem; margin-right: 0.5rem; }
.what-to-bring .title-wrapper i { color: #6c757d; font-size: 1.2rem; margin-right: 0.5rem; }
.know-before-you-go .title-wrapper i { color: #17a2b8; font-size: 1.2rem; margin-right: 0.5rem; }
.please-note .title-wrapper i { color: #ffc107; font-size: 1.2rem; margin-right: 0.5rem; }

/* Content styles */
.inclusions-list .content,
.exclusions-list .content,
.meeting-pickup .content,
.what-to-bring .content,
.know-before-you-go .content,
.please-note .content,
.cancellation-policy .content {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

/* Formatted list styles - override theme bullets so only our colored bullets show */
.tripways-formatted-list,
.inclusions-list ul,
.inclusions-list ol,
.exclusions-list ul,
.exclusions-list ol,
.what-to-bring ul,
.what-to-bring ol,
.know-before-you-go ul,
.know-before-you-go ol,
.please-note ul,
.please-note ol {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0;
    margin: 0;
}

.tripways-formatted-list li,
.inclusions-list li,
.exclusions-list li,
.what-to-bring li,
.know-before-you-go li,
.please-note li {
    list-style: none !important;
    list-style-type: none !important;
}

.tripways-formatted-list li::marker,
.inclusions-list li::marker,
.exclusions-list li::marker,
.what-to-bring li::marker,
.know-before-you-go li::marker,
.please-note li::marker {
    content: "" !important;
    display: none !important;
}

.tripways-formatted-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.4em;
    line-height: 1.5;
}

.tripways-formatted-list li:before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent, #007cba);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.4;
}

/* Inclusions list - green bullets */
.inclusions-list .tripways-formatted-list li:before {
    color: #28a745;
}

/* Exclusions list - red bullets */
.exclusions-list .tripways-formatted-list li:before {
    color: #dc3545;
}

/* What to bring - gray bullets */
.what-to-bring .tripways-formatted-list li:before {
    color: #6c757d;
}

/* Know before you go - teal bullets */
.know-before-you-go .tripways-formatted-list li:before {
    color: #17a2b8;
}

/* Please note - yellow/orange bullets */
.please-note .tripways-formatted-list li:before {
    color: #ffc107;
}

/* Formatted text styles */
.tripways-formatted-text {
    margin: 0;
}

.tripways-formatted-text p {
    margin: 0 0 1em 0;
    line-height: 1.6;
}

.tripways-formatted-text p:last-child {
    margin-bottom: 0;
}

/* Specific container styles (backgrounds and borders) */
.inclusions-list { background: #f1f8f1; }
.exclusions-list { background: #fff8f8; }
.meeting-pickup,
.what-to-bring,
.know-before-you-go,
.please-note,
.cancellation-policy { background: #f8f9fa; }
.meeting-pickup { border-left: 4px solid #007bff; }
.what-to-bring { border-left: 4px solid #6c757d; }
.know-before-you-go { border-left: 4px solid #17a2b8; }
.please-note { border-left: 4px solid #ffc107; }
.cancellation-policy { border-left: 4px solid #dc3545; }

/* Responsive styles */
@media (max-width: 768px) {
    .title-wrapper {
        margin-bottom: 10px;
    }
    .inclusions-list h2,
    .exclusions-list h2,
    .meeting-pickup h2,
    .what-to-bring h2,
    .know-before-you-go h2,
    .please-note h2,
    .cancellation-policy h2 {
        font-size: 20px !important;
    }
    .inclusions-list .title-wrapper i,
    .exclusions-list .title-wrapper i,
    .meeting-pickup .title-wrapper i,
    .what-to-bring .title-wrapper i,
    .know-before-you-go .title-wrapper i,
    .please-note .title-wrapper i,
    .cancellation-policy .title-wrapper i {
        font-size: 1rem !important;
        margin-right: 0.3rem !important;
    }
    .inclusions-list .content,
    .exclusions-list .content,
    .meeting-pickup .content,
    .what-to-bring .content,
    .know-before-you-go .content,
    .please-note .content,
    .cancellation-policy .content {
        font-size: 15px !important;
    }
}

/* ==============================
   Single Tour Page (V3-style layout)
   ============================== */

.tripways-tour-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 18px;
    overflow-x: hidden;
}

.tripways-tour-main {
    min-width: 0;
}

.tripways-tour-header {
    margin-bottom: 16px;
}

.tripways-tour-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 12px;
}

.tripways-tour-header__top-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

/* Breadcrumb */
.tripways-breadcrumb {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.site-main > .tripways-breadcrumb {
    margin: 10px 0 14px;
}

.tripways-breadcrumb__link {
    color: inherit;
    text-decoration: none;
}

.tripways-breadcrumb__link:hover {
    text-decoration: underline;
}

.tripways-breadcrumb__current {
    color: #374151;
}

.tripways-breadcrumb__sep {
    margin: 0 0.25em;
    color: #9ca3af;
}

/* Rating block (above title, right) */
.tripways-tour-rating-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.tripways-tour-rating-block:hover {
    opacity: 0.9;
}

.tripways-tour-rating-block__label {
    font-size: 12px;
    color: #6b7280;
}

.tripways-tour-rating-block__stars {
    font-size: 16px;
    color: #f59e0b;
    font-weight: 600;
}

.tripways-tour-rating-block__score {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.tripways-tour-rating-block__max {
    font-weight: 400;
    color: #6b7280;
}

.tripways-tour-title {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    color: #111827;
}

.tripways-tour-header-meta {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.tripways-tour-rating {
    font-weight: 600;
}

.tripways-tour-meta-link {
    color: inherit;
    text-decoration: none;
}

.tripways-tour-meta-link:hover {
    text-decoration: underline;
}

/* Rating in meta line: stars (orange) + number + "X reviews" link */
.tripways-tour-meta-rating {
    display: inline;
}

.tripways-tour-meta-rating-stars {
    color: #ea580c;
    letter-spacing: 0.02em;
}

.tripways-tour-meta-reviews-link {
    color: inherit;
    text-decoration: underline;
}

.tripways-tour-meta-reviews-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.tripways-cancellation-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tripways-cancellation-badge--free {
    background: #d1fae5;
    color: #065f46;
}

.tripways-cancellation-badge--flexible {
    background: #dbeafe;
    color: #1e40af;
}

.tripways-cancellation-badge--non_refundable {
    background: #f3f4f6;
    color: #4b5563;
}

.tripways-tour-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 28px;
    align-items: start;
}

.tripways-tour-hero {
    margin: 12px 0 22px;
}

.tripways-media-collage {
    position: relative;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "main main rt"
        "bl bm rb";
    grid-template-rows: clamp(220px, 35vw, 380px) clamp(130px, 16vw, 180px);
}

.tripways-media-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.06);
}

.tripways-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.tripways-media-item:hover img {
    transform: scale(1.02);
    filter: saturate(1.03);
}

.tripways-media-item--main { grid-area: main; }
.tripways-media-item--rt { grid-area: rt; }
.tripways-media-item--rb { grid-area: rb; }
.tripways-media-item--bl { grid-area: bl; }
.tripways-media-item--bm { grid-area: bm; }

.tripways-media-action {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17,24,39,0.78);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.tripways-media-action:hover {
    background: rgba(17,24,39,0.9);
}

.tripways-media-action--all {
    right: 14px;
    bottom: 14px;
}

.tripways-media-action--video {
    right: 14px;
    top: 14px;
}

.tripways-tour-content.entry-content {
    margin: 18px 0;
}

.tripways-tour-sections {
    margin: 20px 0;
}

/* Inclusions and Exclusions side by side on desktop */
.tripways-inclusions-exclusions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .tripways-tour-header__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tripways-tour-rating-block {
        align-items: flex-start;
    }

    .tripways-inclusions-exclusions-row {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }
}

.tripways-tour-sections .inclusions-list,
.tripways-tour-sections .exclusions-list,
.tripways-tour-sections .meeting-pickup,
.tripways-tour-sections .what-to-bring,
.tripways-tour-sections .know-before-you-go,
.tripways-tour-sections .please-note,
.tripways-tour-sections .cancellation-policy {
    margin: 18px 0;
}

.tripways-inclusions-exclusions-row .inclusions-list,
.tripways-inclusions-exclusions-row .exclusions-list {
    margin: 0;
}

.tripways-tour-sidebar__box {
    position: sticky;
    top: 24px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* WhatsApp contact (single tour sidebar) */
.tripways-wa-contact-wrap {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tripways-wa-contact-btn {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #25d366;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tripways-wa-contact-btn:hover {
    background: #20bd5a;
    color: #fff;
}

.tripways-wa-contact-btn:focus-visible {
    outline: 2px solid #25d366;
    outline-offset: 2px;
}

/* Sticky CTA on mobile: price + jump to booking */
.tripways-sticky-cta {
    display: none;
}

@media (max-width: 980px) {
    .tripways-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99998;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
        background: #fff;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .tripways-sticky-cta--visible {
        transform: translateY(0);
        visibility: visible;
    }

    .tripways-sticky-cta__inner {
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .tripways-sticky-cta__price {
        font-size: 17px;
        font-weight: 700;
        color: #111827;
    }

    .tripways-sticky-cta__btn {
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        background: #111827;
        border: 0;
        border-radius: 10px;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s ease;
    }

    .tripways-sticky-cta__btn:hover {
        background: #1f2937;
    }

    .tripways-sticky-cta__btn:active {
        background: #374151;
    }
}

@media (min-width: 981px) {
    .tripways-sticky-cta {
        display: none !important;
    }
}

/* Next default rate card above calendar widget */
.tripways-calendar-price-card {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tripways-calendar-price-label {
    font-size: 14px;
    color: #6b7280;
}

.tripways-calendar-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #991b1b;
}

/* Reserve calendar area to reduce CLS before Bokun widget bootstraps */
.tripways-calendar-widget-wrap {
    min-height: 560px;
}

.tripways-calendar-widget-wrap .bokunWidget {
    min-height: inherit;
}

/* Bokun floating cart CLS guard:
   force stable fixed positioning from first paint to avoid flow->fixed jumps. */
#bokun-widgets-root .bokun-widgets-cart-wrapper {
    position: fixed !important;
    right: 16px !important;
    bottom: 16px !important;
    z-index: 9998 !important;
    max-width: min(92vw, 420px);
    contain: layout paint;
}

@media (max-width: 980px) {
    .tripways-calendar-widget-wrap {
        min-height: 500px;
    }

    #bokun-widgets-root .bokun-widgets-cart-wrapper {
        right: 12px !important;
        bottom: 12px !important;
        max-width: calc(100vw - 24px);
    }
}

.tripways-tour-section-title {
    margin: 24px 0 12px;
    font-size: 22px;
    color: #111827;
}

/* Itinerary section – flat, minimal, plain white, no boxes */
.tripways-tour-agenda,
.tripways-tour-agenda .tripways-itinerary-timeline,
.tripways-tour-agenda .tripways-itinerary-day {
    background: transparent !important;
}

.tripways-tour-agenda .tripways-accordion__item,
.tripways-tour-agenda .tripways-itinerary-day__details {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tripways-tour-agenda .tripways-accordion__summary,
.tripways-tour-agenda .tripways-itinerary-day__summary {
    background: transparent !important;
}

.tripways-tour-agenda .tripways-accordion__content,
.tripways-tour-agenda .tripways-itinerary-day__content {
    background: transparent !important;
}

.tripways-itinerary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tripways-itinerary-header .tripways-tour-section-title {
    margin: 0;
}

.tripways-itinerary-expand-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #7c3aed;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tripways-itinerary-expand-all:hover {
    color: #6d28d9;
}

.tripways-itinerary-timeline {
    position: relative;
}

.tripways-itinerary-day {
    position: relative;
    display: flex;
    gap: 0;
    padding-left: 28px;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
}

.tripways-itinerary-day--last {
    border-bottom: none;
    padding-bottom: 0;
}

.tripways-itinerary-day--last .tripways-itinerary-day__connector {
    display: none;
}

/* Day tour: one line per step, no Day X pill, flat design */
.tripways-itinerary-day--step .tripways-itinerary-day__marker {
    background: rgba(0, 0, 0, 0.25);
}

.tripways-itinerary-day--step .tripways-itinerary-day__summary {
    gap: 10px;
}

.tripways-itinerary-day__marker {
    position: absolute;
    left: 0;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--day-color, #7c3aed);
    flex-shrink: 0;
    z-index: 2;
}

.tripways-itinerary-day__connector {
    position: absolute;
    left: 4px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0.12) 0,
        rgba(0,0,0,0.12) 4px,
        transparent 4px,
        transparent 8px
    );
    z-index: 1;
}

.tripways-itinerary-day__details {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.tripways-itinerary-day__summary {
    cursor: pointer;
    padding: 12px 0 12px 0;
    font-weight: 600;
    color: #111827;
    background: transparent;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tripways-itinerary-day__summary::-webkit-details-marker {
    display: none;
}

.tripways-itinerary-day__summary::-moz-list-bullet {
    list-style-type: none;
}

.tripways-itinerary-day__pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    background: transparent;
    color: var(--day-color, #b36e3c);
    border: none;
}

.tripways-tour-agenda .tripways-itinerary-day__pill {
    background: transparent !important;
    border: none !important;
}

.tripways-itinerary-day__details[open] .tripways-itinerary-day__pill {
    background: transparent;
}

.tripways-itinerary-day__title {
    flex: 1;
    font-size: 15px;
}

.tripways-itinerary-day__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 18px;
    transition: transform 0.2s ease;
}

.tripways-itinerary-day__details[open] .tripways-itinerary-day__chevron {
    transform: rotate(180deg);
}

.tripways-itinerary-day__content {
    padding: 8px 0 0 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.tripways-itinerary-activities {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tripways-itinerary-activity {
    margin-bottom: 14px;
    padding-left: 0;
}

.tripways-itinerary-activity:last-child {
    margin-bottom: 0;
}

.tripways-itinerary-activity__title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #111827;
}

.tripways-itinerary-activity__body {
    margin-left: 0;
}

.tripways-itinerary-activity__body p {
    margin: 0 0 8px;
}

.tripways-itinerary-activity__body p:last-child {
    margin-bottom: 0;
}

/* Legacy accordion (fallback when used elsewhere) */
.tripways-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tripways-accordion__item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.tripways-accordion__summary {
    cursor: pointer;
    padding: 14px;
    font-weight: 700;
    color: #111827;
    background: #f6f7f7;
    list-style: none;
}

.tripways-accordion__summary::-webkit-details-marker {
    display: none;
}

.tripways-accordion__content {
    padding: 14px;
    color: #2c3338;
}

.tripways-tour-related {
    margin-top: 28px;
}

/* Reviews section */
.tripways-tour-reviews {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Two-column layout: ~30% summary, ~70% list */
.tripways-reviews__cols {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .tripways-tour-reviews {
        overflow-x: hidden;
        max-width: 100%;
    }
    .tripways-reviews__cols {
        grid-template-columns: 1fr;
    }
    .tripways-reviews__summary {
        position: static;
        display: block;
        min-width: 0;
        width: 100%;
    }
}

/* Left column: overall rating summary */
.tripways-reviews__summary {
    position: sticky;
    top: 24px;
}

.tripways-reviews__overall-score {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.tripways-reviews__overall-max {
    font-size: 20px;
    font-weight: 500;
    color: #6b7280;
}

.tripways-reviews__overall-stars {
    margin: 6px 0 4px;
    font-size: 20px;
    color: #ea580c;
    letter-spacing: 0.02em;
}

.tripways-reviews__overall-count {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7280;
}

.tripways-reviews__overall-count-link {
    color: inherit;
    text-decoration: underline;
}

.tripways-reviews__overall-count-link:hover {
    opacity: 0.9;
}

/* Verified travellers message box */
.tripways-reviews__verified-box {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.tripways-reviews__verified-text {
    margin: 0;
}

.tripways-reviews__verified-link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.tripways-reviews__verified-link:hover {
    text-decoration: underline;
}

.tripways-reviews__list-col {
    min-width: 0;
}

.tripways-reviews__empty {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.tripways-reviews__title {
    margin: 0 0 16px;
    font-size: 22px;
    color: #111827;
}

.tripways-reviews__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.tripways-review {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tripways-review:last-child {
    border-bottom: none;
}

.tripways-review__inner {
    display: block;
}

/* Star rating row: ★★★★★ 5 */
.tripways-review__rating-row {
    margin-bottom: 12px;
}

.tripways-review__stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.tripways-review__stars-icons {
    color: #ea580c;
    letter-spacing: 0.02em;
}

.tripways-review__stars-num {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

/* Head row: avatar | name – country + date | menu */
.tripways-review__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.tripways-review__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tripways-review__avatar-wrap--1 {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
}

.tripways-review__avatar-wrap--2 {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.tripways-review__avatar-wrap--3 {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
}

.tripways-review__avatar-wrap--4 {
    background: linear-gradient(135deg, #9d174d 0%, #be185d 100%);
}

.tripways-review__avatar-initial {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.tripways-review__avatar-wrap .tripways-review__avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tripways-review__byline {
    flex: 1;
    min-width: 0;
}

.tripways-review__author {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    display: block;
}

.tripways-review__author-sep {
    font-weight: 600;
    color: #1a1a1a;
}

.tripways-review__country {
    font-weight: 600;
    color: #1a1a1a;
}

.tripways-review__meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.tripways-review__verified {
    font-style: normal;
}

.tripways-review__menu {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
    cursor: default;
}

.tripways-review__content {
    margin: 0;
    padding-left: 60px;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .tripways-review__content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .tripways-review-form .comment-form-rating select,
    .tripways-review-form .comment-form-country select,
    .tripways-review-form .comment-form-author input,
    .tripways-review-form .comment-form-email input,
    .tripways-review-form textarea {
        max-width: 100%;
    }
}

/* Review form – slim, travel-themed, black & shiny green */
.tripways-reviews__form {
    margin-top: 24px;
    max-width: 100%;
}

.tripways-review-form {
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
}

.tripways-review-form .comment-reply-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.tripways-review-form .logged-in-as,
.tripways-review-form .comment-notes {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.tripways-review-form .logged-in-as a,
.tripways-review-form .comment-notes a {
    color: #00c853;
    text-decoration: none;
}

.tripways-review-form .logged-in-as a:hover,
.tripways-review-form .comment-notes a:hover {
    text-decoration: underline;
}

.tripways-review-form p {
    margin: 0 0 14px;
}

.tripways-review-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.tripways-review-form .comment-form-rating,
.tripways-review-form .comment-form-country {
    margin: 0 0 14px;
}

.tripways-review-form .comment-form-country select {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.tripways-review-form .comment-form-country select:focus {
    outline: none;
    border-color: #00c853;
}

.tripways-review-form .comment-form-rating select {
    width: 100%;
    max-width: 140px;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.tripways-review-form .comment-form-rating select:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.tripways-review-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    resize: vertical;
}

.tripways-review-form textarea:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.tripways-review-form textarea::placeholder {
    color: #9ca3af;
}

.tripways-review-form .form-submit {
    margin: 16px 0 0;
}

.tripways-review-form input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #00c853;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
}

.tripways-review-form input[type="submit"]:hover {
    background: #00a843;
}

.tripways-review-form input[type="submit"]:active {
    transform: scale(0.98);
}

/* Guest fields (author, email) – slim */
.tripways-review-form .comment-form-author input,
.tripways-review-form .comment-form-email input {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.tripways-review-form .comment-form-author input:focus,
.tripways-review-form .comment-form-email input:focus {
    outline: none;
    border-color: #00c853;
}

.tripways-tour-related--full {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* Overlay (gallery / video) */
.tripways-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.tripways-overlay:target {
    display: flex;
}

.tripways-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.tripways-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 16px;
}

.tripways-overlay__close {
    position: sticky;
    top: 0;
    display: inline-block;
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.tripways-overlay__content {
    margin-top: 14px;
}

.tripways-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.tripways-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.tripways-tour-gallery {
    display: grid;
    gap: 12px;
    margin: 0;
}

.tripways-tour-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tripways-tour-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tripways-tour-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
.tripways-tour-gallery--cols-5 { grid-template-columns: repeat(5, 1fr); }
.tripways-tour-gallery--cols-6 { grid-template-columns: repeat(6, 1fr); }

.tripways-tour-gallery__item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f7f7;
    border: 1px solid rgba(0,0,0,0.06);
}

.tripways-tour-gallery__link {
    display: block;
    line-height: 0;
}

.tripways-tour-gallery__link--lightbox {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

.tripways-tour-gallery__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Gallery overlay: slider view (full-screen image with controls) */
.tripways-overlay__panel--slider-active .tripways-overlay__close {
    display: none;
}

.tripways-overlay__panel--slider-active {
    position: relative;
    width: 100%;
    max-width: none;
    height: calc(100vh - 36px);
    min-height: 400px;
    max-height: none;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.tripways-gallery-slider {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 1;
}

.tripways-gallery-slider[hidden] {
    display: none !important;
}

.tripways-gallery-grid[hidden] {
    display: none !important;
}

.tripways-slider__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    z-index: 2;
}

.tripways-slider__btn {
    position: absolute;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tripways-slider__btn:hover {
    background: #f3f4f6;
    border-color: rgba(0, 0, 0, 0.25);
}

.tripways-slider__close {
    top: 18px;
    left: 18px;
    font-size: 24px;
}

.tripways-slider__grid {
    top: 18px;
    right: 18px;
}

.tripways-slider__grid svg {
    display: block;
}

.tripways-slider__prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.tripways-slider__next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.tripways-slider__img-wrap {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    padding: 60px 70px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tripways-slider__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 980px) {
    .tripways-tour-layout {
        grid-template-columns: 1fr;
    }
    .tripways-tour-sidebar__box {
        position: static;
    }
    .tripways-tour-title {
        font-size: 34px;
    }
    .tripways-media-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "main main"
            "rt rb"
            "bl bm";
        grid-template-rows: auto;
    }
    .tripways-media-item {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 768px) {
    .tripways-tour-gallery--cols-4,
    .tripways-tour-gallery--cols-5,
    .tripways-tour-gallery--cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Gallery overlay: fit viewport on mobile */
    .tripways-overlay {
        padding: max(10px, env(safe-area-inset-top, 0)) max(10px, env(safe-area-inset-right, 0)) max(10px, env(safe-area-inset-bottom, 0)) max(10px, env(safe-area-inset-left, 0));
        height: 100dvh;
        height: 100vh;
        max-height: 100dvh;
        max-height: 100vh;
    }
    .tripways-overlay__panel {
        max-height: 100%;
        border-radius: 12px;
    }
    .tripways-overlay__panel--slider-active {
        height: 100%;
        min-height: 0;
        border-radius: 12px;
    }
    .tripways-gallery-slider {
        border-radius: 12px;
    }
    .tripways-slider__img-wrap {
        padding: 56px 54px;
        padding-top: max(52px, calc(52px + env(safe-area-inset-top, 0)));
        padding-bottom: max(48px, calc(48px + env(safe-area-inset-bottom, 0)));
        padding-left: max(50px, calc(50px + env(safe-area-inset-left, 0)));
        padding-right: max(50px, calc(50px + env(safe-area-inset-right, 0)));
    }
    .tripways-slider__btn {
        width: 40px;
        height: 40px;
    }
    .tripways-slider__close,
    .tripways-slider__grid {
        top: max(12px, calc(12px + env(safe-area-inset-top, 0)));
    }
    .tripways-slider__close { left: max(12px, env(safe-area-inset-left, 12px)); }
    .tripways-slider__grid { right: max(12px, env(safe-area-inset-right, 12px)); }
    .tripways-slider__prev { left: max(12px, env(safe-area-inset-left, 12px)); }
    .tripways-slider__next { right: max(12px, env(safe-area-inset-right, 12px)); }
    .tripways-slider__counter {
        bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0)));
    }
}

@media (max-width: 480px) {
    .tripways-tour-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .tripways-slider__img-wrap {
        padding: 48px 44px;
        padding-top: max(44px, calc(44px + env(safe-area-inset-top, 0)));
        padding-bottom: max(44px, calc(44px + env(safe-area-inset-bottom, 0)));
        padding-left: max(44px, calc(44px + env(safe-area-inset-left, 0)));
        padding-right: max(44px, calc(44px + env(safe-area-inset-right, 0)));
    }
    .tripways-slider__counter {
        font-size: 14px;
        bottom: max(12px, calc(12px + env(safe-area-inset-bottom, 0)));
    }
}

/* ==============================
   Taxonomy archive (vendor, destination, etc.)
   ============================== */

.tripways-taxonomy-archive {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 18px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tripways-archive-header {
    margin-bottom: 24px;
}

.tripways-archive-title {
    margin: 0;
    font-size: 36px;
    color: #111827;
}

.tripways-tour-archive-ai {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.tripways-tour-archive-ai__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.tripways-tour-archive-ai__copy {
    min-width: 0;
}

.tripways-tour-archive-ai__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    color: #111827;
}

.tripways-tour-archive-ai__hint {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.tripways-tour-archive-ai__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 9px 12px;
    cursor: pointer;
}

.tripways-tour-archive-ai__panel {
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.tripways-tour-archive-ai .tripways-chat-wrap {
    margin: 0;
}

.tripways-tour-archive-ai .tripways-chat-form {
    position: static;
    bottom: auto;
    padding-top: 0;
}

.tripways-tour-archive-ai .tripways-chat-messages {
    margin-bottom: 8px;
}

.tripways-tour-archive-ai::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: min(48vw, 460px);
    height: min(22vw, 150px);
    background:
        radial-gradient(65% 85% at 50% 50%, rgba(111, 77, 194, 0.09) 0%, rgba(111, 77, 194, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

.tripways-tour-archive-ai::after {
    content: attr(data-slogan);
    position: absolute;
    right: 16px;
    top: 8px;
    font-size: clamp(24px, 3vw, 54px);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    color: rgba(31, 41, 55, 0.06);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.tripways-archive-description {
    margin-top: 10px;
    color: #4b5563;
    line-height: 1.6;
}

.tripways-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    min-width: 0;
}

/* Tours archive: 4 columns desktop, 5 rows (20 per page) */
.tripways-tour-archive .tripways-tour-grid--archive {
    grid-template-columns: repeat(4, 1fr);
}

.tripways-tour-card {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
    min-width: 0;
}

.tripways-tour-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.tripways-tour-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tripways-tour-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.tripways-tour-card__thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.tripways-tour-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 14px;
    min-width: 0;
}

.tripways-tour-card__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.tripways-tour-card:hover .tripways-tour-card__title {
    color: #007cba;
}

.tripways-tour-card__meta {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.tripways-tour-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.tripways-tour-card__rating {
    font-size: 14px;
    color: #374151;
}

.tripways-tour-card__rating-placeholder {
    color: #9ca3af;
}

.tripways-tour-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.tripways-tour-card__price-current {
    color: #059669;
}

.tripways-tour-card__price-original {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

.tripways-tour-card--minimal .tripways-tour-card__footer {
    justify-content: flex-end;
}

.tripways-no-tours {
    color: #6b7280;
    padding: 24px 0;
}

/* ==============================
   Tours Vertical – stacked, minimal, for mobile & sidebars
   ============================== */

.tripways-tours-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tripways-tours-vertical .tripways-tour-card-vertical {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.14);
}

.tripways-tours-vertical .tripways-tour-card-vertical:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.tripways-tour-card-vertical {
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none !important;
}

.tripways-tour-card-vertical__link {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    align-items: start;
    text-decoration: none;
    color: inherit;
}

.tripways-tour-card-vertical__link:hover .tripways-tour-card-vertical__title {
    color: #007cba;
}

.tripways-tour-card-vertical:hover,
.tripways-tour-card-vertical__link,
.tripways-tour-card-vertical__link:hover {
    box-shadow: none !important;
    border: none !important;
}

.tripways-tour-card-vertical__thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.tripways-tour-card-vertical__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tripways-tour-card-vertical__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #7c3aed;
    border-radius: 4px;
}

.tripways-tour-card-vertical__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tripways-tour-card-vertical__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.tripways-tour-card-vertical__meta {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.tripways-tour-card-vertical__rating {
    margin: 0;
    font-size: 13px;
    color: #374151;
}

.tripways-tour-card-vertical__price {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

.tripways-tour-card-vertical__price-current {
    color: #dc2626;
}

.tripways-tour-card-vertical__price-original {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

@media (min-width: 480px) {
    .tripways-tour-card-vertical__link {
        grid-template-columns: 110px 1fr;
    }
}

/* ==============================
   Destination archive (hero + children + tours by category)
   ============================== */

.tripways-dest-archive {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 18px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tripways-dest-hero {
    margin-bottom: 36px;
}

.tripways-dest-hero__title {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    color: #111827;
}

.tripways-dest-hero__description {
    margin-top: 12px;
    color: #4b5563;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Vendor hero card – compact, minimal */
.tripways-vendor-hero {
    margin-bottom: 16px;
}

.tripways-vendor-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
}

.tripways-vendor-card__logo {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.tripways-vendor-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.tripways-vendor-card__body {
    flex: 1;
    min-width: 0;
}

.tripways-vendor-card__description {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.tripways-vendor-card__description-inner {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tripways-vendor-card__description-inner p {
    margin: 0 0 0.4em 0;
}

.tripways-vendor-card__description-inner p:last-child {
    margin-bottom: 0;
}

.tripways-vendor-card__description[data-expanded] .tripways-vendor-card__description-inner {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.tripways-vendor-card__more {
    margin-top: 4px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent, #007cba);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tripways-vendor-card__more:hover {
    color: var(--accent-hover, #005a87);
}

.tripways-vendor-card__more[aria-hidden="true"] {
    display: none;
}

/* Vendor card: logo only (no description) – slightly smaller */
.tripways-vendor-card--compact .tripways-vendor-card__logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
}

@media (max-width: 640px) {
    .tripways-vendor-card {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }

    .tripways-vendor-card__logo {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }

    .tripways-vendor-card--compact .tripways-vendor-card__logo {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
    }
}

.tripways-dest-children {
    margin-top: 24px;
    max-width: 100%;
    overflow-x: hidden;
}

.tripways-dest-tours-by-category {
    margin-top: 40px;
}

/* ==============================
   Taxonomy Filters (Hybrid: main row + More panel)
   ============================== */

.tripways-tour-archive .tripways-archive-filters {
    margin-bottom: 24px;
    overflow: visible;
}

.tripways-filters__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    overflow: visible;
}

.tripways-filters__result-count {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
}

.tripways-filters__sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.tripways-filters__sort-label {
    font-size: 14px;
    color: #6b7280;
}

.tripways-filters__sort-dropdown {
    position: relative;
    overflow: visible;
}

.tripways-filters__sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: inherit;
}

.tripways-filters__sort-trigger:hover {
    color: #111827;
}

.tripways-filters__sort-chevron {
    font-size: 12px;
    color: #6b7280;
}

.tripways-filters__sort-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 4px 0 0;
    padding: 8px 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    z-index: 9999;
    overflow: visible;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tripways-filters__sort-list::-webkit-scrollbar {
    display: none;
}

.tripways-filters__sort-list[hidden] {
    display: none;
}

.tripways-filters__sort-list:not([hidden]) {
    display: block;
}

.tripways-filters__sort-option {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tripways-filters__sort-option:hover {
    background: #f3f4f6;
}

.tripways-filters__sort-option.is-selected {
    color: #5a287d;
    font-weight: 600;
}

@media (max-width: 480px) {
    .tripways-filters__top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tripways-filters__sort-wrap {
        width: 100%;
    }

    .tripways-filters__sort-list {
        min-width: 100%;
        right: auto;
        left: 0;
    }
}

.tripways-taxonomy-filters {
    max-width: 100%;
}

.tripways-taxonomy-filters .tripways-filters__scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
}

.tripways-filters__result-count {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
}

.tripways-archive-filters .tripways-filters__result-count {
    margin-bottom: 0;
}

/* Single row, horizontal scroll, no visible scrollbar */
.tripways-filters__main-row {
    overflow: visible;
}

.tripways-filters__scroll-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

.tripways-filters__scroll-wrap::-webkit-scrollbar {
    display: none;
}

.tripways-filters__group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 12px;
    flex-shrink: 0;
}

.tripways-filters__label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.tripways-filters__pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
}

.tripways-filters__pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tripways-filters__pill:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.tripways-filters__pill.is-active {
    background: #5a287d;
    border-color: #5a287d;
    color: #fff;
}

.tripways-filters__pill.is-active:hover {
    background: #4a2168;
    border-color: #4a2168;
    color: #fff;
}

/* Active pill from secondary (removable) */
.tripways-filters__pill--active {
    background: #5a287d;
    border-color: #5a287d;
    color: #fff;
}

.tripways-filters__pill--active:hover {
    background: #4a2168;
    border-color: #4a2168;
    color: #fff;
}

/* Capsule wrap: Filters button + active pills (left group) */
.tripways-filters__capsule-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tripways-filters__main-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #5a287d;
    border: 1px solid #5a287d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.tripways-filters__main-btn-icon {
    font-size: 16px;
    line-height: 1;
}

.tripways-filters__main-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255,255,255,0.3);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tripways-filters__pill-close {
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.9;
}

.tripways-filters__subdest-row {
    margin-top: 12px;
}

.tripways-filters__group--subdest {
    min-width: max-content;
}

.tripways-filters__pill.is-hidden-by-default {
    display: none;
}

.tripways-filters__pill--load-more {
    background: #5a287d;
    border-color: #5a287d;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.tripways-filters__pill--load-more:hover {
    background: #4a2168;
    border-color: #4a2168;
    color: #fff;
}

@media (max-width: 768px) {
    .tripways-filters__pill {
        padding: 5px 12px;
        font-size: 13px;
    }
}

.tripways-dest-category-section {
    margin-bottom: 48px;
}

.tripways-dest-category-section:last-child {
    margin-bottom: 0;
}

.tripways-dest-category-title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 768px) {
    .tripways-dest-hero__title {
        font-size: 32px;
    }
    .tripways-dest-category-title {
        font-size: 24px;
    }
}

/* ==============================
   Taxonomy archives – mobile responsive (destinations, vendors, activities, etc.)
   Single-column vertical tour cards, no horizontal scroll
   ============================== */

.tripways-tours-ajax-wrap,
.tripways-dest-tours-by-category {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .tripways-tour-archive .tripways-tour-grid--archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tripways-tour-archive-ai {
        margin-bottom: 14px;
        padding: 10px 12px;
    }

    .tripways-tour-archive-ai::before {
        display: none;
    }

    .tripways-tour-archive-ai::after {
        display: none;
    }

    .tripways-tour-archive-ai__title {
        font-size: 15px;
    }

    .tripways-tour-archive-ai__hint {
        display: none;
    }

    .tripways-tour-archive-ai__toggle {
        display: inline-flex;
    }

    .tripways-tour-archive-ai__panel {
        margin-top: 10px;
    }

    .tripways-tour-archive-ai .tripways-chat-form {
        gap: 6px;
    }

    .tripways-tour-archive-ai .tripways-chat-input {
        padding: 8px 10px;
        font-size: 15px;
    }

    .tripways-tour-archive-ai .tripways-chat-form button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .tripways-tour-archive-ai .tripways-chat-message {
        margin-bottom: 0.7rem;
        padding: 0.65rem 0.85rem;
    }

    .tripways-dest-archive .tripways-tour-grid,
    .tripways-taxonomy-archive .tripways-tour-grid,
    .tripways-tour-archive .tripways-tour-grid--archive,
    .tripways-dest-tours-by-category .tripways-tour-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Tour card vertical: compact stacked layout (thumb left, content right) */
    .tripways-dest-archive .tripways-tour-card,
    .tripways-taxonomy-archive .tripways-tour-card,
    .tripways-tour-archive .tripways-tour-card,
    .tripways-dest-tours-by-category .tripways-tour-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border: none;
        background: transparent;
        box-shadow: none !important;
    }
    .tripways-dest-archive .tripways-tour-card:hover,
    .tripways-taxonomy-archive .tripways-tour-card:hover,
    .tripways-tour-archive .tripways-tour-card:hover,
    .tripways-dest-tours-by-category .tripways-tour-card:hover {
        box-shadow: none !important;
    }
    .tripways-dest-archive .tripways-tour-card,
    .tripways-taxonomy-archive .tripways-tour-card,
    .tripways-tour-archive .tripways-tour-card,
    .tripways-dest-tours-by-category .tripways-tour-card {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px dotted rgba(0, 0, 0, 0.14);
    }
    .tripways-dest-archive .tripways-tour-card:last-child,
    .tripways-taxonomy-archive .tripways-tour-card:last-child,
    .tripways-tour-archive .tripways-tour-card:last-child,
    .tripways-dest-tours-by-category .tripways-tour-card:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
    .tripways-dest-archive .tripways-tour-card__link,
    .tripways-taxonomy-archive .tripways-tour-card__link,
    .tripways-tour-archive .tripways-tour-card__link,
    .tripways-dest-tours-by-category .tripways-tour-card__link {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 0.875rem;
        align-items: start;
        flex-direction: unset;
    }
    .tripways-dest-archive .tripways-tour-card__thumb,
    .tripways-taxonomy-archive .tripways-tour-card__thumb,
    .tripways-tour-archive .tripways-tour-card__thumb,
    .tripways-dest-tours-by-category .tripways-tour-card__thumb {
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
    }
    .tripways-dest-archive .tripways-tour-card__thumb img,
    .tripways-taxonomy-archive .tripways-tour-card__thumb img,
    .tripways-tour-archive .tripways-tour-card__thumb img,
    .tripways-dest-tours-by-category .tripways-tour-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    .tripways-dest-archive .tripways-tour-card__content,
    .tripways-taxonomy-archive .tripways-tour-card__content,
    .tripways-tour-archive .tripways-tour-card__content,
    .tripways-dest-tours-by-category .tripways-tour-card__content {
        min-width: 0;
        padding: 0;
    }
    .tripways-dest-archive .tripways-tour-card__title,
    .tripways-taxonomy-archive .tripways-tour-card__title,
    .tripways-tour-archive .tripways-tour-card__title,
    .tripways-dest-tours-by-category .tripways-tour-card__title {
        font-size: 0.9375rem;
    }
    .tripways-dest-archive .tripways-tour-card__meta,
    .tripways-taxonomy-archive .tripways-tour-card__meta,
    .tripways-tour-archive .tripways-tour-card__meta,
    .tripways-dest-tours-by-category .tripways-tour-card__meta {
        font-size: 12px;
    }
    .tripways-dest-archive .tripways-tour-card__rating-placeholder,
    .tripways-taxonomy-archive .tripways-tour-card__rating-placeholder,
    .tripways-tour-archive .tripways-tour-card__rating-placeholder,
    .tripways-dest-tours-by-category .tripways-tour-card__rating-placeholder {
        display: none;
    }

    .tripways-dest-archive,
    .tripways-taxonomy-archive,
    .tripways-tour-archive {
        padding: 20px 16px;
    }

    .tripways-dest-category-section {
        margin-bottom: 36px;
    }
}

@media (max-width: 480px) {
    .tripways-tour-archive-ai::before,
    .tripways-tour-archive-ai::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .tripways-dest-archive,
    .tripways-taxonomy-archive,
    .tripways-tour-archive {
        padding: 16px 12px;
    }

    .tripways-dest-hero__title {
        font-size: 28px;
    }

    .tripways-dest-category-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .tripways-dest-archive .tripways-tour-grid,
    .tripways-taxonomy-archive .tripways-tour-grid,
    .tripways-tour-archive .tripways-tour-grid--archive,
    .tripways-dest-tours-by-category .tripways-tour-grid {
        gap: 16px;
    }

    .tripways-tour-card__content {
        padding: 12px 14px;
    }

    .tripways-tour-card__title {
        font-size: 16px;
    }

    .tripways-tour-card__meta {
        font-size: 12px;
    }
}

/* Smaller thumb on very narrow screens */
@media (max-width: 400px) {
    .tripways-dest-archive .tripways-tour-card__link,
    .tripways-taxonomy-archive .tripways-tour-card__link,
    .tripways-tour-archive .tripways-tour-card__link,
    .tripways-dest-tours-by-category .tripways-tour-card__link {
        grid-template-columns: 90px 1fr;
    }
}

/* ==============================
   Related Tours Styles
   ============================== */

.related-tours-wrapper {
    margin: 30px 0;
    width: 100%;
}

.related-tours-wrapper .related-tours-empty {
    margin: 0;
    padding: 1rem 0;
    color: #6b7280;
    font-size: 1rem;
}

.tripways-related-tours {
    margin: 0;
}

.related-tours-wrapper .tripways-related-tours + .tripways-related-tours {
    margin-top: 36px;
}

.tripways-related-tours__title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3338;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.tripways-related-tours .tripways-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tripways-related-tours--vertical .tripways-tour-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .tripways-related-tours__title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .tripways-related-tours .tripways-tour-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .tripways-related-tours .tripways-tour-grid {
        grid-template-columns: 1fr;
    }
}

/* Single tour page: mobile uses compact vertical style (one column, thumb left, content right) */
@media (max-width: 768px) {
    .tripways-tour-related .tripways-tour-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .tripways-tour-related .tripways-tour-card {
        margin: 0;
        border: none;
        background: transparent;
    }
    .tripways-tour-related .tripways-tour-card__link {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 0.875rem;
        align-items: start;
        flex-direction: unset;
    }
    .tripways-tour-related .tripways-tour-card__thumb {
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
    }
    .tripways-tour-related .tripways-tour-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    .tripways-tour-related .tripways-tour-card__content {
        min-width: 0;
        padding: 0;
    }
    .tripways-tour-related .tripways-tour-card__title {
        font-size: 0.9375rem;
    }
    .tripways-tour-related .tripways-tour-card__meta {
        font-size: 12px;
    }
    .tripways-tour-related .tripways-tour-card__rating-placeholder {
        display: none;
    }
    .tripways-tour-related .tripways-tour-card,
    .tripways-tour-related .tripways-tour-card:hover {
        box-shadow: none !important;
    }
    .tripways-tour-related .tripways-tour-card__link,
    .tripways-tour-related .tripways-tour-card__link:hover {
        box-shadow: none !important;
        border: none !important;
    }
    .tripways-tour-related .tripways-tour-card {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px dotted rgba(0, 0, 0, 0.14);
    }
    .tripways-tour-related .tripways-tour-card:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
}

@media (max-width: 400px) {
    .tripways-tour-related .tripways-tour-card__link {
        grid-template-columns: 90px 1fr;
    }
}

/* ==============================
   Destination Children Shortcode Styles
   ============================== */

.tripways-dest-container {
    text-align: center;
    margin: 15px 0;
    max-width: 100%;
    overflow-x: hidden;
}

.tripways-dest-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.tripways-dest-buttons-hidden {
    margin-top: 20px;
}

.tripways-dest-button {
    padding: 8px 16px;
    border-radius: 25px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.tripways-dest-button:hover {
    background: #e0e0e0;
    border-color: #bbb;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tripways-dest-toggle {
    cursor: pointer;
    background: #5a287d;
    color: #fff;
    padding: 6px 16px;
    border-radius: 25px;
    margin: 10px auto;
    width: max-content;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.tripways-dest-toggle:hover {
    background: #4a2168;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(90, 40, 125, 0.3);
}

/* Responsive styles for destination buttons */
@media (max-width: 768px) {
    .tripways-dest-buttons {
        gap: 8px;
    }
    
    .tripways-dest-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .tripways-dest-toggle {
        padding: 5px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tripways-dest-buttons {
        gap: 6px;
    }
    
    .tripways-dest-buttons-hidden {
        margin-top: 12px;
    }
    
    .tripways-dest-button {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ==============================
   Full Destinations List Shortcode [tripways_destinations_full]
   Continent cards with country capsules; wide layout, minimal shadow/border, no shared background
   ============================== */

.tripways-destinations-full {
    margin: 2rem 0;
    max-width: 100%;
    padding: 0;
}

/* Alphabetic index – one row, minimal */
.tripways-destinations-full__index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.5rem 0;
}

.tripways-destinations-full__index-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tripways-destinations-full__index-letter:hover {
    background: #f3f4f6;
    color: #1a1a1a;
    border-color: #d1d5db;
}

.tripways-destinations-full__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.tripways-destinations-full__card {
    background: transparent;
    padding: 1.5rem 1.75rem;
    scroll-margin-top: 2rem;
}

.tripways-destinations-full__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.tripways-destinations-full__continent-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.tripways-destinations-full__continent-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tripways-destinations-full__continent-link:hover {
    color: #5a287d;
}

/* Country capsules (pill buttons) – compact */
.tripways-destinations-full__capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    align-items: center;
}

.tripways-destinations-full__capsule {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #eeeeee;
    color: #333;
    font-size: 0.8125rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid #e2e2e2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tripways-destinations-full__capsule:hover {
    background: #e0e0e0;
    color: #1a1a1a;
    border-color: #d0d0d0;
}

.tripways-destinations-full__count {
    font-size: 0.85em;
    font-weight: 400;
    color: #6b7280;
}

@media (max-width: 768px) {
    .tripways-destinations-full__list {
        width: 100%;
        padding: 0 1rem;
    }

    .tripways-destinations-full__index {
        gap: 0.2rem 0.35rem;
        margin-bottom: 1.25rem;
    }

    .tripways-destinations-full__index-letter {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }

    .tripways-destinations-full__card {
        padding: 1.25rem 1.25rem;
    }

    .tripways-destinations-full__continent-title {
        font-size: 1.35rem;
    }

    .tripways-destinations-full__capsule {
        padding: 0.3rem 0.65rem;
        font-size: 0.8125rem;
    }
}

/* Tour meta line (single tour) and price (archive cards) – plugin data */
.tripways-tour-meta {
    margin: 0.5em 0 1em;
    font-size: 1rem;
    color: var(--wp--preset--color--muted, #64748b);
    line-height: 1.5;
}
.tripways-tour-meta .tripways-price-value {
    color: var(--wp--preset--color--primary, #2563eb);
    font-weight: 600;
}
.tripways-meta-sep {
    margin: 0 0.35em;
    opacity: 0.7;
}
.tripways-tour-price {
    display: inline-block;
    margin-top: 0.35em;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary, #2563eb);
}
.tripways-tour-price strong {
    font-weight: 700;
}

/* ========== Blog templates – flat, minimal, readable ========== */
.tripways-blog {
    padding: 2rem 1.5rem;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Single post: allow sticky sidebar (overflow-x: hidden on parent breaks position: sticky) */
.tripways-blog-single.tripways-blog {
    overflow: visible;
}

.tripways-blog-single .tripways-blog-header {
    margin-bottom: 1.5rem;
}

.tripways-blog-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.tripways-blog-meta {
    font-size: 0.875rem;
    color: var(--wp--preset--color--muted, #64748b);
}

.tripways-blog-meta__sep {
    margin: 0 0.35em;
    opacity: 0.7;
}

.tripways-blog-meta__cats a {
    color: inherit;
    text-decoration: none;
}

.tripways-blog-meta__cats a:hover {
    text-decoration: underline;
}

.tripways-blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
    align-items: start;
}

.tripways-blog-main {
    min-width: 0;
}

/* Desktop: keep images and content inside main column (no overlap with sidebar) */
@media (min-width: 768px) {
    .tripways-blog-single .tripways-blog-main {
        overflow: hidden;
    }

    .tripways-blog-single .tripways-blog-content img,
    .tripways-blog-single .tripways-blog-content figure,
    .tripways-blog-single .tripways-blog-content .wp-block-image {
        max-width: 100%;
        width: auto;
        height: auto;
    }

    .tripways-blog-single .tripways-blog-featured,
    .tripways-blog-single .tripways-blog-featured__img {
        max-width: 100%;
    }
}

/* Featured image: same width as content column; round edges on desktop */
.tripways-blog-featured {
    margin: 0 0 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.tripways-blog-featured__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.tripways-blog-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.tripways-blog-content h2 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem;
}

.tripways-blog-content h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.tripways-blog-content p {
    margin: 0 0 1rem;
}

.tripways-blog-content ul,
.tripways-blog-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5em;
}

.tripways-blog-content img,
.tripways-blog-content figure img,
.tripways-blog-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.tripways-blog-content figure,
.tripways-blog-content .wp-block-image {
    border-radius: 15px;
    overflow: hidden;
}


/* Sidebar: sticky on desktop so it stays visible in long articles; static on mobile, shown at end */
.tripways-blog-sidebar {
    position: static;
}

@media (min-width: 768px) {
    .tripways-blog-single .tripways-blog-sidebar {
        position: sticky;
        top: 1rem;
        align-self: start;
    }
}

.tripways-blog-widget {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 1.25rem;
}

.tripways-blog-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.tripways-blog-widget .tripways-tours-vertical {
    margin-top: 0.5rem;
}

.tripways-tours-vertical .tripways-tour-card-vertical,
.tripways-tours-vertical .tripways-tour-card-vertical:hover,
.tripways-tours-vertical .tripways-tour-card-vertical__link,
.tripways-tours-vertical .tripways-tour-card-vertical__link:hover {
    box-shadow: none !important;
}

/* Blog archive & grid */
.tripways-blog-archive-header {
    margin-bottom: 2rem;
}

.tripways-blog-archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.tripways-blog-archive-desc {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--muted, #64748b);
}

.tripways-blog-grid__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 600px) {
    .tripways-blog-grid__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .tripways-blog-grid__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tripways-blog-grid-card {
    margin: 0;
}

.tripways-blog-grid-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tripways-blog-grid-card__link:hover {
    color: var(--wp--preset--color--primary, #2563eb);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tripways-blog-grid-card__thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.tripways-blog-grid-card__thumb--placeholder {
    min-height: 140px;
}

.tripways-blog-grid-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tripways-blog-grid-card__content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tripways-blog-grid-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.tripways-blog-grid-card__meta {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--muted, #64748b);
    margin-bottom: 0.5rem;
}

.tripways-blog-grid-card__sep {
    margin: 0 0.25em;
}

.tripways-blog-grid-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: var(--wp--preset--color--muted, #64748b);
    flex: 1;
}

.tripways-blog-empty {
    color: var(--wp--preset--color--muted, #64748b);
    grid-column: 1 / -1;
}

/* Blog archive: category and tag filter rows (capsules, horizontal scroll, no scrollbar) */
.tripways-blog-filters {
    margin: 0 0 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tripways-blog-filters__row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px 16px;
    margin-bottom: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.tripways-blog-filters__row:last-child {
    margin-bottom: 0;
}

.tripways-blog-filters__label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.tripways-blog-filters__scroll-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
    flex: 1 1 0%;
    max-width: 100%;
}

.tripways-blog-filters__scroll-wrap::-webkit-scrollbar {
    display: none;
}

.tripways-blog-filters__scroll-wrap .tripways-filters__pill {
    flex-shrink: 0;
}

/* Prevent blog archive (main + filters) from ever causing page horizontal scroll */
.tripways-blog-archive.site-main {
    min-width: 0;
    overflow-x: hidden;
}

/* Blog pagination: separate row below content, center aligned (same as taxonomy) */
.tripways-blog-archive .tripways-pagination {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2.5rem;
}

.tripways-blog-grid__list .nav-links {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tripways-blog-grid__list .nav-links a,
.tripways-blog-grid__list .nav-links span {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .tripways-blog-layout {
        grid-template-columns: 1fr;
    }

    .tripways-blog-sidebar {
        position: static;
    }

    .tripways-blog-grid__list {
        grid-template-columns: 1fr;
    }

    /* Single post: legacy-style narrow side padding, images true edge-to-edge (viewport full-bleed), no horizontal scroll */
    .tripways-blog-single.tripways-blog {
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .tripways-blog-single .tripways-blog-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tripways-blog-single .tripways-blog-layout {
        padding-left: 0;
        padding-right: 0;
    }

    .tripways-blog-single .tripways-blog-main {
        padding: 0;
        overflow-x: hidden;
    }

    /* Featured image: true edge-to-edge inside mobile single layout */
    .tripways-blog-single .tripways-blog-featured {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        width: calc(100% + 24px);
        max-width: none;
        box-sizing: border-box;
    }

    .tripways-blog-single .tripways-blog-featured__img {
        width: 100%;
        height: auto;
        display: block;
    }

    .tripways-blog-single .tripways-blog-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Content images: true edge-to-edge (break out from 12px content padding) */
    .tripways-blog-single .tripways-blog-content img {
        width: calc(100% + 24px);
        max-width: none;
        position: relative;
        left: auto;
        right: auto;
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        display: block;
        box-sizing: border-box;
    }

    .tripways-blog-single .tripways-blog-content figure,
    .tripways-blog-single .tripways-blog-content .wp-block-image {
        width: calc(100% + 24px);
        max-width: none;
        position: relative;
        left: auto;
        right: auto;
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        overflow: hidden;
        box-sizing: border-box;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .tripways-blog-single .tripways-blog-content figure img,
    .tripways-blog-single .tripways-blog-content .wp-block-image img {
        width: 100%;
        max-width: 100%;
        position: static;
        left: auto;
        margin-left: 0;
        margin-right: 0;
        display: block;
    }

    .tripways-blog-single .tripways-blog-sidebar {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Archive grid: keep padding for cards */
    .tripways-blog-archive .tripways-blog-archive-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .tripways-blog-grid-card__content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ==========================================================================
   Homepage sections (front page)
   ========================================================================== */

.tripways-home-hero {
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.tripways-home-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.tripways-home-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
}

.tripways-home-hero__subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.125rem;
    color: #64748b;
}

.tripways-home-hero__search {
    margin-bottom: 2rem;
}

.tripways-home-hero__search-box {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tripways-home-hero__search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #334155;
    outline: none;
}

.tripways-home-hero__search-input::placeholder {
    color: #94a3b8;
}

.tripways-home-hero__search-status {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.tripways-home-hero__ai-subtitle {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.tripways-home-hero__ai-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent, #0ea5e9);
    text-decoration: none;
}

.tripways-home-hero__ai-link:hover {
    text-decoration: underline;
}

.tripways-home-hero__regions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.tripways-home-hero__region {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    background: #f1f5f9;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.tripways-home-hero__region:hover {
    background: #e2e8f0;
    color: #1e293b;
}

@media (max-width: 767px) {
    .tripways-home-hero__title {
        font-size: clamp(1.75rem, 7.8vw, 2.1rem);
    }
}

/* Featured spotlight */
.tripways-home-spotlight {
    padding: 2rem 1.5rem;
    background: #fff;
}

.tripways-home-spotlight__inner {
    max-width: 960px;
    margin: 0 auto;
}

.tripways-home-spotlight__label {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #475569;
}

.tripways-home-spotlight__card {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tripways-home-spotlight__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tripways-home-spotlight__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tripways-home-spotlight__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tripways-home-spotlight__content {
    padding: 1.25rem 1.5rem;
}

.tripways-home-spotlight__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.tripways-home-spotlight__meta {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.tripways-home-spotlight__price {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent, #0ea5e9);
}

.tripways-home-spotlight__cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent, #0ea5e9);
    border-radius: 6px;
}

/* What is TripWays – editable block content */
.tripways-home-about {
    padding: 3rem 1.5rem;
    background: #f8fafc;
}

.tripways-home-about__inner {
    max-width: 720px;
    margin: 0 auto;
}

.tripways-home-about__inner h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.tripways-home-about__inner p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.tripways-home-about__inner h4,
.tripways-home-about__inner h5,
.tripways-home-about__inner h6 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

/* Featured tours – uses shared .tripways-home-slider-section, extra header/view-all */
.tripways-home-featured {
    background: #fff;
}

.tripways-home-featured__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tripways-home-featured__badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #0ea5e9);
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
}

.tripways-home-featured__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.tripways-home-featured__view-all {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--accent, #0ea5e9);
    text-decoration: none;
}

.tripways-home-featured__view-all:hover {
    text-decoration: underline;
}

/* Carousel – shared */
.tripways-home-carousel {
    position: relative;
    max-width: 100%;
    min-width: 0;
    padding: 0 64px; /* more space between arrows and cards */
    overflow: hidden;
}

.tripways-home-carousel__track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    /* Exactly 4 cards + gaps + side padding so last card’s border is fully visible */
    max-width: 1192px; /* 12px + 4×280px + 3×16px + 12px */
    margin-left: auto;
    margin-right: auto;
}

.tripways-home-carousel__track::-webkit-scrollbar {
    display: none;
}

.tripways-home-carousel__list {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 12px; /* horizontal padding so first/last card borders fully visible */
    width: max-content;
}

.tripways-home-carousel__list .tripways-tour-card {
    flex: 0 0 280px;
    min-width: 280px;
}

.tripways-home-carousel__list.tripways-home-blog__list .tripways-home-blog-card {
    flex: 0 0 280px;
    min-width: 280px;
}

.tripways-home-carousel__prev,
.tripways-home-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 0;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.tripways-home-carousel__prev:hover,
.tripways-home-carousel__next:hover {
    opacity: 1;
}

.tripways-home-carousel__prev {
    left: 12px;
}

.tripways-home-carousel__next {
    right: 12px;
}

.tripways-home-carousel__prev::before,
.tripways-home-carousel__next::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-style: solid;
}

.tripways-home-carousel__prev::before {
    border-width: 6px 8px 6px 0;
    border-color: transparent #475569 transparent transparent;
}

.tripways-home-carousel__next::before {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #475569;
}

@media (max-width: 767px) {
    .tripways-home-carousel {
        padding: 0 1rem;
    }

    .tripways-home-carousel__prev,
    .tripways-home-carousel__next {
        display: none;
    }

    .tripways-home-carousel__list {
        padding-left: 0.25rem;
        padding-right: 1rem;
    }

        .tripways-home-carousel__list .tripways-tour-card {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .tripways-home-carousel__list.tripways-home-blog__list .tripways-home-blog-card,
    .tripways-home-blog__list .tripways-home-blog-card {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .tripways-home-destinations__list .tripways-home-dest-card {
        flex: 0 0 140px;
        min-width: 140px;
    }

    .tripways-home-slider-section__inner {
        padding: 0 1rem;
    }
}

/* Destinations – uses shared .tripways-home-slider-section */
.tripways-home-destinations {
    background: #f1f5f9;
}

.tripways-home-destinations__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tripways-home-destinations__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.tripways-home-destinations__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
}

.tripways-home-destinations__list .tripways-home-dest-card {
    flex: 0 0 160px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tripways-home-dest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tripways-home-dest-card__count {
    font-size: 0.75rem;
    color: #64748b;
}

.tripways-home-dest-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.tripways-home-destinations__browse {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--accent, #0ea5e9);
    text-decoration: none;
}

.tripways-home-destinations__browse:hover {
    text-decoration: underline;
}

/* Shared slider section – full-width background, boxed content (latest blog, recent tours) */
.tripways-home-slider-section {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 0;
    overflow-x: hidden;
}

.tripways-home-slider-section__inner {
    /* 4 cards + gaps + list padding 12px each side; + carousel padding 128px + section padding 48px */
    max-width: 1368px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-width: 0;
}

.tripways-home-slider-section__title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.tripways-home-latest-blog {
    background: #fff;
}

.tripways-home-recent-tours {
    background: #fff;
}

/* Blog carousel */
.tripways-home-blog {
    padding: 2.5rem 1.5rem;
    background: #fff;
}

.tripways-home-blog__title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.tripways-home-blog__list .tripways-home-blog-card {
    flex: 0 0 280px;
    min-width: 280px;
}

.tripways-home-blog-card__link {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tripways-home-blog-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.tripways-home-blog-card__thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.tripways-home-blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tripways-home-blog-card__content {
    padding: 1rem 1.25rem;
}

.tripways-home-blog-card__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tripways-home-blog-card__excerpt {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tripways-home-blog-card__link-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent, #0ea5e9);
}

/* ==============================
   TripWays Pagination (tours + taxonomy)
   Minimal, full circles, centered, mobile responsive
   ============================== */

.tripways-pagination {
    margin: 2.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tripways-pagination__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tripways-pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tripways-pagination__item a,
.tripways-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.tripways-pagination__item a:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.tripways-pagination__item span.current {
    background: #5a287d;
    border-color: #5a287d;
    color: #fff;
}

.tripways-pagination__item .prev,
.tripways-pagination__item .next {
    font-size: 18px;
    line-height: 1;
}

.tripways-pagination__item .dots {
    background: transparent;
    border: none;
    cursor: default;
    width: auto;
    min-width: auto;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 480px) {
    .tripways-pagination {
        margin: 2rem 0 1rem;
    }

    .tripways-pagination__list {
        gap: 8px;
    }

    .tripways-pagination__item a,
    .tripways-pagination__item span:not(.dots) {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 13px;
    }

    .tripways-pagination__item .prev,
    .tripways-pagination__item .next {
        font-size: 16px;
    }
}

/* ==============================
   Bucket List
   ============================== */

/* Bucket list button – heart icon on tour cards */
.tripways-tour-card,
.tripways-tour-card-vertical {
    position: relative;
}

.tripways-bucket-list-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tripways-bucket-list-btn:hover {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.tripways-bucket-list-btn__icon {
    display: block;
    color: #9ca3af;
    transition: color 0.2s;
}

.tripways-bucket-list-btn--active .tripways-bucket-list-btn__icon {
    color: #dc2626;
}

.tripways-bucket-list-btn__icon--outline {
    display: block;
}

.tripways-bucket-list-btn__icon--filled {
    display: none;
}

.tripways-bucket-list-btn--active .tripways-bucket-list-btn__icon--outline {
    display: none;
}

.tripways-bucket-list-btn--active .tripways-bucket-list-btn__icon--filled {
    display: block;
}

/* Header actions – Ask About This Tour + Bucket List (compact, breadcrumb row) */
.tripways-tour-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tripways-wa-header-btn,
.tripways-bucket-list-btn--inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    font-family: inherit;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tripways-wa-header-btn:hover,
.tripways-bucket-list-btn--inline:hover {
    background: #f9fafb;
    color: #374151;
    transform: none;
}

.tripways-wa-header-btn__icon,
.tripways-bucket-list-btn--inline .tripways-bucket-list-btn__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.tripways-wa-header-btn__icon {
    color: #25d366;
}

.tripways-wa-header-btn__label {
    white-space: nowrap;
}

.tripways-bucket-list-btn--inline {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
}

.tripways-bucket-list-btn--inline .tripways-bucket-list-btn__label {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    color: #374151;
}

.tripways-bucket-list-btn--inline.tripways-bucket-list-btn--active {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

.tripways-bucket-list-btn--inline.tripways-bucket-list-btn--active .tripways-bucket-list-btn__label {
    color: #dc2626;
}

/* Standard tour card – heart on image, top-right corner of thumb */
.tripways-tour-card__thumb .tripways-bucket-list-btn {
    top: 6px;
    right: 6px;
    left: auto;
}

/* Vertical card – heart on image, top-right corner of thumb */
.tripways-tour-card-vertical__thumb .tripways-bucket-list-btn {
    top: 6px;
    right: 6px;
    left: auto;
}

/* Bucket List page */
.tripways-bucket-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.tripways-bucket-list__header {
    margin-bottom: 32px;
    text-align: center;
}

.tripways-bucket-list__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.tripways-bucket-list__subtitle {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

.tripways-bucket-list__empty {
    text-align: center;
    padding: 48px 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.tripways-bucket-list__empty-icon {
    display: block;
    margin: 0 auto 16px;
    color: #d1d5db;
}

.tripways-bucket-list__empty-text {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.tripways-bucket-list__empty-hint {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7280;
}

.tripways-bucket-list__empty-cta {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.tripways-bucket-list__empty-cta:hover {
    background: #005a87;
    color: #fff;
}

.tripways-bucket-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tripways-bucket-list__card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, opacity 0.3s, transform 0.3s;
}

.tripways-bucket-list__card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.tripways-bucket-list__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tripways-bucket-list__card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.tripways-bucket-list__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tripways-bucket-list__card-content {
    padding: 16px;
}

.tripways-bucket-list__card-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.tripways-bucket-list__card-link:hover .tripways-bucket-list__card-title {
    color: #007cba;
}

.tripways-bucket-list__card-dest {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
}

.tripways-bucket-list__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
}

.tripways-bucket-list__card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.tripways-bucket-list__card-price-current {
    color: #059669;
}

.tripways-bucket-list__card-price-original {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

.tripways-bucket-list__card-thumb-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.tripways-bucket-list__card-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tripways-bucket-list__card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.tripways-bucket-list__card-remove:hover {
    background: #fff;
    color: #dc2626;
    transform: scale(1.05);
}

.tripways-bucket-list__card-footer {
    display: flex;
    justify-content: center;
    padding: 14px 16px;
    border-top: 1px solid #f3f4f6;
}

.tripways-bucket-list__card-view {
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
    text-decoration: none;
}

.tripways-bucket-list__card-view:hover {
    text-decoration: underline;
}

/* Vendor grid slider – 2 rows × 6 vendors per slide */
.tripways-vendor-grid {
    width: 100%;
    max-width: none;
    padding: 2.5rem 1.5rem;
    background: #fafbfc;
    box-sizing: border-box;
}

.tripways-vendor-grid__title {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
}

.tripways-vendor-grid__slider {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 48px;
}

.tripways-vendor-grid__track {
    position: relative;
    overflow: hidden;
}

.tripways-vendor-grid__slide {
    display: none;
    animation: tripways-vendor-grid-fade 0.3s ease;
}

.tripways-vendor-grid__slide.is-active {
    display: block;
}

@keyframes tripways-vendor-grid-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tripways-vendor-grid__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem 1.25rem;
}

.tripways-vendor-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

a.tripways-vendor-grid__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tripways-vendor-grid__logo {
    width: 100px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.tripways-vendor-grid__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tripways-vendor-grid__name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    line-height: 1.3;
}

.tripways-vendor-grid__prev,
.tripways-vendor-grid__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: #475569;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.tripways-vendor-grid__prev:hover,
.tripways-vendor-grid__next:hover {
    opacity: 1;
}

.tripways-vendor-grid__prev {
    left: 0;
}

.tripways-vendor-grid__next {
    right: 0;
}

.tripways-vendor-grid__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tripways-vendor-grid__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s;
}

.tripways-vendor-grid__dot.is-active {
    background: var(--accent, #0ea5e9);
}

.tripways-vendor-grid__dot:hover {
    background: #94a3b8;
}

@media (max-width: 991px) {
    .tripways-vendor-grid__grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

@media (max-width: 767px) {
    .tripways-vendor-grid__slider {
        padding: 0 44px;
    }

    .tripways-vendor-grid__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, auto);
        gap: 0.75rem 1rem;
    }

    .tripways-vendor-grid__logo {
        width: 64px;
        height: 40px;
    }

    .tripways-vendor-grid__name {
        font-size: 0.75rem;
    }

    .tripways-vendor-grid__prev,
    .tripways-vendor-grid__next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
