/* ========================================
   Voyages Polaris - New Header/Nav Styles
   Inspired by XingTravel design
   ======================================== */

/* ---- Reset: remove any gap above nav ---- */
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ---- Hide old nav completely ---- */
.navbar.navbar-default {
    display: none !important;
}
/* Old btn-category bar */
.btn-category {
    display: none !important;
}

/* ---- Top Navigation Bar ---- */
.vp-topnav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 64px;
}
.vp-topnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    height: 100%;
}

/* Logo */
.vp-topnav-logo {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-right: 30px;
    line-height: 0;
}
.vp-topnav-logo img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block;
    vertical-align: middle;
    object-fit: contain;
    object-position: center;
}

/* Desktop Nav Links */
.vp-topnav-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}
.vp-topnav-links a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    -webkit-transition: color 0.2s, background 0.2s;
    transition: color 0.2s, background 0.2s;
}
.vp-topnav-links a:hover,
.vp-topnav-links a:focus {
    color: #015cad;
    background: #f0f6ff;
    text-decoration: none;
}

/* Right section: phone, email, lang */
.vp-topnav-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-left: auto;
}
.vp-topnav-contact {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    margin-left: 16px;
}
.vp-topnav-contact i {
    color: #015cad;
    margin-right: 4px;
}

/* Settings dropdown (language/currency) inside new nav */
.vp-topnav-settings {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-left: 12px;
}
.vp-topnav-settings .user_menu {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    height: auto !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.vp-topnav-settings .user_menu > li {
    list-style: none;
}
.vp-topnav-settings .user_menu > li > a {
    font-size: 13px !important;
    color: #555 !important;
    padding: 4px 8px !important;
    margin-top: 0 !important;
}
.vp-topnav-settings .user_menu > li > a:hover {
    color: #015cad !important;
    background: transparent !important;
}
/* Hide mobile-only items from settings.php in desktop nav */
.vp-topnav-settings .visible-xs,
.vp-topnav-settings .mob-menu {
    display: none !important;
}
/* Language dropdown nested inside settings */
.vp-topnav-settings .navbar-nav {
    margin: 0 !important;
    float: none !important;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.vp-topnav-settings .navbar-nav > li {
    float: none;
    margin-top: 0 !important;
}
.vp-topnav-settings .navbar-nav > li > a {
    padding: 4px 8px !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.4;
}
.vp-topnav-settings .dropdown-menu {
    max-height: none;
    overflow-y: visible;
}

/* ---- Hamburger Button (mobile only, hidden on desktop) ---- */
.vp-hamburger {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: auto;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}
.vp-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    margin: 2px 0;
}

/* ---- Drawer Overlay ---- */
.vp-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}
.vp-drawer-overlay.open {
    display: block;
    opacity: 1;
}

/* ---- Slide-in Drawer ---- */
.vp-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 1050;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.vp-drawer.open {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

/* Drawer Header */
.vp-drawer-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.vp-drawer-logo img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 160px !important;
}
.vp-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Drawer Nav Links */
.vp-drawer-nav {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    padding: 8px 0;
}
.vp-drawer-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
}
.vp-drawer-nav a:hover,
.vp-drawer-nav a:active {
    background: #f7f9fc;
    color: #015cad;
    text-decoration: none;
}

/* Drawer Footer */
.vp-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.vp-drawer-contact {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}
.vp-drawer-contact i {
    color: #015cad;
    width: 20px;
    margin-right: 6px;
}
.vp-drawer-contact a {
    color: #333;
    text-decoration: none;
}

/* Drawer Language Buttons */
.vp-drawer-lang {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 12px;
}
.vp-lang-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 8px 8px 0;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.vp-lang-btn:hover {
    border-color: #015cad;
    color: #015cad;
    text-decoration: none;
}
.vp-lang-btn.active {
    background: #015cad;
    color: #fff;
    border-color: #015cad;
}
.vp-lang-btn.active:hover {
    color: #fff;
    text-decoration: none;
}

/* ============================================
   Responsive: Tablet & below (< 992px)
   ============================================ */
@media (max-width: 991px) {
    .vp-topnav-links,
    .vp-topnav-right {
        display: none !important;
    }
    .vp-hamburger {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    .vp-topnav {
        height: 56px;
    }
    .vp-topnav-logo img {
        height: 36px;
    }
}

/* ============================================
   Responsive: Small phones 320px (iPhone SE 1st gen)
   ============================================ */
@media (max-width: 374px) {
    .vp-topnav-inner {
        padding: 0 10px;
    }
    .vp-topnav-logo {
        margin-right: 0;
    }
    .vp-topnav-logo img {
        height: 28px;
    }
    .vp-drawer {
        width: 260px;
    }
    .vp-drawer-nav a {
        padding: 12px 16px;
        font-size: 15px;
    }
    .vp-drawer-footer {
        padding: 12px 16px;
    }
    .vp-lang-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    .vp-hamburger {
        width: 36px;
        height: 36px;
    }
}


/* ========================================
   Voyages Polaris - Footer Styles
   ======================================== */

/* ---- Footer wrapper ---- */
.vp-footer {
    position: relative;
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    background-color: #1a2535; /* fallback if no bg image */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}
/* Dark overlay on top of the bg image */
.vp-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 22, 38, 0.80) 0%,
        rgba(8, 15, 26, 0.92) 100%
    );
    pointer-events: none;
    z-index: 0;
}
.vp-footer-main,
.vp-footer-bottom {
    position: relative;
    z-index: 1;
}

/* ---- Inner max-width container ---- */
.vp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Main section (3 columns) ---- */
.vp-footer-main {
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.vp-footer-main .vp-footer-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 36px;
}
.vp-footer-col {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 220px;
    flex: 1 1 220px;
    min-width: 0;
}

/* Col 1: Logo + About */
.vp-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    line-height: 0;
}
.vp-footer-logo img {
    height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    /* white logo on dark bg — invert if needed */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.vp-footer-desc {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
}
.vp-footer-opc {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* Col 2: Contact */
.vp-footer-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #015cad;
    display: inline-block;
}
.vp-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vp-footer-list li {
    color: #bbb;
    font-size: 13px;
    padding: 2px 0;
}
.vp-footer-list li strong {
    color: #ddd;
    font-size: 13px;
}
.vp-footer-list li .fa {
    color: #015cad;
    width: 16px;
    margin-right: 4px;
}

/* Col 3: Newsletter */
.vp-footer-newsletter-desc {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 14px;
}
.vp-footer-email-input {
    display: block;
    width: 100%;
    padding: 9px 14px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: #eee;
    font-size: 13px;
    outline: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border-color 0.2s;
    transition: border-color 0.2s;
}
.vp-footer-email-input::-webkit-input-placeholder { color: #777; }
.vp-footer-email-input::-moz-placeholder { color: #777; }
.vp-footer-email-input:-ms-input-placeholder { color: #777; }
.vp-footer-email-input::placeholder { color: #777; }
.vp-footer-email-input:focus {
    border-color: #015cad;
    background: rgba(255,255,255,0.1);
}
.vp-footer-email-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 22px;
    background: #015cad;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}
.vp-footer-email-btn:hover {
    background: #0170d4;
}

/* ---- Bottom bar ---- */
.vp-footer-bottom {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}
.vp-footer-bottom .vp-footer-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
}
.vp-footer-bottom span {
    color: #666;
    font-size: 12px;
}

/* ---- Back to top button ---- */
#gotop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 38px;
    height: 38px;
    background: #015cad;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    line-height: 38px;
    font-size: 22px;
    text-decoration: none;
    z-index: 999;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}
#gotop:hover {
    background: #0170d4;
    text-decoration: none;
    color: #fff;
}
#gotop span {
    display: block;
    line-height: 36px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .vp-footer-main {
        padding: 32px 0 24px;
    }
    .vp-footer-main .vp-footer-inner {
        gap: 24px;
    }
    .vp-footer-col {
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
    }
    .vp-footer-bottom .vp-footer-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        text-align: center;
    }
    #gotop {
        bottom: 20px;
        right: 16px;
    }
}

@media (max-width: 374px) {
    .vp-footer-inner {
        padding: 0 12px;
    }
    .vp-footer-email-btn {
        width: 100%;
        text-align: center;
    }
}


/* ========================================
   VP Tour Card — Modern Style
   ======================================== */
.vp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
}
.vp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.vp-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}
.vp-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #eee;
}
.vp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vp-card:hover .vp-card-img img {
    transform: scale(1.05);
}
.vp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vp-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}
.vp-card-visit {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.vp-card-price {
    display: flex;
    flex-direction: column;
}
.vp-card-price-label {
    display: none;
}
.vp-card-price-value {
    font-size: 18px;
    font-weight: 800;
    color: #015cad;
    line-height: 1.2;
    display: inline;
}
.vp-card-price-suffix {
    font-size: 13px;
    color: #999;
    margin-left: 2px;
}
.vp-card-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #015cad;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
}
.vp-card-btn:hover {
    background: #0170d4;
    color: #fff !important;
    text-decoration: none !important;
}
.vp-card-onsale {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
}

/* Responsive */
@media (max-width: 991px) {
    .vp-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 575px) {
    .vp-card-grid { grid-template-columns: 1fr; gap: 14px; }
    .vp-card-title { font-size: 14px; }
}
@media (max-width: 374px) {
    .vp-card-grid { padding: 12px 0; }
}
