/* Trips Module Specific Styles */

/* Trips Filters */
.trips-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.trips-filters .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.trips-filters .form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trips-filters label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.trips-filters label i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

/* Trips Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Trip Card */
.trip-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.trip-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trip-card:hover .trip-image img {
    transform: scale(1.05);
}

.trip-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.trip-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.trip-badge-public {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.trip-badge-group {
    background: rgba(37, 99, 235, 0.9);
    color: white;
}

.trip-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.trip-title a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.trip-title a:hover {
    color: var(--primary-color);
}

.trip-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trip-meta > div {
    display: flex;
    align-items: center;
}

.trip-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
}

.trip-destination {
    font-weight: 600;
    color: var(--dark-color) !important;
}

.trip-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.trip-organizer {
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.trip-organizer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.trip-participants {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.trip-participants i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.participants-progress {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.participants-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.trip-price {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Trip Details Page */
.trip-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.trip-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
}

.trip-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem 0 2rem;
}

.trip-hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.trip-hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.trip-hero-meta span {
    display: flex;
    align-items: center;
}

.trip-hero-meta i {
    margin-right: 0.5rem;
}

.trip-details-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.trip-details-main {
    min-width: 0;
}

.trip-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Organizer Info */
.organizer-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 12px;
}

.organizer-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.organizer-info h3 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

/* Booking Card */
.booking-card {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.booking-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem;
}

.booking-price .price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.booking-price .price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Trip Highlights */
.trip-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trip-highlights li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.trip-highlights li:last-child {
    margin-bottom: 0;
}

.trip-highlights i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    background: rgba(16, 185, 129, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trip-details-layout {
        grid-template-columns: 1fr;
    }
    
    .booking-card {
        position: static;
    }
    
    .trip-details-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .trips-grid {
        grid-template-columns: 1fr;
    }
    
    .trips-filters .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .trips-filters .form-actions {
        grid-column: 1;
    }
    
    .trip-hero {
        height: 300px;
    }
    
    .trip-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .trip-hero-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .trip-details-grid {
        grid-template-columns: 1fr;
    }
    
    .trip-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .trip-actions {
        width: 100%;
    }
    
    .trip-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .price-amount {
        font-size: 1.5rem;
    }
    
    .booking-price .price-amount {
        font-size: 2rem;
    }
}

