/* ================================
   RETREAT ARCHIVE / GRID STYLING
   Following Live in Art™ Master Document
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Enable smooth scrolling */
html {
    scroll-behavior: smooth !important;
}

.retreat-archive-wrapper {
    padding: 40px 0 60px 0;
    min-height: auto;
}

/* ================================
   SIGNATURE RETREAT - Horizontal Layout
   ================================ */

.signature-retreat-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.signature-retreat-card {
    display: flex;
    flex-direction: row;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.signature-retreat-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Signature Retreat Image - 50% width */
.signature-retreat-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background-color: #D8CFC4;
}

.signature-retreat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Signature Retreat Content - 50% width */
.signature-retreat-content {
    flex: 0 0 50%;
    padding: 50px 55px 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.signature-retreat-content .retreat-card-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Retreats Grid - Using Flexbox for reliable centering */
.retreats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
    width: 100%;
}

/* Retreat Card - Fixed width for consistent sizing */
.retreat-card {
    flex: 0 0 calc(25% - 19px);
    /* 4 columns with gap */
    max-width: calc(25% - 19px);
    min-width: 250px;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.retreat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.retreat-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background-color: #D8CFC4;
}

.retreat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Card Content */
.retreat-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.retreat-card-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.retreat-card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.retreat-card-title a:hover {
    color: #CBA45B;
}

.retreat-card-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 300;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Card Meta */
.retreat-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D8CFC4;
}

.retreat-card-meta span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retreat-card-meta i {
    color: #CBA45B;
    font-size: 16px;
    width: 16px;
}

/* Card Button */
.retreat-card-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.retreat-card-button:hover {
    background-color: #CBA45B;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* No Retreats Message */
.no-retreats-message {
    text-align: center;
    padding: 100px 20px;
}

.no-retreats-message h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 36px;
    color: #000000;
    margin-bottom: 15px;
}

.no-retreats-message p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    color: #666666;
}

/* Pagination */
.retreat-archive-wrapper .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.retreat-archive-wrapper .pagination a,
.retreat-archive-wrapper .pagination span {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 14px;
    padding: 10px 16px;
    border: 1px solid #D8CFC4;
    border-radius: 4px;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease;
}

.retreat-archive-wrapper .pagination a:hover {
    background-color: #CBA45B;
    color: #FFFFFF;
    border-color: #CBA45B;
}

.retreat-archive-wrapper .pagination .current {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .retreat-card {
        flex: 0 0 calc(50% - 20px);
        /* 2 columns with gap */
        max-width: 450px;
        min-width: 280px;
    }

    .retreats-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .retreat-archive-wrapper {
        padding: 50px 0;
    }

    /* Signature Retreat - Stack vertically on mobile */
    .signature-retreat-container {
        padding: 0;
    }

    .signature-retreat-card {
        flex-direction: column;
    }

    .signature-retreat-image,
    .signature-retreat-content {
        flex: 0 0 100%;
    }

    .signature-retreat-image {
        min-height: 300px;
    }

    .signature-retreat-content {
        padding: 35px 30px;
    }

    .retreat-card {
        flex: 0 0 100%;
        /* Full width - 1 column */
        max-width: 100%;
    }

    .retreats-grid {
        gap: 30px;
    }

    .retreat-card-title {
        font-size: 24px;
    }

    .retreat-card-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .signature-retreat-content {
        padding: 25px 20px;
    }

    .retreat-card-title {
        font-size: 22px;
    }

    .retreat-card-subtitle {
        font-size: 14px;
    }

    .retreat-card-content {
        padding: 20px;
    }
}