@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300..800&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    position: relative;
}

.notification-container {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 9999;
    max-width: 280px;
    width: auto;
}

.notification-alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-alert.hide {
    opacity: 0;
    transform: translateY(-40px);
}

.notification-alert .btn-close {
    padding: 6px;
    margin-left: 12px;
    font-size: 0.8rem;
}

.main-content {
    position: relative;
    height: auto;
    min-height: 100vh;
}

.swiper-container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 0;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch !important;
}

.swiper-wrapper {
    overflow: visible !important;
}

.swiper-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 1) 100%);
    z-index: 1;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    animation: fadeInUp 1s ease-in-out;
    width: 90vw;
    padding: 0 5%;
    box-sizing: border-box;
}

.overlay-text h1 {
    font-size: 4em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.overlay-text p {
    font-size: 1.5em;
    margin: 0 auto;
    max-width: 80%;
}

.text-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: #fff;
    gap: 40px;
}

.text-content {
    flex: 1;
    max-width: 50%;
    padding: 0 20px;
}

.text-content h2 {
    font-size: 2.5em;
    color: #2a4365;
    margin-bottom: 30px;
}

.text-content p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 20px;
}

.image-content {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-content img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tour-schedule {
    padding: 80px 20px;
    text-align: center;
}

.tour-schedule .container {
    max-width: 1200px;
    margin: 0 auto;
}

.tour-schedule h2 {
    font-size: 2.5em;
    color: #2a4365;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.2em;
    color: #4a5568;
    margin-bottom: 40px;
}

.schedule-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 30px;
    border-radius: 15px;
}

.time-range {
    font-size: 1.8em;
    font-weight: 600;
    margin: 15px 0;
    color: #2a4365;
}

.route-list {
    margin: 25px 0;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(42, 67, 101, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.route-item:hover {
    transform: translateX(10px);
}

.route-item i {
    font-size: 1.4em;
    min-width: 30px;
}

.route-item span {
    font-size: 1.1em;
    color: #2a4365;
    font-weight: 500;
}

.text-image-section.reversed {
    flex-direction: row-reverse;
}

.diving-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(42,67,101,0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon i {
    font-size: 1.8em;
    min-width: 50px;
}

.feature-details h4 {
    color: #2a4365;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.feature-details p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 1em;
    margin-bottom: 0 !important;
}

.protocol-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.protocol-warning i {
    font-size: 1.8em;
    color: #ffc107;
}

.protocol-warning h4 {
    color: #856404;
    margin-bottom: 8px;
}

.protocol-warning p {
    color: #856404;
    font-size: 0.95em;
}

.meal-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 40px;
}

.meal-highlight {
    color: #2a4365;
    font-weight: 600;
}

.meal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.meal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(42,67,101,0.08);
    transition: transform 0.3s ease;
}

.meal-item:hover {
    transform: translateY(-3px);
}

.meal-icon {
    font-size: 1.8em;
    color: #2a4365;
}

.meal-options {
    margin-top: 30px;
    background: rgba(42, 67, 101, 0.05);
    padding: 25px;
    border-radius: 12px;
}

.meal-options p {
    margin: 0;
    font-size: 0.95em;
    color: #4a5568;
}

.meal-options strong {
    color: #2a4365;
}

.meal-item p,
.meal-options p {
    margin-bottom: 0 !important;
}

@media (max-width: 1200px) {
    .tour-section {
        flex-direction: column;
    }
    
    .tour-section.reversed {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .text-image-section {
        flex-direction: column;
        text-align: center;
    }
    
    .text-content, 
    .image-content {
        max-width: 100%;
        padding: 20px;
    }

    .image-content img {
        max-width: 100%;
    }
    
    .schedule {
        grid-template-columns: 1fr;
    }

    .text-image-section.reversed {
        flex-direction: column;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon i {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .tour-image img {
        height: 350px;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .time-card {
        padding: 20px;
    }
    
    .tour-details h2 {
        font-size: 2.2em;
    }
    
    .tour-details h3 {
        font-size: 1.6em;
    }

    .route-item span {
        font-size: 1em;
    }
    
    .route-item i {
        font-size: 1.2em;
    }
    
    .text-content h2 {
        font-size: 2em;
    }
    
    .overlay-text h1 {
        font-size: 3em;
    }
    
    .overlay-text p {
        font-size: 1.25em;
    }
    .schedule-cards {
        flex-direction: column;
        align-items: center;
    }
      
    .time-card {
        width: 100%;
        max-width: 100%;
    }
      
    .time-range {
        font-size: 1.5em;
    }

    .meal-list {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .meal-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .meal-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .overlay-text h1 {
        font-size: 2.5em;
    }
    
    .overlay-text p {
        font-size: 1.1em;
    }
    
    .swiper-container::after {
        height: 40%;
    }
    
    .text-content h2 {
        font-size: 1.8em;
    }
    
    .tour-details h2 {
        font-size: 2em;
    }
}

/* ========== CRITICAL FIXES ========== */
/* Scrollbar preservation */
body.modal-open {
    overflow-y: scroll !important;
    padding-right: 0 !important;
}

.modal {
    overflow-y: auto !important;
}

.modal-backdrop {
    position: fixed !important;
}

/* Navbar button stability */
.auth-buttons .btn {
    box-sizing: border-box !important;
    min-width: 110px !important;
    transition: none !important;
    border: 1px solid transparent !important;
    margin-left: 12px !important;
    padding: 0.55rem 1.1rem !important;
}

.auth-buttons .btn:focus,
.auth-buttons .btn:active,
.auth-buttons .btn:hover {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .auth-buttons .btn {
        min-width: 90px !important;
        margin-left: 0 !important;
        padding: 0.5rem 0.75rem !important;
    }
}