.listed-item.inner,
.trip-listings {
    margin: 6rem auto
}

.listed-item .custom-filter,
.trip-listings .custom-filter {
    border: none
}

.listed-item .trips-teaser,
.trip-listings .trips-teaser {
    border-radius: 1rem;
    box-shadow: 0 0 9px rgba(0, 0, 0, .17)
}

.listed-item .trips-teaser img,
.trip-listings .trips-teaser img {
    border-radius: 1rem 1rem 0 0
}

@media (min-width:960px) {

    .listed-item .trips-teaser img,
    .trip-listings .trips-teaser img {
        border-radius: 1rem 0 0 1rem;
        object-fit: cover
    }
}

@media (min-width:960px) {

    .listed-item .col-n3 .trips-teaser img,
    .trip-listings .col-n3 .trips-teaser img {
        border-radius: 1rem 1rem 0 0;
        height: 150px
    }
}

.tour-full .top-section {
    margin-bottom: 3rem
}

.tour-full .top-section img {
    border-radius: 1rem
}

.tbs-search-page table,
.listing-detail-full table {
    border-collapse: separate;
    border-spacing: .3rem
}

.tbs-search-page table tr th,
.listing-detail-full table tr th {
    padding: 1rem 2rem
}

.tbs-search-page table tr td,
.listing-detail-full table tr td {
    padding: 1rem 2rem;
    vertical-align: middle
}

.tbs-search-page table tr td h2,
.listing-detail-full table tr td h2,
.tbs-search-page table tr td h3,
.listing-detail-full table tr td h3,
.tbs-search-page table tr td h4,
.listing-detail-full table tr td h4 {
    margin-bottom: 0
}

.tbs-search-page table tr:first-child td:first-child,
.listing-detail-full table tr:first-child td:first-child {
    border-radius: 1rem 0 0 0
}

.tbs-search-page table tr:first-child td:last-child,
.listing-detail-full table tr:first-child td:last-child {
    border-radius: 0 1rem 0 0
}

.tbs-search-page table tr:last-child td:first-child,
.listing-detail-full table tr:last-child td:first-child {
    border-radius: 0 0 0 1rem
}

.tbs-search-page table tr:last-child td:last-child,
.listing-detail-full table tr:last-child td:last-child {
    border-radius: 0 0 1rem 0
}

.tbs-search-page table td,
.listing-detail-full table td {
    background: #fff;
    width: 50%
}

.tbs-search-page .section.itinerary h2,
.listing-detail-full .section.itinerary h2 {
    margin-left: auto;
    margin-right: auto;
    width: fit-content
}

.tbs-search-page .section.itinerary table tr td,
.listing-detail-full .section.itinerary table tr td {
    width: calc(100% - 25rem)
}

.tbs-search-page .section.itinerary table tr td:first-child,
.listing-detail-full .section.itinerary table tr td:first-child {
    width: 25rem
}

.tbs-search-page .section .availability-passengers-control,
.listing-detail-full .section .availability-passengers-control {
    gap: 3rem
}

.tbs-search-page .section .availability-passengers-control select,
.listing-detail-full .section .availability-passengers-control select {
    max-width: 20rem
}

.tbs-search-page .MapSearchRow,
.listing-detail-full .MapSearchRow {
    padding: 3rem 0
}

.tbs-search-page .MapSearchRow .flex,
.listing-detail-full .MapSearchRow .flex {
    gap: 2rem;
    text-align: center
}

@media (min-width:60em) {
    .tbs-search-page .MapSearchRow .flex,
    .listing-detail-full .MapSearchRow .flex {
        text-align: left
    }
}

.tbs-search-page .MapSearchRow input[type=text],
.listing-detail-full .MapSearchRow input[type=text] {
    width: auto;
    margin: 1rem auto
}

@media (min-width:44em) {
    .tbs-search-page .MapSearchRow input[type=text],
    .listing-detail-full .MapSearchRow input[type=text] {
        margin: 0
    }
}

.tbs-search-page .MapSearchRow span,
.listing-detail-full .MapSearchRow span {
    margin: 0
}

.tbs-search-page .map-text p,
.listing-detail-full .map-text p {
    font-weight: 700;
    margin-bottom: 2rem
}

table td.center,
table th.center {
    text-align: center
}

table td .cs-button,
table th .cs-button {
    margin-bottom: 0
}

#tbs-departure-table-body tr td,
#tbs-departure-table-body tr th {
    text-align: center
}

#tbs-departure-table-body tr td:nth-child(2),
#tbs-departure-table-body tr th:nth-child(2) {
    text-align: left
}

@media (max-width:44em) {

    .itinerary table,
    .itinerary td,
    .itinerary th,
    .itinerary tr {
        display: block !important;
        width: 100% !important
    }
}


.tbs-search-page{
    table{
        td:not(.col-details){
            text-align: center;
        }
    }
}

.tbs-search-page:has(table){
  margin-top: 3rem;
  background: #f9f9f9;
  padding: 6rem 0 !important;
}

.availability-footer{
    margin: 1rem 0;
    text-align: center;
}

/*.itinerary table tr:first-child td:first-child {
    border-radius: 1rem 1rem 0 0
}

.itinerary table tr:first-child td:last-child,
.itinerary table tr:last-child td:first-child {
    border-radius: 0
}

.itinerary table tr:last-child td:last-child {
    border-radius: 0 0 1rem 1rem
}*/
