/* ==========================================================
   VISIONEXHIBIT
   DYNAMIC EXHIBITION LISTING
   ========================================================== */

.ve-exhibition-page {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    color: #182578;
    font-family: Arial, Helvetica, sans-serif;
}

/* PAGE HEADING */

.ve-exhibition-heading {
    width: 100%;
    background: #f5f6f9;
    border-bottom: 1px solid #e5e5e5;
}

.ve-exhibition-heading-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 65px 40px;
}

.ve-heading-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ve-exhibition-heading h1 {
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 35px;
    text-transform: uppercase;
}

.ve-exhibition-heading h1 span {
    color: #0071bc;
}

/* LOCATION SELECTOR */

.ve-exhibition-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ve-exhibition-controls label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

#ve-location-select {
    min-width: 220px;
    padding: 13px 18px;
    background: #ffffff;
    border: 1px solid #182578;
    color: #182578;
    font-size: 15px;
    cursor: pointer;
}

/* CONTENT */

.ve-exhibition-content {
    padding: 55px 40px 100px;
}

.ve-exhibition-content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ve-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #182578;
    margin-bottom: 35px;
    padding-bottom: 15px;
}

.ve-results-header h2 {
    margin: 0;
    font-size: 24px;
}

#ve-results-count {
    font-size: 13px;
}

/* EXHIBITION GRID */

.ve-exhibition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px 25px;
}

/* CARDS */

.ve-exhibition-card {
    min-width: 0;
}

.ve-exhibition-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eeeeee;
}

.ve-exhibition-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ve-exhibition-card-image:hover img {
    transform: scale(1.04);
}

.ve-exhibition-card-info {
    padding-top: 16px;
}

.ve-exhibition-card-venue {
    display: inline-block;
    color: #0071bc;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
}

.ve-exhibition-card-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.ve-exhibition-card-title a {
    color: #182578;
    text-decoration: none;
}

.ve-exhibition-card-title a:hover,
.ve-exhibition-card-venue:hover {
    text-decoration: underline;
}

.ve-exhibition-card-dates {
    font-size: 13px;
    color: #666666;
}

.ve-exhibition-card-artist {
    margin-top: 8px;
    font-size: 14px;
    color: #444444;
}

/* STATUS */

.ve-loading {
    padding: 50px 0;
    text-align: center;
    font-size: 16px;
}

.ve-error {
    padding: 25px;
    background: #fff1f1;
    color: #a00000;
    margin-bottom: 30px;
}

.ve-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666666;
}

/* PAGINATION */

.ve-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 65px;
}

.ve-pagination button {
    border: 1px solid #182578;
    background: white;
    color: #182578;
    padding: 12px 20px;
    cursor: pointer;
}

.ve-pagination button:hover {
    background: #182578;
    color: white;
}

.ve-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .ve-exhibition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .ve-exhibition-heading-inner {
        padding: 45px 20px;
    }

    .ve-exhibition-content {
        padding: 35px 20px 70px;
    }

    .ve-exhibition-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ve-results-header h2 {
        font-size: 20px;
    }

    #ve-location-select {
        width: 100%;
    }

}