/* Trips Page Specific Styles */

/* Layout */
.trips-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 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: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
    }
}
@media (max-width: 991px) {
    .trips-layout {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 0;
    }
    .trips-main-content {
        order: -1;
    }
}
.trips-layout > * {
    min-width: 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;
}
.sidebar-widget form {
    min-width: 0;
}

.filter-select,
.filter-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    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-input[type="date"] {
    appearance: auto;
}
.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: visible;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.featured-trip-card-stack {
    margin-bottom: 1rem;
}
.featured-trip-img-wrap {
    flex: 0 0 35%;
    min-width: 0;
    max-width: 35%;
    align-self: stretch;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.featured-trip-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.featured-trip-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.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;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    min-width: 0;
}
.featured-trip-actions,
.featured-trip-cta {
    width: 100%;
    min-width: 0;
}
.featured-trip-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}
.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-card {
        flex-direction: column;
    }
    .featured-trip-img-wrap {
        flex: none;
        max-width: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .featured-trip-img {
        width: 100%;
        height: 200px;
        min-height: 0;
    }
}

/* 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: visible;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.trip-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.trip-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trip-img-wrap.is-past img,
.featured-trip-img-wrap.is-past .featured-trip-img,
.featured-trip-img-wrap.is-past img {
    filter: grayscale(100%);
}
.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-img-wrap .trip-status-tag,
.featured-trip-img-wrap .trip-status-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}
.trip-status-tag {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}
.trip-status-tag.expired {
    background: #6b7280;
}
.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;
    min-width: 0;
}
.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;
    min-width: 0;
}

.trip-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trip-card-seats {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 0;
}

.trip-card-seats-value {
    font-weight: 700;
    color: var(--text-main);
    margin-left: 0.2rem;
}

.trip-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

/* Card CTAs — stacked full-width buttons on all breakpoints */
.trip-card-btn-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: stretch;
}

.featured-trip-cta > .btn-brand,
.featured-trip-cta > .btn-brand-outline,
.featured-trip-cta > [data-slot="button"] {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.trip-card-btn-row > .btn-brand,
.trip-card-btn-row > .btn-brand-outline,
.trip-card-btn-row > [data-slot="button"],
.trip-card-body > [data-slot="button"],
.trip-card-footer > [data-slot="button"],
.sidebar-widget [data-slot="button"].btn-brand,
.sidebar-widget [data-slot="button"].btn-brand-outline,
.trip-card-v4 [data-slot="button"].btn-brand,
.trip-card-v4 [data-slot="button"].btn-brand-outline,
.featured-trip-card [data-slot="button"].btn-brand,
.featured-trip-card [data-slot="button"].btn-brand-outline {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    height: auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    white-space: normal;
    flex-shrink: 1;
}

.trip-img-wrap .content-like-btn--overlay.trip-bookmark,
.featured-trip-img-wrap .content-like-btn--overlay.trip-bookmark {
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.featured-trip-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.featured-trip-footer .trip-card-btn-row {
    width: 100%;
    max-width: 280px;
}

/* 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);
}
