/* Trips Page Specific Styles */

/* Layout */
.trips-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 1.5rem;
    margin-top: -3rem; /* Pull up over the hero section */
    position: relative;
    z-index: 10;
}

@media (max-width: 1200px) {
    .trips-layout {
        grid-template-columns: 250px 1fr 250px;
    }
}
@media (max-width: 991px) {
    .trips-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

/* Filter Form */
.filter-group {
    margin-bottom: 1.25rem;
}
.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.filter-select, .filter-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-main);
    background-color: var(--bg-surface);
}
.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
}
.price-range-slider {
    width: 100%;
    margin: 1rem 0;
}
.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.quantity-btn {
    background: #f9fafb;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
}
.quantity-btn:hover {
    background: #f3f4f6;
}
.quantity-input input {
    width: 100%;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Tabs */
.trips-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.trips-tabs::-webkit-scrollbar { display: none; }
.trip-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}
.trip-tab:hover {
    color: var(--text-main);
    background: var(--bg-page);
}
.trip-tab.active {
    color: var(--brand-primary);
    background: #eff6ff;
    font-weight: 600;
}

/* Featured Trip Card (Horizontal) */
.featured-trip-card {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.featured-trip-card-stack {
    margin-bottom: 1rem;
}
.featured-trip-img {
    width: 35%;
    object-fit: cover;
}
.featured-trip-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.featured-trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.featured-badge {
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.featured-trip-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.featured-trip-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.featured-trip-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.featured-trip-features li {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.featured-trip-features li i {
    color: #10b981;
    margin-top: 3px;
}
.featured-trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}
.featured-trip-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}
.featured-trip-cta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.featured-trip-cta.trip-list-actions {
    flex-wrap: nowrap;
    align-items: stretch;
}
.featured-trip-cta.trip-list-actions .btn-brand,
.featured-trip-cta.trip-list-actions .btn-brand-outline {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trip-card-footer .trip-list-actions {
    flex-wrap: nowrap;
    align-items: stretch;
}
.trip-card-footer .trip-list-actions .btn-brand,
.trip-card-footer .trip-list-actions .btn-brand-outline {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.featured-trip-cta .btn-brand-outline,
.featured-trip-cta .btn-brand {
    white-space: nowrap;
}
.featured-trip-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}
.featured-trip-price span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}
.seats-badge {
    text-align: right;
    min-width: 130px;
}
.seats-badge .seats-count {
    font-size: 1.1rem;
    font-weight: 700;
}
@media (max-width: 860px) {
    .featured-trip-footer {
        align-items: stretch;
    }
    .featured-trip-actions {
        width: 100%;
        justify-content: space-between;
    }
    .featured-trip-cta {
        width: 100%;
    }
    .featured-trip-cta .btn-brand-outline,
    .featured-trip-cta .btn-brand {
        flex: 1 1 140px;
        text-align: center;
    }
}

/* Small Trip Cards (Grid) */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 1400px) {
    .trips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991px) {
    .trips-grid {
        grid-template-columns: 1fr;
    }
}
.trip-card-v4 {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.trip-img-wrap {
    position: relative;
    height: 180px;
}
.trip-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trip-bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
}
.trip-date-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-top-right-radius: 8px;
}
.trip-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.trip-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.trip-card-badge {
    display: inline-block;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.trip-card-footer {
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Right Sidebar Items */
.reason-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.reason-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reason-text {
    font-size: 0.85rem;
    color: var(--text-main);
}
.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}
.stat-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.help-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Timeline */
.timeline-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.timeline-track::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}
.timeline-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    text-align: center;
    cursor: pointer;
}
.timeline-node.is-active .node-title {
    color: var(--brand-primary);
}
.node-day {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.node-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.node-circle.active {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #eff6ff;
}
.node-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.node-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Testimonials */
.testimonials-section {
    margin-bottom: 2rem;
}
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
}
.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.testimonial-stars {
    color: #fbbf24;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}
.testimonial-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
}

/* FAQ */
.faq-section {
    margin-bottom: 4rem;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    background: var(--bg-surface);
}
.faq-question {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.faq-question i {
    color: var(--text-muted);
}
