/* ===================================================
   HOLIDAY TOURS CUSTOM RESPONSIVE CSS
   =================================================== */

/* Top header mobile alignment */
@media (max-width: 991px) {
    .dashboard-header {
        padding: 12px 16px !important;
        border-radius: 14px !important;
        margin-top: 5px !important;
        margin-bottom: 20px !important;
    }
    .dashboard-body__bar-icon {
        margin-bottom: 0 !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 8px !important;
    }
    .navigator-text {
        gap: 10px !important;
    }
    .navigator-text h6 {
        font-size: 17px !important;
        font-weight: 700;
        margin: 0 !important;
    }
    .navigator-text h6::after {
        display: none !important;
    }
}

/* User sidebar touch scrolling on mobile */
@media (max-width: 1199px) {
    .sidebar-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Status Filter Navigation (Mobile Scrollable Tabs) */
.booking-status-nav-wrapper {
    position: relative;
}
.booking-status-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.booking-status-nav::-webkit-scrollbar {
    display: none;
}
.status-tab-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    background: #ffffff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.status-tab-btn:hover {
    color: hsl(var(--base));
    border-color: hsl(var(--base) / 0.4);
    background: #f9fafb;
}
.status-tab-btn.active {
    background: hsl(var(--base)) !important;
    color: #ffffff !important;
    border-color: hsl(var(--base)) !important;
    box-shadow: 0 4px 12px hsl(var(--base) / 0.25);
}

/* Search Bar */
.booking-search-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.booking-search-group .form-control {
    font-size: 14px;
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
}
.booking-search-group .form-control:focus {
    box-shadow: none;
    border-color: hsl(var(--base));
}
.booking-search-group .btn--base {
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .booking-search-group .form-control {
        font-size: 16px; /* Avoids iOS Safari auto-zoom */
    }
}

/* Mobile Booking Card */
.booking-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf0f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.booking-card:active {
    transform: scale(0.99);
}
.booking-card-header {
    padding: 12px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #edf0f5;
}
.booking-idx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f1f3f7;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}
.booking-card-body {
    padding: 16px;
}
.booking-thumb-box {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #edf0f5;
}
.booking-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.booking-tour-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}
.booking-tour-title a {
    color: #1f2937;
    text-decoration: none;
}
.booking-tour-title a:hover {
    color: hsl(var(--base));
}
.booking-duration-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
}
.booking-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #f0f2f5;
}
.booking-meta-item .meta-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.booking-meta-item .meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.booking-card-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #edf0f5;
}
.booking-card-footer .btn--base {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.booking-card-footer .btn-outline-secondary {
    border-radius: 10px;
    border-color: #d1d5db;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.booking-card-footer .btn-outline-secondary:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #9ca3af;
}

/* Desktop Custom Table */
.custom-booking-table {
    border-collapse: separate;
    border-spacing: 0;
}
.custom-booking-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
}
.custom-booking-table tbody tr {
    transition: background 0.15s ease;
}
.custom-booking-table tbody tr:hover {
    background: #fbfcfe;
}
.custom-booking-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}
.table-thumb-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #edf0f5;
}
.table-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hover-text--base:hover {
    color: hsl(var(--base)) !important;
}

/* Status badge enhancements */
.badge.badge--success,
.badge--success {
    color: #059669 !important;
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
}
.badge.badge--warning,
.badge--warning {
    color: #d97706 !important;
    background-color: #fffbeb !important;
    border: 1px solid #fde68a !important;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
}
.badge.badge--danger,
.badge--danger {
    color: #dc2626 !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
}

/* Empty State Card */
.empty-booking-card {
    border: 1px dashed #d1d5db;
    background: #ffffff;
    border-radius: 16px;
}
.empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: hsl(var(--base) / 0.1);
    color: hsl(var(--base));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Custom Pagination */
.custom-pagination-wrap .pagination {
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.custom-pagination-wrap .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}
.custom-pagination-wrap .page-item.active .page-link {
    background-color: hsl(var(--base)) !important;
    border-color: hsl(var(--base)) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px hsl(var(--base) / 0.3);
}

/* Fallback card separation for other table--responsive--lg on mobile */
@media screen and (max-width: 991px) {
    .table--responsive--lg tbody tr {
        margin-bottom: 14px;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #edf0f5;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03);
        overflow: hidden;
    }
}