/* Visit Pensacola Events Listing Plugin Styles */

.vp-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters Section */
.vp-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vp-filters h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #333;
}

.vp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.vp-filter-group {
    display: flex;
    flex-direction: column;
}

.vp-filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.vp-filter-group input,
.vp-filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}

.vp-filter-group input:focus,
.vp-filter-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.vp-filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.vp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vp-btn-primary {
    background: #0066cc;
    color: white;
}

.vp-btn-primary:hover {
    background: #0052a3;
}

.vp-btn-secondary {
    background: #6c757d;
    color: white;
}

.vp-btn-secondary:hover {
    background: #5a6268;
}

/* Loading State */
.vp-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.vp-loading::after {
    content: '...';
    animation: vp-dots 1.5s steps(4, end) infinite;
}

@keyframes vp-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Events Grid */
.vp-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .vp-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vp-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Card */
.vp-event-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vp-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vp-event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.vp-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vp-event-date {
    font-size: 0.85rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.vp-event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.4;
}

.vp-event-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.vp-event-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.vp-event-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.vp-event-button:hover {
    background: #0052a3;
    color: white !important;
}

/* No Results */
.vp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.vp-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.vp-results-count {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}

/* Error Message */
.vp-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Pagination */
.vp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vp-pagination button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.vp-pagination button:hover:not(:disabled) {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.vp-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vp-pagination button.vp-active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.vp-pagination-info {
    font-size: 0.95rem;
    color: #666;
    padding: 0 10px;
}

/* Footer */
.vp-footer {
    background: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.vp-footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.vp-footer-text {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.vp-footer-text a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vp-footer-text a:hover {
    color: #0052a3;
    text-decoration: underline;
}
