.tour-stops-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    height: calc(100vh - 84px);
    overflow-y: auto;
    -ms-flex: 0 0 360px;
    flex: 0 0 360px;
    max-width: 360px;
}
.tour-stops-sidebar-header {
    padding: 33px 24px 0px;
}
.tabs-switcher {
    position: relative;
    display: inline-block;
    width: auto;
    margin-bottom: 37px;
    border-radius: 22px;
    background: #B2F1EE;
}

.tabs-switcher-bg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 120px;
    height: 32px;
    background: #2C4359;
    border-radius: 20px;
    z-index: 0;
    transition: transform 0.35s cubic-bezier(.7,1.6,.39,.91);
    will-change: transform;
}

.tabs-switcher-btn {
    background: transparent;
    position: relative;
    z-index: 1;
    height: 32px;
    border: none;
    color: #353b46;
    font-weight: 600;
    font-size: 14px;
    line-height: 32px;
    border-radius: 20px;
    outline: none;
    transition: color 0.2s;
    display: inline-block;
    width: auto;
    min-width: 122px;
}
.tabs-switcher-btn.active,
.tabs-switcher-btn:active {
    color: #fff;
    outline: 0;
    border: 0
}
.tabs-switcher-btn:hover {
    outline: 0;
    border: 0
}
#tabHeaderTitle {
    font-size: 18;
    line-height: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}
.tour-stops-sidebar .tour-list {
    /* max-height: 75vh; */
    flex: 1;
    overflow-y: auto;
    padding: 0px 5px 20px 11px;
    margin-right: 12px;
}
.tour-stops-sidebar .tour-item {
    display: flex;
    padding: 13px;
    /* margin-bottom: 12px; */
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}
.tour-stops-sidebar .tour-item:hover {
    border-color: #00000010;
}
.tour-stops-sidebar .tour-item.active {
    border-color: #00000010;
}
.tour-stops-sidebar .tour-img {
    width: 72px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 21px;
    flex-shrink: 0;
}
.tour-stops-sidebar .tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tour-stops-sidebar .tour-info {
    flex: 1;
    min-width: 0;
}
.stop-title {
    font-weight: 400;
    font-size: 13px;
    color: #173954;
    line-height: 18px;
}

.stop-subtitle {
    font-size: 13px;
    line-height: 18px;
    color: #173954;
}

.stop-duration {
    font-size: 12px;
    color: rgba(23, 57, 84, 0.5);
}

.stop-duration i {
    font-size: 10px;
}
.map-area {
    position: relative;
    background: #b5e4f9;
    height: calc(100vh - 84px);
    flex: auto;
    position: relative;
}
.map-placeholder {
    width: 100%;
    height: 100vh;
    background: url('https://upload.wikimedia.org/wikipedia/commons/5/57/Oahu_Map.png') center no-repeat;
    background-size: cover;
    border-radius: 0 0 0 0;
}
.info-card-holder {
    position: absolute;
    top: 80px; 
    left: 50%; 
    transform: translateX(-30%);
    padding-bottom: 30px;
}
.info-card {
    background:#fff;;
    box-shadow: 0 14px 16px rgba(0,0,0,0.15);
    border-radius: 15px;
    min-width: 289px;
    max-width: 289px;
    padding: 8px;
    display: flex;
    position: relative;
}
.info-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    border-width: 12px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}
.audio-points-info-card-holder {
    position: absolute;
    top: 320px; 
    left: 40%; 
    padding-bottom: 30px;
}
.audio-points-info-card {
    background: #173954D9;
    box-shadow: 0 14px 16px rgba(0,0,0,0.45);
    border-radius: 15px;
    min-width: 369px;
    max-width: 369px;
    padding: 16px;
    display: flex;
    position: relative;
    align-items: center;
}
.audio-points-info-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px;
    border-style: solid;
    border-color: #173954D9 transparent transparent transparent;
}
.stop-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%; 
    width: 100%;
    height: calc(100vh - 84px);
    max-width: 100%;
    background: #fff;
    padding: 37px 32px 16px;
    z-index: 999;
    transition: bottom 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s;
    opacity: 0;
    overflow: hidden;
}
.stop-panel-header {
    display: flex;
    align-items: flex-start;
}
.stop-panel.open {
    bottom: 0; /* sits above the info card */
    opacity: 1;
}
.stop-panel-close {
    cursor: pointer;
    margin-right: 22px;
    background: transparent;
    border: none;
}
.stop-panel-close:active,
.stop-panel-close:focus {
    outline: none;
}
.stop-panel-image {
    width: 100%;
    height: 270px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 31px;
}
.stop-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.stop-panel-body {
    flex: 1;
    padding-top: 32px;
    overflow: hidden;
    overflow-y: auto;
    height: 96%;
}
.stop-panel h4 { 
    font-size: 24px;
    font-weight: 600;
    color: #2C4359;
}

.audio-points-stop-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: -100%; 
    width: 100%;
    height: 80px;
    max-width: 100%;
    /* Dark blue background to match Figma */
    background: #2C4359;
    border: 1px solid #1A2B3A;
    box-shadow: 0px -8px 24px 0px rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    max-width: 725px;
    z-index: 1200;
    transition: bottom 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s;
    opacity: 0;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}
.audio-points-stop-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 8px 0;
    width: 96%;
    position: absolute;
}

.audio-points-stop-panel-now-playing {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}
.audio-points-stop-panel.open {
    bottom: 30px;
    opacity: 1;
}
.audio-points-stop-panel-close {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s ease;
    position: absolute;
    top: 5px;
    right: 7px;
    padding: 0;
}
.audio-points-stop-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.audio-points-stop-panel-close:active,
.audio-points-stop-panel-close:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
}
.audio-points-stop-panel-image {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 8px;
}
.audio-points-stop-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.audio-points-stop-panel-body {
    flex: 1;
    display: grid;
    align-items: center;
    width: 100%;
    grid-template-columns: 1fr 90px 1fr;
}
.audio-points-stop-panel h4 { 
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0px;
    max-width: 220px;
}
.audio-points-stop-panel-action-btn-holder {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}
#audioPointsPanelPlayPauseBtn {
    transform: scale(1.8);
    margin: 0 27px;
}
.audio-points-stop-panel-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}
.audio-points-stop-panel-action-btn:active,
.audio-points-stop-panel-action-btn:focus {
    outline: none;
    border:none;
    box-shadow: none;
}
#panel-description,
#panel-description p {
    font-size: 16px;
    line-height: 30px;
    font-weight: 500;
    color: #173954;
}

.info-card-img {
    width: 115px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 9px;
    overflow: hidden;
}
.info-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.info-card-body {
    display: flex;
    flex: auto;
    flex-direction: column;
    justify-content: space-between;
}
.info-card-body h4 {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #2C4359;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-card-body p {
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: #2C4359;
    margin-bottom: 2px;
}
.info-card-body img {
    margin-right: 4px;
    /* filter: invert(100%) sepia(0%) saturate(255%) hue-rotate(255deg) brightness(255%) contrast(255%); */
}

.audio-points-info-card-img {
    flex: 0 0 70px;
    width: 70px;
    height: 61px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 9px;
    overflow: hidden;
}
.audio-points-info-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.audio-points-info-card-body {
    display: flex;
    flex: auto;
    flex-direction: column;
    justify-content: space-between;
}
.audio-points-info-card-body h4 {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-points-info-card-body p {
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 2px;
}
.audio-points-info-card-body img {
    margin-right: 4px;
}
.audio-points-info-card-btn {
    background: #fff;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.audio-points-info-card-btn:active,
.audio-points-info-card-btn:focus {
    outline: none;
}
.audio-points-progress {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}
.audio-points-progress span {
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 11px;
    min-width: 35px;
}

/* Styled linear audio progress with knob */
.audio-progress-bar {
    flex: 1;
    position: relative;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    overflow: visible;
}
.audio-progress-bar .progress-bar {
    height: 100% !important;
    border-radius: 2px;
    background: #FFFFFF; /* white progress fill */
    box-shadow: none;
}
.audio-progress-bar .progress-bar.bg-info { background: #173954; }

/* knob */
#progress-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #173954; /* dark navy main */
    z-index: 10;
    display: block;
    pointer-events: none; /* if you later want dragging enable pointer events */
}

.mapboxgl-popup-content { 
    padding: 0!important; 
    border-radius: 15px!important;
    max-width: 300px;
}

.mapboxgl-popup-close-button {
    display: block;
    font-size: 18px;
    color: #666;
}

.marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.marker:hover {
    transform: scale(1.1);
}

.marker-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 10;
    pointer-events: none;
    font-family: Arial, sans-serif;
    line-height: 1;
}
/* smaller knob variant for very small screens */
@media (max-width: 480px) {
    #progress-knob { width: 24px; height: 24px; border-width: 5px; }
}
/* Circular progress for audio point (small radial progress) */
.audio-points-progress-circle {
    position: relative;
    width: 34px;
    height: 34px;
}
.audio-points-progress-circle svg {
    width: 100%;
    height: 100%;
    display: block;
    /* rotate so progress starts at 12 o'clock */
    transform: rotate(-90deg);
    overflow: visible;
}
.audio-points-progress-circle circle.progress-track {
   
    stroke-width: 2.5;
    fill: none;
}
.audio-points-progress-circle circle.progress-value {
    stroke: #173954;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

/* Locked audio purchase modal */
.locked-audio-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 24px;
}
.locked-audio-overlay.open {
    display: flex;
}
.locked-audio-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}
.locked-audio-modal .close-btn {
    position: absolute;
    right: 0px;
    top: 6px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.locked-audio-modal .close-btn:active,
.locked-audio-modal .close-btn:focus,
.locked-audio-modal .buy-btn:active,
.locked-audio-modal .buy-btn:focus {
    outline: none;
}
.locked-audio-modal .lock-icon {
    width: 45px;
    height: 45px;
    margin: 6px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.locked-audio-modal .lock-icon img { width: 35px; height: 45px; }
.locked-audio-modal h3 {
    margin: 8px 0 12px;
    font-size: 18px;
    color: #173954;
}
.locked-audio-modal p {
    color: #2C4359;
    margin-bottom: 24px;
    line-height: 28px;
    font-size: 16px;
    font-weight: 500;
}
.locked-audio-modal .buy-btn {
    background: #B2F1EE;
    color: #2C4359;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    line-height: 18.5px;
}
.locked-audio-modal .buy-btn:active, .locked-audio-modal .buy-btn:focus { outline: none; }
/* Scrollbar Styling */
.tour-stops-sidebar .tour-list::-webkit-scrollbar {
    width: 3px;
}

.tour-stops-sidebar .tour-list::-webkit-scrollbar-track {
    background: #DADADA;
    border-radius: 3px;
}

.tour-stops-sidebar .tour-list::-webkit-scrollbar-thumb {
    background: #173954;
    border-radius: 3px;
}

.tour-stops-sidebar .tour-list::-webkit-scrollbar-thumb:hover {
    background: #173954;
}
#mapboxMap {
    height: 100%;
    position: relative;
}
#mapboxMap .mapboxgl-control-container {
    position: absolute;
    bottom: 10px;
    right: 0px;
    z-index: 1;
    scale: 0.8;
    left: -9%;
}


.tour-item-play-btn:focus{outline: 0px;}
.mapboxgl-popup-content{background: transparent;}

/* .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{display: none!important;} */

.info-card::after{display:none!important;}


.mapboxgl-popup-anchor-right .audio-points-info-card::after{display: none!important;}
.mapboxgl-popup-anchor-left .audio-points-info-card::after{display: none!important;}
.mapboxgl-popup-anchor-top .audio-points-info-card::after,

.mapboxgl-popup-anchor-top .info-card::after{display: none!important;}

.audio-points-info-card{min-width: inherit;}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{border-top-color: #173954D9!important;}
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {border-bottom-color: #173954D9!important;}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {border-right-color: #173954D9!important;}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {border-left-color: #173954D9!important;}

.mapboxgl-popup-anchor-bottom:has(.info-card) .mapboxgl-popup-tip{border-top-color: #ffffff!important;}
.mapboxgl-popup-anchor-top:has(.info-card) .mapboxgl-popup-tip {border-bottom-color: #ffffff!important;}
.mapboxgl-popup-anchor-left:has(.info-card) .mapboxgl-popup-tip {border-right-color: #ffffff!important;}
.mapboxgl-popup-anchor-right:has(.info-card) .mapboxgl-popup-tip {border-left-color: #ffffff!important;}


.ts-custom .card{
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1)!important;
    /* box-shadow: 0px 4px 44px rgba(0, 0, 0, 0.1); */
    border-radius: 10px!important;
    margin-bottom: 20px;
}
.ts-custom .card .card-header{
    background:#ffffff;
    padding: 15px;
}
.ts-icon{max-height:20px;}
.ts-custom .card .card-header .btn{
    font-size: 14px;
    font-weight: 500;
    color: var(--dblack);
    padding: 0px;
}
.ts-custom .card .card-header .btn:hover, .ts-custom .card .card-header .btn:focus{
    text-decoration: none;
}
.ts-custom .card-body{padding: 15px;}
.ts-custom  .card>.card-header button[aria-expanded="false"] span {
    transition: all 350ms ease-in-out;
}
.ts-custom .card>.card-header button[aria-expanded="true"] span {
    transition: all 350ms ease-in-out;
    transform: rotate(180deg);
}





@media(min-width:768px) {
    #sidebarToggle {
        display: none;
    }
    .audio-points-stop-panel-body-xs {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .tour-stops-sidebar {
        height: auto;
        min-height: 250px;
    }
    .info-card-holder {
        position: static;
        margin: 18px auto;
        left: auto; 
        transform: none;
    }
    .audio-points-info-card-holder {
        position: static;
        margin: 18px auto;
        left: auto; 
        transform: none;
    }
}

/* Mobile bottom-sheet behavior for tour stops sidebar */
@media (max-width: 767px) {
    .tour-stops-sidebar {
        position: fixed;
        left: 0px;
        right: 0px;
        bottom:0px;
        z-index: 1100;
        width: auto;
        max-width: 100%;
        height: 110px;
        min-height: 110px;
        border-radius:20px 20px 0px 0px;
        overflow: visible;
        transition: height 0.35s cubic-bezier(.2,.8,.2,1), transform 0.35s;
        box-shadow: 0 12px 24px rgba(0,0,0,0.18);
        backdrop-filter: blur(7px);

    }

    .tour-stops-sidebar.expanded {
        height: calc(100vh - 84px - 80px); /* expanded to near full height */
    }
    .tab-content-list {
        /* overflow: hidden; */
        height: 100%;
    }

    /* Chevron toggle button */
    .sidebar-toggle {
        position: absolute;
        top: -22px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1600;
        width: 44px;
        height: 24px;
        border: none;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 8px;
        min-width: 200px;
        overflow: hidden;
        padding-top: 9px;
    }

    /* create the curved pill behind the arrow */
    .sidebar-toggle::before {
        content: '';
        position: absolute;
        left: 50%;
        top: -52px;
        transform: translateX(-108%) rotate(46deg) skew(-12deg, -10deg);
        width: 215px;
        height: 492px;
        border-radius: 30px;
        background: #fff;
        box-shadow: 0 -4px 10px rgba(12, 30, 45, 0.12);
        z-index: -1;      
    }

    /* rotate arrow when expanded (uses aria-expanded set in JS) */
    .sidebar-toggle[aria-expanded="true"] {
        transform: translateX(-50%) rotate(180deg);
    }


    .sidebar-toggle:focus { outline: none; }

    .tour-stops-sidebar.expanded .sidebar-toggle {
        padding-top: 0;
        padding-bottom: 8px;
    }

    /* When expanded, rotate chevron to point down */
    .tour-stops-sidebar.expanded .sidebar-toggle::before {
        /* transform: rotate(180deg); */
        top: auto;
        bottom: -43px;
        transform: translateX(0.5%) rotate(40deg) skew(-12deg, -10deg);
    }

    /* Ensure internal list scrolls when expanded */
     .tour-stops-sidebar .tour-list { overflow-y: auto; max-height: calc(100% - 92px); margin-top: 20px; } /*border-radius: 40px; */

     .audio-points-stop-panel {
        background: rgba(255, 255, 255, 0.85);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        max-width: 100%;
        height: 82px;
        border: 1px solid #0000001A;
        box-shadow: 0px -8px 24px 0px #0000001A;
        border-radius: 30px 30px 0px 0px;
        padding: 24px;
        position: fixed;
    }
    .audio-points-stop-panel.open {
        bottom: 0px;
    }
    .audio-points-stop-panel-body {
        display: none;
    }
    .audio-points-stop-panel-body-xs {
        display: flex;
        align-items: center;
    }
    #audio-points-panel-title-xs {
        flex-grow: 1;
        margin-left: 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #2C4359;
        font-size: 14px;
        font-weight: 600;
    }
    .audio-points-progress-circle-btn:active,
    .audio-points-progress-circle-btn:focus {
        outline: none;
    }

    .stop-panel{position: fixed; padding: 15px;}


}