.alert {
    margin: 4px;
    margin-bottom: 8px;
}

.btn-add {
    border: solid 1px;
    border-radius: 12px;
    font-size: 22pt;
    margin-left: 12px;
    margin-top: -8px;
}

.card {
    margin: 8px;
    width: 94%;
}

.carousel-item {
    text-align: center;
}

.carousel-control-prev, .carousel-control-next {
    background-color: #eeeeee !important;
}

.container-nav {
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0px;
    width: 100%;
    line-height: 60px;
}

/*
 * Content list cards — structural layout lives here.
 * Sites override look-and-feel (colours, borders, fonts, radii) on these classes;
 * keep display/flex/aspect-ratio rules so grids stay equal-height.
 */

/* Grid rows inside infinite-scroll / home / geo / listing list bodies */
.content-list-grid.row,
[id^="contentListBody_"] > .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.content-list-grid.row > [class*="col-"],
[id^="contentListBody_"] > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    margin-bottom: var(--bs-gutter-y);
    min-width: 0;
}

.contentTeaser {
    background-color: #ffffff;
    border: solid 1px #cecece;
    border-radius: 4px;
    margin: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.contentTeaser .col-sm-12 {
    padding: 2px;
}

.contentTeaserImageAround {
    padding: 22px;
}

.contentTeaserPreviewImage {
    border: none !important;
}

.contentTeaserPreviewImage img {
    width: 100%;
}

.contentTeaserText {
    min-height: 20px;
    font-size: 0.85em;
}

.contentTeaserTextList {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.contentTeaserReadMore {
    display: block;
    margin: 8px;
    margin-top: auto;
    text-align: left;
}

/* Uniform list-card media + body (overrides fixed fileGalleryItemN pixel shells) */
.contentTeaser .fileGalleryItemAround {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.contentTeaserMedia {
    flex: 0 0 auto;
    width: 100%;
}

.contentTeaser .fileGalleryItem,
.contentTeaser .fileGalleryItem200,
.contentTeaser .fileGalleryItem300,
.contentTeaser .fileGalleryItem400,
.contentTeaser .fileGalleryItem500,
.contentTeaser .fileGalleryItem600,
.contentTeaser .fileGalleryItemEmpty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    line-height: normal !important;
    padding: 0;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    background-color: #f3f3f3;
}

.contentTeaser .fileGalleryItemEmpty.teaser-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8eee8;
    color: #3db83c;
}

/* Cached empty shells (no icon markup yet) still show type placeholders */
.contentTeaser.geographyTeaser .fileGalleryItemEmpty:empty,
.contentTeaser.categoryTeaser .fileGalleryItemEmpty:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contentTeaser.geographyTeaser .fileGalleryItemEmpty:empty::before,
.contentTeaser.categoryTeaser .fileGalleryItemEmpty:empty::before {
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    speak: none;
    -webkit-font-smoothing: antialiased;
}

.contentTeaser.geographyTeaser .fileGalleryItemEmpty:empty {
    color: #18964C;
    background-color: #e5f3ea;
}

.contentTeaser.geographyTeaser .fileGalleryItemEmpty:empty::before {
    content: "\f279"; /* fa-map */
}

.contentTeaser.categoryTeaser .fileGalleryItemEmpty:empty {
    color: #FE7F1C;
    background-color: #fff3e9;
}

.contentTeaser.categoryTeaser .fileGalleryItemEmpty:empty::before {
    content: "\f02d"; /* fa-book */
}

.contentTeaser .fileGalleryItemEmpty.teaser-placeholder i {
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    width: auto;
    height: auto !important;
    max-height: none !important;
    margin: 0;
    object-fit: unset;
}

.contentTeaser .teaser-placeholder-geography {
    color: #18964C;
    background-color: #e5f3ea;
}

.contentTeaser .teaser-placeholder-category {
    color: #FE7F1C;
    background-color: #fff3e9;
}

.contentTeaser .fileGalleryItem img,
.contentTeaser .fileGalleryItem span {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    margin: 0;
    object-fit: cover;
}

.contentTeaser .content-teaser-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.contentTeaser .contentTeaserTextListAround {
    flex: 1 1 auto;
}

.contentTeaser .contentTeaserFooter {
    margin-top: auto;
    flex: 0 0 auto;
}

/* Establishment / listing teasers share contentTeaser media + body shell */
.contentTeaser > .row {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    --bs-gutter-x: 0;
}

.contentTeaser .establishmentImage,
.contentTeaser .img-teaser {
    width: 100%;
}

.contentTeaser .establishmentImage img,
.contentTeaser .img-teaser img,
.contentTeaser a.img-teaser img,
.contentTeaser .contentTeaserMedia .fileGalleryItem img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: cover;
    margin: 0;
}

/* Listing / establishment logos must show in full (no crop) */
.contentTeaser.listingTeaser .contentTeaserMedia .fileGalleryItem,
.contentTeaser.establishmentTeaser .contentTeaserMedia .fileGalleryItem,
.contentTeaser.listingTeaser .contentTeaserMedia .fileGalleryItemEmpty,
.contentTeaser.establishmentTeaser .contentTeaserMedia .fileGalleryItemEmpty {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 0.5rem;
    box-sizing: border-box;
}

.contentTeaser.listingTeaser .contentTeaserMedia .fileGalleryItem img,
.contentTeaser.establishmentTeaser .contentTeaserMedia .fileGalleryItem img,
.contentTeaser.listingTeaser .img-teaser img,
.contentTeaser.establishmentTeaser .img-teaser img,
.contentTeaser.listingTeaser a.img-teaser img,
.contentTeaser.establishmentTeaser a.img-teaser img,
.contentTeaser.listingTeaser .contentTeaserMedia .fileGalleryItemEmpty img,
.contentTeaser.establishmentTeaser .contentTeaserMedia .fileGalleryItemEmpty img,
.contentTeaser.listingTeaser .contentTeaserMedia .fileGalleryItem span,
.contentTeaser.establishmentTeaser .contentTeaserMedia .fileGalleryItem span {
    width: 100%;
    height: 100% !important;
    max-width: 100%;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center;
}

.contentTeaser .teaser-header {
    text-align: center;
    width: 100%;
}

.contentPageHeading {
    padding-bottom: 0.2em;
}

.contentPageImagesAround {

}

.contentPageText {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

.contentIntroText {
    font-style: italic;
}

.contentDetailsRow {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    background-color: #cedcd0;
    padding: 0.4em;
    border-radius: 2px;
}

.contentDetailsRow a, .contentDetailsRow div a {
    color: #000000 !important;
}

.contentDetails {
    font-size: 0.6em;
    padding: 4px;
}

.home-product-slider-item {
    width: 90%;
    margin: auto;
}

.image-popup-around {
    width: 100%;
}

.image-select {
    text-align: center;
    width: 100%;
}

.image-select img {
    margin: auto;
}

.img-page-top {
    margin: auto;
    width: 100%;
}

.img-display img {
    margin: auto;
}

.img-stats {
    height: 1px;
    width: 1px;
}

.fileGalleryItemAround {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: rgba(12, 15, 20, 0.02) 0px 0px 0px 1px,
        rgba(12, 15, 20, 0.06) 0px 0px 1px 0px,
        rgba(12, 15, 20, 0.06) 0px 2px 2px 0px;
    max-width: 95%;
    margin: 12px auto;
}

/* Mobile-first: Base styles for mobile */
.content {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

/* Tablet and up */
@media (min-width: 576px) {
    .content {
        padding: 18px;
    }
}

/* Desktop and up */
@media (min-width: 992px) {
    .content {
        padding: 24px;
    }
}

.fileGalleryItemAround200 {
    height: 214px;
    width: 214px;
}

.fileGalleryItemAround200 img {
    line-height: 200px;
}

.fileGalleryItemAround100 {
    height: 114px;
    width: 114px;
}

.fileGalleryItemAround100 img {
    line-height: 100px;
}

.fileGalleryItem {
    display: inline-table;
    padding: 8px;
    line-height: 100px;
    text-align: center;
    vertical-align: middle;
    width: 100%;
}

.fileGalleryItem200 {
    height: 200px;
    line-height: 200px;
}

.fileGalleryItem300 {
    height: 300px;
    line-height: 300px;
}

.fileGalleryItem400 {
    height: 400px;
    line-height: 400px;
}

.fileGalleryItem500 {
    height: 500px;
    line-height: 500px;
}

.fileGalleryItem600 {
    height: 600px;
    line-height: 600px;
}

.fileGalleryItem img {
    margin: auto;
}

.list-heading {
    line-height: 52px;
    font-size: 30pt;
    margin-right: 12px;
    font-weight: 200;
}

input.select2-search__field {
    width: 100% !important;
}

li.select2-search--inline {
    width: 100% !important;
}

.page-header {
    text-align: center;
    margin-bottom: 12px;
    min-height: 72px;
    padding-top: 12px;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
    --bs-gutter-x: 0px;
}

.tab-content {
    margin-left: 24px;
}

.tab-pane {
    opacity: 1;
}

.teaser-header {
    text-align: center;
}

.text-info {
    padding: 8px;
    padding-left: 16px;
}

/* Mobile-first: Base styles for mobile (default) */
.card-body {
    padding: 8px !important;
}

.content-around {
    padding: 8px !important;
}

.tab-content {
    margin-left: 8px;
}

.fileGalleryItemAround img {
    max-width: 100%;
    height: auto;
}

.fileGalleryItem img {
    max-width: 100%;
    height: auto;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .card-body {
        padding: 12px !important;
    }

    .content-around {
        padding: 12px !important;
    }

    .tab-content {
        margin-left: 12px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .card-body {
        padding: 16px !important;
    }

    .content-around {
        padding: 16px !important;
    }

    .tab-content {
        margin-left: 18px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .tab-content {
        margin-left: 24px;
    }
}
