/**
 * Virte Booking Plugin Styles
 * CSS selectors ready for custom styling
 */

/* Button Styles */
.virte-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'League Spartan', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 100%;
    letter-spacing: 0.04em;
    text-decoration: none;
    width: 100%;
    border-radius: 100px;
    border-width: 2px;
    padding: 16px 24px;
    background: linear-gradient(96.52deg, #59804A 9.32%, #3A632B 93.13%);
    border: 2px solid #2E3B29;
    box-shadow: 0px -4px 4px 0px #00000040 inset;
    box-shadow: 0px 4px 4px 0px #00000040;
    box-sizing: border-box;
}
.virte-filter-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1024px;
}
.virte-filter-btn {
    font-family: 'Spartan', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.04em;
    color: #5D615C;
    border-radius: 100px;
    border-width: 1px;
    padding-top: 6px;
    padding-right: 12px;
    padding-bottom: 6px;
    padding-left: 12px;
    border: 1px solid #D5D7D3;
    background: #F8F9F7;
    text-decoration: none;
    display: flex;
}
.virte-filter-btn.active {
    background: #59804A;
    border: 1px solid #59804A;
    color: #C1D4BA;
}
.virte-btn-primary {
}

.virte-btn-secondary {
}

/* Workshop Layout */
.virte-workshop-listing {
    display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1024px;
  width: 100%;
  gap: 64px;
}
.virte-workshops-grid {
display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1024px;
  width: 100%;
  justify-content: center;
  padding: 0 24px;
}

/* Center the last card if it's alone on its row */
.virte-workshops-grid .virte-workshop-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 624px;
}
.virte-workshop-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 36px;
    border: 1px solid #D5D7D3;
    background-color: #FFF;
    box-shadow: 0px 0px 4px 0px #0F140D40;
}

.virte-single-workshop {
}

.virte-workshop-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.virte-workshop-header-section {
    display: flex;
  flex-direction: column;
  gap: 12px;
}

.virte-workshop-image {
    height: 280px;
    overflow: hidden;
}
.virte-workshop-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.virte-workshop-placeholder {
}
.virte-workshop-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.virte-workshop-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0.04em;
    color: #0F140D;
    margin: 0px !important;
}

.virte-workshop-categories {
}

.virte-category-tag {
    font-family: 'Spartan', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.04em;   
border-radius: 64px;
border-width: 1px;
padding-top: 6px;
padding-right: 12px;
padding-bottom: 6px;
padding-left: 12px;
background: #F8F9F7;
border: 1px solid #D5D7D3
}
.virte-workshop-price {
    font-family: 'Spartan', sans-serif;
    color: #000000;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.04em;
}
.virte-workshop-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.virte-meta-item {
    font-family: 'Spartan', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.04em;
    color: #5D615C;
    display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.virte-meta-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.virte-meta-content {
}

.virte-spots-warning {
}

/* Workshop Content */
.virte-workshop-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    flex: 1;
    min-height: 0;
}

/* Make excerpt flexible to fill available space */
.virte-workshop-excerpt {
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #0F140D;
    flex: 1;
}

/* Bottom section - always at bottom of card */
.virte-workshop-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Meta items styling */
.virte-workshop-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.virte-meta-date,
.virte-meta-time,
.virte-meta-spots {
    font-family: 'Spartan', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.04em;
    color: #5D615C;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.virte-meta-date i,
.virte-meta-time i,
.virte-meta-spots i {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.virte-workshop-actions {
    width: 100%;
}

.virte-workshop-actions .virte-btn {
    width: 100%;
}

.virte-workshop-description {
}

.virte-workshop-tags {
}

.virte-cancellation-policy {
}

.virte-tag {
}

/* Featured Workshops */
.virte-featured-workshops {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1024px;
    width: 100%;
}

/* Mobile styles for featured workshops */
@media (max-width: 768px) {
    .virte-featured-workshops {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }
}

.virte-featured-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1025px;
}

.virte-featured-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-radius: 36px;
    border: 1px solid #D5D7D3;
    background-color: #FFF;
    box-shadow: 0px 0px 4px 0px #0F140D40;
    overflow: hidden;
}

.virte-featured-image {
    flex-shrink: 0;
    width: 460px;
    max-height: 400px;
}

.virte-featured-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.virte-featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

.virte-featured-category {
    display: flex;
    justify-content: flex-start;
}

.virte-featured-header {
    display: flex;
    flex-direction: column;
}

.virte-featured-excerpt {
    flex: 1;
}

.virte-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.virte-featured-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Mobile styles for featured footer */
@media (max-width: 768px) {
    .virte-featured-footer {
        justify-content: center;
    }
}

.virte-featured-footer .virte-btn {
    width: auto;
    min-width: 140px;
    flex-shrink: 0;
}

/* Remove empty paragraphs and unwanted spacing */
.virte-featured-workshops p:empty,
.virte-featured-content p:empty,
.virte-featured-workshops p:blank {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

.virte-featured-workshops p {
    margin: 0;
}

.virte-featured-content > p:only-child:empty,
.virte-featured-content > p:only-child:blank {
    display: none !important;
}

/* Ensure no unwanted margins in featured content */
.virte-featured-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

.virte-featured-content > *:not(:last-child) {
}

/* Booking Section */
.virte-booking-section {
    margin-top: 24px;
}

/* Fix height issue for booking fields container */
.virte-booking-fields {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}

.virte-booking-fields.show {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.virte-book-button-container {
    margin-top: 24px;
}

.virte-book-button-container .virte-btn {
    width: 100%;
}

.virte-booking-form {
}

.virte-form-row {
}

.virte-form-group {
}

.virte-booking-message {
}

.virte-booking-message.success {
}

.virte-booking-message.error {
}

/* Workshop Full Message */
.virte-workshop-full {
}

/* Question Section */
.virte-question-section {
}

/* Modal Styles */
.virte-modal {
}

.virte-modal-content {
}

.virte-modal-close {
}

.virte-question-form {
}

.virte-question-message {
}

/* Standalone Booking Form */
.virte-booking-form-standalone {
}

.virte-workshop-summary {
}

.virte-workshop-details {
}

.virte-detail-item {
}

.virte-detail-icon {
}

.virte-detail-text {
}

/* Responsive Design */
/* Large screens - maintain max-width but allow scaling */
@media (max-width: 1280px) {
    .virte-workshops-grid {
        max-width: 1024px;
    }
    
    .virte-featured-grid {
        max-width: 100%;
    }
}

/* Medium screens - scale down cards gradually */
@media (max-width: 1024px) {
    .virte-workshops-grid {
        gap: 24px;
    }
    
    .virte-workshop-card {
        max-width: 480px;
    }
    
    .virte-featured-grid {
    }
    
    .virte-featured-image {
        width: 380px;
        height: 320px;
    }
}

/* Small-medium screens - further reduce card size */
@media (max-width: 900px) {
    .virte-workshops-grid {
        gap: 20px;
    }
    
    .virte-workshop-card {
        max-width: 400px;
    }
    
    .virte-workshop-image {
        height: 240px;
    }
    
    .virte-featured-image {
        width: 320px;
        height: 280px;
    }
}

/* Mobile landscape and smaller */
@media (max-width: 768px) {
    .virte-workshops-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Remove centering rule for mobile since we're single column */
    .virte-workshops-grid .virte-workshop-card:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: stretch;
    }
    
    .virte-workshop-card {
        width: 100%;
        max-width: none;
    }
    
    .virte-workshop-image {
        height: 220px;
    }
    
    .virte-workshop-content {
        padding: 24px;
    }
    
    .virte-workshop-header-section {
        gap: 8px;
    }
    
    /* Featured workshops become vertical on mobile - match normal workshop layout */
    .virte-featured-grid {
        gap: 20px;
    }
    
    .virte-featured-card {
        flex-direction: column;
        width: 100%;
        max-width: none;
    }
    
    .virte-featured-image {
        width: 100%;
        height: 220px;
    }
    
    .virte-featured-content {
        padding: 24px;
        gap: 24px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .virte-workshops-grid {
        gap: 24px;
    }
    
    .virte-workshop-image {
        height: 180px;
    }
    
    .virte-workshop-content {
        padding: 24px;
    }
    
    .virte-workshop-title {
        font-size: 20px;
    }
    
    .virte-workshop-excerpt {
        font-size: 14px;
        line-height: 20px;
    }
    
    .virte-category-filter {
        padding: 0 16px;
    }
    
    .virte-filter-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .virte-featured-grid {
        gap: 16px;
    }
    
    .virte-featured-image {
        height: 180px;
    }
    
    .virte-featured-content {
        padding: 24px;
    }

}