/*
 * LZS-245 cross-selling band "Weitere Ferienwohnungen am [See]".
 *
 * ENTWURF pre-build — tokens mirror Figma frame 933:33329 (draft, not frozen):
 *   heading  crete_roundregular 26px / 36lh  #2d2c2c
 *   card     1px solid #d5d5d5, white; image box 247px on #f7f5f3, cover
 *   content  20px padding, column, space-between; text-group gap 10px
 *   title    crete_roundregular 20px / 26lh  #2d2c2c
 *   text     latoregular 16px / 26lh  #555
 *   cta      latobold (Lato Medium) 16px  #00628d (brand)
 *   gaps     head->cards 24px, card->card 30px
 *
 * Shipped as a content-block asset (not Tailwind utilities): tailwind.config.js
 * only scans Resources/Private/**, so classes used in ContentBlocks templates
 * are never generated — same rationale as chatbot-booking/assets/hero.css.
 *
 * Responsive: mobile-first STACKED (1 col) is the base; 2 cols from 600px,
 * 3 cols from 1024px. No slider — matches the Entwurf's clean bordered cards
 * and the existing object-teaser behaviour (u-1/3@large u-1/2@medium u-1/1@small),
 * and avoids a JS dependency. A slider can be added after the design freeze.
 */

.c-cross-selling__head {
    margin-bottom: 24px;
}

.c-cross-selling__heading {
    margin: 0;
    font-family: crete_roundregular, serif;
    font-size: 26px;
    line-height: 36px;
    font-weight: 400;
    color: #2d2c2c;
}

.c-cross-selling__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .c-cross-selling__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .c-cross-selling__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.c-cross-selling__card {
    display: flex;
    flex-direction: column;
    /* Grid items default to min-width:auto, which is the card's min-content —
     * driven by the hero image's intrinsic width — and would blow the track out
     * past the viewport (horizontal scroll on mobile). Let the card shrink to
     * its track. */
    min-width: 0;
    background: #fff;
    border: 1px solid #d5d5d5;
    overflow: hidden;
}

.c-cross-selling__media {
    display: block;
}

.c-cross-selling__image {
    display: block;
    height: 247px;
    background: #f7f5f3;
    overflow: hidden;
}

.c-cross-selling__image-el {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-cross-selling__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #f7f5f3;
}

.c-cross-selling__body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.c-cross-selling__text-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-cross-selling__card-title {
    margin: 0;
    font-family: crete_roundregular, serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    color: #2d2c2c;
}

.c-cross-selling__card-text {
    margin: 0;
    font-family: latoregular, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #555;
}

.c-cross-selling__cta {
    display: inline-block;
    margin-top: 20px;
    font-family: latobold, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #00628d;
    text-decoration: none;
}

.c-cross-selling__cta:hover,
.c-cross-selling__cta:focus {
    text-decoration: underline;
}

/* Visually-hidden helper for the CTA's per-object screen-reader suffix. */
.c-cross-selling .u-hidden-visually {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
