/* Tour booking flow — shared styles */
.home-search-section {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.home-search-form {
    border: 1px solid #e8eaef;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(33, 32, 96, 0.08);
    overflow: visible;
}

.home-search-form .form-label {
    font-weight: 600;
    color: #212060;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.home-search-input {
    border-radius: 10px;
    border-color: #e8eaef;
    min-height: 46px;
}

.home-search-input:focus {
    border-color: #212060;
    box-shadow: 0 0 0 3px rgba(33, 32, 96, 0.12);
}

.destination-field-wrap {
    position: relative;
    z-index: 30;
}

.destination-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(33, 32, 96, 0.12);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
}

.destination-dropdown.is-open {
    display: block;
    animation: bookingFadeIn 0.2s ease;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.destination-item {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.destination-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.destination-item:hover {
    background: #f8f9fa;
}

.passenger-picker-wrap {
    position: relative;
    z-index: 20;
}

.passenger-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #e8eaef;
    text-align: left;
}

.passenger-trigger:hover,
.passenger-trigger:focus,
.passenger-trigger.show {
    border-color: #212060;
    box-shadow: 0 0 0 3px rgba(33, 32, 96, 0.12);
}

.passenger-dropdown-menu {
    border-radius: 12px !important;
    min-width: 100% !important;
    margin-top: 6px !important;
}

.passenger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.passenger-row:last-of-type {
    border-bottom: none;
}

.passenger-row-label {
    font-weight: 600;
    color: #212060;
    font-size: 0.9rem;
}

.passenger-row-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

.passenger-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.passenger-counter button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e8eaef;
    background: #f8f9fc;
    color: #212060;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.passenger-counter button:hover:not(:disabled) {
    background: #f4f5ff;
    border-color: #5d5fef;
    color: #5d5fef;
}

.passenger-counter button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.passenger-counter .count {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #212060;
}

.child-ages-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e8eaef;
}

.child-age-field label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.btn-search-now {
    background: linear-gradient(135deg, #ff9a3c 0%, #f57c00 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
}

.btn-search-now:hover {
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 124, 0, 0.35);
}

.quick-nav-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Tour results */
.tour-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(33, 32, 96, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.tour-card:hover {
    box-shadow: 0 12px 32px rgba(33, 32, 96, 0.14);
    transform: translateY(-2px);
}

.tour-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.tour-card-badge {
    background: rgba(33, 32, 96, 0.9);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.tour-toolbar .btn.active {
    background-color: #212060;
    border-color: #212060;
    color: #fff;
}

.tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#cart-toast-container {
    position: fixed;
    top: 90px;
    right: 16px;
    z-index: 1080;
    max-width: 360px;
}

.page-nav-wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.page-nav-wrap .pagination .page-link {
    min-width: 40px;
    height: 40px;
    border-radius: 12px !important;
    border: 1px solid rgba(33, 32, 96, 0.18);
    color: #212060;
    font-weight: 600;
}

.page-nav-wrap .pagination .page-item.active .page-link {
    background-color: #212060;
    border-color: #212060;
    color: #fff;
}

/* Tour detail */
.tour-detail-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
}

.tour-detail-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.tour-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}

.tour-gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.85;
}

.tour-gallery-thumb.active,
.tour-gallery-thumb:hover {
    border-color: #5d5fef;
    opacity: 1;
}

.booking-sidebar-card {
    border: 1px solid #e8eaef;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(33, 32, 96, 0.08);
}

.booking-sidebar-card .price-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.booking-sidebar-card .price-total {
    font-size: 1.35rem;
    font-weight: 700;
    color: #212060;
}

.inclusion-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f2f5;
}

.inclusion-list li i {
    color: #28a745;
    margin-right: 8px;
}

.exclusion-list li i {
    color: #dc3545;
}

/* Cart & checkout */
.cart-page-header {
    padding: 2rem 0 1rem;
}

.cart-item-card {
    border: 1px solid #e8eaef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.cart-item-img {
    width: 100%;
    max-width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-summary-card {
    border-radius: 16px;
    border: 1px solid #e8eaef;
    padding: 24px;
    background: #f8f9fc;
    position: sticky;
    top: 100px;
}

.empty-cart-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-cart-state i {
    font-size: 4rem;
    color: #d5daf0;
    margin-bottom: 16px;
}

.checkout-summary-item {
    border-bottom: 1px solid #e8eaef;
    padding: 16px 0;
}

.checkout-summary-item:last-child {
    border-bottom: none;
}

@keyframes bookingFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tour-detail-hero img {
        height: 240px;
    }

    .tour-actions {
        justify-content: stretch;
    }

    .tour-actions .btn {
        flex: 1;
    }

    .cart-item-img {
        max-width: 100%;
        height: 160px;
        margin-bottom: 12px;
    }

    .cart-summary-card {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 479px) {
    .destination-grid {
        grid-template-columns: 1fr;
    }
}
