/**
 * Event Espresso Venues - Modern School Facilities Design
 * St. Augustine High School
 */

/* Venues Archive Page Container */
.espresso-venues-archive,
.archive.post-type-archive-espresso_venues .site-main,
.espresso_venues-template-default .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Venues Grid Layout */
.espresso-venues-list,
.espresso-venue-list,
.ee-venue-archive-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Individual Venue Card */
.espresso-venues-list-venue,
article.espresso_venues,
.type-espresso_venues {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 1px solid #e8eaf0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.espresso-venues-list-venue:hover,
article.espresso_venues:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(92, 28, 166, 0.15);
}

/* Venue Featured Image */
.espresso-venue-wrapper-dv .ee-venue-img,
.espresso-venue-header .ee-venue-img,
.venue-featured-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.ee-venue-img img,
.venue-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.espresso-venues-list-venue:hover .ee-venue-img img {
    transform: scale(1.05);
}

/* Default Venue Image Placeholder */
.ee-venue-img:not(:has(img)):after,
.venue-featured-image:empty:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'%3E%3C/path%3E%3Cpath d='M5 21V7l8-4v18'%3E%3C/path%3E%3Cpath d='M19 21V11l-6-4'%3E%3C/path%3E%3Crect x='9' y='9' width='4' height='4'%3E%3C/rect%3E%3Crect x='9' y='14' width='4' height='4'%3E%3C/rect%3E%3Crect x='14' y='14' width='4' height='4'%3E%3C/rect%3E%3C/svg%3E") no-repeat center;
    opacity: 0.5;
}

/* Venue Content Container */
.espresso-venue-content-wrapper,
.espresso-venue-wrapper-dv .espresso-venue-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Venue Title */
.espresso-venue-header h2,
.espresso-venue-header h3,
h2.ee-venue-h2,
h3.ee-venue-h3,
.venue-title {
    color: #2c3e50 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.3 !important;
}

.espresso-venue-header h2 a,
.espresso-venue-header h3 a,
.venue-title a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.espresso-venue-header h2 a:hover,
.venue-title a:hover {
    color: #5C1CA6 !important;
}

/* Venue Location Badge */
.espresso-venue-address,
.ee-venue-location,
.venue-location {
    display: inline-flex;
    align-items: center;
    background: #f7f9fc;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    border: 1px solid #e8eaf0;
}

.espresso-venue-address:before,
.ee-venue-location:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C1CA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
}

/* Venue Description */
.espresso-venue-desc,
.ee-venue-description,
.venue-description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Venue Meta Information */
.venue-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.venue-meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.venue-meta-item:before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: inline-block;
}

.venue-phone:before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C1CA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.venue-website:before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C1CA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

/* View Details Button */
.ee-venue-details-btn,
a.ee-venue-details-btn,
.venue-details-link {
    display: inline-flex;
    align-items: center;
    background: #5C1CA6;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ee-venue-details-btn:hover {
    background: #7B3CC0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 28, 166, 0.25);
}

.ee-venue-details-btn:after {
    content: "→";
    margin-left: 8px;
    font-size: 16px;
}

/* Single Venue Page Styling */
.single-espresso_venues .site-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-espresso_venues .espresso-venue-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-espresso_venues .ee-venue-h1 {
    color: #2c3e50;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Venue Single Map Container */
.ee-gmap-wrapper,
.ee-venue-gmap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 30px 0;
    height: 400px;
}

/* Venue Details Section */
.single-espresso_venues .venue-details-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e8eaf0;
}

.venue-details-section h3 {
    color: #5C1CA6;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Archive Page Header */
.archive-header-venues {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.archive-header-venues h1 {
    color: #2c3e50;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.archive-header-venues p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .espresso-venues-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .espresso-venue-wrapper-dv .ee-venue-img {
        height: 180px;
    }
    
    .archive-header-venues h1 {
        font-size: 32px;
    }
}

/* Loading State */
.venues-loading {
    text-align: center;
    padding: 60px 20px;
}

.venues-loading:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #5C1CA6;
    border-radius: 50%;
    animation: venue-spin 1s linear infinite;
}

@keyframes venue-spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.no-venues-found {
    text-align: center;
    padding: 80px 20px;
    background: #f7f9fc;
    border-radius: 16px;
}

.no-venues-found h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.no-venues-found p {
    color: #666;
    font-size: 16px;
}