/* Vissual Ferias Table — v5.0.0 */

/* ── Wrapper ─────────────────────────────────────────────────────── */
.vf-wrap { font-family: inherit; margin-bottom: 40px; }

/* ── Header ──────────────────────────────────────────────────────── */
.vf-wrap h3 { font-size:22px; font-weight:700; color:#1a1a2e; margin:0 0 6px; }
.vf-wrap > .vf-header p { font-size:14px; color:#666; margin:0 0 18px; }

/* ── Filters ─────────────────────────────────────────────────────── */
.vf-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.vf-search, .vf-sel {
    padding:9px 14px;
    border:1px solid #d0d0d0;
    border-radius:6px;
    font-size:14px;
    background:#fff;
    outline:none;
    transition:border .2s;
}
.vf-search { flex:1 1 200px; }
.vf-sel    { min-width:160px; cursor:pointer; }
.vf-search:focus, .vf-sel:focus { border-color:#e94560; }

/* ── Table ───────────────────────────────────────────────────────── */
.vf-tbl { border-collapse:collapse; width:100%!important; font-size:13px; }
.vf-tbl thead th {
    background:#1a1a2e;
    color:#fff;
    padding:11px 14px;
    text-align:left;
    font-weight:600;
    border-bottom:2px solid #e94560;
    white-space:nowrap;
}
.vf-tbl tbody td { padding:9px 14px; border-bottom:1px solid #ebebeb; vertical-align:middle; }
.vf-tbl tbody tr:hover { background:#f7f7f7; }

/* ── "+" open button ─────────────────────────────────────────────── */
.vf-open {
    width:28px; height:28px;
    border-radius:50%;
    border:2px solid #1a1a2e;
    background:none;
    font-size:18px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    color:#1a1a2e;
    display:inline-flex; align-items:center; justify-content:center;
    transition:all .2s;
}
.vf-open:hover { background:#e94560; border-color:#e94560; color:#fff; }

/* ── Tags ────────────────────────────────────────────────────────── */
.vf-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.vf-tag {
    display:inline-block;
    background:#f0f0f0; color:#444;
    font-size:11px; padding:3px 9px;
    border-radius:20px;
}

/* ── DataTables overrides ────────────────────────────────────────── */
.dataTables_wrapper .dataTables_filter { display:none; } /* we use our own search */
.dataTables_wrapper .dataTables_length select {
    padding:4px 8px; border:1px solid #ddd; border-radius:4px; font-size:13px;
}
.dataTables_wrapper .dataTables_info { font-size:13px; color:#888; }
.dataTables_wrapper .dataTables_paginate { margin-top:10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding:5px 11px!important; border-radius:4px!important;
    border:1px solid #ddd!important; font-size:13px!important; margin:2px!important;
    cursor:pointer; color:#333!important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background:#e94560!important; border-color:#e94560!important; color:#fff!important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background:#f0f0f0!important; color:#1a1a2e!important;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.vf-btn-blue, .vf-btn-red {
    display:inline-block; padding:10px 20px; border-radius:5px;
    text-decoration:none!important; font-size:13px; font-weight:600;
    transition:opacity .2s; white-space:nowrap;
}
.vf-btn-blue { background:#1a1a2e; color:#fff!important; }
.vf-btn-blue:hover { opacity:.85; }
.vf-btn-red  { background:#e94560; color:#fff!important; }
.vf-btn-red:hover  { opacity:.85; }

.vf-show-email {
    background:none; border:1px solid #ccc; border-radius:4px;
    padding:2px 8px; font-size:12px; cursor:pointer; color:#555;
}
.vf-show-email:hover { border-color:#e94560; color:#e94560; }

/* ── MODAL ───────────────────────────────────────────────────────── */
.vf-modal-overlay {
    position:fixed; inset:0; z-index:99999;
    background:rgba(0,0,0,.55);
    display:flex; align-items:center; justify-content:center;
    padding:16px;
}
.vf-modal {
    background:#fff; border-radius:10px;
    width:100%; max-width:780px;
    max-height:90vh; overflow-y:auto;
    position:relative; padding:30px 32px 28px;
    box-shadow:0 8px 40px rgba(0,0,0,.25);
}
.vf-modal-close {
    position:absolute; top:14px; right:16px;
    background:none; border:none; font-size:20px;
    cursor:pointer; color:#888; line-height:1;
}
.vf-modal-close:hover { color:#e94560; }
.vf-modal-title { font-size:20px; font-weight:700; color:#1a1a2e; margin:0 0 14px; padding-right:30px; }
.vf-modal-desc {
    background:#f9f9f9; border-left:4px solid #e94560;
    padding:14px 16px; border-radius:4px; margin-bottom:18px;
    font-size:14px; line-height:1.75; color:#333;
}
.vf-modal-industries { margin-bottom:18px; }
.vf-modal-grid {
    display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:16px; margin-bottom:20px;
}
.vf-mcard {
    background:#fff; border:1px solid #e0e0e0;
    border-radius:8px; padding:14px 16px;
}
.vf-mcard h4 {
    font-size:12px; text-transform:uppercase; letter-spacing:1px;
    color:#1a1a2e; margin:0 0 10px; padding-bottom:7px;
    border-bottom:2px solid #e94560;
}
.vf-mcard p { margin:5px 0; font-size:13px; color:#444; line-height:1.5; }
.vf-mcard strong { color:#1a1a2e; }
.vf-mcard a { color:#e94560; word-break:break-all; }
.vf-modal-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.vf-modal-cta { font-size:13px; color:#888; font-style:italic; margin:0; }

/* ── Single page ─────────────────────────────────────────────────── */
.vf-single { max-width:960px; margin:0 auto 40px; }
.vf-single-desc {
    background:#f9f9f9; border-left:4px solid #e94560;
    padding:20px; border-radius:4px; margin-bottom:24px;
    font-size:15px; line-height:1.8; color:#333;
}
.vf-single-ind { margin-bottom:24px; }
.vf-single-ind .vf-tag { background:#1a1a2e; color:#fff; font-size:12px; padding:4px 12px; }
.vf-single-grid {
    display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:20px; margin-bottom:28px;
}
.vf-scard {
    background:#fff; border:1px solid #e0e0e0;
    border-radius:8px; padding:18px 20px;
}
.vf-scard h3 {
    font-size:13px; text-transform:uppercase; letter-spacing:1px;
    color:#1a1a2e; margin:0 0 12px; padding-bottom:8px;
    border-bottom:2px solid #e94560;
}
.vf-scard p { margin:6px 0; font-size:14px; color:#444; line-height:1.6; }
.vf-scard strong { color:#1a1a2e; }
.vf-scard a { color:#e94560; word-break:break-all; }
.vf-single-cta {
    background:#1a1a2e; color:#fff;
    padding:22px 28px; border-radius:10px;
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:16px;
}
.vf-single-cta p { margin:0; font-size:15px; flex:1 1 300px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media(max-width:768px){
    .vf-filters { flex-direction:column; }
    .vf-search,.vf-sel { width:100%; }
    /* Hide: End date(3), Venue(6 in country mode / 5 in city mode) */
    .vf-tbl th:nth-child(3),.vf-tbl td:nth-child(3) { display:none; }
    .vf-tbl th:nth-child(6),.vf-tbl td:nth-child(6) { display:none; }
    /* + button always visible and bigger on mobile */
    .vf-open-btn {
        width:38px; height:38px; font-size:22px;
        background:#e94560; border-color:#e94560; color:#fff;
        border-radius:50%;
    }
    .vf-modal { padding:20px 16px; }
    .vf-modal-grid { grid-template-columns:1fr; }
    .vf-single-cta { flex-direction:column; text-align:center; }
    .vf-single-grid { grid-template-columns:1fr; }
}
@media(max-width:480px){
    /* Small screens: show Event name (1) + Start date (2) + + button (last) */
    .vf-tbl th:nth-child(3),.vf-tbl td:nth-child(3),
    .vf-tbl th:nth-child(4),.vf-tbl td:nth-child(4),
    .vf-tbl th:nth-child(5),.vf-tbl td:nth-child(5),
    .vf-tbl th:nth-child(6),.vf-tbl td:nth-child(6) { display:none; }
    /* ALWAYS show last column (+ button) regardless of city/country mode */
    .vf-tbl th:last-child,.vf-tbl td:last-child { display:table-cell !important; }
    .vf-modal-actions { flex-direction:column; }
    /* Mobile: event name is the main tap target — style it clearly */
    .vf-event-link {
        color: #e94560 !important;
        font-size: 13px;
        font-weight: 700;
        display: block;
        line-height: 1.5;
    }
    .vf-event-link::after {
        content: " →";
        font-size: 11px;
        opacity: 0.7;
    }
    .vf-name-cell {
        max-width: 180px;
        word-break: break-word;
    }
    /* Help text under table on mobile */
    .vf-mobile-hint {
        display: block !important;
        font-size: 12px;
        color: #888;
        text-align: center;
        margin-top: 8px;
        font-style: italic;
    }
}

/* ── Event name link in table ─────────────────────────────────────── */
.vf-event-link {
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}
.vf-event-link:hover {
    color: #e94560;
    text-decoration: underline;
}
.vf-name-cell { min-width: 180px; }

/* ── v3.2 additions ──────────────────────────────────────────────── */
.vf-show-web {
    background: #555;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px 0;
}
.vf-show-web:hover { background: #1a1a2e; }
.vf-show-email {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px 0;
}
.vf-show-email:hover { background: #e94560; }

/* Scroll lock when modal open */
body.vf-modal-open { overflow: hidden; }
