﻿/* ============================================================
   Branch Events — redesigned
   ============================================================ */

.events-wrap {
    padding: 0.25rem 0 1.5rem;
}

/* ---- Section Header ---- */
.events-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #dc3545 0%, #b81f2d 100%);
    color: #fff;
    border-radius: 20px;
    padding: 18px 22px;
    margin: 10px 0 28px;
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.22);
}

.events-header-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.events-header-title {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.events-header-sub {
    font-size: 0.85rem;
    opacity: 0.82;
    margin-top: 3px;
    font-weight: 500;
}

/* ---- Events List ---- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ---- Event Card ---- */
.event-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 10px rgba(15, 23, 42, 0.05), 0 20px 48px rgba(15, 23, 42, 0.12);
}

/* ---- Card Image ---- */
.event-card-img-wrap {
    width: 260px;
    min-width: 260px;
    position: relative;
    overflow: hidden;
    background: #f1f4f8;
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-img {
    transform: scale(1.04);
}

/* ---- Card Content ---- */
.event-card-content {
    flex: 1;
    min-width: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.event-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Date Badge ---- */
.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(220, 53, 69, 0.09);
    color: #c0202f;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    width: fit-content;
}

.event-date-badge i {
    font-size: 0.8rem;
}

.event-date-sep {
    opacity: 0.45;
}

/* ---- Event Title ---- */
.event-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.25;
    margin: 0;
}

/* ---- Event Description ---- */
.event-description {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Card Footer ---- */
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f4f8;
    flex-wrap: wrap;
}

/* ---- Price Tag ---- */
.event-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-price-note {
    font-size: 0.75rem;
    color: #9ca3af;
    padding-left: 2px;
}

.event-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e4e9f0;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 12px;
}

.event-price-tag i {
    color: #dc3545;
    font-size: 0.85rem;
}

/* ---- Book Button ---- */
.event-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc3545 0%, #b81f2d 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 20px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(220, 53, 69, 0.28);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.event-book-btn:hover,
.event-book-btn:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(220, 53, 69, 0.36);
    outline: none;
}

.event-book-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.event-book-btn:hover i {
    transform: translateX(3px);
}

/* ---- Empty State ---- */
.empty-events {
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 22px;
    padding: 56px 32px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    margin: 8px 0;
}

.empty-events-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(220,53,69,0.10) 0%, rgba(220,53,69,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.9rem;
    color: #dc3545;
}

.empty-events h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.empty-events p {
    margin: 0;
    color: #6b7280;
    font-size: 0.97rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .event-card-img-wrap {
        width: 220px;
        min-width: 220px;
    }

    .event-card-content {
        padding: 20px 22px;
    }

    .event-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .event-card {
        flex-direction: column;
    }

    .event-card-img-wrap {
        width: 100%;
        min-width: 0;
        height: 210px;
    }

    .event-card-content {
        padding: 18px 20px;
    }

    .event-title {
        font-size: 1.2rem;
    }

    .event-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .event-book-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .events-header {
        padding: 15px 18px;
        border-radius: 16px;
        margin-bottom: 22px;
        gap: 14px;
    }

    .events-header-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .events-header-title {
        font-size: 1rem;
    }

    .events-header-sub {
        font-size: 0.8rem;
    }

    .event-card-img-wrap {
        height: 185px;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .event-date-badge {
        font-size: 0.82rem;
        padding: 6px 12px;
    }
}

/* ============================================================
   Event Pre-card (booking review, deposit, payment actions)
   ============================================================ */

.booking-review-title {
    background: linear-gradient(135deg, #dc3545 0%, #b91c2b 100%);
    color: #fff;
    border-radius: 18px;
    padding: 16px 20px;
    margin: 10px 0 18px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(220, 53, 69, 0.18);
}

.booking-review-card,
.deposit-card,
.deposit-total-card {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.booking-review-card {
    margin-bottom: 18px;
}

.booking-review-header,
.deposit-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.booking-review-header h1,
.deposit-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #18212f;
}

.booking-review-body,
.deposit-card-body {
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 14px 16px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #667085;
    margin-bottom: 6px;
}

.info-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #18212f;
    line-height: 1.45;
    word-break: break-word;
}

.deposit-card-body p {
    color: #4b5563;
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.deposit-card-body p:last-child {
    margin-bottom: 0;
}

.deposit-highlight {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 600;
}

.deposit-total-card {
    margin-top: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border: none;
}

.deposit-total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.deposit-total-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .booking-review-title {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: 14px;
    }

    .booking-review-header,
    .deposit-card-header,
    .booking-review-body,
    .deposit-card-body,
    .deposit-total-card {
        padding: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .deposit-total-value {
        font-size: 1.25rem;
    }
}

.payment-actions-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

.payment-actions-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 22px 18px;
}

.payment-actions-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #18212f;
    margin-bottom: 6px;
}

.payment-actions-subtitle {
    text-align: center;
    font-size: 0.92rem;
    color: #667085;
    margin-bottom: 20px;
}

.payment-action-item {
    margin-bottom: 14px;
}

.payment-action-item:last-child {
    margin-bottom: 0;
}

#applepaybutton {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.pay-card-btn,
.payment-back-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.2;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pay-card-btn {
    background: linear-gradient(135deg, #111827 0%, #000000 100%);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.pay-card-btn:hover,
.pay-card-btn:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.24);
    outline: none;
}

.payment-back-btn {
    background: #f8fafc;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.payment-back-btn:hover,
.payment-back-btn:focus {
    color: #111827;
    background: #f3f4f6;
    border-color: #d1d5db;
    outline: none;
}

@media (max-width: 575.98px) {
    .payment-actions-card {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .payment-actions-title {
        font-size: 1.05rem;
    }

    .payment-actions-subtitle {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    .pay-card-btn,
    .payment-back-btn {
        padding: 13px 16px;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    #applepaybutton {
        min-height: 44px;
        border-radius: 12px;
    }
}
