/* Š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: flex-start;
    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.2;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
}

.property-listing-badge-wrap {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
}

.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.03em;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    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;
}

/* Detail inzerátu — fotka (SPA navigace musí mít pilulky i bez externího CSS) */
.property-detail-gallery-badges .property-listing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    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.2;
    font-size: 11px;
    letter-spacing: 0.1em;
    gap: 0.5rem;
    padding: 0 1rem;
    min-height: 2.5rem;
    width: fit-content;
    max-width: 100%;
}

.property-detail-gallery-badges .property-listing-badge__icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

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

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

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

/* Náhled fotky (grid / seznam) — Aukce + Zlevněno ~10px nad spodním okrajem (hover scale na img) */
.property-detail-gallery-badges {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: calc(100% - 2rem);
    pointer-events: none;
}

.property-detail-gallery-badges > * {
    pointer-events: auto;
    width: fit-content;
    max-width: 100%;
}

.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;
    align-items: flex-start;
    gap: 0.375rem;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}

.advert-photo-badge-stack > * {
    pointer-events: auto;
    width: fit-content;
    max-width: 100%;
    flex-shrink: 0;
}

.advert-photo-badge-stack .property-listing-badge {
    width: fit-content;
    max-width: 100%;
}

.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: 15rem;
}

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

.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;
    color: var(--portal-brand-dark);
}

.advert-grid-card__title {
    color: var(--portal-brand-dark);
}

#adverts-container .advert-grid-layout {
    display: grid !important;
    gap: 1.5rem !important; /* stejné jako seznam: gap-y-6 */
}

.advert-grid-card:hover .advert-grid-card__title,
.advert-list-card:hover .advert-list-card__title {
    color: var(--portal-brand-dark);
}

.advert-card__price-pill {
    color: var(--portal-brand-dark);
    background: var(--portal-brand-dark-soft);
    border: 1px solid rgba(83, 12, 143, 0.14);
    box-shadow: 0 1px 2px rgba(83, 12, 143, 0.05);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
    padding: 0.4375rem 0.875rem;
    border-radius: 0.875rem;
}

@media (min-width: 640px) {
    .advert-card__price-pill {
        font-size: 1.0625rem;
        padding: 0.5rem 1rem;
    }
}

.advert-grid-card .advert-grid-card__photo {
    height: 15rem;
}

.advert-grid-card .advert-grid-card__body {
    padding: 1rem 1rem 1rem;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .advert-grid-card .advert-grid-card__body {
        padding: 1rem 1.5rem 1rem;
    }
}

.advert-grid-card .advert-grid-card__title {
    font-size: 1rem;
    line-height: 1.35;
}

/* Stránkování inzerátů na homepage — menší číselné dlaždice */
.home-adverts-pagination__control {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-adverts-pagination__control--page {
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 800;
}

.home-adverts-pagination__control--ellipsis {
    font-size: 0.875rem;
    font-weight: 700;
    color: #9ca3af;
}

.home-adverts-pagination__control--current {
    color: #fff;
    background-color: var(--portal-brand-dark);
    border-color: var(--portal-brand-dark);
    box-shadow: none;
}

.home-adverts-pagination__control--link {
    background: #fff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    color: var(--portal-brand-dark);
    transition: all 0.15s ease;
}

.home-adverts-pagination__icon {
    width: 1rem;
    height: 1rem;
}

.advert-card__more-link,
.advert-card__location-icon,
#adverts-count {
    color: var(--portal-brand-dark);
}

.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: rgba(61, 21, 91, 0.35);
    color: var(--portal-brand-dark, #3d155b);
    background: var(--portal-brand-dark-soft, #f3eff5);
}

.easy-access-help--icon-only[open] > summary {
    border-color: var(--portal-brand-dark, #3d155b);
    color: var(--portal-brand-dark, #3d155b);
    background: var(--portal-brand-dark-soft, #f3eff5);
}

.easy-access-help--icon-only > summary:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(61, 21, 91, 0.45);
}

.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;
}
