/* ==========================================================================
   Hero Section & Search Bar
   ========================================================================== */
.hero-section { position: relative; height: 75vh; min-height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); }
.hero-overlay { position: relative; z-index: 2; color: var(--bg-white); text-align: center; margin-top: -60px; pointer-events: none; }
.hero-overlay h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); margin-bottom: 10px; }

.search-container { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; width: 90%; max-width: 800px; }
.search-box { background: var(--bg-white); padding: 15px 25px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; }
.search-input-group { display: flex; align-items: center; flex: 1; padding-right: 20px; }
.search-input-group i { color: var(--primary-color); margin-right: 15px; font-size: 1.2rem; }
.search-dropdown { border: none; outline: none; width: 100%; font-size: 1.1rem; font-family: var(--font-main); color: var(--text-dark); background: transparent; cursor: pointer; }
#master-search-btn { border-radius: 30px; padding: 10px 30px; }

/* ==========================================================================
   Destination Squares & Interactive Sliders
   ========================================================================== */
.square-scroll-container, .slider-track-container {
    display: flex; overflow-x: auto; gap: 30px; padding-bottom: 20px; 
    padding-left: 5%; padding-right: 5%; scrollbar-width: none; cursor: grab; scroll-behavior: smooth;
}
.square-scroll-container::-webkit-scrollbar, .slider-track-container::-webkit-scrollbar { display: none; }
.square-scroll-container.active, .slider-track-container.active { cursor: grabbing; scroll-behavior: auto; }

.destination-square { display: flex; flex-direction: column; align-items: center; text-decoration: none; min-width: 110px; user-select: none; }
.destination-square img { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; box-shadow: 0 6px 15px rgba(0,0,0,0.08); border: 3px solid transparent; transition: all 0.3s ease; pointer-events: none; margin-bottom: 10px;}
.destination-square span { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.destination-square:hover img { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(2, 100, 107, 0.2); }
.destination-square:hover span { color: var(--primary-color); }

.swipe-card { position: relative; min-width: 320px; height: 450px; border-radius: 20px; overflow: hidden; display: block; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,0.1); user-select: none; flex-shrink: 0; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; pointer-events: none; }
.swipe-card:hover img { transform: scale(1.05); }
.swipe-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 25px 25px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: var(--bg-white); pointer-events: none; }
.swipe-overlay h3 { font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; color: #facc15; font-family: serif; letter-spacing: 1px; line-height: 1; }
.swipe-price { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 15px; font-weight: 500; }
.swipe-price .price-tag { font-size: 0.9rem; background: rgba(255,255,255,0.25); padding: 6px 12px; border-radius: 6px; backdrop-filter: blur(5px); }

/* ==========================================================================
   Single-Device Slider Gallery
   ========================================================================== */
.single-device-wrapper {
    position: relative; margin: 0 auto; transition: all 0.5s ease;
    background: #1a202c; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.device-screen-inner {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: 100%; height: 100%; background: #000; cursor: grab; scroll-behavior: smooth;
}
.device-screen-inner::-webkit-scrollbar { display: none; }
.device-screen-inner.active { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }

.device-slide-img {
    width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; pointer-events: none;
}

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e0; cursor: pointer; transition: background 0.3s; }
.slider-dots .dot.active { background: var(--primary-color); }

/* Device Shifting Media Queries */
@media (min-width: 993px) { /* Desktop Monitor */
    .single-device-wrapper { width: 100%; max-width: 800px; height: 450px; padding: 15px 15px 35px 15px; border-radius: 15px 15px 0 0; }
    .device-screen-inner { border-radius: 4px; }
    .single-device-wrapper::after { content: ''; position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); width: 80px; height: 25px; background: #cbd5e0; clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%); z-index: -1; }
    .single-device-wrapper::before { content: ''; position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); width: 140px; height: 5px; background: #a0aec0; border-radius: 5px; z-index: -1; }
}

@media (max-width: 992px) and (min-width: 577px) { /* Tablet/iPad */
    .single-device-wrapper { width: 600px; height: 450px; border-radius: 25px; padding: 25px 20px; background: #e2e8f0; border: 2px solid #cbd5e0; }
    .device-screen-inner { border-radius: 8px; border: 4px solid #1a202c; }
}

@media (max-width: 576px) { /* Mobile Phone */
    .single-device-wrapper { width: 320px; height: 600px; border-radius: 40px; padding: 12px; background: #1a202c; border: 4px solid #718096; }
    .device-screen-inner { border-radius: 30px; }
    .single-device-wrapper::before { display: block; content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: #1a202c; border-radius: 0 0 15px 15px; z-index: 10; }
}

/* ==========================================================================
   General Utilities & Buttons
   ========================================================================== */
.btn-stylish-view-all {
    color: var(--primary-color); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 30px; background: rgba(2, 100, 107, 0.1); transition: all 0.3s;
}
.btn-stylish-view-all:hover { background: var(--primary-color); color: #fff; }
.grid-layout-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Responsive Adjustments for Search */
@media (max-width: 992px) {
    .search-box { border-radius: 15px; flex-direction: column; }
    .search-input-group { border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 10px; width: 100%; }
    #master-search-btn { width: 100%; border-radius: 5px; }
}


/* ==========================================================================
   Morphing Glassmorphic Video Gallery 
   ========================================================================== */
.glass-frame-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    
    /* Enhanced Premium Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5); /* Light reflection */
    border-left: 1px solid rgba(255, 255, 255, 0.5); /* Light reflection */
    border-radius: 30px 30px 0 0; /* Asymmetrical: Rounded top, sharp bottom */
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    padding: 20px;
    
    /* Morphing Animation for Height & Width */
    transition: max-width 0.6s cubic-bezier(0.25, 1, 0.5, 1), aspect-ratio 0.6s cubic-bezier(0.25, 1, 0.5, 1), padding 0.6s ease;
}

/* Landscape (Desktop/YouTube) State */
.glass-frame-container.is-landscape {
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

/* Portrait (Mobile/Instagram) State */
.glass-frame-container.is-portrait {
    max-width: 400px; /* Constrains width so it looks like a sleek mobile phone on desktop */
    aspect-ratio: 9 / 16;
}

@media (max-width: 768px) {
    .glass-frame-container {
        padding: 10px;
        border-radius: 20px 20px 0 0;
    }
    .glass-frame-container.is-landscape {
        aspect-ratio: 16 / 9;
    }
    .glass-frame-container.is-portrait {
        max-width: 100%; /* Fills the screen width on mobile */
        aspect-ratio: 9 / 16;
    }
}

.glass-video-wrapper.video-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    height: 100%;
    border-radius: 15px 15px 0 0; 
    background: #000;
    position: relative;
}

.glass-video-wrapper.video-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.video-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    background: #000; 
}

/* FIX: Absolute anchoring ensures the iframe stretches to the morphing container */
.video-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Floating Redirect Buttons */
.video-redirect-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border-radius: 30px; 
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.btn-insta:hover { opacity: 0.9; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4); }

.btn-yt { background: #FF0000; }
.btn-yt:hover { background: #cc0000; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4); }

/* Smart Navigation Arrows */
.video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-nav-btn:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-50%) scale(1.1); }
.prev-video-btn { left: -20px; }
.next-video-btn { right: -20px; }

@media (max-width: 768px) {
    .prev-video-btn { left: -10px; width: 35px; height: 35px; }
    .next-video-btn { right: -10px; width: 35px; height: 35px; }
    .video-redirect-btn { bottom: 10px; right: 10px; padding: 8px 15px; font-size: 0.8rem; }
}