.flex-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
}

.flex-item {
    box-sizing: border-box;
    padding: 10px;
}

.flex-item.flex-item-6 {
    flex: 0 0 50%; /* 6 columns on small devices */
}

.flex-item.flex-item-3 {
    flex: 0 0 25%; /* 6 columns on small devices */
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
    .flex-item {
        flex: 0 0 33.333%; /* 3 columns on medium devices */
    }
}

/* Small devices (≤767px) */
@media (max-width: 769px) {
    .flex-item {
        flex: 0 0 100%; /* 6 columns on small devices */
    }
    .flex-item.flex-item-6 {
        flex: 0 0 100%; /* 6 columns on small devices */
    }
    .flex-item.flex-item-3 {
        flex: 0 0 100%; /* 6 columns on small devices */
    }
}

.flex-item .thumbnail {
    height: 100%;
}

img[alt="download"],
.st-content img[alt="download"] {
    width: 30px !important;
    height: auto;
    display: inline;
    margin-right: 5px;
    vertical-align: sub;
}
.st-content img {
    height: 100px;
    margin: 0px 5px;
    width: 150px;
}

.tabs input:checked + label {
    cursor: pointer;
}

.p-relative {
    position: relative !important;
}

.p-0 {
    padding: 0 !important;
}

.d-content {
    display: contents;
}

.tab-contents .tab-content {
    display: none;
}

.tabs input.tab-selector-1:checked ~ .tab-contents .content-1,
.tabs input.tab-selector-2:checked ~ .tab-contents .content-2,
.tabs input.tab-selector-3:checked ~ .tab-contents .content-3,
.tabs input.tab-selector-4:checked ~ .tab-contents .content-4,
.tabs input.tab-selector-5:checked ~ .tab-contents .content-5,
.tabs input.tab-selector-6:checked ~ .tab-contents .content-6 {
    display: contents;
}

.box-head {
    margin-top: 40px;
    margin-bottom: 10px;
}

.pt-30 {
    padding-top: 30px;
}

#search {
    margin-left: 0;
}

.fe-select {
    display: block;
    width: 100%;
    height: 34px;
    margin-bottom: 20px;
    border-color: #969792;
}
.search-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 5px;
}

.modal-body {
    padding: 20px;
}

.modal .box-head {
    margin-top: 20px;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}
.modal-dialog {
    overflow-y: auto;
    max-height: 100%;
}

.modal textarea.form-control {
    height: 120px;
}

.modal .form-control {
    margin-bottom: 5px;
}

.modal-title {
    font-weight: 600;
    font-size: 20px;
}
.modal button.close {
    font-size: 30px;
}

@media (max-width: 1600px) {
    .navbar .nav > li > a {
        padding: 0 10px !important;
    }
}
.alltrips-form label {
    display: inline-block;
    position: absolute;
    top: 0;
}

.nav > li.active {
    border: none;
}

.detailed-itinerary-view .thumbnail {
    padding: 40px 20px 0 20px;
}

.filters .form-group {
    padding: 0 15px;
}
.main-content-box img {
    width: 100%;
}

.sights {
    display: flex;
    background: #fff;
    padding: 20px;
}
.st-content, .st-con {
    background: #fff;
    padding: 20px;
}

.with-filters .box-head {
    padding-top: 40px;
    margin-top: 0;
}
.mb-1 {
    margin-bottom: 10px;
}
.tabs .send-message input {
    position: relative;
    display: block;
    opacity: 1;
}
.our-affliation img {
    max-height: 50px;
}

.tab-heads-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.trip-screen-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    flex: 1 1 auto;
    color: #222;
}

.tab-heads-btn .btn {
    float: none;
}

.detailed-itinerary.thumbnail-float .thumbnail.no-photo .caption-wrapper,
.detailed-itinerary .thumbnail.no-photo .caption-wrapper {
    margin-left: 0;
    width: 100%;
}

.brief-itinerary-view,
.brief-itinerary-view .table-responsive,
.itinerary-brief-table,
.itinerary-brief-table thead,
.itinerary-brief-table tbody,
.itinerary-brief-table th,
.itinerary-brief-table td {
    background: #fff;
}

.itinerary-brief-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.itinerary-brief-table > thead > tr > th,
.itinerary-brief-table > tbody > tr > td {
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #ecefed;
    vertical-align: middle;
}

.itinerary-brief-table > thead > tr > th {
    color: #5a6b63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0 12px 10px;
    text-transform: uppercase;
}

.itinerary-brief-table > tbody > tr > td {
    color: #2c3330;
    font-size: 15px;
    padding: 14px 12px;
}

.itinerary-brief-table tbody tr:hover > td {
    background: #f7f9f8;
}

.itinerary.thumbnail-float,
.itinerary {
    padding-top: 44px;
}

.btn-brief-itinerary,
.btn-detailed-itinerary {
    height: 32px;
    padding: 0 12px;
    line-height: 32px;
    box-sizing: border-box;
}

.itinerary-brief-table .day-cell {
    width: 72px;
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.itinerary-brief-table .day-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: #f3f6f4;
    color: #2c3330;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.itinerary-brief-table .activity-cell {
    width: 100%;
}

.itinerary-brief-table .activity-kind {
    display: block;
    margin-bottom: 2px;
    color: #fd8d5a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.itinerary-brief-table .activity-title {
    display: block;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

.itinerary-brief-table .meta-cell {
    color: #5a6b63;
    font-size: 13px;
    white-space: nowrap;
}


.aside .trip-details .trip-info .month-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.aside .trip-details .trip-info .month-grid .month {
    float: none;
}

.aside .trip-details .trip-info span.selected,
.aside .trip-details .trip-info .month-grid .month.selected {
    background: #51c388;
    color: #fff;
}
