/* =========================================================
   TRAVESIA FINAL OVERRIDE
   ========================================================= */

/* 1. TOP BAR FIX */
.tn-header__top {
    background-color: #0b1b36 !important; 
    padding: 10px 0 !important;
    border-bottom: none !important;
    position: relative;
    z-index: 1000;
}
.tn-header__top *, .tn-header__top *::before, .tn-header__top *::after {
    background: transparent !important; background-color: transparent !important;
    background-image: none !important; clip-path: none !important; box-shadow: none !important;
}
.tn-header__top a.top-link, .tn-header__top a.top-social {
    color: #ffffff !important; font-size: 13px !important; font-weight: 500 !important; text-decoration: none !important;
}
.tn-header__top i { color: #ffffff !important; font-size: 14px !important; }
.tn-header__top .top-divider { color: rgba(255, 255, 255, 0.3) !important; font-size: 14px !important; font-weight: 300 !important; }

/* 2. MAIN HEADER HEIGHT & LAYOUT */
.tn-header .sticky-active { padding: 0 !important; }
.tn-header .sticky-active .container { height: 115px !important; }
.tn-header .sticky-active .container > .row {
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
    justify-content: space-between !important; width: 100% !important; margin: 0 !important;
}
.tn-header .sticky-active .row > .col:first-child { flex: 0 0 auto !important; width: auto !important; }
.tn-header .sticky-active .row > .col-auto { flex: 0 0 auto !important; width: auto !important; }
.tn-header .main-menu ul { margin-bottom: 0; gap: 25px; display: flex; align-items: center; }

/* 3. MASSIVE LOGO */
.tn-header__logo { height: 100% !important; display: flex !important; align-items: center !important; }
.tn-header__logo img.logo {
    height: 135px !important; width: auto !important; max-width: none !important; max-height: none !important;
    object-fit: contain; filter: drop-shadow(0px 5px 8px rgba(0,0,0,0.15)); 
    background: transparent !important; transform: translateX(-15px);
}

/* 4. HERO SECTION */
.tn-hero { margin-top: 0 !important; }

/* 5. PACKAGES MODAL */
#package-form-modal {
    display: none !important; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7); z-index: 99999; justify-content: center; align-items: center; backdrop-filter: blur(4px);
}
#package-form-modal.show-modal { display: flex !important; }
.custom-form-container {
    background: #ffffff; width: 100%; max-width: 500px; padding: 30px; border-radius: 12px; position: relative; animation: slideDown 0.3s ease; 
}
@keyframes slideDown { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* 🚨 CHANGED - PREMIUM CLOSE X - Contemporary / Professional / Premium 🚨 */
.custom-form-container .close-btn {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: flex !important; align-items: center; justify-content: center;
    font-size: 16px !important;
    color: #0b1b36 !important;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer; transition: all 0.25s ease; z-index: 10;
}
.custom-form-container .close-btn:hover {
    background: linear-gradient(135deg, #ff1a1a, #d90404);
    border-color: #d90404; color: #fff !important;
    transform: rotate(90deg) scale(1.12);
    box-shadow: 0 8px 20px rgba(255, 26, 26, 0.35), 0 0 0 4px rgba(255, 26, 26, 0.12);
}
.custom-form-container .close-btn:active {
    transform: rotate(90deg) scale(0.96);
    box-shadow: 0 4px 10px rgba(255, 26, 26, 0.3);
}
.custom-form-container .input-group { margin-bottom: 15px; display: flex; flex-direction: column; }
.custom-form-container .form-row { display: flex; gap: 15px; }
.custom-form-container .form-row .input-group { flex: 1; }
.custom-form-container .input-group label { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }
.custom-form-container .input-group input, .custom-form-container .input-group select {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; outline: none;
}
.custom-form-container .submit-btn {
    width: 100%; background-color: #0056b3; color: #fff; padding: 15px; border: none; border-radius: 6px;
    font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 10px; display: flex; justify-content: center; align-items: center;
}

/* =========================================================
   🚨 MAGIC MENU & HAMBURGER 🚨
   ========================================================= */

/* Kill framework duplicates */
.sideMenuToggler, .tn-menu-toggle, .tn-menu-wrapper { display: none !important; }

/* Hamburger Button (Hidden on Desktop) */
.hamburger {
    width: 40px; height: 40px; background: transparent; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 6px; z-index: 1000000; position: relative;
    justify-content: center; align-items: center;
}
.hamburger span { width: 28px; height: 3px; background: #000; border-radius: 5px; transition: 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* The Slide-out Menu */
.my-magic-menu {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 350px; height: 100vh;
    background-color: #0b1b36; z-index: 999999; transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5); overflow-y: auto; display: flex; flex-direction: column;
}
.my-magic-menu .menu-logo { padding: 30px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.my-magic-menu .menu-logo img { max-height: 60px; width: auto; }
.my-magic-menu a {
    display: block; color: #ffffff !important; padding: 15px 25px; text-decoration: none;
    font-size: 16px; font-family: 'Inter', sans-serif; font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    opacity: 0; transform: translateX(20px); transition: all 0.3s ease;
}
.my-magic-menu a:hover { background-color: rgba(255,255,255,0.05); color: #ff1a1a !important; padding-left: 30px; }
.my-magic-menu .menu-contact { padding: 30px 25px; color: #fff; font-size: 14px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); }
.my-magic-menu .menu-contact p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.my-magic-menu .menu-contact i { color: #ff1a1a; }

/* Open State */
.my-magic-menu.open { right: 0; }

/* Stagger Magic */
.my-magic-menu.open a:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateX(0); }
.my-magic-menu.open a:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.my-magic-menu.open a:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
.my-magic-menu.open a:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.my-magic-menu.open a:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateX(0); }
.my-magic-menu.open a:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.my-magic-menu.open a:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateX(0); }

/* =========================================================
   🚨 RESPONSIVE RULES (Desktop vs Mobile) 🚨
   ========================================================= */

/* Desktop: Hide hamburger, Show text menu */
@media (min-width: 992px) {
    .hamburger { display: none !important; }
}

/* Mobile: Hide text menu, Show hamburger, Shrink header */
@media (max-width: 991px) {
    .tn-header .sticky-active .container { height: 90px !important; }
    .tn-header__logo img.logo { height: 80px !important; transform: none; }
    .tn-header__top { display: none !important; }
}

/* =========================================================
/* =========================================================
   🚨 POPULAR TRAVEL PACKAGES SECTION (PREMIUM EDITORIAL) 🚨
   ========================================================= */
.tn-packages-section {
    padding: 80px 0;
    background-color: #fcfcfc;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    z-index: 1;
}

.packages-header { margin-bottom: 50px; }

.packages-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #bfa15f;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    position: relative;
}

.packages-subtitle::before, .packages-subtitle::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #bfa15f;
    vertical-align: middle;
    margin: 0 15px;
}

.packages-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #0b1b36;
    margin-bottom: 10px;
}

.packages-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666;
}

/* Grid Layout */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Card */
.package-card {
    position: relative;
    height: 280px; /* Slightly taller for a better aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.package-card:hover .card-bg {
    transform: scale(1.05);
}

/* Premium Bottom Gradient */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
}

/* Text Content Anchored to Bottom Left */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
}

/* Country Title Styling (Like "Indonesia" in your image) */
.country-title {
    color: #ffffff;
    font-family: 'Playfair Display', serif; /* Mature, premium font */
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); /* Makes it pop off the image */
}

/* City Subtitle Styling */
.city-subtitle {
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* View All Button (Unchanged) */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0b1b36;
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid #0b1b36;
}

.view-all-btn:hover {
    background: transparent;
    color: #0b1b36;
}

/* Responsive */
@media (max-width: 1024px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .packages-grid { grid-template-columns: 1fr; }
    .packages-title { font-size: 32px; }
    .packages-subtitle::before, .packages-subtitle::after { width: 20px; margin: 0 10px; }
    .package-card { height: 240px; }
    .country-title { font-size: 28px; }
}

/* Circular Arrow Button for Homepage Cards */
.card-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1b36;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Make it match your requested style on hover */
a.package-card:hover .card-arrow {
    background: #0b1b36;
    color: #ffffff;
    transform: scale(1.1);
}

/* Specific Arrow Button for Indonesia */
.card-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1b36;
    z-index: 10; /* Keeps it above the image */
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hover effect for the arrow */
.card-arrow:hover {
    background: #0b1b36;
    color: #ffffff;
    transform: scale(1.1);
}

/* Keep your form exactly same, only style for warnings */
#city-soft-warning{
  font-size:12.5px; color:#92400e;
  background:#fffbeb; border:1px solid #fde68a;
  padding:8px 10px; border-radius:6px; margin-top:6px;
}
#city-error{
  font-size:12.5px; color:#d90429;
  background:#fff1f1; border:1px solid #ffcccc;
  padding:8px 10px; border-radius:6px; margin-top:6px;
}