/**
 * Styles for the venue archive grid layout
 */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Archive Header */
.archive-header {
    padding: 40px 0;
    background-color: #f9f9f9;
    margin-bottom: 40px;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.archive-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Venue Grid */
.venue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Responsive grid - 2 columns on medium screens */
@media (min-width: 768px) {
    .venue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive grid - 3 columns on large screens */
@media (min-width: 1024px) {
    .venue-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Venue Card */
.venue-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.venue-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Venue Image */
.venue-image {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.venue-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.venue-card:hover .venue-image img {
    transform: scale(1.05);
}

/* Venue Content */
.venue-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.venue-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.venue-location {
    display: flex;
    align-items: center;
}

.venue-capacity {
    display: flex;
    align-items: center;
}

.venue-capacity .dashicons {
    margin-right: 5px;
    font-size: 16px;
}


.venue-title a {
    color: var(--hotel-inn-beyond--palette--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.venue-title a:visited {
    color: var(--hotel-inn-beyond--palette--primary);
}

.venue-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.venue-action {
    margin-top: auto;
}

.btn-default {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    /** using important because the enqueing seems to put the hotel-inn css after ours */
    background-color: var(--hotel-inn-beyond--palette--button-background)!important;
    color: var(--hotel-inn-beyond--palette--button-text)!important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-default:hover {
    /** using important because the enqueing seems to put the hotel-inn css after ours */
    background-color: var(--hotel-inn-beyond--palette--button-hover)!important;
}

.btn-default-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-default:hover .btn-default-icon {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    clear: both;
    display: block;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--hotel-inn-beyond--palette--primary);
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Planner and Supplier specific styles */
.venue-strapline {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Post type specific card styling */
.post-type-archive-planner .venue-card,
.post-type-archive-supplier .venue-card {
    /* Inherit all venue card styles but can be customized if needed */
}

.post-type-archive-planner .btn-default,
.post-type-archive-supplier .btn-default {
    /* Inherit venue button styles */
}

/* Responsive adjustments for planner/supplier meta */
@media (max-width: 767px) {
    .venue-strapline {
        font-size: 0.85rem;
    }
}
