/* ===========================================================
   EVENTS BOOKING PLUGIN v2 - Self-contained CSS (ebp- prefix)
   =========================================================== */

.ebp-events-section *, .ebp-single-event * { box-sizing: border-box; }

.ebp-events-section {
    padding: 60px 0;
    background: #f7f7f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ebp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* SECTION HEADER */
.ebp-section-head { text-align: center; margin-bottom: 40px; }
.ebp-section-title { font-size: 36px !important; font-weight: 700; color: #1a3a2e; margin: 0 0 15px; line-height: 1.2; }
.ebp-divider { width: 60px; height: 3px; background: #c9a04e; margin: 0 auto 20px; }
.ebp-section-subtitle { color: #666; max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 1.6; }

/* TABS */
.ebp-tabs-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.ebp-tabs { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ebp-tabs li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ebp-tabs li::before { content: none !important; }
.ebp-tab-link {
    display: inline-block; padding: 10px 24px; border-radius: 30px;
    border: 1px solid #ddd; background: #fff; color: #1a3a2e !important;
    text-decoration: none !important; font-weight: 600; font-size: 14px;
    transition: all 0.2s; cursor: pointer;
}
.ebp-tab-link:hover { background: #f5f5f5; color: #1a3a2e !important; }
.ebp-tab-link.active { background: #1a3a2e !important; color: #fff !important; border-color: #1a3a2e !important; }

/* GRID */
.ebp-events-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 28px !important;
}
.ebp-event-item { display: block; margin: 0; padding: 0; list-style: none; }

/* CARD */
.ebp-event-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid #eee;
}
.ebp-event-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }

.ebp-event-thumb { position: relative !important; width: 100%; height: 220px; overflow: hidden; background: #f0f0f0; }
.ebp-event-thumb img { width: 100% !important; height: 100% !important;  display: block !important; transition: transform 0.3s; max-width: none !important; }
.ebp-event-card:hover .ebp-event-thumb img { transform: scale(1.05); }

/* DATE RIBBON */
.ebp-date-ribbon {
    position: absolute !important; top: 15px !important; left: 15px !important;
    background: #1a3a2e !important; color: #fff !important;
    padding: 10px 14px !important; border-radius: 8px !important;
    text-align: center !important; min-width: 55px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25) !important; z-index: 2 !important;
}
.ebp-ribbon-day { font-size: 22px !important; font-weight: 700 !important; line-height: 1 !important; color: #fff !important; }
.ebp-ribbon-mon { font-size: 11px !important; text-transform: uppercase !important; letter-spacing: 1px !important; margin-top: 4px !important; color: #fff !important; line-height: 1 !important; }

/* CATEGORY PILL */
.ebp-cat-pill {
    position: absolute !important; top: 15px !important; right: 15px !important;
    padding: 6px 14px !important; border-radius: 20px !important;
    background: #c9a04e !important; color: #fff !important;
    font-size: 11px !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 0.5px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important; z-index: 2 !important;
    white-space: nowrap !important;
}

/* CARD BODY */
.ebp-event-body { padding: 20px 22px; flex: 1; }
.ebp-event-title { font-size: 19px !important; font-weight: 700 !important; margin: 0 0 14px !important; line-height: 1.3 !important; }
.ebp-event-title a { color: #1a3a2e !important; text-decoration: none !important; }
.ebp-event-title a:hover { color: #c9a04e !important; }
.ebp-event-desc { color: #666 !important; font-size: 14px !important; line-height: 1.55 !important; margin: 12px 0 0 !important; }
.ebp-meta-row { display: flex !important; align-items: center !important; gap: 10px !important; color: #555 !important; font-size: 13px !important; margin: 7px 0 !important; }
.ebp-meta-row i { color: #c9a04e !important; width: 16px; text-align: center; flex-shrink: 0; }
.ebp-meta-row span { color: #555 !important; }

/* CARD FOOTER */
.ebp-event-foot { padding: 15px 22px; border-top: 1px solid #eee; display: flex !important; justify-content: space-between !important; align-items: center !important; background: #fafafa; gap: 10px; }
.ebp-seats-left { font-size: 12px !important; color: #d63638 !important; font-weight: 600 !important; display: flex !important; align-items: center !important; gap: 6px !important; }
.ebp-seats-left i { color: #d63638 !important; }
.ebp-btn-reg {
    background: #1a3a2e !important; color: #fff !important;
    padding: 9px 22px !important; border-radius: 6px !important;
    text-decoration: none !important; font-size: 13px !important; font-weight: 600 !important;
    border: none !important; cursor: pointer !important; display: inline-block !important;
    transition: background 0.2s !important;
}
.ebp-btn-reg:hover { background: #c9a04e !important; color: #fff !important; }
.ebp-btn-reg-disabled {
    background: #ccc !important; color: #777 !important; cursor: not-allowed !important;
    pointer-events: none !important;
}
.ebp-btn-reg-disabled:hover { background: #ccc !important; color: #777 !important; }
.ebp-btn-large { padding: 13px 32px !important; font-size: 15px !important; }
.ebp-no-events { text-align: center; padding: 40px; color: #888; }

.ebp-archive-wrap { padding: 0; }

/* SINGLE EVENT PAGE */
.ebp-single-event { margin-top: 30px; }

.ebp-back-link {
    display: inline-block; margin-bottom: 20px;
    color: #1a3a2e !important; text-decoration: none !important;
    font-weight: 600; font-size: 14px;
}
.ebp-back-link:hover { color: #c9a04e !important; }
.ebp-back-link i { margin-right: 6px; }

.ebp-detail-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.ebp-detail-hero {
    position: relative !important; width: 100%; height: 400px;
    overflow: hidden; background: #f0f0f0;
}
.ebp-detail-hero img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
}

/* Banner Slider (multiple images) */
.ebp-banner-slider { position: relative !important; width: 100%; height: 100%; overflow: hidden; }
.ebp-banner-track {
    display: flex !important; width: 100%; height: 100%;
    transition: transform 0.5s ease-in-out;
}
.ebp-banner-slide { flex: 0 0 100% !important; width: 100%; height: 100%; }
.ebp-banner-slide img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
}
.ebp-banner-nav {
    position: absolute !important; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.35) !important; color: #fff !important; border: none;
    width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.ebp-banner-nav:hover { background: rgba(0,0,0,0.6) !important; }
.ebp-banner-prev { left: 15px !important; }
.ebp-banner-next { right: 15px !important; }
.ebp-banner-dots {
    position: absolute !important; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.ebp-banner-dot {
    width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.55);
    cursor: pointer; display: block;
}
.ebp-banner-dot.is-active { background: #c9a04e !important; }
.ebp-date-ribbon-big { padding: 16px 22px !important; }
.ebp-date-ribbon-big .ebp-ribbon-day { font-size: 32px !important; }
.ebp-date-ribbon-big .ebp-ribbon-mon { font-size: 13px !important; }

.ebp-detail-body { padding: 40px; }
.ebp-detail-title {
    font-size: 32px !important; color: #1a3a2e !important;
    margin: 0 0 25px !important; line-height: 1.2 !important; font-weight: 700 !important;
}
.ebp-event-description { margin: 25px 0; }
.ebp-event-description h3 { color: #1a3a2e !important; margin: 0 0 12px !important; font-size: 22px !important; }
.ebp-event-description div { color: #555 !important; line-height: 1.7; font-size: 15px; }

.ebp-info-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important; margin: 25px 0;
    padding: 25px; background: #f9f9f7; border-radius: 8px;
}
.ebp-info-block { display: flex !important; gap: 14px !important; align-items: flex-start !important; }
.ebp-info-block i { color: #c9a04e !important; font-size: 22px; margin-top: 3px; flex-shrink: 0; }
.ebp-info-block strong { display: block; font-size: 11px; color: #888 !important; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.ebp-info-block span { display: block; color: #1a3a2e !important; font-weight: 600; font-size: 14px; }

.ebp-detail-booking { margin-top: 35px; padding-top: 30px; border-top: 2px solid #f0f0f0; }
.ebp-detail-booking h3 { color: #1a3a2e !important; margin-bottom: 20px !important; font-size: 22px !important; }

/* BOOKING FORM */
.ebp-booking-form { max-width: 700px; }
.ebp-booking-form label { display: block !important; margin-bottom: 6px !important; font-weight: 600 !important; color: #1a3a2e !important; font-size: 14px !important; }
.ebp-booking-form input, .ebp-booking-form select {
    width: 100% !important; padding: 11px 14px !important;
    border: 1px solid #ddd !important; border-radius: 6px !important;
    font-size: 14px !important; box-sizing: border-box !important;
    background: #fff !important; color: #333 !important;
}
.ebp-booking-form input:focus, .ebp-booking-form select:focus {
    outline: none !important; border-color: #c9a04e !important;
    box-shadow: 0 0 0 3px rgba(201,160,78,0.15) !important;
}
.ebp-form-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 15px !important; margin-bottom: 15px !important; }
.ebp-form-col p { margin: 0 !important; }
.ebp-booking-form p { margin: 0 0 15px !important; }
.ebp-total { padding: 15px 20px !important; background: #f9f9f7 !important; border-left: 4px solid #c9a04e !important; border-radius: 4px !important; font-size: 18px !important; text-align: right !important; color: #1a3a2e !important; }
.ebp-sold-out-box { padding: 20px; background: #fef0f0; color: #d63638; border-radius: 6px; text-align: center; font-weight: 600; }

/* ALERTS */
.ebp-alert { padding: 15px 20px; margin-bottom: 20px; border-radius: 6px; font-weight: 500; }
.ebp-alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.ebp-alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ADMIN */
.ebp-admin .ebp-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 20px 0; }
.ebp-stat-card { background: #fff; border-left: 4px solid #2271b1; padding: 20px; box-shadow: 0 1px 1px rgba(0,0,0,0.04); }
.ebp-stat-card.ebp-success { border-left-color: #00a32a; }
.ebp-stat-card.ebp-error { border-left-color: #d63638; }
.ebp-stat-card h3 { margin: 0 0 10px; font-size: 14px; color: #666; }
.ebp-stat-number { font-size: 32px; font-weight: 700; margin: 0; color: #1d2327; }
.ebp-status { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ebp-status-success, .ebp-status-confirmed { background: #d4edda; color: #155724; }
.ebp-status-declined, .ebp-status-cancelled { background: #f8d7da; color: #721c24; }
.ebp-status-pending { background: #fff3cd; color: #856404; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .ebp-events-grid { grid-template-columns: 1fr !important; }
    .ebp-form-row { grid-template-columns: 1fr !important; }
    .ebp-section-title { font-size: 28px !important; }
    .ebp-detail-body { padding: 25px !important; }
    .ebp-detail-title { font-size: 24px !important; }
    .ebp-detail-hero { height: 240px !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .ebp-events-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
