/* trips.css - Trips Page Specific Styles */

/* ========================================
   TRIPS SECTION
   ======================================== */
.trips-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trips-section.past-trips-section {
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.section-title {    
    width: 100%
}

.show-filters-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.show-filters-btn:hover {
    background: #1a3a6b;
}

/* Trips Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch; /* Ensure all cards stretch to same height */
}

/* Trip Card */
.trip-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure card takes full height */
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.trip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trip-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow content to grow */
}

.trip-card h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.trip-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.trip-detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trip-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.spots-left {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 1rem;
}

.spots-left.sold-out {
    color: #dc3545;
    font-weight: 600;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Trip Card Footer */
.trip-card-footer {
    margin-top: auto; /* Push footer to bottom */
    padding-top: 1rem;
}

.trip-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.5rem; /* Add space between buttons and contact link */
}

.trip-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.trip-buttons .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.trip-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Past Trip Cards - Different Styling */
.past-trip-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.past-trip-card img {
    opacity: 0.9;
}

.past-trip-card h3 {
    color: #555;
}

.past-trip-card .trip-details {
    color: #777;
}

.past-trip-card .trip-card-content {
    background: white;
}

/* No past trip information badges or spots */
.past-trip-card .featured-badge,
.past-trip-card .price-badge,
.past-trip-card .spots-left {
    display: none;
}

/* Translucent Badge Styles */
.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(44, 90, 160, 0.85); /* Translucent background */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    backdrop-filter: blur(4px); /* Add blur effect for better readability */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.price-badge.free-badge {
    background: rgba(40, 167, 69, 0.85); /* Translucent green for free */
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 107, 53, 0.85); /* Translucent orange */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HOW TRIPS WORK SECTION
   ======================================== */
.how-trips-work {
    background: white;
    padding: 4rem 2rem;
}

.how-trips-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.how-trips-container h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.how-trips-container > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   TRIP POLICIES SECTION
   ======================================== */
.trip-policies {
    background: #f8f9fa;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trip-policies h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.policy-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.policy-section h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.policy-section ul {
    list-style: none;
    padding: 0;
}

.policy-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.policy-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

/* Visual Badges for Trip and Event Cards */
/* Add this to trips.css and events.css */

/* Announcement count badge for trip/event cards */
.announcement-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    z-index: 2;
}

.announcement-count-badge.has-urgent {
    background: #f44336;
    animation: pulse 2s infinite;
}

/* For trip cards specifically */
.trip-card {
    position: relative;
}

.trip-card .announcement-count-badge {
    background: #2c5aa0;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

.trip-card .announcement-count-badge.has-urgent {
    background: #f44336;
}

/* For event cards specifically */
.event-card {
    position: relative;
}

.event-card .announcement-count-badge {
    background: #ff6b35;
}

/* For adventure cards on index page */
.adventure-card {
    position: relative;
}

.adventure-card .announcement-count-badge {
    background: rgba(255, 107, 53, 0.9);
    backdrop-filter: blur(8px);
}

/* Hover effect */
.trip-card:hover .announcement-count-badge,
.event-card:hover .announcement-count-badge,
.adventure-card:hover .announcement-count-badge {
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .announcement-count-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .trips-grid {
        grid-template-columns: 1fr;
    }

    .trip-buttons {
        flex-direction: column;
    }

    .trip-buttons .btn {
        width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }
}