/* ================================================
   Trip Public Page Styles
   ================================================ */

/* --- Hero --- */
.trip-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.trip-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.trip-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 18, 30, 0.88) 0%, rgba(15, 18, 30, 0.3) 60%, rgba(15, 18, 30, 0.1) 100%);
    z-index: 1;
}

.trip-hero-fallback {
    background: linear-gradient(135deg, #1B84FF 0%, #6610f2 50%, #ff6b6b 100%);
}

.trip-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0 36px;
}

.trip-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.trip-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.trip-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    color: #fff;
    backdrop-filter: blur(8px);
}

/* --- KPI Bar --- */
/* KPI bar now uses Bootstrap row, no custom flex container needed */

.trip-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: transform .2s;
}

.trip-kpi:hover {
    transform: translateY(-2px);
}

.trip-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
}

.trip-kpi-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1b2559;
    display: block;
}

.trip-kpi-label {
    font-size: 12px;
    color: #99a1b7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* --- Day Tabs --- */
.trip-day-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trip-day-tab {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #5e6278;
    background: #f4f4f9;
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.trip-day-tab:hover {
    background: #e3e4ea;
    color: #1b2559;
}

.trip-day-tab.active {
    background: #1B84FF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(27, 132, 255, .3);
}

/* --- Steps Timeline --- */
.trip-step-timeline {
    position: relative;
    padding-left: 32px;
}

.trip-step-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e1e3ea;
    border-radius: 2px;
}

.trip-step-item {
    position: relative;
    padding-bottom: 16px;
}

.trip-step-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1B84FF;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(27, 132, 255, .3);
    z-index: 1;
}

.trip-step-label {
    font-weight: 600;
    color: #1b2559;
    font-size: 14px;
}

.trip-step-meta {
    font-size: 12px;
    color: #99a1b7;
}

/* --- Photo Gallery --- */
.trip-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.trip-photo-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.trip-photo-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.trip-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Recommendation Cards --- */
.trip-reco-card {
    border-radius: 14px;
    border: 1px solid #f1f1f4;
    padding: 20px;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

.trip-reco-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

.trip-reco-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* --- Map Letter Markers --- */
.trip-map-letter-marker {
    background: none;
    border: none;
}

.trip-map-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1B84FF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(27, 132, 255, .4);
    border: 2px solid #fff;
}

/* --- Photo Slider --- */
.trip-photo-slider {
    position: relative;
}

.trip-photo-slider-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 0;
}

.trip-photo-slider-track::-webkit-scrollbar {
    display: none;
}

.trip-photo-slide {
    flex: 0 0 220px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.trip-photo-slide:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.trip-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e1e3ea;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    color: #5e6278;
}

.trip-slider-arrow:hover {
    background: #1B84FF;
    border-color: #1B84FF;
    color: #fff;
}

.trip-slider-prev {
    left: -12px;
}

.trip-slider-next {
    right: -12px;
}

/* --- Lightbox --- */
.trip-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.trip-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.trip-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}

.trip-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
    background: none;
    border: none;
}

.trip-lightbox-close:hover {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .trip-hero {
        min-height: 280px;
    }
    .trip-hero-title {
        font-size: 1.6rem;
    }
    .trip-kpi {
        min-width: 100px;
        padding: 12px 10px;
    }
    .trip-kpi-value {
        font-size: 1rem;
    }
    .trip-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trip-photo-slide {
        flex: 0 0 160px;
        height: 120px;
    }
    .trip-slider-prev { left: 4px; }
    .trip-slider-next { right: 4px; }
}

