/* ========================================
   What's On Events Styling
   ======================================== */

/* Event Filters */
.lpb-event-filters {
    margin-bottom: 30px;
}

.lpb-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lpb-event-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lpb-event-filter-btn:hover {
    border-color: #d2591f;
    color: #d2591f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 89, 31, 0.2);
}

.lpb-event-filter-btn.active {
    background: linear-gradient(135deg, #d2591f 0%, #ff7b3d 100%);
    border-color: #d2591f;
    color: #fff;
    box-shadow: 0 4px 16px rgba(210, 89, 31, 0.3);
}

.lpb-event-filter-btn i {
    font-size: 16px;
}

.lpb-event-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.lpb-event-filter-btn.active .lpb-event-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Month Filters */
.lpb-month-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.lpb-month-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpb-month-filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.lpb-month-filter-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.lpb-month-filter-btn i {
    font-size: 16px;
}

/* Month Sections */
.lpb-month-section {
    margin-bottom: 60px;
}

.lpb-month-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d2591f;
}

.lpb-month-heading i {
    color: #d2591f;
    font-size: 32px;
}

/* Events Grid */
.lpb-events-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Event Card */
.lpb-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lpb-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Event Image */
.lpb-event-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.lpb-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lpb-event-card:hover .lpb-event-image img {
    transform: scale(1.05);
}

.lpb-event-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(210, 89, 31, 0.95);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Colors */
.lpb-category-music {
    background: rgba(210, 89, 31, 0.95);
}

.lpb-category-sports {
    background: rgba(52, 152, 219, 0.95);
}

.lpb-category-comedy {
    background: rgba(241, 196, 15, 0.95);
}

.lpb-category-theatre {
    background: rgba(155, 89, 182, 0.95);
}

.lpb-category-festival {
    background: rgba(46, 204, 113, 0.95);
}

.lpb-category-food-drink {
    background: rgba(230, 126, 34, 0.95);
}

.lpb-category-art-culture {
    background: rgba(149, 165, 166, 0.95);
}

.lpb-category-nightlife {
    background: rgba(231, 76, 60, 0.95);
}

/* Event Content */
.lpb-event-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lpb-event-date-time {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lpb-event-date,
.lpb-event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.lpb-event-date i,
.lpb-event-time i {
    color: #d2591f;
    font-size: 16px;
}

.lpb-event-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.lpb-event-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lpb-event-title a:hover {
    color: #d2591f;
}

.lpb-event-title .icofont-external-link {
    font-size: 16px;
    opacity: 0.6;
}

.lpb-event-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.lpb-event-venue i {
    color: #d2591f;
    font-size: 16px;
}

.lpb-event-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* Event Actions */
.lpb-event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.lpb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.lpb-btn-primary {
    background: linear-gradient(135deg, #d2591f 0%, #ff7b3d 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(210, 89, 31, 0.3);
}

.lpb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(210, 89, 31, 0.4);
    color: #fff;
}

.lpb-btn-secondary {
    background: #fff;
    color: #d2591f;
    border: 2px solid #d2591f;
}

.lpb-btn-secondary:hover {
    background: #d2591f;
    color: #fff;
}

.lpb-btn i {
    font-size: 16px;
}

/* ========================================
   Nearby Pubs Modal
   ======================================== */

.lpb-nearby-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lpb-nearby-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.lpb-nearby-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lpb-nearby-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lpb-nearby-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.lpb-nearby-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
}

.lpb-nearby-modal-close:hover {
    color: #d2591f;
}

.lpb-nearby-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Nearby Pubs List */
.lpb-nearby-pubs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lpb-nearby-pub-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.lpb-nearby-pub-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lpb-nearby-pub-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.lpb-nearby-pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpb-nearby-pub-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d2591f 0%, #ff7b3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.lpb-nearby-pub-info {
    flex: 1;
}

.lpb-nearby-pub-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.lpb-nearby-pub-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lpb-nearby-pub-title a:hover {
    color: #d2591f;
}

.lpb-nearby-pub-type {
    display: inline-block;
    background: #d2591f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lpb-nearby-pub-address,
.lpb-nearby-pub-distance {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lpb-nearby-pub-address i,
.lpb-nearby-pub-distance i {
    color: #d2591f;
}

.lpb-nearby-pub-action {
    display: flex;
    align-items: center;
}

.lpb-btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

/* Body modal open state */
body.lpb-modal-open {
    overflow: hidden;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .lpb-event-actions {
        flex-direction: column;
    }

    .lpb-btn {
        width: 100%;
        justify-content: center;
    }

    .lpb-nearby-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .lpb-nearby-modal-header {
        padding: 20px;
    }

    .lpb-nearby-modal-title {
        font-size: 20px;
    }

    .lpb-nearby-modal-body {
        padding: 20px;
    }

    .lpb-nearby-pub-item {
        flex-direction: column;
    }

    .lpb-nearby-pub-image {
        width: 100%;
        height: 200px;
    }

    .lpb-nearby-pub-action {
        width: 100%;
    }

    .lpb-btn-sm {
        width: 100%;
        justify-content: center;
    }
}