/* Štítky Aukce / Zlevněno / Rezervováno — šířka dle textu (vícejazyčné popisky) */
.property-listing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12);
    line-height: 1;
    text-decoration: none;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
}

.property-listing-badge--default {
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 0.5rem;
    padding: 0 0.75rem;
    min-height: 2rem;
    height: auto;
}

.property-listing-badge--detail {
    font-size: 11px;
    letter-spacing: 0.1em;
    gap: 0.5rem;
    padding: 0 1rem;
    min-height: 2.5rem;
    height: auto;
}

.property-listing-badge--compact {
    font-size: 9px;
    letter-spacing: 0.05em;
    gap: 0.375rem;
    padding: 0 0.5rem;
    min-height: 1.625rem;
    height: auto;
}

.property-listing-badge--auction {
    background: #387b22;
    color: #fff;
}

.property-listing-badge--auction:hover {
    background: #2d6319;
    color: #fff;
}

.property-listing-badge--discount {
    background: #ef4444;
    color: #fff;
}

.property-listing-badge--reserved {
    background: #f59e0b;
    color: #1c1917;
}

.property-listing-badge__icon {
    flex-shrink: 0;
}

.property-listing-badge--default .property-listing-badge__icon,
.property-listing-badge--detail .property-listing-badge__icon {
    width: 1rem;
    height: 1rem;
}

.property-listing-badge--compact .property-listing-badge__icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Náhled fotky (grid / seznam) — Aukce + Zlevněno ~10px nad spodním okrajem (hover scale na img) */
.advert-photo-badge-stack {
    position: absolute;
    left: 0.75rem;
    bottom: 1.375rem; /* původně bottom-3 (12px) + 10px */
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.advert-photo-badge-stack--list {
    left: 1rem;
    bottom: 1.625rem; /* původně bottom-4 (16px) + 10px */
    gap: 0.5rem;
}

/* Řádkový výpis inzerátů — desktop: foto vlevo, popis vpravo */
.advert-list-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 16rem;
}

.advert-list-card__photo {
    position: relative;
    flex: none;
    width: 20rem;
    min-width: 20rem;
    height: 16rem;
}

.advert-list-card__body {
    min-height: 0;
    overflow: hidden;
}

.advert-list-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.advert-list-card__description {
    height: calc(0.875rem * 1.375 * 3);
    flex-shrink: 0;
}

.advert-list-card__description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: calc(0.875rem * 1.375 * 2);
    overflow: hidden;
}

@media (max-width: 639px) {
    .advert-list-card {
        flex-direction: column;
        height: auto;
    }

    .advert-list-card__photo {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .advert-list-card__body {
        overflow: visible;
    }

    .advert-list-card__title {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .advert-list-card__description {
        height: auto;
    }

    .advert-list-card__description-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        height: auto;
        max-height: calc(0.875rem * 1.375 * 3);
    }

    .listing-list-meta-head {
        align-items: flex-start;
    }
}

/* Detail inzerátu — Údaje zakázky (2 sloupce) / inzerátu (1 řádek B2C) */
.property-detail-contract-meta {
    display: grid !important;
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: baseline;
    column-gap: 1.5rem;
    row-gap: 0.35rem;
    max-width: 100%;
}

.property-detail-contract-meta--single-row {
    display: flex !important;
    flex-flow: row wrap;
    align-items: baseline;
    column-gap: 1.5rem;
    row-gap: 0.35rem;
}

.property-detail-contract-meta__cell {
    display: block;
    white-space: nowrap;
    text-align: left;
}

@media (min-width: 640px) {
    .property-detail-contract-meta {
        column-gap: 2rem;
    }
    .property-detail-contract-meta--single-row {
        column-gap: 2rem;
    }
}

/* Bezbariérový přístup / PENB — ikona „i“ (detail inzerátu) */
.easy-access-help--icon-only {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-inline-start: 0.25rem;
    position: relative;
}

.easy-access-help--icon-only > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    min-width: 1.875rem;
    min-height: 1.875rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    outline: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.easy-access-help--icon-only > summary::marker,
.easy-access-help--icon-only > summary::-webkit-details-marker {
    display: none;
    content: "";
}

.easy-access-help--icon-only > summary::before,
.easy-access-help--icon-only > summary::after {
    display: none;
    content: none;
}

.easy-access-help--icon-only > summary:hover {
    border-color: #c4b5fd;
    color: #5b21b6;
    background: #faf5ff;
}

.easy-access-help--icon-only[open] > summary {
    border-color: #7a12d1;
    color: #5b21b6;
    background: #f3e8ff;
}

.easy-access-help--icon-only > summary:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #a78bfa;
}

.easy-access-help--icon-only__svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    max-width: 1.125rem;
    max-height: 1.125rem;
    flex: none;
}

.easy-access-help--icon-only__panel {
    margin-top: 0.5rem;
    max-width: 42rem;
}
