/*
 * ============================================
 * PAGES-MODERN.CSS - ENHANCED PAGE STYLES
 * Modern design for search, destinations, blog
 * Uses modern.css design tokens
 * ============================================
 */

/* ============================================
   COMMON PAGE HEADER
   ============================================ */
.search-header,
.page-header {
    background: var(--gradient-dark);
    padding: var(--space-10) 0;
    color: var(--white);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.search-header::before,
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.search-header .container,
.page-header .container {
    position: relative;
    z-index: 2;
}

.search-summary h1,
.page-header h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.search-summary p,
.page-header p {
    opacity: 0.9;
    font-size: var(--text-base);
}

/* ============================================
   BOOKING STEPS - MODERN
   ============================================ */
.booking-steps {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    gap: var(--space-2);
}

.booking-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    clip-path: none;
    margin: 0;
}

.booking-steps li.active {
    background: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.booking-steps li.completed {
    background: rgba(34, 197, 94, 0.2);
    color: var(--white);
}

.step-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: currentColor;
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 800;
}

.booking-steps li.active .step-num {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ============================================
   FILTER CARD - GLASSMORPHISM
   ============================================ */
.filter-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.filter-header {
    background: var(--gray-50);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-header i {
    color: var(--primary);
}

.filter-body {
    padding: var(--space-5);
}

/* ============================================
   TICKET CARDS - SEARCH PAGE
   ============================================ */
.ticket-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ticket-card.selected {
    border-color: var(--primary);
    background: linear-gradient(to right, rgba(14, 165, 233, 0.03), var(--white));
}

.ticket-main {
    flex: 1;
    padding: var(--space-6);
    border-right: 2px dashed var(--gray-200);
}

.ticket-side {
    width: 200px;
    padding: var(--space-5);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
}

.time-big {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.city-small {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-visual {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 var(--space-4);
}

.route-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gray-200), var(--primary), var(--gray-200));
    z-index: 1;
}

.route-visual i {
    position: relative;
    z-index: 2;
    color: var(--primary);
    background: var(--white);
    padding: 0 var(--space-2);
    font-size: var(--text-xl);
}

.duration-badge {
    display: inline-block;
    margin-top: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.ship-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
}

.ship-tag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--secondary);
}

.ship-tag i {
    color: var(--primary);
}

.total-price-big {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--secondary);
}

.btn-select {
    width: 100%;
    padding: var(--space-3) var(--space-5);
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-select:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.ticket-card.selected .btn-select {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

/* ============================================
   CART BOX - SIDEBAR
   ============================================ */
.cart-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.cart-header {
    background: var(--white);
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-weight: 700;
    color: var(--secondary);
    font-size: var(--text-base);
}

.cart-badge {
    background: var(--gradient-sunset);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
}

.cart-footer {
    padding: var(--space-5);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.price-val {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--secondary);
}

.btn-checkout-static {
    width: 100%;
    padding: var(--space-4);
    background: var(--gradient-sunset);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-checkout-static:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
}

.btn-checkout-static:disabled {
    background: var(--gray-300);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* ============================================
   DESTINATION CARDS
   ============================================ */
.dest-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s ease;
}

.dest-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.dest-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.dest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dest-card:hover .dest-thumb img {
    transform: scale(1.1);
}

.dest-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.dest-content {
    padding: var(--space-6);
}

.dest-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-3);
}

.dest-title a:hover {
    color: var(--primary);
}

.dest-excerpt {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.btn-dest-read {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.btn-dest-read:hover {
    gap: var(--space-3);
    color: var(--primary-dark);
}

/* ============================================
   BLOG CARDS
   ============================================ */
.b-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s ease;
}

.b-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.b-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.b-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.b-card:hover .b-thumb img {
    transform: scale(1.1);
}

.b-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.b-content {
    padding: var(--space-6);
}

.b-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-400);
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
}

.b-date i {
    color: var(--primary);
}

.b-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.b-title a:hover {
    color: var(--primary);
}

.b-excerpt {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.b-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.b-read-more:hover {
    gap: var(--space-3);
    color: var(--primary-dark);
}

/* Featured Card */
.feat-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.feat-card:hover {
    transform: translateY(-8px);
}

.feat-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--space-6);
}

.feat-tag {
    display: inline-block;
    background: var(--warning);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.feat-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.widget-box,
.dest-widget {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.widget-title,
.dest-widget-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.widget-title::after,
.dest-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

/* Highlight Widget */
.highlight-widget {
    border-top: 4px solid var(--error);
}

.highlight-widget .dest-widget-title::after {
    background: var(--error);
}

.btn-sidebar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    background: var(--gradient-sunset);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-sidebar-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
}

/* ============================================
   CATEGORY BUTTONS
   ============================================ */
.cat-btn,
.dest-cat-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-500);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.cat-btn:hover,
.dest-cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.cat-btn.active,
.dest-cat-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ============================================
   PAGINATION
   ============================================ */
.dest-pagination,
.blog-pagination {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-12);
}

.dest-page-btn,
.page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dest-page-btn:hover,
.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dest-page-btn.active,
.page-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .search-layout {
        flex-direction: column;
    }

    .search-sidebar-left,
    .search-sidebar-right {
        width: 100%;
        position: static;
    }

    .ticket-card {
        flex-direction: column;
    }

    .ticket-main {
        border-right: none;
        border-bottom: 2px dashed var(--gray-200);
    }

    .ticket-side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: var(--space-5);
    }

    .booking-steps {
        flex-wrap: wrap;
    }

    .booking-steps li {
        flex: 1 1 45%;
        font-size: var(--text-xs);
    }
}

@media (max-width: 576px) {
    .ticket-side {
        flex-direction: column;
        gap: var(--space-4);
    }

    .btn-select {
        width: 100%;
    }

    .time-big {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   MOBILE BOTTOM BAR
   ============================================ */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-4) var(--space-6);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-fixed);
}

.m-bar-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--secondary);
}

.btn-mobile-checkout {
    background: var(--gradient-sunset);
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}