
/* ==========================================================================
   ULTIMATE RESPONSIVE & ANIMATED STYLESHEET - THEME: #e1741a
   ========================================================================== */
:root {
    --theme-primary: #e1741a;
    --theme-primary-hover: #c96414;
    --theme-gradient: linear-gradient(135deg, #f08936 0%, #e1741a 100%);
    --theme-glow: rgba(225, 116, 26, 0.4);
    --easing-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --easing-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- CORE KEYFRAMES --- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes textReveal {
    0% { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- ANIMATION UTILITIES --- */
.animate-fade-up { animation: fadeInUp 1s var(--easing-smooth) forwards; opacity: 0; }
.animate-text-reveal { animation: textReveal 1.2s var(--easing-smooth) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.tab-content .tab-pane.active { animation: slideUpFade 0.7s var(--easing-smooth) forwards; }

/* --- TITLE AND TEXT STYLES --- */
.gradient-text {
    background: linear-gradient(270deg, #1a2b48, var(--theme-primary), #ffb273, #1a2b48);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientPan 8s ease infinite;
    font-size: 36px;
    letter-spacing: -0.5px;
}

.bc_wrap .bc_detail_location .bc_content .title-location {
    margin-top: 0; color: #1a2b48; font-weight: 800; font-size: 48px; line-height: 1.1;
    position: relative; display: inline-block; padding-bottom: 15px;
}
.bc_wrap .bc_detail_location .bc_content .title-location::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 6px; width: 80px;
    background: var(--theme-gradient); border-radius: 50px; 
    transition: width 0.6s var(--easing-smooth);
}
.bc_wrap .bc_detail_location .bc_content .title-location:hover::after { width: 100%; }

/* --- DESKTOP BANNER OVERHAUL --- */
.bc_wrap .bc_detail_location .bc_banner {
    background-color: #1a2b48;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover !important;
    padding: 250px 0;
    position: relative;
    overflow: hidden;
}
.bc_wrap .bc_detail_location .bc_banner::after {
    content: ''; position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
}
.bc_wrap .bc_detail_location .bc_banner .container { position: relative; z-index: 2; }
.bc_wrap .bc_detail_location .bc_banner h1 {
    font-size: 56px; font-weight: 900; color: #fff;
    letter-spacing: -1px; text-shadow: 0 15px 30px rgba(0,0,0,0.6);
    margin: 0; animation: textReveal 1.2s ease forwards;
}

/* --- PRO THUMBNAIL EFFECT --- */
.bc_wrap .bc_detail_location .bc_content .g-thumbnail {
    position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: all 0.6s var(--easing-smooth);
    background: #fff; z-index: 1; 
    animation: floatElement 8s ease-in-out infinite;
    border: 8px solid #fff;
}
.bc_wrap .bc_detail_location .bc_content .g-thumbnail::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(225, 116, 26, 0.2) 0%, transparent 100%);
    opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.bc_wrap .bc_detail_location .bc_content .g-thumbnail:hover::after { opacity: 1; }
.bc_wrap .bc_detail_location .bc_content .g-thumbnail:hover {
    transform: translateY(-15px) scale(1.02) rotate(-1deg); 
    box-shadow: 0 30px 60px var(--theme-glow);
}
.bc_wrap .bc_detail_location .bc_content .g-thumbnail img {
    width: 100%; height: auto; display: block; transition: transform 1s var(--easing-smooth);
}
.bc_wrap .bc_detail_location .bc_content .g-thumbnail:hover img { transform: scale(1.1); }

/* --- EXPLORE THE PLACE TABS (MAGIC SLIDER DESIGN) --- */
.bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav {
    background: #f4f7f9; padding: 6px; border-radius: 60px; 
    display: inline-flex; position: relative; z-index: 1;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

.nav-magic-slider {
    position: absolute;
    background: var(--theme-gradient);
    border-radius: 50px;
    z-index: -1;
    transition: all 0.5s var(--easing-spring);
    box-shadow: 0 8px 25px var(--theme-glow);
}

.bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li { margin: 0; z-index: 2; }
.bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li a {
    font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: capitalize; padding: 14px 30px; color: #5e6d77;
    border-radius: 50px; background: transparent !important; 
    transition: color 0.3s ease; display: block;
}
.bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li a:hover { color: var(--theme-primary); }
.bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li a.active {
    color: #fff !important; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- ENHANCED BUTTONS --- */
.btn-search {
    background: var(--theme-gradient); color: #fff !important; 
    border: none; border-radius: 50px; padding: 16px 50px; 
    font-size: 16px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; transition: all 0.5s var(--easing-smooth);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px var(--theme-glow); position: relative; overflow: hidden; z-index: 1;
}
.btn-search::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, #e1741a 0%, #f08936 100%);
    opacity: 0; transition: opacity 0.5s ease;
}
.btn-search:hover::before { opacity: 1; }
.btn-search:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(225, 116, 26, 0.5); }
.btn-search span { z-index: 2; }
.btn-search i { transition: transform 0.4s var(--easing-spring); z-index: 2; }
.btn-search:hover i { transform: translateX(10px); }

/* --- MAP WRAPPER POLISH --- */
.map-wrapper {
    position: relative; border-radius: 30px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); margin-bottom: 80px;
    border: 8px solid #fff; background: #fff;
    transform: translateZ(0); 
}
.bc_wrap .bc_detail_location .bc_content .g-location #map_content { height: 600px; width: 100%; border: none; }

/* --- TRIP IDEAS STYLING --- */
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea {
    padding: 45px; background: #fff; border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin-bottom: 40px;
    transition: all 0.5s var(--easing-smooth); border: 1px solid rgba(0,0,0,0.02);
    position: relative; overflow: hidden;
}
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea::before {
    content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 0%;
    background: var(--theme-gradient); transition: height 0.5s var(--easing-smooth);
}
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea:hover::before { height: 100%; }
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(225, 116, 26, 0.12); }
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea h2 { font-weight: 800; font-size: 32px; color: #1a2b48; line-height: 1.3; margin-bottom: 15px; transition: color 0.3s ease; }
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea:hover h2 { color: var(--theme-primary); }
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea .description { font-size: 17px; color: #5e6d77; line-height: 1.8; margin-bottom: 30px; }
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea .read-more {
    display: inline-block; border: 2px solid rgba(225, 116, 26, 0.3); border-radius: 50px;
    font-size: 15px; font-weight: 800; color: var(--theme-primary); padding: 14px 35px;
    transition: all 0.4s var(--easing-smooth); text-transform: uppercase; letter-spacing: 1px;
    background: transparent;
}
.bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea .read-more:hover {
    background: var(--theme-gradient); color: #fff; text-decoration: none; border-color: transparent;
    box-shadow: 0 10px 25px var(--theme-glow); transform: translateX(8px);
}

/* ==========================================================================
   TABLET RESPONSIVE (1024px & 991px)
   ========================================================================== */
@media (max-width: 1024px) { 
    .bc_wrap .bc_detail_location .bc_banner { padding: 200px 0; } 
    .bc_wrap .bc_detail_location .bc_banner h1 { font-size: 46px; } 
}

@media (max-width: 991px) { 
    .gradient-text { text-align: center; margin-bottom: 20px !important; }
    
    /* Mobile App-Style Glassmorphism Scrollable Tabs */
    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav { 
        width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; 
        -webkit-overflow-scrolling: touch; scrollbar-width: none; 
        background: rgba(244, 247, 249, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        padding: 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.6);
        justify-content: flex-start; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    } 
    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav::-webkit-scrollbar { display: none; }
    
    /* Keep the slider active on mobile but style it as glass */
    .nav-magic-slider {
        border-radius: 14px;
        background: rgba(225, 116, 26, 0.9) !important;
        box-shadow: 0 4px 15px var(--theme-glow);
    }

    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li { flex: 0 0 auto; margin: 0; }
    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li a { 
        padding: 12px 22px; font-size: 14px; white-space: nowrap; border-radius: 14px; 
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE (768px & below)
   ========================================================================== */
@media (max-width: 768px) { 
    .gradient-text { font-size: 28px; }
    .bc_wrap .bc_detail_location .bc_banner { padding: 150px 0; } 
    .bc_wrap .bc_detail_location .bc_banner h1 { font-size: 36px; text-align: center; }
    .bc_wrap .bc_detail_location .bc_content .title-location { font-size: 32px; text-align: center; display: block; } 
    .bc_wrap .bc_detail_location .bc_content .title-location::after { left: 50%; transform: translateX(-50%); } 
    .map-wrapper { border-radius: 20px; border-width: 4px; margin-bottom: 50px; } 
    .bc_wrap .bc_detail_location .bc_content .g-location #map_content { height: 400px; }
    .bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea { padding: 30px; }
    .bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea h2 { font-size: 26px; text-align: center; }
    .bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea .description { text-align: center; }
    .bc_wrap .bc_detail_location .bc_content .g-trip-ideas .trip-idea .read-more { display: block; text-align: center; margin: 0 auto; max-width: 250px; }
}

/* ==========================================================================
   FIX FOR ~1067px / TIGHT DESKTOP SCREENS
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Prevent the nav from wrapping to a second line */
    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        width: 100%;
        overflow-x: auto; /* Allows smooth horizontal scrolling just in case */
        scrollbar-width: none; /* Hides scrollbar in Firefox */
        justify-content: flex-start !important; /* Overrides the right alignment */
    }
    
    /* Hide scrollbar in Chrome/Safari/Edge */
    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav::-webkit-scrollbar {
        display: none;
    }

    /* Reduce link padding and font size slightly so all 6 items fit */
    .bc_wrap .bc_detail_location .bc_content .g-location-module .location-module-nav li a {
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Scale down the heading slightly to give the nav more breathing room */
    .gradient-text {
        font-size: 28px;
    }
}