.modal {
    position: absolute;
    background-color: white;
}

.modal-top-left-content {
    transition: display 0.9s ease-in-out;
}

.modal-heading-sticky {
    position: sticky;
    top: 0;
    padding: 16px 0;
    background: #fff;
    z-index: 999;
    transform: translateY(-16px);
}

.modal-top-left {
    display: none;
    padding: 16px;
    gap: 18px;
    border-radius: 9px;
    margin: 25px 0 0 10px;
    width: auto;
    height: auto;
    max-width: 394px;

    max-height: 95%;
    overflow-y: auto;
    z-index: 2;
    transition: display 0.9s ease-in-out;
}

.modal-top-right {
    margin-top: 10px;
    width: auto;
    height: auto;
    left: auto;
    right: 10px;
    top: 14px;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    max-width: 284px;
    z-index: 2;
}

.order-modal {
    z-index: 10;
}

.rider-show-tour {
    background: white;
    border-radius: 8px;
    cursor: pointer;
    padding: 16px 10px !important;
    gap: 10px;
    width: 100%;
}

.rider-count-days-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 17px;
}

.rider-tour-title {
    margin-top: 0.5rem;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
}

.rider-active {
    background: #F2384A;
    color: white;
}

.rider-map {
    position: relative;
    width: 100%;
    /*min-width: 657px;*/
}

#map {
    width: 100%;
    height: calc(100vh - 180px);
    position: relative;
    /*min-width: 657px;*/
}

.rider-total {
    flex-wrap: wrap;
    background: #83868E;
    font-size: 14px;
    padding: 12px 8px 12px 8px;
    border-radius: 8px;
    gap: 5px;
    color: white;
    font-weight: 400;
    line-height: 19px;
    white-space: nowrap;
}

.rider-total-item {
    flex: 1;
    display: flex;
    gap: 4px;
}


.rider-day {
    border-bottom: 1px solid #E5E7EC;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

#rider-days {
    border-top: 1px solid #E5E7EC;
    margin-top: 1rem;
}

#rider-tour-name {
    margin-bottom: 1rem;
}

.rider-marker {
    background-size: cover;
    background-repeat: no-repeat;
    width: 42px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 17px;
    padding-bottom: 10px;
}

.rider-marker-small {
    background-size: cover;
    background-repeat: no-repeat;
    width: 34px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    padding-bottom: 10px;
}

.cursor-pointer {
    cursor: pointer;
}

#rider-tour-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EC;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
}

#rider-tour-name {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
}

.rider-totals-icon {
    display: inherit;
    box-sizing: border-box;
    width: 14px;
    height: 17px;
}

.rider-totals-icon svg path {
    fill: white;
}

.icon-in svg path {
    fill: #4A5568;
}

.day-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 17px;
}

.rider-distance-feature {
    gap: 10px;
}

.rider-distance {
    color: #83868E;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

.horizontal-line {
    position: relative;
    width: 25%;
    height: 1px;
    background-color: #E5E7EC;
    margin-top: auto;
    margin-bottom: auto;
}

.rider-vertical-line {
    margin-left: auto;
    margin-right: 0;
    position: absolute;
    right: 0;
    width: 48px;
    height: 1px;
    border-top: 2px dashed #83868E;
    transform: rotate(-90deg);
}

.rider-location {
    gap: 12px;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.rider-location-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 17px;
    margin-top: auto;
    margin-bottom: auto;
}

.rider-location-right-block {
    background-color: #83868E;
    border-radius: 35px;
    width: 48px;
    height: 28px;
    display: flex;
    position: relative;
    margin-left: auto;
}

.rider-location-right-block img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    margin: auto 2px auto auto;
}

.rider-location-index {
    position: absolute;
    top: 50%;
    left: 73%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 17px;
    text-align: center;
}

.rider-day-desc {
    margin-top: 1rem;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
}

.rider-day-desc-items {
    margin-top: 1rem;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rider-day-desc-item {
    display: flex;
    justify-content: space-between;
}

.rider-day-desc-item .rider-day-desc-value {
    font-weight: 700;
}

.rider-location-image img {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
}

.rider-main-text {
    color: white;
    margin-bottom: 2rem;
}

.rider-main-text .rider-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    text-transform: uppercase;
}

.rider-main-text .rider-sub-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
}

.rider-tour-names-block {
    width: 175px;
    gap: 30px;
    margin-top: 20px;
    overflow: auto;
    height: calc(100vh - 190px);
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.rider-tour-names-block::-webkit-scrollbar {
    display: none;
}

.rider-tour-names-block:active {
    cursor: grabbing;
}

.rider-instructions-btn {
    background: white;
    border-radius: 10px !important;
    padding: 16px 10px 16px 10px;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    width: 100%;
    margin-right: 50px;
    border: none
}

/*.rider-instructions-btn:hover {*/
/*    color: unset;*/
/*    background-color: unset;*/
/*}*/

.rider-additional-top-block {
    margin-bottom: 1rem;
}

.rider-additional-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 17px;
}

.rider-additional-block {
    display: inline-flex;
    gap: 12px;
    width: 100%;
}

.rider-additional-block input {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid black;
}

.rider-additional-block label {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
    height: unset;
}

.rider-additional-block input[type="checkbox"] {
    display: none;
}

.rider-additional-block input[type="checkbox"] + label::before {
    content: "\1F5F8";
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid black;
    margin-right: 8px;
    vertical-align: middle;
    text-align: center;
    background-color: transparent;
}

.rider-additional-block input[type="checkbox"]:checked + label::before {
    background-color: black;
    border: 2px solid black;
}

/* Rider Additional Price Block */
.rider-additional-price-block {
    margin-top: 1rem;
    border-radius: 5px;
}

.rider-price-title {
    font-size: 18px;
    font-weight: bold;
}

/* Rider Number of People */
.rider-number-people {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rider-number-people label {
    font-size: 14px;
    margin-right: 10px;
}

.rider-number-people input[type="number"] {
    width: 50px;
    padding: 5px 5px 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.rider-per-person {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.rider-per-person > span:first-child {
    margin-right: 5px;
    line-height: 20px;
}

.rider-per-person .rider-price-value {
    font-weight: bold;
    max-width: 150px;
    text-align: right;
}

.rider-additional-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    border-top: 1px solid #ccc;
    padding-top: 14px;
    margin-top: 18px;
}

.rider-additional-total > span:first-child {
    font-weight: bold;
    line-height: 24px;
}

.rider-additional-total .rider-price-value {
    font-weight: bold;
    max-width: 165px;
    text-align: right;
}

.rider-price-value-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
}

.rider-price-primary {
    display: block;
    font-weight: 700;
    word-break: normal;
}

.rider-price-secondary {
    display: block;
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.rider-additional-total .rider-price-primary {
    font-size: 18px;
}

.rider-additional-total .rider-price-secondary {
    font-size: 14px;
}

.rider-order-tour-btn {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #F2384A;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rider-order-tour-btn:hover {
    background-color: #ff3300;
}


.rider-close-sidebar-button {
    background-color: white;
    max-height: 32px;
    border: none;
    cursor: pointer;
}

.rider-close-sidebar-button img, .rider-open-sidebar-button img {
    max-height: 32px;
    width: 32px;
}

.rider-open-sidebar-button {
    max-height: 32px;
    background-color: white;
    border: none;
    cursor: pointer;
    display: none;
}

.rider-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 4px;
    position: absolute;
    z-index: 1;
    left: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.rider-close-sidebar-button:hover .rider-tooltip {
    visibility: visible;
    opacity: 1;
}

.modal-top-right .rider-tooltip {
    left: 37%;
}

.order-modal {
    display: none;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.order-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-left: auto;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea,
form input[type="date"],
form button {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    background-color: #F2384A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #ff3300;
}

.has-error {
    border: 1px solid red !important;
}

.error {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.modal {
    transition: opacity 0.3s ease-in-out, visibility 0.9s ease-in-out;
    /* other styles */
}

.modal.show {

}


/* Splide Carousel */
.splide.splide--loop {
    width: 100%;
    height: 100%;
}

.splide.splide--slide {
    height: 100%;
    width: 100%;
}

@media screen and (max-width: 1250px) {

    .rider-total-item {
        width: 48%;
    }

    .modal-top-left {
        max-width: 320px;
    }
}

@media screen and (max-width: 1160px) {
    .rider-map-tour-names-block {
        flex-direction: column-reverse;
    }

    .rider-tour-names-block {
        flex-direction: row !important;
        width: 100%;
        height: unset;
    }

    .rider-show-tour {
        min-width: 167px;
    }

}

@media screen and (max-width: 992px) {


    .modal-top-right {
        display: none;
    }

    .modal-top-left,
    .modal-top-right {
        padding: 5px;
        min-width: 0;
    }

    .modal-top-left {
        max-width: 300px;
        /*min-width: 290px;*/
    }

    .modal-top-left > div,
    .modal-top-right > div {
        /*padding: 5px;*/
    }

    .modal-top-right-content,
    .modal-top-left-content {
        padding: 0 5px;
    }

    .modal-top-left > div > button,
    .modal-top-right > div > button {
        padding: 0;
    }


}

#map-controls {
    margin-top: 10px;
    color: white;
}

#map-controls {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
}

#map-style-selector {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background-color: #fff;
    margin-left: 10px;
}

#map-style-selector:focus {
    outline: none;
}

#map-controls label {
    font-weight: bold;
    margin-right: 10px;
}
