/* ==========================================================================
   ZF (Zodpovědný fotbal) - Additional styles
   New CSS file - does not modify main.css
   ========================================================================== */

/* ---------- Hero Override ---------- */
.hero {
    min-height: auto !important;
    height: auto !important;
    padding: 2rem 0 1rem !important;
}

.hero-wrapper {
    padding: 0 !important;
}

.hero-title,
.hero-desc {
    color: #1f2937 !important;
}

.hero,
.hero-wrapper,
.hero::after,
.hero-wrapper::after,
.hero *,
.content-spacing .hero {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.content-spacing .hero+section,
.content-spacing .hero+.logos-section {
    border-top: none !important;
}

.content-spacing>.hero {
    border: none !important;
    outline: none !important;
}

.content-spacing>.hero::before,
.content-spacing>.hero::after {
    display: none !important;
    background: none !important;
    height: 0 !important;
}

.content-spacing>.logos-section {
    border-top: none !important;
}

.content-spacing>.logos-section::before {
    display: none !important;
    background: none !important;
    height: 0 !important;
}

/* ---------- Map Section ---------- */
.zf-map-section {
    max-width: 1232px;
    width: calc(100% - 3rem);
    margin: 0 auto 2rem;
}

.zf-map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.zf-map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.zf-map-container svg #features path {
    fill: #e2e8f0;
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.zf-map-container svg #features path:hover {
    fill: #93c5fd;
}

.zf-map-container svg #features path.active {
    fill: #2563eb;
}

/* Hide label_points and points groups from SVG */
.zf-map-container svg #label_points,
.zf-map-container svg #points {
    display: none;
}

/* ---------- Region Label ---------- */
.zf-region-label {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark, #1f2937);
    margin: 1.5rem 0 1rem;
}

/* ---------- Search Panel ---------- */
.zf-search-panel {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-color, #e5e7eb);
}

.zf-search-panel.visible {
    display: block;
}

.zf-search-input-wrapper {
    position: relative;
}

.zf-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.zf-search-input:focus {
    border-color: var(--primary-color, #2563eb);
}

.zf-search-input::placeholder {
    color: var(--text-gray, #6b7280);
}

/* ---------- Search Results ---------- */
.zf-search-results {
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: var(--bg-white, #ffffff);
}

.zf-search-results:empty {
    display: none;
}

.zf-search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zf-search-result-item:last-child {
    border-bottom: none;
}

.zf-search-result-item:hover {
    background: #f0f9ff;
}

.zf-search-result-item .club-name {
    font-weight: 600;
    color: var(--text-dark, #1f2937);
}

.zf-search-result-item .club-city {
    font-size: 0.85rem;
    color: var(--text-gray, #6b7280);
}

.zf-search-result-item .upgraded-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 99px;
    font-weight: 600;
    white-space: nowrap;
}

.zf-search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-gray, #6b7280);
    font-size: 0.95rem;
}

/* ---------- Club Not Found Form ---------- */
.zf-club-not-found {
    margin-top: 1.5rem;
    text-align: center;
}

.zf-club-not-found-toggle {
    background: none;
    border: none;
    color: var(--primary-color, #2563eb);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: underline;
}

.zf-club-not-found-form {
    display: none;
    margin-top: 1rem;
    text-align: left;
}

.zf-club-not-found-form.visible {
    display: block;
}

.zf-club-not-found-form .form-group {
    margin-bottom: 1rem;
}

.zf-club-not-found-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-dark, #1f2937);
}

.zf-club-not-found-form input,
.zf-club-not-found-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    box-sizing: border-box;
}

.zf-club-not-found-form textarea {
    resize: vertical;
    min-height: 60px;
}

.zf-request-success {
    display: none;
    padding: 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

.zf-request-success.visible {
    display: block;
}

/* ---------- Club Profile Page ---------- */
.zf-club-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.zf-club-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: #fff;
    padding: 0.5rem;
}

.zf-club-info h1 {
    margin: 0 0 0.5rem;
}

.zf-club-meta {
    color: var(--text-gray, #6b7280);
    font-size: 0.95rem;
}

.zf-upgraded-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.zf-club-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.zf-club-card {
    background: var(--bg-white, #ffffff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .zf-map-section {
        width: calc(100% - 2rem);
    }

    .zf-search-wrapper {
        margin: 0 1rem;
    }

    .zf-club-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .zf-club-logo {
        width: 80px;
        height: 80px;
    }
}

/* ─── NEW MAP & SEARCH STYLES ─── */

/* Map Tooltip */
body .zf-map-tooltip {
    position: absolute;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 0.5rem 0.8rem;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    transform: translate(10px, 10px);
    text-shadow: none !important;
}

.zf-map-container svg #features path.active-region {
    fill: #2563eb !important;
}

/* Search Whisperer Input */
.zf-search-input-whisperer {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.05);
    box-sizing: border-box;
    font-family: inherit;
}

.zf-search-input-whisperer:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Spinner */
.search-spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
    animation: zf-spin 1s infinite linear;
}

@keyframes zf-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Whisperer Results Dropdown */
.zf-search-results-whisperer {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 900;
    padding: 0.5rem 0;
}

.zf-results-section {
    padding-bottom: 0.5rem;
}

.zf-res-heading {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.zf-results-section:first-child .zf-res-heading {
    border-top: none;
}

/* Club Items */
.zf-club-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid #f8fafc;
    width: 100%;
}

.zf-club-item:last-child {
    border-bottom: none;
}

.zf-club-item:hover {
    background: #f0f9ff;
    padding-left: 1.5rem;
    /* slight movement */
}

.zf-club-item.upgraded {
    background: #f0fdf4;
    /* Light green tint */
}

.zf-club-item.upgraded:hover {
    background: #dcfce7;
}

.zf-club-info {
    display: flex;
    flex-direction: column;
}

.zf-club-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.zf-club-city {
    font-size: 0.85rem;
    color: #64748b;
}

.zf-club-item.upgraded .zf-club-name {
    color: #166534;
    /* Dark green */
}

.zf-club-item.upgraded .zf-club-name::before {
    content: '⭐ ';
    font-size: 0.8em;
}

.zf-arrow {
    color: #bfdbfe;
    font-weight: 700;
}

.zf-upgrade-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 0.5rem;
}

.zf-club-item:hover .zf-upgrade-hint {
    color: #2563eb;
}

.zf-club-item:hover .zf-arrow {
    color: #2563eb;
}

/* Highlighter */
mark {
    background: #fef08a;
    padding: 0 2px;
    border-radius: 2px;
}

/* Context Badge */
#zf-context-name {
    font-weight: 700;
    color: #1e40af;
}

/* Not Found Simple */
.zf-club-not-found-simple {
    margin-top: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.zf-club-not-found-simple a {
    color: #2563eb;
    text-decoration: underline;
}

/* Pricing Table Override for Mobile Layout */
.pricing-table {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.5rem !important;
}