﻿/* ==========================================================
   INDEX PAGE STYLES  (Optimized & Cleaned)
   ========================================================== */

html, body {
    overflow-x: hidden;
}

/* ==========================================================
   HERO SLIDER
   ========================================================== */

/* ============================
   HERO SLIDER OPTIMIZED
   ============================ */
/* ==========================================================
   HERO SLIDER — FADE-IN / FADE-OUT VERSION
   ========================================================== */

.hero-slider-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}
.hero-slide:first-child {
    opacity: 1 !important;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

/* Overlay Text */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    z-index: 5;
}

.hero-title-bg {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 2rem;
}

.discount1 {
    background: linear-gradient(to right, #006666, #004d4d);
    color: #fff;
    border-radius: 30px;
    padding: 10px 25px;
    margin: 10px 0 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-subtitle {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .hero-title-bg {
        font-size: 1.5rem;
        padding: 8px 14px;
    }

    .discount1 {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}


/* ==========================================================
   TRAVEL COMMUNITY SECTION
   ========================================================== */

.opt-community-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.opt-community-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-community-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    padding: 20px;
    animation: fadeInUp 1s ease-in-out;
}

.opt-community-btn {
    display: inline-block;
    background: linear-gradient(45deg, #006d44, #00a86b);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .opt-community-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 109, 68, 0.4);
    }

.opt-community-text {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    font-size: 1rem;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .opt-community-section {
        background-image: url('/images/Comm.webp') !important;
    }
}
/* ==========================================================
   TRIP HERO BANNER
   ========================================================== */

.trip-hero-bg {
    background: url('/images/limits-of-the-world.webp') center/cover no-repeat;
    height: 400px;
    position: relative;
}

.hero-text {
    color: white;
    text-align: center;
    background-color: rgba(0,0,0,0.1);
    padding: 5px;
    border-radius: 10px;
}

    .hero-text h2 {
        font-size: 1.8rem;
        font-weight: bold;
    }

/* ==========================================================
   TRIP CARDS
   ========================================================== */

.trip-card-section {
    background-color: #231f20;
    padding: 20px;
}

.trip-card-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================
   TRAVEL HEADER (STATIC IMAGE - OPTIMIZED)
   ========================================================== */

.travel-container {
    max-width: 1300px;
    width: 100%;
    padding: 20px;
    margin: auto;
    background-color: #f0eee6;
}

/* ✅ Optimized Static Header */
.travel-header {
    position: relative;
    text-align: left;
    margin-bottom: 50px;
    padding: 60px 40px;
    border-radius: 0 0 150px 0;
    color: #fff;
    min-height: 250px;
    overflow: hidden;
    background-color: #cfcfcf; /* fallback while image loads */
    background-image: url('/images/header1-thumb.webp'); /* low-res placeholder */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    isolation: isolate;
    animation: fadeInHeader 1s ease-out;
}

    /* ✅ When high-quality version loads */
    .travel-header.loaded {
        background-image: url('/images/header1.webp');
    }

    /* ✅ Overlay effect */
    .travel-header::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 0 0 150px 0;
        z-index: 0;
    }

    /* ✅ Top accent line */
    .travel-header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, #006666, #004d4d, #2c8769);
        z-index: 1;
    }

/* ✅ Text styling */
.travel-title {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    z-index: 2;
}

    .travel-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, #2c8769, #55883B);
        border-radius: 2px;
    }

.travel-subtitle {
    position: relative;
    font-size: 1.3rem;
    color: #f5f5f5;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Animation */
@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Fix */
@media (max-width: 768px) {
    .travel-title {
        font-size: 2.6rem;
    }

    .travel-subtitle {
        font-size: 1.1rem;
    }
}


/* ==========================================================
   CARD GRID
   ========================================================== */

/* CARD CONTAINER */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ 4 cards per row on desktop */
    gap: 25px;
    justify-content: center;
    align-items: stretch;
    padding: 40px 0;
    max-width: 1300px;
    margin: 0 auto;
}

/* Medium screens (tablets) — 2 per row */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}




.travel-card {
    perspective: 1200px;
    height: 450px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
}

/* INNER WRAPPER */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.travel-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* COMMON FACE */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    top: 0;
    left: 0;
}

/* FRONT SIDE */
.card-front {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    color: #fff;
}

.card-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 10px;
    border-radius: 0 0 16px 16px;
}

.destination-name {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.destination-tagline {
    font-size: 1.1rem;
    color: #ffc107;
    margin-top: 6px;
}

/* BACK SIDE */
.card-back {
    transform: rotateY(180deg);
    background: #fff;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden; /* ✅ Removes scroll bar */
    color: #1a1a1a;
}

.card-back-header {
    border-bottom: 2px solid #f5c518;
    margin-bottom: 10px;
}

.card-back-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #13294b;
    margin-bottom: 6px;
}

/* Info Items */
.travel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.info-icon {
    color: #008080;
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-content h4 {
    font-size: 1rem;
    color: #003366;
    margin: 0 0 2px;
}

.info-content p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.3;
}

/* BUTTON */
.travel-button {
    align-self: center;
    margin-top: auto;
    padding: 10px 24px;
    background: linear-gradient(90deg, #006666, #004d4d);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    white-space: nowrap; /* ✅ Prevent text wrap */
    text-align: center; /* ✅ Keep text perfectly centered */
    display: inline-block;
}

    .travel-button:hover {
        background: linear-gradient(90deg, #004d4d, #006666);
        transform: scale(1.05); /* ✅ Adds subtle hover lift effect */
    }



/* ==========================================================
   ANIMATED ARROW (Front Card Indicator)
   ========================================================== */
.arrow {
    font-size: 2.2rem;
    color: #ffc107;
    margin-top: 12px;
    display: inline-block;
    animation: arrowWiggle 1.2s infinite ease-in-out;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card-full-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    pointer-events: auto;
}



/* ✅ Smooth "wiggle" motion animation */
@keyframes arrowWiggle {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }

    25% {
        transform: translateX(5px) rotate(3deg);
        opacity: 0.9;
    }

    50% {
        transform: translateX(-5px) rotate(-3deg);
        opacity: 0.9;
    }

    75% {
        transform: translateX(3px);
        opacity: 1;
    }
}

/* RESPONSIVE */
/* ================================================
   ✅ FIX: MOBILE HEIGHT + BUTTON VISIBILITY
   ================================================ */
@media (max-width: 768px) {
    /* Let the card height auto adjust to fit content */
    .travel-card {
        height: auto;
        min-height: 430px;
    }

    .card-inner {
        height: 100%;
    }

    .card-face {
        min-height: 430px;
    }

    /* Add space inside the back face so content fits */
    .card-back {
        padding: 20px 15px 70px; /* extra bottom space for button */
        position: relative;
        overflow: visible; /* ✅ allows button to show properly */
    }

    /* Button always visible at the bottom center */
    /* ✅ Always visible button at bottom center */
    .travel-button {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        font-size: 0.95rem; /* ✅ Slightly smaller text on mobile */
        padding: 8px 20px;
    }


    /* Optional: better flip animation */
    .card-inner {
        transition: transform 0.8s ease, height 0.3s ease;
    }
}


/* ==========================================================
   GLOBAL ANIMATIONS
   ========================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {
    .travel-title {
        font-size: 3.2rem;
    }

    .travel-subtitle {
        font-size: 1.3rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
/* Mobile - 1 card per row ✅ */
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 10px;
        justify-items: center; /* Center the single card */
    }

    .travel-card {
        width: 90%; /* ✅ Keeps it nice and centered */
    }
}



/* Mobile 100vh Fix (iOS Safari) */
@supports (-webkit-touch-callout: none) {
    .hero-slider-section {
        height: -webkit-fill-available;
    }
}



/* ============================
   OPTIMIZED PARTNERS SECTION
============================ */
.opt-partners-section {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.opt-partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.opt-partners-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #13294B;
}

.opt-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.opt-partner-item img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInLogo 0.6s ease forwards;
    /* ✅ remove grayscale so logos are visible in full color */
    filter: brightness(1);
    transition: transform 0.3s ease;
}

    /* ✅ Only add a soft zoom hover effect */
    .opt-partner-item img:hover {
        transform: scale(1.05);
    }

/* Fade-in animation */
@keyframes fadeInLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .opt-partners-title {
        font-size: 1.8rem;
    }

    .opt-partners-section {
        padding: 40px 10px;
    }
}
