/* Custom CSS Fixes for Menu and Header Issues */

/* Header fixes */
.main-header {
    position: relative;
    z-index: 999;
}

.header-lower {
    position: relative;
    z-index: 999;
    background: #f8f9fa !important;
    padding: 15px 0;
}

.header-lower .outer-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
}

.header-lower .left-column {
    display: flex !important;
    align-items: center !important;
    flex: 1;
}

.header-lower .menu-area {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Navigation menu fixes - Force visibility */
.main-menu,
.main-menu .navbar-collapse,
.main-menu .navbar-collapse.show,
#navbarSupportedContent {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-header .navigation,
.header-lower .navigation {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.navigation li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-header .navigation li,
.header-lower .navigation li {
    position: relative;
    margin: 0 5px;
}

.main-header .navigation li a,
.header-lower .navigation li a {
    color: #333 !important;
    font-weight: 500;
    padding: 15px 20px !important;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-header .navigation li:hover > a,
.main-header .navigation li.current > a,
.header-lower .navigation li:hover > a,
.header-lower .navigation li.current > a {
    color: #ff6b35 !important;
}

/* Sticky header fixes */
.sticky-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-header .navigation li a {
    color: #333 !important;
}

.sticky-header .navigation li:hover > a,
.sticky-header .navigation li.current > a {
    color: #ff6b35 !important;
}

/* Page title section fixes - ensure it comes after header */
.page-title {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    padding-top: 150px !important;
}

/* Prevent page-title from overlapping header */
.page-title.centred {
    position: relative;
    z-index: 1;
}

/* Ensure header is always on top */
.main-header .header-lower {
    position: relative;
    background: #f8f9fa;
    padding: 15px 0;
}

/* Menu area fixes */
.menu-area {
    position: relative;
    z-index: 1000;
}

.main-menu {
    position: relative;
    z-index: 1000;
}

/* Navigation list fixes */
.navigation {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation li {
    position: relative;
    margin: 0 5px;
}

.navigation li a {
    white-space: nowrap;
    display: block;
}

/* Dropdown menu fixes */
.navigation li.dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none;
}

.navigation li.dropdown:hover ul,
.navigation li.dropdown.active ul {
    display: block;
}

.navigation li.dropdown ul li {
    margin: 0;
    width: 100%;
}

.navigation li.dropdown ul li a {
    padding: 12px 20px;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0;
}

.navigation li.dropdown ul li a:hover {
    background: #f8f9fa;
    color: #ff6b35 !important;
}

/* Logo fixes */
.logo-box {
    position: relative;
    z-index: 1001;
}

/* Menu right content fixes */
.menu-right-content {
    position: relative;
    z-index: 1000;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .navigation {
        flex-direction: column;
    }
    
    .navigation li {
        width: 100%;
        margin: 0;
    }
    
    .navigation li a {
        padding: 15px 20px !important;
        border-bottom: 1px solid #eee;
    }
    
    .page-title {
        padding-top: 120px !important;
    }
}

/* Fix for white text on light background */
.header-lower {
    background: #f8f9fa !important;
}

.header-lower .navigation li a {
    color: #333 !important;
}

/* Active/current menu item */
.navigation li.current a {
    color: #ff6b35 !important;
    font-weight: 600;
}

/* Ensure no text overlaps */
.header-lower .outer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-lower .left-column {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-lower .menu-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-lower .menu-right-content {
    margin-left: 20px;
}

/* Equalize tour cards height on homepage */
#tours .row.clearfix {
    display: flex;
    align-items: stretch;
}

#tours .tour-block {
    display: flex;
}

#tours .tour-block .tour-block-one {
    display: flex;
    width: 100%;
}

#tours .tour-block-one .inner-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fix image box to consistent height; crop with object-fit */
#tours .tour-block-one .inner-box .image-box .image {
    height: 360px;
}

#tours .tour-block-one .inner-box .image-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spacing improvements for tour detail pages */
.tour-details {
    padding-bottom: 50px;
}

.tour-details .image-box {
    margin-top: 16px;   /* space above the image next to Book Now */
    margin-bottom: 24px;
}

.tour-details .text-content {
    margin-bottom: 28px;
}

.tour-details .meeting-point p {
    margin-bottom: 10px;
}

.tour-details .meeting-point p:last-child {
    margin-bottom: 28px; /* extra space before footer */
}

/* Add spacing above the "Book Now" title in booking sidebar */
.tour-details-sidebar .booking-widget .widget-title {
    margin-top: 16px;
}

/* Enhanced booking form styling */
.tour-details-sidebar .booking-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.tour-details-sidebar .booking-widget .widget-title h3 {
    color: #0C264C;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF8A57;
}

.tour-details-sidebar .booking-widget .price-box {
    background: linear-gradient(135deg, #FF8A57 0%, #FF6B35 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
}

.tour-details-sidebar .booking-widget .price-box h3 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tour-details-sidebar .booking-widget .price-box span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.tour-details-sidebar .booking-widget .price-box .discount-info {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.tour-details-sidebar .booking-widget .booking-form .form-group {
    margin-bottom: 20px;
}

.tour-details-sidebar .booking-widget .booking-form label {
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.tour-details-sidebar .booking-widget .booking-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.tour-details-sidebar .booking-widget .booking-form .form-control:focus {
    outline: none;
    border-color: #FF8A57;
    box-shadow: 0 0 0 3px rgba(255, 138, 87, 0.1);
}

.tour-details-sidebar .booking-widget .booking-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.tour-details-sidebar .booking-widget .booking-form .theme-btn.btn-one {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    background: linear-gradient(135deg, #FF8A57 0%, #FF6B35 100%);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-details-sidebar .booking-widget .booking-form .theme-btn.btn-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 87, 0.4);
}

/* Responsive improvements for booking form */
@media (max-width: 991px) {
    .tour-details-sidebar .booking-widget {
        margin-top: 30px;
    }
}

/* Add spacing after funfact-section (statistics section) */
.funfact-section {
    margin-bottom: 80px;
    padding-bottom: 60px;
}

/* Hero image section for airport-transfer page */
.hero-image-section {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    min-height: 500px !important;
    max-height: 600px !important;
    height: 500px !important;
    display: block !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .hero-image-section {
        min-height: 350px !important;
        max-height: 400px !important;
        height: 350px !important;
    }
}

/* Completely remove top padding from tours-section right after hero-image-section */
.hero-image-section + .tours-section,
.hero-image-section + section.tours-section,
.hero-image-section + .tours-section.pt_150,
.hero-image-section + section.tours-section.pt_150 {
    padding-top: 40px !important;
    margin-top: 0 !important;
}


