/* Jubilant Travel Frontend Styles */

/* General Styles */
.jubilant-travel * {
    box-sizing: border-box;
}

/* Filter Sidebar Styles */
.jubilant-filter-sidebar {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    max-width: 350px;
    font-family: Arial, sans-serif;
}

.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-section h3:hover {
    color: #D2A857;
}

.filter-section h3:after {
    content: '▲';
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.filter-section.collapsed h3:after {
    transform: rotate(180deg);
}

.filter-options {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 500px;
}

.filter-section.collapsed .filter-options {
    max-height: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: rgba(210, 168, 87, 0.1);
}

.filter-option.hidden {
    display: none;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.filter-option label {
    flex: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-count {
    color: #999;
    font-size: 14px;
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.see-more-btn {
    background: #D2A857;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.see-more-btn:hover {
    background: #B8973D;
}

/* Difficulty Visual */
.difficulty-visual {
    display: inline-flex;
    margin-right: 8px;
}

.difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 2px;
    background: #ddd;
    transition: background-color 0.2s;
}

.difficulty-dot.active {
    background: #4a7c59;
}

/* Trip Archive Styles */
.jubilant-trip-archive {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.archive-sidebar {
    flex: 0 0 300px;
}

.archive-content {
    flex: 1;
}

.trips-found {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 6px;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

/* Trip Card Styles */
.trip-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.trip-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.trip-duration {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(210, 168, 87, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Removed floating trip price badge that was overlapping other UIs */
.trip-price { display: none; }

.trip-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trip-title {
    font-size: 1.5rem!important;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s;
}

.trip-card:hover .trip-title {
    color: #D2A857;
}

.trip-type-difficulty {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.trip-type-difficulty span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.trip-highlights {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
}

/* Trip Itinerary Styles */
.jubilant-trip-itinerary {
    margin: 30px 0;
}

.itinerary-day {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.itinerary-day:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.day-header {
    background: #D2A857;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    background: linear-gradient(135deg, #D2A857 0%, #B8973D 100%);
}

.day-content {
    padding: 20px;
}

.day-description {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
    font-size: 16px;
}

.day-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-item {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #D2A857;
    transition: background-color 0.3s ease;
}

.detail-item:hover {
    background: #f0f0f0;
}

.detail-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #666;
    line-height: 1.4;
}

/* Loading and Animation Styles */
.jubilant-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.jubilant-loading:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D2A857;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .jubilant-trip-archive {
        flex-direction: column;
    }
    
    .archive-sidebar {
        flex: none;
        max-width: none;
    }
    
    .trips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trip-card {
        margin-bottom: 20px;
    }
    
    .day-details {
        grid-template-columns: 1fr;
    }
    
    .filter-section h3 {
        font-size: 16px;
    }
    
    .trip-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .jubilant-filter-sidebar {
        padding: 15px;
    }
    
    .trip-content {
        padding: 15px;
    }
    
    .day-content {
        padding: 15px;
    }
    
    .day-header {
        padding: 12px 15px;
        font-size: 16px;
    }
} 