/* ===================================
   MOBILE APP-LIKE ENHANCEMENTS
   =================================== */

/* Mobile-First Base Adjustments */
@media (max-width: 768px) {

    /* --- Smooth Scrolling & Touch --- */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    body {
        font-size: 15px;
        -webkit-tap-highlight-color: rgba(30, 77, 43, 0.2);
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* --- Container Adjustments --- */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    /* --- Hero Section --- */
    .hero {
        min-height: 65vh;
        padding: 100px 20px 60px;
    }

    .hero-content {
        padding: 20px;
    }

    .tour-dates-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 15px;
    }

    .main-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 10px;
    }

    .tagline {
        font-size: 1rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 25px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 30px;
        font-size: 1.05rem;
    }

    /* --- Navigation --- */
    .navbar {
        padding: 12px 10px !important;
        /* Reduced padding to move logo left */
    }

    .navbar .container {
        padding: 0 !important;
        width: 100% !important;
    }

    .logo img {
        height: 80px;
        /* Increased 20% from 65px */
        width: auto;
    }

    .nav-links {
        padding: 20px;
        gap: 0;
    }

    .nav-links li a {
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* --- Tour Description --- */
    .tour-description {
        padding: 30px 0;
    }

    .description-content p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .read-more-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    /* --- Visual Gallery (Bento Grid) --- */
    .visual-gallery {
        margin-top: 40px;
        padding-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: 250px repeat(2, 180px) !important;
        row-gap: 20px;
        column-gap: 16px;
    }

    .video-card {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
        height: 100%;
    }

    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 100%;
    }

    /* --- Highlights Section --- */
    .highlights {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* --- Inner Peace Section --- */
    .inner-peace-dark {
        padding: 40px 0;
    }

    .main-layout-dark {
        flex-direction: column;
        gap: 30px;
    }

    .ip-image-col {
        width: 100%;
    }

    .ip-main-img {
        height: 300px;
    }

    .ip-content-col {
        width: 100%;
        padding: 25px;
    }

    .ip-title {
        font-size: 1.8rem;
    }

    .ip-quote {
        font-size: 1rem;
    }

    .ip-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ip-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .ip-card h3 {
        font-size: 1.1rem;
    }

    .ip-card p {
        font-size: 0.9rem;
    }

    /* --- Itinerary Section --- */
    .itinerary {
        padding: 40px 0;
    }

    .itinerary-container {
        padding: 0;
    }

    .itinerary-row {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 30px;
    }

    .itinerary-row.reverse {
        flex-direction: column !important;
    }

    .it-content,
    .it-images {
        width: 100% !important;
    }

    .day-badge-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .it-content h3 {
        font-size: 1.4rem;
    }

    .it-points li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .it-images {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        height: auto;
    }

    .it-img {
        height: 180px;
    }

    /* --- Inclusions & Exclusions --- */
    .inclusions-exclusions {
        padding: 40px 0;
    }

    .inc-exc-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .inc-card,
    .exc-card {
        padding: 25px;
    }

    .inc-card h3,
    .exc-card h3 {
        font-size: 1.3rem;
    }

    .inc-list li,
    .exc-list li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    /* --- Registration Form --- */
    #register {
        padding: 40px 0;
    }

    .form-wrapper-centered {
        max-width: 100%;
        padding: 30px 25px;
        margin: 0 15px;
    }

    .form-wrapper-centered h2 {
        font-size: 1.8rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .btn-submit {
        padding: 14px 32px;
        font-size: 1.05rem;
        width: 100%;
    }

    /* --- Footer --- */
    footer {
        padding: 30px 20px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    /* --- Gallery Modal --- */
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .modal-prev {
        left: 15px;
    }

    .modal-next {
        right: 15px;
    }

    .modal-content img {
        max-height: 70vh;
        border-radius: 12px;
    }

    .modal-caption {
        font-size: 1rem;
        margin-top: 15px;
    }

    /* --- Touch-Friendly Improvements --- */
    .btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Spacing Improvements --- */
    section {
        margin-bottom: 20px;
    }

    .margin-top {
        margin-top: 40px;
    }

    /* --- Typography Refinements --- */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.7rem !important;
    }

    .tour-dates-badge {
        font-size: 0.8rem;
        padding: 7px 14px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .it-images {
        grid-template-columns: 1fr;
    }

    .it-img {
        height: 200px;
    }

    .video-card,
    .gallery-item {
        height: 100%;
    }

    .video-card,
    .video-thumb,
    .gallery-item img {
        border-radius: 0px !important;
    }

    .bento-grid {
        grid-template-rows: 250px repeat(2, 220px) !important;
    }

    /* Button spacing handled */
}

/* Additional Mobile Padding Fixes */
@media (max-width: 768px) {

    /* Prevent sections from touching edges */
    section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .itinerary-container,
    .inc-exc-wrapper {
        padding: 0 5px;
    }

    /* Better grid spacing for highlights */
    .features-grid {
        padding: 0 5px;
    }

    /* Ensure proper spacing around all cards */
    .feature-card,
    .ip-card,
    .inc-card,
    .exc-card {
        margin-bottom: 12px;
    }
}

/* Fix for horizontal scroll issues */
.container,
section,
.bento-grid,
.hero {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Mobile Bottom Navigation & Floating Buttons */
.mobile-bottom-nav {
    display: none;
    /* Hidden by default, shown in media query */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 8px 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.price-info {
    display: flex;
    flex-direction: column;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rating-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #555;
    font-weight: 600;
}

.rating-mini i {
    color: #F1C40F;
    font-size: 0.65rem;
}

.price-label {
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 2px;
}

.price-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.original-price {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pax-info {
    font-size: 0.7rem;
    color: #888;
}

.btn-check-availability {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: transform 0.2s;
}

.btn-check-availability:active {
    transform: scale(0.95);
}

/* Floating Action Buttons */
.floating-actions {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 110px;
    /* Moved up further */
    right: 20px;
    z-index: 2000;
}

.float-whatsapp-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #dcf8c6 100%);
    color: #075E54;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: transform 0.3s;
    overflow: hidden;
}

.float-whatsapp-pill i {
    font-size: 0.9rem;
}

.floating-text {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.text-fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.text-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.float-whatsapp-pill:hover {
    transform: scale(1.05);
}

/* Tooltip for floating buttons */
.float-btn .tooltip {
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.float-btn:hover .tooltip {
    opacity: 1;
}

/* Only show on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        animation: slideUp 0.5s ease-out;
    }

    .floating-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        animation: fadeIn 0.5s ease-out 0.3s backwards;
    }

    .float-instagram {
        display: flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: white;
        text-decoration: none;
        padding: 5px 12px;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(188, 24, 136, 0.4);
        transition: all 0.3s ease;
    }

    .float-instagram i {
        font-size: 1.2rem;
    }

    .instagram-text {
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Adjust footer padding so content isn't hidden behind bar */
    footer {
        padding-bottom: 80px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}