/**
 * Modern Package Detail Page Styles
 * Enhanced design for package detail page
 * 2024 Enhancement
 */

/* ============================================
   MODERN PACKAGE HEADER
   ============================================ */
#package_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0 30px;
    margin-bottom: 30px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

#package_header::before {
    display: none;
}

#package_header .container {
    position: relative;
    z-index: 3;
}

#package_deatil_wrapper .pkg_heading {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

/* Help tab styling - simple icon with text */
#package_navigation .pkg_info_list li > a[target="_blank"] {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

#package_navigation .pkg_info_list li > a[target="_blank"] i {
    font-size: 18px;
}

#package_navigation .pkg_info_list li > a[target="_blank"]:hover {
    text-decoration: none;
}

/* Modern Navigation */
#package_navigation {
    margin-top: 25px;
    margin-bottom: 0;
}

#package_navigation .pkg_info_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

#package_navigation .pkg_info_list li {
    flex: 0 1 auto;
    margin: 0;
}

#package_navigation .pkg_info_list li > a {
    display: block;
    padding: 12px 24px;
    color: #333333 !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

#package_navigation .pkg_info_list li.active > a,
#package_navigation .pkg_info_list li > a:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: none;
}

/* ============================================
   MODERN IMAGE GALLERY
   ============================================ */
#pkg_primary_block {
    margin-top: 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

#image-block {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    position: relative;
}

#image-block #bigpic {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

#image-block:hover #bigpic {
    transform: scale(1.05);
}

#views_block {
    margin-top: 15px;
}

#thumbs_list_frame {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#thumbs_list_frame li {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

#thumbs_list_frame li:hover,
#thumbs_list_frame li.shown {
    border-color: #667eea;
    transform: scale(1.05);
}

#thumbs_list_frame li img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   MODERN CONTENT SECTIONS
   ============================================ */
.pkg_info_row {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

#package_deatil_wrapper .nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
    padding: 0;
}

#package_deatil_wrapper .nav-tabs li {
    margin-right: 10px;
    margin-bottom: 0;
}

#package_deatil_wrapper .nav-tabs li > a {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    border: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

#package_deatil_wrapper .nav-tabs li.active {
    border-bottom: none;
}

#package_deatil_wrapper .nav-tabs li.active > a,
#package_deatil_wrapper .nav-tabs li > a:hover {
    color: #667eea;
    background: #f7fafc;
    border-bottom: 3px solid #667eea;
}

#package_deatil_wrapper .tab-content {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
}

#package_deatil_wrapper .card {
    padding: 0;
    margin-bottom: 0;
    border: none;
    background: transparent;
    border-radius: 0;
}

.element-info-container {
    color: #4a5568;
    line-height: 1.8;
}

.element-info-container h1,
.element-info-container h2,
.element-info-container h3,
.element-info-container h4 {
    color: #1a202c;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
}

.element-info-container p {
    margin-bottom: 15px;
}

.element-info-container ul,
.element-info-container ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.element-info-container li {
    margin-bottom: 10px;
}

/* ============================================
   MODERN ITINERARY SECTION
   ============================================ */
.itinerary_nav {
    background: #f7fafc;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 0;
}

.itinerary_nav li {
    margin-bottom: 8px;
}

.itinerary_nav li:last-child {
    margin-bottom: 0;
}

.itinerary_nav li > a {
    padding: 12px 20px;
    border-radius: 12px;
    color: #4a5568;
    font-weight: 600;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.itinerary_nav li.active > a,
.itinerary_nav li > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateX(5px);
}

.itinerary_content .tab-pane {
    padding: 20px;
}

.pkg_head_h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.itinerary_element_head {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.itinerary_element_head i {
    color: #667eea;
    font-size: 20px;
}

.element-separator-line {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 25px 0;
}

.package_list_element {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package_list_element li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 15px;
}

.package_list_element li:last-child {
    border-bottom: none;
}

.package_list_element li i {
    color: #667eea;
    font-size: 12px;
}

.package_list_action {
    float: right;
}

.package_list_action a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.package_list_action a:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   MODERN RIGHT SIDEBAR (BOOKING SECTION)
   ============================================ */
.pb-right-column.package_info {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.pb-right-column .card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.pkg_stay_block {
    margin-bottom: 25px;
}

.pkg_days_wrapper {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    border: none;
}

.pkg_stay,
.pkg_inclusions,
.pkg_themes {
    margin-bottom: 25px;
}

.pkg_stay h4,
.pkg_inclusions h4,
.pkg_themes h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.pkg_locations {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.pkg_info_list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkg_info_list li {
    flex: 0 0 calc(50% - 7.5px);
    text-align: center;
    margin: 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pkg_info_list li:hover {
    background: #edf2f7;
    transform: translateY(-3px);
    box-shadow: none;
}

.pkg_info_list li > img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.pkg_info_list li > p {
    font-size: 13px;
    color: #4a5568;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   MODERN BOOKING BUTTON
   ============================================ */
.pkg_booking_btn_block {
    margin-top: 30px;
}

.pkg_booking_btn_block .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pkg_booking_btn_block .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    #package_deatil_wrapper .pkg_heading {
        font-size: 32px;
    }
    
    .pb-right-column.package_info {
        position: static;
        margin-top: 30px;
    }
    
    .pb-right-column .card {
        position: static;
    }
}

@media (max-width: 767px) {
    #package_header {
        padding: 25px 0 20px;
    }
    
    #package_deatil_wrapper .pkg_heading {
        font-size: 28px;
    }
    
    #package_navigation .pkg_info_list {
        flex-direction: column;
        gap: 8px;
    }
    
    #package_navigation .pkg_info_list li {
        width: 100%;
    }
    
    #package_navigation .pkg_info_list li > a {
        width: 100%;
    }
    
    .pkg_info_row {
        padding: 20px;
    }
    
    #pkg_primary_block {
        padding: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pkg_info_row {
    animation: fadeInUp 0.6s ease-out;
}

.pkg_info_row:nth-child(1) { animation-delay: 0.1s; }
.pkg_info_row:nth-child(2) { animation-delay: 0.2s; }
.pkg_info_row:nth-child(3) { animation-delay: 0.3s; }
.pkg_info_row:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   FOOTER WHITE FOREGROUND REMOVAL
   ============================================ */
/* Remove white background from containers that might cover footer - Higher specificity to override global CSS */
.columns-container,
body .columns-container,
#page .columns-container,
html body .columns-container,
body #page .columns-container {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

.footer-container,
#footer {
    background-color: #333333 !important;
    position: relative !important;
    z-index: 100 !important;
}

.footer-container *,
#footer * {
    background-color: transparent !important;
    background: transparent !important;
}

.footer-container .container,
#footer .container {
    background: transparent !important;
    background-color: transparent !important;
}

.footer-container .row,
#footer .row {
    background: transparent !important;
    background-color: transparent !important;
}

.footer-block {
    background: transparent !important;
    background-color: transparent !important;
}

/* ============================================
   MODERN SEARCH PANEL ENHANCEMENTS
   ============================================ */
.search_panel_block {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.search_panel_block .modern-search-form-inner {
    margin: 0;
}

.search_panel_block .search-fields-row {
    margin: 0;
    align-items: flex-end;
}

.search_panel_block .modern-field-group {
    margin-bottom: 0;
}

.search_panel_block .modern-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search_panel_block .modern-label i {
    color: #667eea;
    font-size: 16px;
}

.search_panel_block .input-wrapper {
    position: relative;
}

.search_panel_block .modern-input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1a202c;
    background: #ffffff;
    transition: all 0.3s ease;
    height: 50px;
}

.search_panel_block .modern-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search_panel_block .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
    pointer-events: none;
}

.search_panel_block .modern-search-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

.search_panel_block .modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search_panel_block .modern-search-btn .btn-text {
    padding: 0;
    margin: 0;
}

.search_panel_block .modern-search-btn .btn-icon {
    font-size: 16px;
}

.search_panel_block .modern-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search_panel_block .modern-dropdown li {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.search_panel_block .modern-dropdown li:last-child {
    border-bottom: none;
}

.search_panel_block .modern-dropdown li:hover,
.search_panel_block .modern-dropdown li.active {
    background: #f7fafc;
    color: #667eea;
}

/* ============================================
   WHATSAPP BUTTON - PRESERVE GREEN COLOR
   ============================================ */
/* Ensure WhatsApp button maintains its characteristic green color */
.qwp-btn,
.qwp-support-fixed .qwp-btn,
.btn.qwp-btn,
.qwp-support .btn-qwp-support {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
}

.qwp-btn:hover,
.qwp-support-fixed .qwp-btn:hover,
.btn.qwp-btn:hover,
.qwp-support .btn-qwp-support:hover {
    background-color: #20BA5A !important;
    border-color: #20BA5A !important;
    color: #ffffff !important;
}

.qwp-btn:focus,
.qwp-support-fixed .qwp-btn:focus,
.btn.qwp-btn:focus,
.qwp-support .btn-qwp-support:focus {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25) !important;
}

/* WhatsApp icon styling */
.qwp-whatsapp-icon,
.qwp-whatsapp-icon-lg {
    filter: brightness(0) invert(1);
}

/* ============================================
   ENHANCED MOBILE RESPONSIVENESS - MODERN STYLES
   ============================================ */

/* Modern Package Detail - Additional Mobile Enhancements */
@media (max-width: 767px) {
    /* Package header modern styles */
    #package_header {
        padding: 25px 0 20px;
    }
    
    #package_deatil_wrapper .pkg_heading {
        font-size: 28px;
        line-height: 1.3;
    }
    
    /* Navigation menu improvements */
    #package_navigation .pkg_info_list {
        gap: 8px;
    }
    
    #package_navigation .pkg_info_list li > a {
        padding: 12px 15px;
        border-radius: 6px;
        color: #333333 !important;
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Content sections */
    .pkg_info_row {
        padding: 20px 15px;
    }
    
    #pkg_primary_block {
        padding: 20px 15px;
    }
    
    /* Tab content improvements */
    .tab-content .read-more-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Element info containers */
    .element-info-container {
        padding: 15px 0;
    }
    
    /* Itinerary improvements */
    .itinerary_head {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .itinerary_desc {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Package location elements */
    .itinerary_location_title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
    }
    
    /* Customize links */
    .package_list_action a {
        padding: 8px 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        font-size: 14px;
    }
    
    /* Element separator */
    .element-separator-line {
        margin: 15px 0;
    }
    
    /* Booking sidebar modern */
    .pb-right-column .card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    /* Package stay block */
    .pkg_stay_block {
        text-align: center;
        padding: 15px 0;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .pkg_stay_block .pkg_days_wrapper {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    /* Package sections */
    .pkg_stay,
    .pkg_inclusions,
    .pkg_themes {
        margin-bottom: 20px;
    }
    
    .pkg_head_h4 {
        font-size: 18px;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    /* Price block */
    .pkg_price_block {
        text-align: center;
        padding: 20px 0;
        border-top: 2px solid #379aef;
        margin-top: 20px;
    }
    
    .pkg_final_price_block {
        font-size: 28px;
        line-height: 1.3;
    }
    
    /* Search panel modern styles */
    .search_panel_block .modern-search-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .search_panel_block .modern-dropdown {
        max-height: 250px;
    }
    
    .search_panel_block .modern-dropdown li {
        padding: 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991px) {
    #package_deatil_wrapper .pkg_heading {
        font-size: 36px;
    }
    
    .pkg_info_row {
        padding: 25px 20px;
    }
}
