/* =============================================
   EVENT DETAILS PAGE STYLES
   ============================================= */

.event-details-hero {
max-width: 1340px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.event-details-banner {
    width: 100%;
    display: block;
}

.event-details-banner-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e8f4d 0%, #155a3a 100%);
    font-size: 64px;
    color: white;
}

.event-details-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e8f4d;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
        margin-bottom: 0;
}

.back-link:hover {
    gap: 12px;
    color: #155a3a;
}

.event-details-title {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.event-details-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.event-details-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-details-meta-item i {
    color: #1e8f4d;
    font-size: 16px;
    width: 20px;
}

.event-details-description {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0 40px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    color: #555;
}

.event-details-description p {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
}

.vendors-section-title {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 40px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vendors-section-title i {
    color: #1e8f4d;
}

.event-details-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* =============================================
   OFFER CARD GRID STYLING
   ============================================= */

.offer-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #b7b7b7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #f4b400;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.offer-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #1e8f4d;
}

.vendor-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.vendor-name {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    text-align: center;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.vendor-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: inline-block;
}

.vendor-logo a {
    color: #1e8f4d;
    font-weight: 700;
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    text-align:center;
}

.vendor-location {
    font-size: 12px;
    color: #666;
    font-family: "Poppins", sans-serif;
    line-height: 1.4;
}

.vendor-highlights {
    font-weight: 600;
    color: #1e8f4d;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    min-height: 35px;
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.vendor-actions-link {
    margin-top: auto;
    display: inline-block;
    padding: 5px 14px;
    border: 1.5px solid #1e8f4d;
    border-radius: 20px;
    color: #1e8f4d;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
}

.vendor-actions-link:hover {
    color: #155a3a;
}

.no-vendors {
    text-align: center;
    padding: 60px 40px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 8px;
}

.no-vendors i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #ddd;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {

    .event-details-title {
        font-size: 20px;
    }

    .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .vendor-location {
        font-size: 11px;
    }

    .vendor-highlights {
        font-size: 12px;
    }

    .vendor-actions-link {
        font-size: 12px;
    }

    .vendors-section-title {
        font-size: 22px;
        margin: 30px 0 20px 0;
    }

    .event-details-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-details-description {
        padding: 20px;
        margin: 20px 0 30px 0;
    }

    .event-details-description p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .event-details-title {
        font-size: 20px;
    }

    .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); 
        gap: 10px;
    }

    .offer-card {
        padding: 15px;
        gap: 10px;
    }

    .vendors-section-title {
        font-size: 18px;
        margin: 25px 0 15px 0;
    }

    .event-details-container {
        padding: 20px 15px 30px;
    }

    .category-tabs {
        gap: 6px;
    }

    .cat-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .category-section-title {
        font-size: 15px;
    }
}

/* =============================================
   CATEGORY TABS & SECTIONS
   ============================================= */

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 20px;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Poppins", sans-serif;
}

.cat-tab:hover {
    border-color: #1e8f4d;
    color: #1e8f4d;
}

.cat-tab.active {
    background: #1e8f4d;
    border-color: #1e8f4d;
    color: #fff;
}

.cat-count {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 11px;
}

.cat-tab.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
}

.category-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e8f4d;
    margin: 28px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    font-family: "Poppins", sans-serif;
}

.category-section {
    transition: opacity 0.25s ease;
}

.category-section.hidden {
    display: none;
}

/* =============================================
   EVENT GALLERY
   ============================================= */

.gallery-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
}

.gallery-section-title i {
    color: #1e8f4d;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #e5e7eb;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #fff;
    font-size: 22px;
}

.gallery-thumb:hover .gallery-thumb-overlay {
    opacity: 1;
}

/* Lightbox modal */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.gallery-modal-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.gallery-modal-caption {
    color: #e5e7eb;
    font-size: 14px;
    margin-top: 10px;
    font-family: "Poppins", sans-serif;
    min-height: 20px;
}

.gallery-modal-counter {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 4px;
    font-family: "Poppins", sans-serif;
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: color 0.2s;
}

.gallery-modal-close:hover {
    color: #f87171;
}

.gallery-modal-prev,
.gallery-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10001;
    transition: background 0.2s;
}

.gallery-modal-prev { left: 12px; }
.gallery-modal-next { right: 12px; }

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        font-size: 18px;
        padding: 8px 10px;
    }
}
