/* =========================================================================
   Detail klubu
   ========================================================================= */

/* ---------- hero ---------- */

.club-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
    isolation: isolate;
}
.club-hero-media { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -1; }
.club-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.club-hero-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--navy-deep) 0%, rgba(11, 29, 51, .85) 25%, rgba(11, 29, 51, .35) 60%, rgba(11, 29, 51, .15) 100%),
        linear-gradient(0deg, rgba(11, 29, 51, .5) 0%, rgba(11, 29, 51, 0) 50%);
}
.club-hero-inner { padding-top: 18px; padding-bottom: 18px; }
.club-identity { display: flex; align-items: center; gap: 22px; }

.club-logo {
    flex: none;
    width: 152px; height: 124px;
    display: flex; align-items: center; justify-content: center;
    padding: 10px;
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.club-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.club-logo-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    border-radius: 8px;
    background: var(--gold-gradient);
    color: var(--navy-deep);
    font-size: 34px; font-weight: 800; letter-spacing: .02em;
}

.club-title { min-width: 0; }
.club-member {
    display: inline-flex; align-items: center; gap: 7px;
    margin-bottom: 6px;
    font-size: 12px; font-weight: 700; color: var(--gold-light);
}
.club-title h1 {
    margin: 0 0 6px;
    font-size: clamp(26px, 2.8vw + 4px, 44px);
    font-weight: 800; line-height: 1.1;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.club-address { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 500; opacity: .95; }
.club-address i { color: var(--gold-light); }
.club-disciplines { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.club-disciplines li {
    padding: 4px 14px; border-radius: 20px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
    font-size: 14px; font-weight: 600;
}

/* akce: bílý „jazyk“ přesahující spodní hranu hero */
.club-hero-actions-wrap { display: flex; justify-content: flex-end; }
.club-hero-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    background: var(--white);
}
.club-hero-actions .btn { min-height: 38px; font-size: 14px; padding: 0 18px; }

.btn-light { background: #EEF0F3; border-color: #EEF0F3; color: var(--navy-deep); }
.btn-light:hover { background: #E2E6EB; border-color: #E2E6EB; color: var(--navy-deep); }
.btn-gold {
    background: var(--gold-gradient); border-color: transparent; color: var(--navy-deep);
    box-shadow: 0 2px 6px rgba(168, 117, 67, .3);
}
.btn-gold:hover { background: var(--gold-gradient); filter: brightness(1.05); color: var(--navy-deep); }
.btn i { font-size: .95em; }

/* ---------- rozvržení ---------- */

.club-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 364px;
    gap: 20px;
    align-items: start;
    margin-top: 12px;
    scroll-margin-top: 16px;
}
.club-main { min-width: 0; }
.club-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.club-columns.is-single { grid-template-columns: minmax(0, 1fr); }
.club-columns.is-single > .club-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.club-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.club-col > section, .club-sidebar > section { scroll-margin-top: 72px; }

/* ---------- záložky ---------- */

.club-tabs {
    position: sticky; top: 8px; z-index: 5;
    display: inline-flex; gap: 2px;
    max-width: 100%;
    margin-bottom: 14px; padding: 3px;
    border-radius: 9px;
    background: #F1F2F4;
    box-shadow: 0 0 0 4px var(--white);
    overflow-x: auto; scrollbar-width: none;
}
.club-tabs::-webkit-scrollbar { display: none; }
.club-tabs a {
    flex: none;
    padding: 8px 26px;
    border-radius: 7px;
    font-size: 14px; font-weight: 600; color: var(--text);
    text-decoration: none; white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.club-tabs a:hover { background: rgba(16, 40, 70, .07); }
.club-tabs a.is-active { background: var(--navy); color: var(--white); }

/* ---------- karty ---------- */

.club-card {
    padding: 16px 18px;
    border: 1px solid #E5E5E5;
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: 0 1px 3px rgba(16, 40, 70, .05);
}
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.card-title i { color: var(--gold); font-size: 18px; width: 20px; text-align: center; }
.card-empty { margin: 0; font-size: 14px; color: var(--text-muted); }
.card-empty a { font-weight: 600; }

.club-text { font-size: 14.5px; line-height: 1.65; color: #2A333E; }
.club-text p { margin: 0 0 10px; }
.club-text > :last-child { margin-bottom: 0; }

/* ---------- galerie ---------- */

.club-gallery { display: flex; flex-direction: column; gap: 6px; }
.carousel-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-img);
    overflow: hidden;
    background: var(--navy-deep);
}
.carousel-slide { position: absolute; inset: 0; display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide img.is-graphic { object-fit: contain; background: var(--white); padding: 16px; }
.carousel-btn {
    position: absolute; top: 50%; z-index: 2;
    width: 38px; height: 38px; margin-top: -19px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--navy-deep);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    cursor: pointer; transition: transform .15s;
}
.carousel-btn:hover { transform: scale(1.08); }
.carousel-btn.is-prev { left: 12px; }
.carousel-btn.is-next { right: 12px; }
.carousel-thumbs {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 5); gap: 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.carousel-thumbs button { scroll-snap-align: start; }
.carousel-thumbs button {
    padding: 0; aspect-ratio: 4 / 3;
    border: 3px solid transparent; border-radius: 8px;
    overflow: hidden; background: var(--surface-soft); cursor: pointer;
    transition: border-color .15s, opacity .15s;
    opacity: .75;
}
.carousel-thumbs button:hover { opacity: 1; }
.carousel-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- tréninky ---------- */

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px;
    padding: 7px 8px;
    border-top: 1px solid #EEF0F2;
    font-size: 14px;
}
.schedule li:first-child { border-top: 0; }
.schedule li.is-today { border-radius: 8px; background: #FDF6E7; border-top-color: transparent; }
.schedule li.is-today + li { border-top-color: transparent; }
.schedule-day { font-weight: 600; }
.schedule-day small { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--gold-dark); }
.schedule-time {
    justify-self: start;
    padding: 3px 12px; border-radius: 14px;
    font-size: 13px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.has-training .schedule-time { background: #E4F3EA; color: #2E8B57; }
.no-training .schedule-time { background: #F1F2F4; color: #7A828C; font-weight: 500; }
.no-training .schedule-day { color: var(--text-muted); font-weight: 500; }

/* ---------- kontaktní osoby ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #EEF0F2; }
.contact:first-child { border-top: 0; padding-top: 2px; }
.contact-avatar {
    flex: none;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, #1F4C7E 100%);
    color: var(--gold-light);
    font-size: 17px; font-weight: 800;
}
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.contact-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 2px; }
.contact-name { font-size: 15px; }
.contact-role { padding: 2px 10px; border-radius: 12px; background: #F1F2F4; font-size: 12px; font-weight: 600; color: #4A525C; }
.contact-body a { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-body a i { width: 14px; font-size: 13px; color: var(--text-muted); }
.contact-body a:hover { color: var(--red); text-decoration: underline; }

/* ---------- postranní panel ---------- */

.club-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-map address { margin: 0 0 10px 30px; font-style: normal; font-size: 14px; line-height: 1.45; }
.map-box {
    position: relative;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #E9EDF1;
    border: 1px solid #E5E5E5;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #B9C2CC; }
.map-open {
    position: absolute; left: 10px; bottom: 10px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 6px;
    background: var(--navy); color: var(--white);
    font-size: 13px; font-weight: 700; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.map-open:hover { background: var(--navy-deep); }
.map-open i { font-size: 11px; }

.hours { margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.hours > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 3px 8px; border-radius: 6px; }
.hours > div.is-today { background: #FDF6E7; font-weight: 700; }
.hours dt { margin: 0; }
.hours dd { margin: 0; color: var(--text-muted); }
.hours .is-today dd { color: var(--text); }

.side-links { display: flex; flex-direction: column; gap: 10px; }
.side-links .card-title { margin-bottom: 4px; }
.side-links .btn { width: 100%; min-height: 42px; font-size: 14px; }

.side-cta {
    padding: 20px;
    border-radius: var(--radius-card);
    background: linear-gradient(130deg, var(--navy-deep) 0%, #17406F 100%);
    color: var(--white);
}
.side-cta h2 { margin: 0 0 6px; font-size: 18px; }
.side-cta p { margin: 0 0 14px; font-size: 14px; opacity: .85; }
.side-cta .btn { width: 100%; }

/* ---------- další kluby ---------- */

.related-clubs { margin-top: 40px; }
.related-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.related-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; }
.related-head h2::before { content: ''; width: 5px; height: 22px; border-radius: 3px; background: var(--gold); }
.related-head a { font-size: 14px; font-weight: 600; color: var(--navy); }
.related-head a i { margin-left: 6px; font-size: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-club {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px 12px 12px;
    border: 1px solid #E5E5E5; border-radius: var(--radius-card);
    background: var(--white); color: var(--text); text-decoration: none;
    transition: box-shadow .2s, border-color .2s;
}
.related-club:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(16, 40, 70, .1); }
.related-logo {
    flex: none; width: 64px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid #EEF0F2; background: var(--white);
    padding: 4px; overflow: hidden;
}
.related-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.related-logo .club-logo-fallback { font-size: 18px; border-radius: 6px; }
.related-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.related-text b { font-size: 15px; line-height: 1.3; }
.related-text span { font-size: 13px; color: var(--text-muted); }
.related-text span i { margin-right: 6px; color: var(--navy); }
.related-club > i { color: var(--navy); transition: transform .15s; }
.related-club:hover > i { transform: translateX(3px); }
.related-club:hover b { color: var(--red); }

/* =========================================================================
   Responzivita
   ========================================================================= */

@media (max-width: 1280px) {
    .club-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .club-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 1100px) {
    .club-layout { grid-template-columns: minmax(0, 1fr); }
    .club-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .club-hero-media { width: 80%; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .club-columns, .club-columns.is-single > .club-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .club-hero-media { width: 100%; }
    .club-hero-media::after { background: linear-gradient(0deg, var(--navy-deep) 0%, rgba(11, 29, 51, .78) 55%, rgba(11, 29, 51, .5) 100%); }
    .club-identity { flex-direction: column; align-items: flex-start; gap: 14px; }
    .club-logo { width: 104px; height: 86px; padding: 8px; }
    .club-logo-fallback { font-size: 26px; }
    .club-address { font-size: 15px; align-items: flex-start; }
    .club-address i { margin-top: 4px; }
    .breadcrumb [aria-current] { display: none; }

    .club-hero-actions-wrap { padding: 0; }
    .club-hero-actions { width: 100%; border-radius: 0; padding: 12px var(--gutter); }
    .club-hero-actions .btn { flex: 1 1 auto; }

    .club-tabs { display: flex; width: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; top: 0; }
    .club-tabs a { padding: 8px 16px; }

    .club-sidebar { grid-template-columns: minmax(0, 1fr); }
    .schedule li { grid-template-columns: 96px minmax(0, 1fr); }
    .carousel-thumbs { grid-auto-columns: calc((100% - 18px) / 4); }
    .related-grid { grid-template-columns: minmax(0, 1fr); }
}
