/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 12 2026 | 15:52:53 */
/**
 * Missions Page Styles
 * 
 * Save as: /wp-content/themes/your-theme/css/missions.css
 * Or add to your main stylesheet
 */

/* ==========================================================================
   Mission Stats Section
   ========================================================================== */

.missions-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    margin: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.stat-icon svg,
.stat-icon i {
    font-size: 28px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-sublabel {
    font-size: 0.875rem;
    color: #999;
}

/* ==========================================================================
   Trip Filters
   ========================================================================== */

.trip-filters-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.filter-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.results-count {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0;
    display: none;
}

/* ==========================================================================
   Trip Cards Grid
   ========================================================================== */

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.trip-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trip-card:hover,
.trip-card.hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.trip-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.trip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trip-card:hover .trip-card-image img {
    transform: scale(1.05);
}

.trip-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trip-status-badge.full {
    background: #dc3545;
    color: white;
}

.trip-status-badge.limited {
    background: #ffc107;
    color: #333;
}

.trip-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trip-types {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.trip-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.trip-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trip-title a:hover {
    color: #667eea;
}

.trip-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.trip-meta > div {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-meta i {
    color: #999;
    width: 16px;
}

.trip-excerpt {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.trip-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-details {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-details:hover {
    background: #5568d3;
    transform: translateX(3px);
}

/* ==========================================================================
   Loading & Error States
   ========================================================================== */

#trips-container.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-trips-found {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-trips-found p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-trips-found a {
    color: #667eea;
    text-decoration: underline;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c33;
}

/* ==========================================================================
   Missionaries Map
   ========================================================================== */

.missionaries-map-section {
    margin: 4rem 0;
}

#missionary-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.missionary-sidebar {
    margin-top: 2rem;
}

.missionary-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.missionary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.missionary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.missionary-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.missionary-location {
    font-size: 0.875rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.missionary-role {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Single Trip Page
   ========================================================================== */

.trip-hero {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

.trip-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-header-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.trip-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.trip-dates,
.trip-location {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.mission-trip-single {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin: 2rem 0;
}

.trip-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.trip-details-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.trip-details-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.trip-details-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.trip-details-box li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.trip-details-box li:last-child {
    border-bottom: none;
}

.btn-register {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #28a745;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.trip-full {
    text-align: center;
    padding: 1rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    font-weight: 600;
}

.trip-content {
    max-width: 100%;
}

.trip-gallery {
    margin-top: 2rem;
}

.trip-gallery h3 {
    margin-bottom: 1rem;
}

.trip-gallery img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Mission Trip Detail Layout (two-column: title + images | labeled details)
   Matches client style: white background, red title, black text, orange link
   ========================================================================== */

.mission-trip-detail {
    margin: 2rem 0;
    font-family: Arial, Helvetica, sans-serif;
}

.mission-trip-detail--dark {
    background: #fff;
    color: #000;
    padding: 2rem 0;
}

.mission-trip-detail__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-trip-detail__media {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mission-trip-detail__title {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #e60000;
}

.mission-trip-detail__images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-trip-detail__image {
    position: relative;
    overflow: hidden;
}

.mission-trip-detail__image img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.mission-trip-detail__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mission-trip-detail__row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mission-trip-detail__label {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
}

.mission-trip-detail__value {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
}

.mission-trip-detail__value--block {
    margin: 0;
}

.mission-trip-detail__value--block p {
    margin: 0 0 0.5em 0;
}

.mission-trip-detail__value--block p:last-child {
    margin-bottom: 0;
}

/* Mailto (Lead email): black with underline */
.mission-trip-detail a[href^="mailto:"] {
    color: #000;
    text-decoration: underline;
}

.mission-trip-detail a[href^="mailto:"]:hover {
    color: #333;
}

/* Interest Form / external URLs: orange-red to match client */
.mission-trip-detail__info a:not([href^="mailto:"]) {
    color: #cc5500;
    text-decoration: underline;
}

.mission-trip-detail__info a:not([href^="mailto:"]):hover {
    color: #e6522c;
}

.mission-trip-detail__cost-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.mission-trip-detail__cost-list li {
    margin-bottom: 0.25em;
    font-weight: 400;
    color: #000;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .missions-stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trip-filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
    }
    
    .filter-actions button {
        flex: 1;
    }
    
    .trips-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-trip-single {
        grid-template-columns: 1fr;
    }
    
    .trip-sidebar {
        position: static;
    }
    
    .missionary-list {
        grid-template-columns: 1fr;
    }

    .mission-trip-detail__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .trip-header-info h1 {
        font-size: 1.75rem;
    }
}
