/* OPLEVIO - FÆLLES ANNONCEKORT. Bruges på kategorier og udbyderprofiler. */

/* ANNONCEKORT */

.oplevio-site .experiences-listing-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;

    background: #fff;
    border: 1px solid var(--listing-card-border, #eeeef2);
    border-radius: 12px;

    color: var(--oplevio-heading);
    text-decoration: none;

    box-shadow: var(--listing-card-shadow, 0 4px 16px rgba(20, 20, 40, .05));

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.oplevio-site .experiences-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 20, 40, .11);
    color: var(--oplevio-heading);
    text-decoration: none;
}

/* BILLEDE */

.oplevio-site .experiences-listing-card .oplevio-listing-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f1f5;
}

.oplevio-site .experiences-listing-card .oplevio-listing-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform .3s ease;
}

.oplevio-site .experiences-listing-card:hover .oplevio-listing-image img {
    transform: scale(1.035);
}

/* KATEGORI OVERLAY */

.oplevio-site .experiences-listing-card .oplevio-listing-category {
    position: absolute;
    top: auto;
    bottom: 12px;
    left: 12px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);

    margin: 0;
    padding: 6px 10px;

    background: #fff;
    border-radius: 5px;
    color: var(--oplevio-accent);

    font-family: var(--oplevio-font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    box-shadow: 0 2px 8px rgba(20, 20, 40, .08);
}

/* KORTINDHOLD */

.oplevio-site .experiences-listing-card .oplevio-listing-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 18px;
}

/* TITEL */

.oplevio-site .experiences-listing-card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    margin: 0 0 9px;

    color: var(--oplevio-heading);
    font-family: var(--oplevio-font-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

/* BESKRIVELSE */

.oplevio-site .experiences-listing-card .oplevio-listing-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

    margin: 0 0 20px;

    color: var(--oplevio-text);
    font-family: var(--oplevio-font-body);
    font-size: 13px;
    line-height: 1.6;
}

/* BUND */

.oplevio-site .experiences-listing-card .experiences-listing-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    margin-top: auto;
    padding-top: 13px;

    border-top: 1px solid #eeeef3;
}

/* PRIS */

.oplevio-site .experiences-listing-card .oplevio-listing-price {
    display: block;
    width: 100%;

    margin: 0;
    padding: 0;

    color: var(--oplevio-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.oplevio-site .experiences-listing-card .oplevio-listing-price span {
    display: inline;
}

/* SE OPLEVELSEN */

.oplevio-site .experiences-listing-card .experiences-listing-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 42px;
    padding: 10px 14px;

    border: 1px solid var(--oplevio-primary);
    border-radius: 7px;

    color: var(--oplevio-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;

    transition:
        background .2s ease,
        color .2s ease;
}

.oplevio-site .experiences-listing-card:hover .experiences-listing-more {
    background: var(--oplevio-primary);
    color: #fff;
}

.oplevio-site .experiences-listing-card .experiences-listing-more span {
    transition: transform .2s ease;
}

.oplevio-site .experiences-listing-card:hover .experiences-listing-more span {
    transform: translateX(4px);
}


@media (max-width: 575px) {
    .oplevio-site .experiences-listing-card .oplevio-listing-content { padding: 16px; }
    .oplevio-site .experiences-listing-card h3 { font-size: 16px; }
    .oplevio-site .experiences-listing-card .experiences-listing-more { min-height: 44px; }
}
