/* Styly detailu inzerátu; načítají se pouze na detailu. */
/* =========================================================
   Detail inzerátu – kontakty, akce a profil inzerenta
   ========================================================= */

.advert-contact-card,
.advert-profile-card,
.advert-profile-promo {
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 14px;
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    background: var(--pb-canvas);
    box-shadow: 0 5px 18px var(--pb-shadow);
    color: var(--pb-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}

.advert-contact-card {
    padding: 20px;
}

.advert-contact-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

#content.detail .advert-contact-kicker {
    margin: 0 0 3px;
    color: var(--pb-primary-hover);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.advert-contact-heading h2,
.advert-profile-card h2 {
    margin: 0;
    color: var(--pb-text);
    font-size: 21px;
    line-height: 1.3;
}

.advert-share-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--pb-border);
    border-radius: 9px;
    background: var(--pb-surface);
    color: var(--pb-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.advert-share-button:hover,
.advert-share-button:focus-visible {
    border-color: var(--pb-primary);
    background: var(--pb-surface);
    color: var(--pb-text);
    outline: none;
}

#content.detail .advert-share-button img {
    width: 20px;
    height: 20px;
    max-width: none;
    flex: 0 0 20px;
}

.advert-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.advert-fact {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    background: var(--pb-surface);
}

.advert-fact-wide {
    grid-column: 1 / -1;
}

#content.detail .advert-fact > img {
    width: 24px;
    height: 24px;
    max-width: none;
    flex: 0 0 24px;
}

.advert-fact > div {
    min-width: 0;
}

.advert-fact dt {
    margin: 0 0 2px;
    color: var(--pb-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.advert-fact dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--pb-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.advert-fact a {
    color: var(--pb-info);
    text-decoration: none;
}

.advert-fact a:hover,
.advert-fact a:focus-visible {
    color: var(--pb-primary-hover);
    text-decoration: underline;
}

.advert-secondary {
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 550;
}

.advert-fact-price dd {
    color: var(--pb-primary-hover);
    font-size: 17px;
}

.advert-expired-note {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid var(--pb-border);
    border-radius: 9px;
    background: var(--pb-surface);
    color: var(--pb-danger);
    font-weight: 650;
    line-height: 1.45;
}

.advert-profile-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    padding: 19px 20px;
}

.advert-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--pb-surface);
}

#content.detail .advert-profile-icon img {
    width: 25px;
    height: 25px;
    max-width: none;
}

.advert-profile-text {
    margin-top: 10px;
    color: var(--pb-muted);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.advert-profile-promo {
    padding: 15px 18px;
    background: var(--pb-success-surface);
    color: var(--pb-muted);
    line-height: 1.55;
}

.advert-profile-promo-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.advert-profile-promo-summary > div {
    min-width: 0;
}

.advert-profile-promo strong,
.advert-registration-benefits h2 {
    color: var(--pb-text);
}

.advert-benefits-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--pb-border);
    border-radius: 9px;
    background: var(--pb-surface);
    color: var(--pb-secondary-hover);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    flex: 0 0 auto;
}

.advert-benefits-toggle:hover,
.advert-benefits-toggle:focus-visible,
.advert-benefits-toggle[aria-expanded="true"] {
    border-color: var(--pb-secondary);
    background: var(--pb-surface);
    outline: none;
}

.advert-benefits-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s ease;
}

.advert-benefits-toggle[aria-expanded="true"] .advert-benefits-chevron {
    transform: translateY(2px) rotate(225deg);
}

.advert-registration-benefits {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .32s ease, opacity .25s ease, margin-top .32s ease;
}

.advert-registration-benefits.is-open {
    grid-template-rows: 1fr;
    margin-top: 15px;
    opacity: 1;
}

.advert-registration-benefits-inner {
    min-height: 0;
    overflow: hidden;
}

.advert-registration-benefits-inner::before {
    display: block;
    height: 1px;
    margin-bottom: 15px;
    background: var(--pb-border);
    content: "";
}

.advert-registration-benefits h2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.advert-registration-benefits ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.advert-registration-benefits li {
    position: relative;
    margin: 0;
    padding-left: 23px;
    color: var(--pb-muted);
    line-height: 1.45;
}

.advert-registration-benefits li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--pb-secondary);
    content: "\2713";
    font-size: 16px;
    font-weight: 800;
}

.advert-registration-cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 17px;
    border: 1px solid var(--pb-secondary-hover);
    border-radius: 9px;
    background: var(--pb-secondary);
    color: var(--pb-canvas);
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 3px 9px var(--pb-shadow);
}

.advert-registration-cta:hover,
.advert-registration-cta:focus-visible {
    background: var(--pb-secondary-hover);
    color: var(--pb-canvas);
    outline: none;
}

@media screen and (max-width: 800px) {
    .advert-contact-card {
        margin-top: 14px;
        padding: 14px 12px;
        border-radius: 12px;
    }

    .advert-contact-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .advert-contact-heading h2,
    .advert-profile-card h2 {
        font-size: 19px;
    }

    .advert-share-button {
        width: 100%;
    }

    .advert-facts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .advert-fact-wide {
        grid-column: auto;
    }

    .advert-fact {
        min-height: 61px;
        padding: 9px 11px;
    }

    .advert-profile-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
        padding: 15px 13px;
        border-radius: 12px;
    }

    .advert-profile-icon {
        width: 40px;
        height: 40px;
    }

    .advert-profile-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .advert-profile-promo {
        padding: 13px;
        border-radius: 12px;
        font-size: 14px;
    }

    .advert-profile-promo-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .advert-benefits-toggle,
    .advert-registration-cta {
        width: 100%;
    }

    .advert-registration-benefits ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

#content.detail table{font-size:100%;background: -webkit-linear-gradient(top, var(--pb-canvas) 59%,var(--pb-surface) 100%);}
#content.detail th{font-weight:normal}
#content.detail td{font-weight:bold}
#content.detail table a{font-size:100%}
#content.detail img{border-radius:3px;max-width: 90%;width: initial;}
#content.detail input{width:250px;height:40px;border-radius:3px;padding:0px 5px;font-size: 100%;margin: 5px;}
#content.detail .images img{margin:0 0.5em;cursor:pointer;border-radius:3px}

/* Lehká vlastní galerie detailu inzerátu. */
.galerie-inzeratu{width:100%;max-width:980px;margin:14px auto 20px;box-sizing:border-box}
.galerie-inzeratu__nahledy{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:4px 2px 10px;scrollbar-width:thin}
.galerie-inzeratu__nahled{flex:0 0 calc(96px * var(--galerie-nahled-meritko,1));height:calc(72px * var(--galerie-nahled-meritko,1));padding:0;border:2px solid var(--pb-border);border-radius:8px;background:var(--pb-canvas);cursor:pointer;box-sizing:border-box;overflow:hidden}
.galerie-inzeratu__nahled:hover,.galerie-inzeratu__nahled:focus-visible{border-color:var(--pb-primary);outline:none}
.galerie-inzeratu__nahled.je-aktivni{border-color:var(--pb-primary);box-shadow:0 0 0 2px var(--pb-focus)}
#content.detail .galerie-inzeratu__nahled img{display:block;width:100%;max-width:100%;height:100%;margin:0;object-fit:cover;border-radius:6px;cursor:pointer}
.galerie-inzeratu__plocha{position:relative;width:100%;height:min(550px,62vw);min-height:300px;overflow:hidden;border-radius:8px;background:var(--pb-surface);touch-action:pan-y pinch-zoom;transition:height .28s ease}
.galerie-inzeratu.je-priblizena .galerie-inzeratu__plocha{touch-action:pan-x pan-y pinch-zoom}
.galerie-inzeratu__pas{display:flex;width:100%;height:100%;transition:transform .48s cubic-bezier(.22,.72,.2,1);will-change:transform}
.galerie-inzeratu__pas.bez-animace{transition:none}
.galerie-inzeratu__snimek{display:flex;flex:0 0 100%;width:100%;height:100%;align-items:center;justify-content:center;overflow:hidden}
#content.detail .galerie-inzeratu__hlavni{display:block;max-width:100%;max-height:100%;width:auto;height:auto;margin:0;object-fit:contain;transition:transform .35s ease;transform-origin:center center}
.galerie-inzeratu__sipka{position:absolute;top:50%;z-index:2;width:44px;height:52px;padding:0;transform:translateY(-50%);border:0;border-radius:7px;background:var(--pb-overlay);color:var(--pb-canvas);font-size:30px;line-height:1;cursor:pointer}
.galerie-inzeratu__sipka:hover,.galerie-inzeratu__sipka:focus-visible{background:var(--pb-overlay);outline:2px solid var(--pb-canvas);outline-offset:-4px}
.galerie-inzeratu__sipka[hidden]{display:none}
.galerie-inzeratu__sipka--zpet{left:10px}
.galerie-inzeratu__sipka--dalsi{right:10px}
.galerie-inzeratu__pocitadlo{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:14px;background:var(--pb-overlay);color:var(--pb-canvas);font-size:13px;font-weight:700}
.galerie-inzeratu__cena{position:absolute;left:10px;bottom:10px;z-index:2;padding:7px 11px;border-radius:6px;background:var(--pb-highlight);color:var(--pb-text);font-size:16px;font-weight:700;box-shadow:0 1px 3px var(--pb-shadow)}
.galerie-inzeratu__cela-obrazovka{position:absolute;top:10px;right:10px;z-index:3;width:42px;height:42px;padding:0;border:0;border-radius:7px;background:var(--pb-canvas);color:var(--pb-text);font-size:27px;line-height:42px;text-align:center;cursor:pointer;box-shadow:0 1px 6px var(--pb-shadow)}
.galerie-inzeratu__cela-obrazovka:hover,.galerie-inzeratu__cela-obrazovka:focus-visible{background:var(--pb-canvas);outline:2px solid var(--pb-primary);outline-offset:2px}
.galerie-inzeratu__otocit,
.galerie-inzeratu__otocit:hover,
.galerie-inzeratu__otocit:focus-visible{display:inline-block;width:auto;margin-top:10px;border:1px solid var(--pb-text);background:var(--pb-highlight);color:var(--pb-text);cursor:pointer}

.detail-admin-panel{
  box-sizing:border-box;
  margin:10px 0;
  padding:8px 10px;
  border:3px double var(--pb-text);
  border-radius:7px;
  background:var(--pb-highlight);
  color:var(--pb-text);
  text-align:center;
}

.detail-admin-panel a{color:var(--pb-text);font-weight:700}
.detail-admin-panel a:hover,.detail-admin-panel a:focus-visible{text-decoration:underline;outline:none}

.galerie-inzeratu:fullscreen{width:100%;max-width:none;height:100%;margin:0;padding:0;background:var(--pb-text)}
.galerie-inzeratu:fullscreen .galerie-inzeratu__nahledy,
.galerie-inzeratu:fullscreen .galerie-inzeratu__otocit{display:none}
.galerie-inzeratu:fullscreen .galerie-inzeratu__plocha{height:100vh;max-height:none;min-height:0;border-radius:0;background:var(--pb-text)}
#content.detail .galerie-inzeratu:fullscreen .galerie-inzeratu__hlavni{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.galerie-inzeratu:fullscreen .galerie-inzeratu__cela-obrazovka{position:fixed;background:var(--pb-canvas)}

@media (max-width:600px){
  .galerie-inzeratu{margin-top:8px}
  .galerie-inzeratu__nahledy{gap:6px;padding-bottom:8px}
  .galerie-inzeratu__nahled{flex-basis:calc(76px * var(--galerie-nahled-meritko,1));height:calc(58px * var(--galerie-nahled-meritko,1))}
  .galerie-inzeratu__plocha{height:clamp(320px,110vw,520px);min-height:0;max-height:520px;border-radius:4px;background:var(--pb-canvas)}
  .galerie-inzeratu__snimek{align-items:center}
  #content.detail .galerie-inzeratu__hlavni{width:100%;max-height:100%;height:100%;object-fit:contain}
  .galerie-inzeratu__sipka,
  .galerie-inzeratu__sipka:hover,
  .galerie-inzeratu__sipka:focus,
  .galerie-inzeratu__sipka:focus-visible,
  .galerie-inzeratu__sipka:active{width:38px;height:46px;font-size:25px;background:var(--pb-canvas);color:var(--pb-text);opacity:1;box-shadow:0 1px 5px var(--pb-shadow);outline:none;-webkit-tap-highlight-color:transparent}
  .galerie-inzeratu__sipka--zpet{left:6px}
  .galerie-inzeratu__sipka--dalsi{right:6px}
  .galerie-inzeratu__cena{left:7px;bottom:7px;font-size:15px}
  .galerie-inzeratu__cela-obrazovka{display:none}
}

#content.detail > .description {
    margin: 0 0 14px;
    padding: 15px 18px;
    border: 1px solid var(--pb-surface);
    border-radius: 12px;
    background: var(--pb-canvas);
    box-shadow: 0 3px 12px var(--pb-shadow);
}

#content.detail > .description h1 {
    margin: 0 0 7px;
    color: var(--pb-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
}

#content.detail > .description .detail-location-heading {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

.detail-gallery-section {
    font-size: 100%;
}

.detail-ad-slot--top {
    padding: 10px 0 20px;
}

.detail-ad-slot--bottom,
.detail-section-spacer {
    padding: 10px 0;
}

#content.detail .detail-description-spacer {
    margin: 0;
}

@media screen and (max-width: 800px) {
    #content.detail > .description {
    padding: 13px 12px;
    }
    
    #content.detail > .description h1 {
    font-size: 21px;
    }
}
