/* css/retreats_resources.css */

.retreats-hero, .resources-hero { /* Shared style for hero sections */
    padding: var(--padding-large) 0;
}
.retreats-hero h1, .resources-hero h1 {
    color: var(--primary-color);
    font-size: 3rem;
}
.retreats-hero .lead, .resources-hero .lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--neutral-dark);
}

/* General Card Styling (can be used by both retreats and resources) */
.card {
    background-color: var(--white-space);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Ensures image corners are rounded with the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.card-sm { /* For smaller cards like past retreats or resource items */
    background-color: var(--white-space);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    transition: transform 0.2s ease;
}
.card-sm:hover {
    transform: translateY(-3px);
}


/* Retreats List Styling */
.retreats-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column for main retreat items */
    gap: 30px;
}

.retreat-item { /* Uses .card styling */
    display: grid;
    grid-template-columns: 300px 1fr; /* Image | Content */
    gap: 25px;
    align-items: start; /* Align content to the top */
    padding: 25px;
}

.retreat-item-image img {
    width: 100%;
    height: 280px; /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: var(--border-radius);
}

.retreat-item-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}
.retreat-dates-location {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.6;
}
.retreat-dates-location .detail-icon, #modal-retreat-body .detail-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.7;
}
.retreat-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--neutral-dark);
}
.retreat-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}
.retreat-actions {
    margin-top: auto; /* Pushes button to bottom if content varies */
}
.retreat-actions .button {
    padding: 10px 25px;
}

/* Styles for full details within the modal or an expandable section */
.retreat-full-details h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.retreat-full-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.7;
}
.retreat-full-details strong {
    color: var(--text-color);
}
.trauma-informed-note { /* Already styled in classes_pricing.css, ensure consistency or move to style.css if widely used */
    font-size: 0.9em;
    color: var(--neutral-dark);
    background-color: #e9f0e1;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    display: flex;
    align-items: center;
}
.trauma-informed-note .detail-icon {
    margin-right: 8px;
    flex-shrink: 0;
}


/* Past Retreats Section */
.past-retreats-section {
    padding: var(--padding-large) 0;
    /* Uses .section-alt from style.css */
}
.past-retreats-grid {
    gap: 25px;
}
.past-retreat-item { /* Uses .card-sm */
    text-align: center;
}
.past-retreat-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--secondary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.past-retreat-info {
    padding: 15px;
}
.past-retreat-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.past-retreat-info p {
    font-size: 0.9rem;
    color: var(--neutral-dark);
    margin-bottom: 0;
}

.no-items-found { /* General class for when no retreats/resources are found */
    padding: 40px 20px;
    background-color: var(--white-space);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
}
.no-items-found p {
    font-size: 1.1em;
    color: var(--neutral-dark);
    line-height: 1.7;
}
.no-items-found img {
    opacity: 0.6;
}

/* Modal for Retreat Details - general modal styles are in classes_pricing.css */
#modal-retreat-body {
    max-height: 70vh; /* Limit height and allow scrolling */
    overflow-y: auto;
}
/* Add any specific modal adjustments if needed */


@media (max-width: 992px) {
    .retreat-item {
        grid-template-columns: 1fr; /* Stack image and content */
        text-align: center;
    }
    .retreat-item-image {
        max-width: 400px; /* Control image width when stacked */
        height: 250px;
        margin: 0 auto 20px auto;
    }
    .retreat-item-content {
        text-align: left; /* Keep text left aligned even if container is centered */
    }
    .retreat-actions {
        text-align: center; /* Center button when stacked */
    }
}

@media (max-width: 768px) {
    .retreats-hero h1, .resources-hero h1 { font-size: 2.5rem; }
    .past-retreats-grid.grid-cols-3 {
        grid-template-columns: 1fr; /* Stack past retreats */
    }
    .retreat-item-image { height: 200px; }
}