/* ==========================================================================
   Traveller Stories — Single Template
   BEM naming with ts- prefix
   ========================================================================== */

.traveller_stories_single {
    font-family: 'Montserrat', sans-serif;
}

.traveller_stories_single a:hover {
    color: inherit;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.traveller-stories-wrapper {
    padding: 20px;
    padding-top: 60px;
}

.ts-hero {
    position: relative;
    width: 100%;
    min-height: 604px;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
}

.ts-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ts-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(0, 0, 0, 0.75) 100%);
}

.ts-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    max-width: calc(1340px + 80px);
    margin-inline: auto;
}

.ts-hero__left {
    flex: 1;
    min-width: 0;
}

.ts-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0px !important;
}

.ts-hero__meta>* {
    color: white;
    font-size: 11px;
    background-color: #FFFFFF26;
    font-weight: 500;
    border-radius: 200px;
    margin-right: 1rem;
    border: 2px solid #F2F2F21A;
    padding: 8px 16px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Montserrat, sans-serif;
    line-height: 1;
}

.ts-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 61px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: 0px;
    text-transform: capitalize;
    color: #fff;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 750px;
}

/* --------------------------------------------------------------------------
   Audio Player
   -------------------------------------------------------------------------- */
.ts-audio {
    --seek-before-width: 0%;
    --buffered-width: 0%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    max-width: 300px;
}

.ts-audio__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-audio__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.ts-audio__title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.ts-audio audio {
    display: none;
}

.ts-audio__play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease;
}

.ts-audio__play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ts-audio__icon-play {
    width: 10px;
    height: 12px;
    margin-left: 2px;
}

.ts-audio__icon-pause {
    width: 10px;
    height: 12px;
}

.ts-audio__time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 30px;
    text-align: center;
}

.ts-audio__seek-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 80px;
}

.ts-audio__seek {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: relative;
    outline: none;
}

.ts-audio__seek::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.5) var(--buffered-width),
            rgba(255, 255, 255, 0.15) var(--buffered-width));
}

.ts-audio__seek::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: var(--seek-before-width);
    height: 3px;
    border-radius: 2px;
    background: #fff;
    pointer-events: none;
}

.ts-audio__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    margin-top: -4px;
    position: relative;
    z-index: 1;
    transition: transform 0.15s ease;
}

.ts-audio__seek:active::-webkit-slider-thumb {
    transform: scale(1.3);
}

/* Firefox */
.ts-audio__seek::-moz-range-track {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.5) var(--buffered-width),
            rgba(255, 255, 255, 0.15) var(--buffered-width));
}

.ts-audio__seek::-moz-range-progress {
    height: 3px;
    border-radius: 2px;
    background: #fff;
}

.ts-audio__seek::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

.ts-audio__seek:active::-moz-range-thumb {
    transform: scale(1.3);
}

.ts-audio__seek::-moz-focus-outer {
    border: 0;
}

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.ts-layout {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-block: 48px;
}

.ts-main {
    max-width: 744px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Info Card — Desktop
   -------------------------------------------------------------------------- */
.ts-infocard {
    position: absolute;
    right: calc(50% + 372px + 32px);
    width: 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    box-sizing: border-box;
}

.ts-infocard__header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ts-infocard__photos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.ts-infocard__photos--overlap .ts-infocard__photo-wrap {
    margin-left: -20px;
    flex-shrink: 0;
    position: relative;
}

.ts-infocard__photos--overlap .ts-infocard__photo-wrap:first-child {
    margin-left: 0;
}

.ts-infocard__photos--overlap .ts-infocard__photo-wrap:nth-child(1) {
    z-index: 1;
}

.ts-infocard__photos--overlap .ts-infocard__photo-wrap:nth-child(2) {
    z-index: 2;
}

.ts-infocard__photos--overlap .ts-infocard__photo-wrap:nth-child(3) {
    z-index: 3;
}

.ts-infocard__photos--overlap .ts-infocard__photo-wrap:nth-child(4) {
    z-index: 4;
}

.ts-infocard__photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.ts-infocard__photos .ts-infocard__photo {
    margin: 0;
}

.ts-infocard__photo-wrap {
    display: block;
    line-height: 0;
}

.ts-infocard__photo-link {
    text-decoration: none;
}

.ts-infocard__photo-link:hover .ts-infocard__photo {
    opacity: 0.9;
}

.ts-infocard__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #c0392b;
}

.ts-infocard__name a {
    color: #c0392b;
    text-decoration: none;
}

.ts-infocard__name a:hover {
    text-decoration: underline;
}

.ts-infocard__subtitle {
    display: block;
    color: #555;
    font-weight: 400;
}

.ts-infocard__country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

.ts-infocard__flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ts-infocard__country-name {
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Body — 2×2 Grid (Duration / Guests / Countries / Itinerary)
   -------------------------------------------------------------------------- */
.ts-infocard__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ts-infocard__stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-infocard__stat-icon {
    width: 20px;
    height: 20px;
    color: #999;
}

.ts-infocard__stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
}

.ts-infocard__stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0;
    color: #222;
}

.ts-infocard__stat-link {
    color: #c0392b;
    text-decoration: none;
}

.ts-infocard__stat-link:hover {
    text-decoration: underline;
}

/* Country tags cell — wrapping pills inside the grid */
.ts-infocard__stat--countries {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
}

.ts-infocard__tag {
    display: inline-block;
    width: fit-content;
    font-size: 10px;
    line-height: 14px;
    font-weight: 500;
    color: #999;
    background: #fff;
    border: 1px solid #3A3A3A1A;
    border-radius: 20px;
    padding: 4px 10px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ts-infocard__tag:hover,
.ts-infocard__tag:focus {
    background: #3A3A3A1A;
    color: #222;
    border-color: #3A3A3A1A;
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Introduction
   -------------------------------------------------------------------------- */
.ts-introduction {
    font-weight: 400;
    font-style: Italic;
    font-size: 20px !important;
    line-height: 30px !important;
    letter-spacing: 0px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.ts-introduction p {
    font-size: 20px !important;
    line-height: 30px !important;
}

/* --------------------------------------------------------------------------
   Flexible Content Block Wrapper
   -------------------------------------------------------------------------- */
.ts-block {
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Expertise Box
   -------------------------------------------------------------------------- */
.ts-expertise {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 32px;
    margin-top: 48px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #F2F2F280;
    box-shadow: 0px 3px 5px -1.5px #6A6A6A0A;
    box-shadow: 0px 8px 10px -4px #6A6A6A08;

}

.ts-expertise__photo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ts-expertise__body {
    flex: 1;
    min-width: 0;
}

.ts-expertise__heading {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0px;
    color: #222;
    margin: 0;
}

.ts-expertise__heading a {
    color: #b83426;
    text-decoration: none;
}

.ts-expertise__heading a:hover {
    text-decoration: underline;
}

.ts-expertise__role {
    font-size: 16px;
    color: #888;
    margin-top: 4px;
    font-weight: 500;
}

.ts-expertise__description {
    margin-top: 16px;
}

.ts-expertise__body a {
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Story Nav (Previous / Next)
   -------------------------------------------------------------------------- */
.ts-story-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding: 16px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.ts-story-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b83426;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ts-story-nav__link:hover {
    opacity: 0.7;
    color: #b83426;
}

.ts-story-nav__link--next {
    margin-left: auto;
}

.ts-story-nav__link svg {
    width: 8px;
    height: 14px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Share Icons
   -------------------------------------------------------------------------- */
.ts-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 24px 0;
}

.ts-share__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: none;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ts-share__icon:hover {
    border-color: #999;
    color: #666;
}

.ts-share__icon svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Itinerary
   -------------------------------------------------------------------------- */
.ts-itinerary {
    margin: 48px 0;
}

.ts-itinerary__heading {
    margin: 0 0 28px;
}

.ts-itinerary__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    min-height: 500px;
    max-height: 650px;
}

.ts-itinerary__left {
    padding: 24px;
    overflow-y: auto;
    max-height: 650px;
}

.ts-itinerary__subheading {
    font-family: Montserrat;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: 0%;
    color: #999999;
}

.ts-itinerary__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-itinerary__stop {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    position: relative;
}

.ts-itinerary__stop:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 36px;
    bottom: -12px;
    width: 0;
    border-left: 2px dotted #ccc;
}

.ts-itinerary__marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ts-itinerary__details {
    flex: 1;
    min-width: 0;
}

.ts-itinerary__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ts-itinerary__accom-name,
.ts-itinerary__accom-name a {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 130%;
}

.ts-itinerary__accom-name a {
    color: inherit;
    text-decoration: none;
}

.ts-itinerary__accom-name a:hover {
    text-decoration: underline;
}

.ts-itinerary__meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.ts-itinerary__nights-sep {
    color: #ccc;
}

.ts-itinerary__nights {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    white-space: nowrap;
}

.ts-itinerary__destination {
    font-size: 12px;
    color: #999;
    line-height: 1.2;
    text-wrap: balance;
}

.ts-itinerary__date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
    padding-top: 2px;
}

.ts-itinerary__map-wrap {
    position: relative;
    min-height: 500px;
}

.ts-itinerary__map-wrap .the_media_block {
    height: 100% !important;
    width: 100% !important;
    background: revert !important;
}

.ts-itinerary__map-wrap #ts-map {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Declustering label overlay (ts-itinerary-map.js) */
#ts-map .ts-map-labels {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* let map drag/zoom pass through the labels */
}

#ts-map .da-map-marker-label {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%); /* centre the pill on its projected point */
}

#ts-map .da-map-marker-label__circle {
    background: #3a3a3a;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    box-sizing: border-box;
}

/* Merged labels: overlap circles into a connected chain (B E) */
#ts-map .da-map-marker-label__circle + .da-map-marker-label__circle {
    margin-left: -6px;
}

/* --------------------------------------------------------------------------
   More Stories
   -------------------------------------------------------------------------- */
.ts-more-stories {
    background: #f2f2f2;
    padding: 64px 0;
}

.ts-more-stories__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.ts-more-stories__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.ts-more-stories__heading {
    font-family: Playfair Display;
    font-weight: 400;
    font-style: Regular;
    font-size: 39px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.ts-more-stories__arrows {
    display: flex;
    gap: 8px;
}

.ts-more-stories__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: none;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ts-more-stories__arrow:hover {
    border-color: #888;
    color: #444;
}

.ts-more-stories__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ts-more-stories__track::-webkit-scrollbar {
    display: none;
}

.ts-more-stories__track>* {
    scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1377px) {

    /* Tablet: card becomes horizontal bar at top of content */
    .ts-infocard {
        position: relative;
        right: auto;
        width: 100%;
        max-width: 744px;
        padding: 24px;
        margin: 0 auto 32px;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 32px;
        align-items: center;
    }

    .ts-infocard__header {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
        text-align: center;
        flex-shrink: 0;
        margin: 0;
        padding: 0 24px 0 0;
        border: none;
        border-right: 1px solid #eee;
    }

    .ts-infocard__subtitle {
        display: block;
    }

    .ts-infocard__photo {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .ts-infocard__name {
        margin-bottom: 2px;
    }

    .ts-infocard__body {
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
    }

    .ts-infocard__stat {
        align-items: flex-start;
        text-align: left;
    }

}

@media (max-width: 1024px) {
    .ts-hero__title {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .traveller-stories-wrapper {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .ts-introduction,
    .ts-introduction p {
        font-size: 18px !important;
        line-height: 27px !important;
    }

    .ts-hero {
        min-height: 460px;
    }

    .ts-hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 25px;
    }

    .ts-hero__title {
        font-size: 36px;
        max-width: 100%;
    }

    .ts-audio {
        width: 100%;
        max-width: 100%;
    }

    .ts-layout {
        padding-block: 32px;
    }

    /* Mobile: compact horizontal card — photo left, info right */
    .ts-infocard {
        padding: 20px;
        margin-bottom: 24px;
    }

    .ts-infocard__header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .ts-infocard__photo {
        width: 48px;
        height: 48px;
    }

    .ts-infocard__body {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ts-itinerary__container {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .ts-itinerary__left {
        max-height: 100%;
    }

    #ts-map {
        min-height: 350px;
    }

    .ts-more-stories__track {
        grid-auto-columns: calc((100% - 24px) / 2);
    }

}

@media (max-width: 640px) {

    .ts-infocard {
        grid-template-columns: 1fr;
    }

    .ts-infocard__body {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .ts-infocard__stat--countries {
        grid-column: 1 / -1;
        order: 4;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px;
    }

    .ts-infocard__header {
        flex-direction: row;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .ts-hero__title {
        font-size: 28px;
    }

    .ts-hero__content {
        padding: 20px 15px;
    }


    .ts-layout {
        padding-block: 20px;
    }

    .ts-more-stories__track {
        grid-auto-columns: 85%;
    }

    .ts-more-stories__heading {
        font-size: 24px;
    }

    .ts-more-stories__inner {
        padding: 0 20px;
    }

    .ts-more-stories {
        padding: 48px 0;
    }

    .ts-expertise {
        flex-direction: column;
    }
}