/* ------------------------------
   Dreamstour Custom Overrides
--------------------------------*/

/* Global Typography */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* Header safety: prevent oversized logo SVG from expanding header height */
header .header-logo .logo img,
header .navbar-header .logo img {
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
}

/* Our header uses <img class="logo"> directly (no .logo wrapper) */
header .header-logo img.logo {
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
}

/* Header-six uses white logo styling; theme's global sticky toggles hide .logo-white on scroll.
   Force white logo to stay visible for header-six (both initial + sticky). */
header.header-six .header-logo.logo-dark,
header.header-six.fixed .header-logo.logo-dark {
    display: none !important;
}
header.header-six .header-logo.logo-white,
header.header-six.fixed .header-logo.logo-white {
    display: block !important;
}

/* Invert the SVG to render as white on dark/red header backgrounds */
header .header-logo img.logo--invert {
    filter: brightness(0) invert(1);
}

/* Sticky header (theme adds .fixed on scroll): shrink height on desktop */
@media (min-width: 992px) {
    header.header-six.fixed .header-nav .main-menu-wrapper {
        padding: 10px 0 !important;
    }

    header.header-six.fixed .header-nav .main-menu-wrapper .main-nav > li {
        padding: 8px 0 !important;
    }

    header.header-six.fixed .header-logo img.logo {
        max-height: 32px;
    }
}

/* Header standardization: sticky, no CLS, screenshot-style layout */
header.main-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
}
header.main-header.fixed {
    position: sticky !important;
    top: 0 !important;
    z-index: 999;
}

/* Top thin bar: dark background + white text */
header.main-header .header-topbar {
    background: #111827;
    padding: 8px 0;
    border-bottom: 1px solid rgba(228, 235, 241, 0.12);
}
header.main-header .header-topbar p,
header.main-header .header-topbar a {
    color: #fff;
}

/* Use dark logo on white header */
header.main-header .header-logo.logo-dark {
    display: block;
}
header.main-header .header-logo.logo-white {
    display: none;
}

/* Main header row: logo left, nav centered, CTAs right */
header.main-header .header-nav .main-menu-wrapper {
    justify-content: flex-start;
    gap: 22px;
}
header.main-header .header-nav-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
header.main-header .header-nav-center .main-nav {
    margin: 0;
}
header.main-header .header-btn {
    gap: 10px;
}

/* Dark nav links on white header */
header.main-header .header-nav .main-menu-wrapper .main-nav > li > a {
    color: #111827;
}
header.main-header .header-nav .main-menu-wrapper .main-nav > li.active > a::after {
    color: #CF3425;
}

/* Ensure dropdowns sit above hero/content */
header.main-header .header-nav .main-menu-wrapper .main-nav > li .submenu,
header.main-header .dropdown-menu {
    z-index: 2000;
}

/* Header layout hardening: prevent nav wrapping into multiple rows */
header.main-header .header-nav .main-menu-wrapper {
    flex-wrap: nowrap;
}
header.main-header .header-nav .main-menu-wrapper .main-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}
header.main-header .header-nav .main-menu-wrapper .main-nav > li,
header.main-header .header-nav .main-menu-wrapper .main-nav > li > a {
    white-space: nowrap;
}

/* Mobile hardening: remove MeanMenu spacer that can create a huge blank header */
@media (max-width: 991.98px) {
    .mean-container .mean-push {
        display: none !important;
        margin-top: 0 !important;
        height: 0 !important;
    }

    /* Keep mobile nav from adding extra top gaps */
    .mean-container .mean-nav {
        margin-top: 0 !important;
    }
}

/* Reduce oversized breadcrumb hero (was pushing content too far down) */
.breadcrumb-bar {
    padding: 72px 0 32px;
}
@media (max-width: 767.98px) {
    .breadcrumb-bar {
        padding: 54px 0 26px;
    }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #222;
}

/* Tour Detail Hero Section */
.tour-hero {
    background: #f5f5f5;
    padding: 40px 0 20px;
    border-bottom: 1px solid #ddd;
}
.tour-hero h1 {
    font-size: 28px;
    font-weight: 700;
}
.tour-hero .tour-meta {
    color: #666;
    font-size: 14px;
}

/* Tabs Styling */
.nav-tabs {
    border-bottom: 1px solid #ddd;
}
.nav-tabs .nav-link {
    color: #555;
    background: #f9f9f9;
    margin-right: 3px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 0;
    border: 1px solid #ddd;
    border-bottom: none;
}
.nav-tabs .nav-link.active {
    background: #fff;
    color: #0d6efd;
    font-weight: 600;
    border-color: #ddd #ddd #fff;
}
.tab-content {
    border: 1px solid #ddd;
    padding: 25px;
    background: #fff;
}

/* Itinerary Days */
.itinerary-day {
    margin-bottom: 25px;
}
.itinerary-day h6 {
    font-weight: 600;
    color: #0d6efd;
}
.itinerary-day p {
    margin-bottom: 0;
}

/* Sidebar Booking Card */
.theiaStickySidebar .card {
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border: none;
}
.theiaStickySidebar .card-header {
    font-weight: 600;
    font-size: 16px;
}
.card-body .btn {
    font-weight: 500;
}

/* Booking Form */
#booking .form-label {
    font-weight: 500;
    font-size: 14px;
}
#booking input, #booking textarea, #booking select {
    border-radius: 0.375rem;
    font-size: 14px;
}
#booking button.btn {
    font-size: 15px;
    font-weight: 500;
}

/* Related Tours */
.related-tours .card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.related-tours .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.related-tours .card-title {
    font-size: 15px;
    font-weight: 600;
}
.related-tours .card-text {
    font-size: 13px;
    color: #666;
}

/* Responsive Fixes */
@media (max-width: 767px) {
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    .tab-content {
        padding: 15px;
    }
    .tour-hero h1 {
        font-size: 22px;
    }
}

/* ============================
   Dreamstour Tour Listing (Grid)
============================ */
.page-title {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

/* Hero Search Section */
.hero-search-bar .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.hero-search-bar input, 
.hero-search-bar select {
    height: 45px;
    font-size: 14px;
}
.hero-search-bar .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}
.hero-search-bar .btn-danger:hover {
    background: #b52a37;
}

/* Category Icons */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 10px;
}
.category-tabs .category-item {
    text-align: center;
    width: 110px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.category-tabs .category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.category-tabs i {
    font-size: 20px;
    color: #dc3545;
    margin-bottom: 6px;
}
.category-tabs .category-item div {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* Tour Cards */
.tour-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    background: #fff;
}
.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.tour-card img {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.tour-card h5 {
    font-size: 17px;
    font-weight: 600;
    color: #111;
}
.tour-card .card-body {
    padding: 15px 18px;
}
.tour-card .text-muted.small i {
    color: #dc3545;
}

/* Trending Badge */
.badge.bg-info {
    background: linear-gradient(135deg, #00b4d8, #0096c7);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Filter & Sort Bar */
.section-padding .form-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.form-select, .form-control {
    border-radius: 8px;
}

/* Pagination */
.pagination {
    justify-content: center;
}
.page-link {
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    text-align: center;
    line-height: 38px;
    font-weight: 500;
    color: #dc3545;
}
.page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Responsive Grid */
@media (max-width: 767px) {
    .tour-card img {
        height: 180px;
    }
    .hero-search-bar .card {
        padding: 15px;
    }
}

/* === ADMIN LAYOUT OVERRIDES (AUTO) === */
/* Fix: content too far / centered, unwanted whitespace, horizontal scroll */

/* Sidebar width */
:root {
  --admin-sidebar-w: 280px;
  --admin-header-h: 60px;
}
body.admin-body .main-wrapper .sidebar {
  position: fixed !important;
  top: var(--admin-header-h) !important;
  left: 0 !important;
  height: calc(100vh - var(--admin-header-h)) !important;
  width: var(--admin-sidebar-w) !important;
  overflow-y: auto !important;
  z-index: 1000 !important;
}

/* Content next to sidebar */
body.admin-body .main-wrapper .page-wrapper {
  margin-left: var(--admin-sidebar-w) !important;
  width: calc(100% - var(--admin-sidebar-w)) !important;
  padding: 0 !important;
}

/* ✅ IMPORTANT: remove any centering/max-width that causes huge left whitespace */
body.admin-body .main-wrapper .page-wrapper .content.container-fluid {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;          /* remove auto-centering */
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Prevent accidental horizontal scroll */
html, body,
body.admin-body .main-wrapper,
body.admin-body .page-wrapper {
  overflow-x: hidden !important;
}

/* Mobile */
@media (max-width: 991.98px) {
body.admin-body   .main-wrapper .sidebar {
    left: -280px !important;
  }
body.admin-body   .main-wrapper .page-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
body.admin-body   .main-wrapper .page-wrapper .content.container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* === /ADMIN LAYOUT OVERRIDES (AUTO) === */

/* =========================================================
   ADMIN LAYOUT HARD FIX (Sidebar + Header + Content alignment)
   Fixes unwanted white space and content pushed to right.
   ========================================================= */

:root{
  --admin-sidebar-width: 300px;
  --admin-header-height: 70px;
}

body .main-wrapper{
  min-height: 100vh !important;
}

/* Sidebar */
body.admin-body .sidebar{
  width: var(--admin-sidebar-width) !important;
  flex: 0 0 var(--admin-sidebar-width) !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  z-index: 1000 !important;
}

/* Header */
body.admin-body .header{
  position: fixed !important;
  top: 0 !important;
  left: var(--admin-sidebar-width) !important;
  right: 0 !important;
  height: var(--admin-header-height) !important;
  z-index: 1001 !important;
}

/* Content area */
body.admin-body .page-wrapper{
  margin-left: var(--admin-sidebar-width) !important;
  padding-top: calc(var(--admin-header-height) + 10px) !important;
  width: calc(100% - var(--admin-sidebar-width)) !important;
  min-height: 100vh !important;
}

body .page-wrapper .content.container-fluid{
  max-width: none !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Prevent horizontal overflow issues */
body, .page-wrapper{
  overflow-x: hidden !important;
}
body .table-responsive{
  overflow-x: auto !important;
}

/* Mobile */
@media (max-width: 991.98px){
  body.admin-body .sidebar{
    left: -320px !important;
  }
  body.admin-body .header{
    left: 0 !important;
  }
  body.admin-body .page-wrapper{
    margin-left: 0 !important;
    width: 100% !important;
  }
}


/*ADMINFIX*/
body.admin-body{--sb:252px;--hh:70px}
body.admin-body .main-wrapper{min-height:100vh!important}
body.admin-body .sidebar{width:var(--sb)!important;flex:0 0 var(--sb)!important;position:fixed!important;left:0!important;top:0!important;height:100vh!important;overflow-y:auto!important;z-index:1000!important}
body.admin-body .header{position:fixed!important;top:0!important;left:var(--sb)!important;right:0!important;height:var(--hh)!important;z-index:1001!important}
body.admin-body .page-wrapper{margin-left:var(--sb)!important;padding-top:calc(var(--hh) + 10px)!important;width:calc(100% - var(--sb))!important;min-height:100vh!important}
body.admin-body .page-wrapper .content.container-fluid{max-width:none!important;width:100%!important;padding-left:24px!important;padding-right:24px!important}
body.admin-body,.admin-body .page-wrapper{overflow-x:hidden!important}
body.admin-body .table-responsive{overflow-x:auto!important}
@media(max-width:991.98px){
  body.admin-body .sidebar{left:-320px!important}
  body.admin-body .header{left:0!important}
  body.admin-body .page-wrapper{margin-left:0!important;width:100%!important}
}

/*ADMINWIDEFIX*/
/* Force admin pages to use full available width (fix centered/narrow containers) */
body.admin-body .page-wrapper .content > .container,
body.admin-body .page-wrapper .content > .container-fluid,
body.admin-body .page-wrapper .content > .container-xxl,
body.admin-body .page-wrapper .content .container,
body.admin-body .page-wrapper .content .container-fluid{
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.admin-body .page-wrapper .content{
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Prevent horizontal push / hidden content */
body.admin-body .page-wrapper{
  overflow-x: hidden !important;
}
body.admin-body .page-wrapper .table-responsive{
  overflow-x: auto !important;
}



/* On desktop, prevent wrapper transforms from affecting fixed header */
@media (min-width: 992px) {
  body,
body.admin-body   .main-wrapper,
body.admin-body   .wrapper,
body.admin-body   .page-wrapper {
    transform: none !important;
  }
}


