/* CSS pro Bricks Elementy ČSE */

/* Zpravodaje (Newsletters) */
.cse-newsletters-wrap {
    font-family: inherit;
}

.cse-nl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.cse-nl-chip {
    background: #f5f5f7;
    border: none;
    color: #1d1d1f;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cse-nl-chip:hover {
    background: #e8e8ed;
}

.cse-nl-chip.active {
    background: #1d1d1f;
    color: #ffffff;
}

.cse-nl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.cse-nl-item {
    background: #f5f5f7;
    border-radius: 32px;
    padding: 30px;
    transition: transform 0.2s;
}

.cse-nl-item:hover {
    transform: translateY(-2px);
}

.cse-nl-item[style*="display: none"] {
    display: none !important;
}

.cse-nl-year-tag {
    display: inline-block;
    background: #e8e8ed;
    color: #1d1d1f;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.cse-nl-title {
    margin: 0 0 20px 0;
    color: #1d1d1f;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cse-nl-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cse-nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1d1d1f;
    padding: 12px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cse-nl-btn:hover {
    background: #e8e8ed;
}

.cse-nl-btn svg {
    width: 16px;
    height: 16px;
}

/* Dokumenty Klubu (Club Documents) */
.cse-club-documents {
    font-family: inherit;
}

.cse-doc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cse-doc-item {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 24px;
    transition: transform 0.2s;
}

.cse-doc-item:hover {
    transform: translateY(-2px);
}

.cse-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cse-doc-title {
    margin: 0;
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cse-doc-year {
    background: #e8e8ed;
    color: #1d1d1f;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.cse-doc-files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cse-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1d1d1f;
    padding: 10px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cse-btn-pdf:hover {
    background: #e8e8ed;
}

.cse-btn-pdf svg {
    width: 16px;
    height: 16px;
}

.cse-no-docs {
    padding: 30px;
    background: #f5f5f7;
    border-radius: 24px;
    color: #86868b;
    text-align: center;
    font-weight: 500;
}

/* Profil Klubu (Club Profile) */
.cse-club-profile {
    background: #ffffff;
    border-radius: 32px;
    padding: 0px;
    font-family: inherit;
}

.cse-cp-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cse-cp-header h3 {
    margin: 0 0 10px 0;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cse-cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.cse-cp-item {
    display: flex;
    flex-direction: column;
}

.cse-cp-label {
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 6px;
    font-weight: 500;
}

.cse-cp-value {
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cse-cp-value a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.cse-cp-value a:hover {
    color: #004499;
    text-decoration: underline;
}

.cse-cp-people {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 30px;
}

.cse-cp-people h4 {
    margin: 0 0 24px 0;
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cse-cp-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cse-person-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
}

.cse-person-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f7;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cse-person-info {
    display: flex;
    flex-direction: column;
}

.cse-person-name {
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.cse-person-role {
    color: #86868b;
    margin: 4px 0;
}

.cse-person-email {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

/* Compact Layout Modifications */
.cse-nl-item.compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.cse-nl-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cse-nl-item.compact .cse-nl-year-tag {
    margin-bottom: 6px;
}

.cse-nl-item.compact .cse-nl-title {
    margin: 0;
}

.cse-nl-item.compact .cse-nl-files {
    flex-direction: row;
    gap: 10px;
}

.cse-nl-btn.icon-only {
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
}

.cse-nl-btn.icon-only svg {
    width: 22px;
    height: 22px;
}

/* Výpis spolků (Club List) */
.cse-club-list-wrap {
    font-family: inherit;
}

.cse-club-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.cse-club-card {
    background: #ffffff;
    border: 1px solid #e8e8ed;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.cse-club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.cse-club-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f7;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cse-club-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cse-club-logo-placeholder {
    color: #a1a1a6;
}

.cse-club-logo-placeholder svg {
    width: 40px;
    height: 40px;
}

.cse-club-card-title {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #1d1d1f;
}

.cse-club-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #86868b;
    font-weight: 500;
}


/* Mapa Spolků (Club Map) - Premium Floating Bottom Overlay & Clean Info Boxes */
.cse-club-map-wrap {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cse-map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e2e7;
    overflow: hidden;
}

.cse-map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    z-index: 1;
    background: #f5f5f7 !important;
}

.cse-map-container .leaflet-tile {
    filter: grayscale(0.9) sepia(0.08) hue-rotate(185deg) brightness(1.03) contrast(0.96) !important;
}

.cse-map-overlay-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: #eff7fc;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e2e2e7;
}

.cse-map-arrow {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #1d1d1f;
    padding: 0;
    z-index: 1001;
}

.cse-map-arrow:hover {
    background: #f5f5f7;
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.cse-map-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cse-map-overlay-cards {
    flex-grow: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 20px;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
    user-select: none;
    cursor: grab;
}

/* Dynamické masky horizontu podle možností posunu */
.cse-map-overlay-cards.can-scroll-left:not(.can-scroll-right) {
    mask-image: linear-gradient(to right, transparent 0%, #ffffff 15%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #ffffff 15%);
}

.cse-map-overlay-cards:not(.can-scroll-left).can-scroll-right {
    mask-image: linear-gradient(to right, #ffffff 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #ffffff 85%, transparent 100%);
}

.cse-map-overlay-cards.can-scroll-left.can-scroll-right {
    mask-image: linear-gradient(to right, transparent 0%, #ffffff 15%, #ffffff 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #ffffff 15%, #ffffff 85%, transparent 100%);
}

.cse-map-overlay-cards:not(.can-scroll-left):not(.can-scroll-right) {
    mask-image: none;
    -webkit-mask-image: none;
}

.cse-map-overlay-cards.grabbing {
    cursor: grabbing;
}

.cse-map-overlay-cards::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.cse-map-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    width: 200px;
    flex-shrink: 0;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cse-map-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.cse-map-card.active {
    border-color: var(--club-color, #00a0e2);
    box-shadow: 0 0 0 1px var(--club-color, #00a0e2), 0 8px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.cse-map-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.cse-map-card-title {
    font-size: 0.95em;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cse-map-card-city {
    font-size: 0.75em;
    color: #86868b;
    font-weight: 500;
    line-height: 1.2;
}

/* Custom Marker Styling */
.cse-custom-marker {
    background: transparent;
    border: none;
}

.cse-custom-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

.cse-custom-marker:hover svg,
.cse-custom-marker.active svg {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* Custom Leaflet Popup overrides to build an elegant Info Box */
.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e2e2e7 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    width: 290px !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.leaflet-popup-tip-container {
    display: none !important;
    /* Hide the default ugly arrow pointer */
}

.leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    color: #86868b !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    transition: color 0.2s ease !important;
    z-index: 10001 !important;
}

.leaflet-popup-close-button:hover {
    color: #1d1d1f !important;
    background: transparent !important;
}

/* Info Box custom structure styling */
.cse-popup-info-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cse-popup-header {
    background-color: #ffffff !important;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid #e2e2e7;
}

.cse-popup-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #00a0e2;
}

.cse-popup-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #1d1d1f;
}

.cse-popup-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cse-popup-address {
    font-size: 0.95em;
    color: #1d1d1f;
    line-height: 1.4;
}

.cse-popup-address strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.cse-popup-phone {
    font-size: 0.9em;
    color: #515154;
}

.cse-popup-phone strong {
    color: #1d1d1f;
}

.cse-popup-btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e2e2e7 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 15px !important;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    margin-top: 2px;
    width: 100% !important;
    box-sizing: border-box;
}

.cse-popup-btn:hover {
    background-color: #f5f5f7 !important;
    border-color: #d2d2d7 !important;
    color: #000000 !important;
}

.cse-popup-btn-caret {
    font-size: 1.7em;
    line-height: 1;
    color: inherit;
    margin-left: 2px;
    font-weight: 700;
}

/* Sticky Side Nav Ears for Club Profile Page */
.cse-club-nav-ears {
    position: relative;
    z-index: 9999;
}

.cse-club-ear {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 14px;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.cse-club-ear-prev {
    left: 0;
    border-radius: 0 100px 100px 0;
    border-left: none;
    padding-right: 20px;
}

.cse-club-ear-next {
    right: 0;
    border-radius: 100px 0 0 100px;
    border-right: none;
    padding-left: 20px;
}

/* Icon & Label styling */
.cse-club-ear-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #00a0e2;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cse-club-ear-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cse-club-ear-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    font-weight: 600;
    font-size: 0.9em;
}

/* Hover effects */
.cse-club-ear-prev:hover {
    padding-left: 10px;
    background: #ffffff;
}

.cse-club-ear-prev:hover .cse-club-ear-label {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
}

.cse-club-ear-prev:hover .cse-club-ear-icon {
    transform: translateX(-3px);
}

.cse-club-ear-next:hover {
    padding-right: 10px;
    background: #ffffff;
}

.cse-club-ear-next:hover .cse-club-ear-label {
    max-width: 200px;
    opacity: 1;
    margin-right: 10px;
}

.cse-club-ear-next:hover .cse-club-ear-icon {
    transform: translateX(3px);
}

/* Mobile responsive - on small screens we hide label and keep just arrows for compact look */
@media (max-width: 768px) {
    .cse-club-ear {
        padding: 10px;
    }
    .cse-club-ear-prev {
        padding-right: 14px;
    }
    .cse-club-ear-next {
        padding-left: 14px;
    }
    .cse-club-ear:hover .cse-club-ear-label {
        max-width: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
    }
}