/* 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 #e1e4e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 30, 38, .07);
    color: #202124;
    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;
}

.advert-contact-kicker {
    margin: 0 0 3px !important;
    color: #bd4c00;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.advert-contact-heading h2,
.advert-profile-card h2 {
    margin: 0;
    color: #202124;
    font-size: 21px;
    line-height: 1.3;
}

.advert-share-button,
.advert-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #d7dadd;
    border-radius: 9px;
    background: #f5f6f7;
    color: #282c30;
    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,
.advert-action:hover,
.advert-action:focus-visible {
    border-color: #ff9d5b;
    background: #fff5ee;
    color: #202124;
    outline: none;
}

#content.detail .advert-share-button img,
#content.detail .advert-action 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 #eceef0;
    border-radius: 10px;
    background: #f7f8f9;
}

.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: #6b7177;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.advert-fact dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.advert-fact a {
    color: #195f94;
    text-decoration: none;
}

.advert-fact a:hover,
.advert-fact a:focus-visible {
    color: #bd4c00;
    text-decoration: underline;
}

.advert-secondary {
    color: #676d73;
    font-size: 13px;
    font-weight: 550;
}

.advert-fact-price dd {
    color: #bd4c00;
    font-size: 17px;
}

.advert-expired-note {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #f0c7c7;
    border-radius: 9px;
    background: #fff5f5;
    color: #8b2525;
    font-weight: 650;
    line-height: 1.45;
}

.advert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eceef0;
}

.advert-action {
    background: #fff;
}

.advert-action-danger {
    color: #a52a2a;
}

.advert-action-report {
    color: #76540b;
}

.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: #fff1e7;
}

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

.advert-profile-text {
    margin-top: 10px;
    color: #42484e;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.advert-profile-promo {
    padding: 15px 18px;
    background: #f6f7f8;
    color: #4f555b;
    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: #202124;
}

.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 #b9d9c4;
    border-radius: 9px;
    background: #eef8f1;
    color: #237a48;
    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: #31945a;
    background: #e0f3e6;
    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: #dce8df;
    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: #39423c;
    line-height: 1.45;
}

.advert-registration-benefits li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #31945a;
    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 #27804b;
    border-radius: 9px;
    background: #36a363;
    color: #fff;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(34, 115, 67, .18);
}

.advert-registration-cta:hover,
.advert-registration-cta:focus-visible {
    background: #27894f;
    color: #fff;
    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-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advert-action {
        width: 100%;
    }

    .advert-action-report {
        grid-column: 1 / -1;
    }

    .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 .flr span{margin-right:0.5em}
#content.detail .flr a{color:#000}
#content.detail .flr a:hover{color:#000}
#content.detail .flr a.active{color:#000}
#content.detail table{font-size:100%;background: -webkit-linear-gradient(top, #fff 59%,#f1f1f1 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 #d9e2e8;border-radius:8px;background:#fff;cursor:pointer;box-sizing:border-box;overflow:hidden}
.galerie-inzeratu__nahled:hover,.galerie-inzeratu__nahled:focus-visible{border-color:#f58220;outline:none}
.galerie-inzeratu__nahled.je-aktivni{border-color:#f58220;box-shadow:0 0 0 2px rgba(245,130,32,.22)}
.galerie-inzeratu__nahled img{display:block;width:100%!important;max-width:100%!important;height:100%;margin:0!important;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:#f5f7f8;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}
.galerie-inzeratu__hlavni{display:block;max-width:100%!important;max-height:100%;width:auto;height:auto;margin:0!important;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:rgba(0,0,0,.48);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.galerie-inzeratu__sipka:hover,.galerie-inzeratu__sipka:focus-visible{background:rgba(0,0,0,.7);outline:2px solid #fff;outline-offset:-4px}
.galerie-inzeratu__sipka[hidden]{display:none!important}
.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:rgba(0,0,0,.58);color:#fff;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:#ffdf20;color:#111;font-size:16px;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.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:rgba(255,255,255,.9);color:#222;font-size:27px;line-height:42px;text-align:center;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.32)}
.galerie-inzeratu__cela-obrazovka:hover,.galerie-inzeratu__cela-obrazovka:focus-visible{background:#fff;outline:2px solid #f58220;outline-offset:2px}
.galerie-inzeratu__otocit{display:inline-block;width:auto!important;margin-top:10px;border:0;cursor:pointer}

.galerie-inzeratu:fullscreen{width:100%;max-width:none;height:100%;margin:0;padding:0;background:#000}
.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:#000}
.galerie-inzeratu:fullscreen .galerie-inzeratu__hlavni{max-width:100%!important;max-height:100%;width:auto!important;height:auto;object-fit:contain}
.galerie-inzeratu:fullscreen .galerie-inzeratu__cela-obrazovka{position:fixed;background:rgba(255,255,255,.9)}

@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:#fff}
  .galerie-inzeratu__snimek{align-items:center}
  .galerie-inzeratu__hlavni{width:100%!important;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:#fff;color:#333;opacity:1;box-shadow:0 1px 5px rgba(0,0,0,.3);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 #e4e7ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(24, 30, 38, .055);
}

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

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

