/* --- GLOBAL VARIABLES --- */
:root { 
    --primary-blue: #008cff; 
    --mmt-navy: #0a223d; 
    --mmt-orange: #ff6d38; 
    --mmt-teal: #00877a;
    --footer-dark: #1a1a1a; 
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --hover-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* --- BASE STYLES --- */
body { 
    background-color: #f2f2f2; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    margin: 0; padding: 0; overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden { 
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; 
}

/* --- NAVIGATION --- */
.custom-navbar { 
    background: #fff; padding: 10px 0; border-bottom: 1px solid #ddd; 
    position: sticky; top: 0; z-index: 1050; 
}

.nav-link { 
    color: #4a4a4a !important; font-size: 14px; font-weight: 500; 
    padding: 10px 15px !important; 
}

/* --- PAGE & SECTION HEADERS --- */
.page-header { background: #fff; padding: 40px 0; border-bottom: 1px solid #eee; margin-bottom: 30px; }

/* --- HERO SLIDER --- */
.hero-slider-container { position: relative; height: 450px; overflow: visible; }
.carousel-item img { height: 450px; object-fit: cover; width: 100%; filter: brightness(0.7); }
.carousel-caption-custom { 
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); 
    color: white; text-align: center; z-index: 10; width: 100%; 
}
.carousel-caption-custom h1 { font-size: 48px; font-weight: 900; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

/* --- MODERN SEARCH CARD --- */
.search-card { 
    background: #ffffff; padding: 20px; border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); width: 95%; max-width: 1100px; 
    margin: -50px auto 20px auto; position: absolute; 
    bottom: -80px; left: 50%; transform: translateX(-50%); z-index: 999; 
}

.search-grid { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 200px; display: flex; flex-direction: column; border-right: 1px solid #e7e7e7; padding-right: 15px; }
.search-field:last-child { border-right: none; }
.search-field label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; text-transform: uppercase; }
.search-field select, .search-field input { 
    height: 48px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; 
    font-size: 15px; background-color: #f9f9f9; width: 100%; outline: none; 
}

.search-btn { 
    flex: 0.8; background: var(--mmt-orange); color: white; height: 48px; 
    border: none; border-radius: 8px; font-weight: bold; font-size: 16px; 
    cursor: pointer; transition: background 0.3s ease; 
}
.search-btn:hover { background: #e55b2b; }

/* --- OPTIMIZED FILTER SIDEBAR (Activities Page) --- */
.filter-card { 
    background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #eee; 
    position: sticky; top: 90px; 
}
.filter-title { font-weight: 800; font-size: 13px; text-transform: uppercase; margin-bottom: 15px; color: #444; letter-spacing: 0.5px; }
.category-link { 
    display: flex; align-items: center; padding: 10px 0; color: #666; 
    text-decoration: none; transition: all 0.2s ease; font-size: 14px; 
    border-bottom: 1px solid #fcfcfc; 
}
.category-link:hover, .category-link.active { color: var(--mmt-orange); font-weight: 600; padding-left: 5px; }

/* --- CATEGORY ICONS --- */
.cat-icon { 
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 15px; 
    display: flex; align-items: center; justify-content: center; font-size: 28px; 
    color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.cat-item:hover .cat-icon { transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.cat-item p { font-size: 13px; letter-spacing: 0.5px; color: #333; }

/* --- OPTIMIZED ACTIVITY CARDS --- */
.trending-section { margin-top: 80px; margin-bottom: 80px; }
.card-mmt { 
    border: none; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; 
    background: #fff; height: 100%; position: relative; margin-bottom: 20px; will-change: transform;
}
.card-mmt:hover { transform: translateY(-10px); box-shadow: var(--hover-shadow); }

.card-img-container { height: 200px; overflow: hidden; background: #e9ecef; }
.card-img-top { height: 100%; width: 100%; object-fit: cover; }

.description-truncate { 
    font-size: 0.85rem; color: #666; margin-bottom: 8px; display: -webkit-box; 
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    line-height: 1.4; height: 40px; 
}
.btn-know-more { font-size: 0.8rem; color: #007bff; text-decoration: none; font-weight: 700; cursor: pointer; }
.badge-offer { 
    position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.85); 
    color: white; padding: 4px 12px; border-radius: 6px; font-size: 11px; 
    font-weight: 700; z-index: 5; backdrop-filter: blur(4px);
}
.cancellation-line {
    display: flex; align-items: center; gap: 6px; background: #f0fff4; color: var(--mmt-teal); 
    padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; 
    margin-bottom: 12px; width: fit-content;
}

/* --- FOOTER --- */
footer { background: #0a192f; color: #ffffff; padding: 60px 0 20px; }
footer .text-white { color: #e6f1ff !important; }
footer a.text-secondary { color: #8892b0 !important; transition: 0.3s; }
footer a.text-secondary:hover { color: #64ffda !important; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    /* Tablet Filter - Horizontal Scroll */
    .filter-card { position: static; margin-bottom: 20px; display: flex; overflow-x: auto; gap: 15px; padding: 15px; white-space: nowrap; }
    .filter-title { display: none; }
    .category-link { border-bottom: none; padding: 5px 15px; background: #f8f9fa; border-radius: 20px; }
    .category-link.active { background: var(--mmt-orange); color: #fff !important; }
}

@media (max-width: 768px) {
    .hero-slider-container, .carousel-item img { height: 300px !important; }
    .carousel-caption-custom h1 { font-size: 26px !important; }

    /* Mobile Search Card Reset */
    .search-card { 
        position: relative !important; bottom: 0 !important; left: 0 !important; 
        transform: none !important; width: 100% !important; margin: 20px auto; 
        padding: 15px; box-shadow: none; border: 1px solid #ddd;
    }
    .search-grid { flex-direction: column; gap: 12px; }
    .search-field { 
        width: 100% !important; min-width: 100%; border-right: none !important;
        border-bottom: 1px solid #eee; padding-bottom: 10px; padding-right: 0;
    }
    .search-btn { width: 100%; margin-top: 5px; }
    
    .trending-section { margin-top: 40px; }
    .card-img-container { height: 180px; }
}
.floating-contact-wrap {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}
.whatsapp-btn { background-color: #25d366; }
.phone-btn { background-color: #ff6d38; } /* FlexiKayak Orange */

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
}
@media (max-width: 768px) {
    .floating-contact-wrap { bottom: 20px; right: 15px; }
    .floating-btn { width: 50px; height: 50px; font-size: 20px; }
}
/* --- BOOKING FINDER STYLES --- */
.page-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f4f7fb;
}

.booking-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(10, 34, 61, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
}

.card-header-custom {
    text-align: center;
    margin-bottom: 25px;
}

.card-header-custom h1 {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--mmt-navy);
    margin-bottom: 8px;
}

.card-header-custom p {
    font-size: 0.95rem;
    color: #6c757d;
}

.btn-search {
    background: var(--mmt-navy);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-search:hover {
    background: var(--mmt-orange);
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .booking-card {
        padding: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .card-header-custom h1 {
        font-size: 1.5rem;
    }
}
{ background-color: #f8faff; font-family: 'Segoe UI', sans-serif; }
        .find-booking-card { max-width: 500px; margin: 60px auto; background: white; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); padding: 40px; }
        .find-booking-card h2 { color: #1a237e; font-weight: 800; font-size: 28px; margin-bottom: 5px; }
        .find-booking-card p { color: #6c757d; font-size: 14px; margin-bottom: 30px; }
        .form-label { font-size: 11px; font-weight: 800; color: #9e9e9e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
        .form-control { border-radius: 8px; padding: 12px; border: 1.5px solid #e0e0e0; font-size: 16px; transition: 0.3s; }
        .form-control:focus { border-color: #3f51b5; box-shadow: none; }
        .btn-view { background-color: #3f51b5; color: white; padding: 12px; border-radius: 8px; font-weight: 700; width: 100%; margin-top: 15px; border: none; }
        .btn-view:hover { background-color: #303f9f; color: white; }
        
        /* Refund Details Section */
        .refund-container { max-width: 800px; margin: 40px auto; background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        .total-refund-header { color: #f39c12; font-weight: 800; font-size: 20px; }
        
        /* Timeline Stepper */
        .timeline { position: relative; display: flex; justify-content: space-between; margin-top: 40px; margin-bottom: 40px; }
        .timeline::before { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 3px; background: #3f51b5; z-index: 1; }
        .t-step { position: relative; z-index: 2; background: white; text-align: center; flex: 1; }
        .t-dot { width: 36px; height: 36px; border-radius: 50%; background: #3f51b5; color: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; border: 4px solid white; box-shadow: 0 0 0 2px #3f51b5; }
        .t-label { font-size: 14px; font-weight: 800; color: #333; }
        .t-sub { font-size: 12px; color: #777; }

        .confirm-cancel-box { background-color: #dc3545; color: white; border-radius: 12px; padding: 25px; text-align: center; margin-top: 20px; }
        .detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f1f1; }
        .detail-label { font-weight: 600; color: #555; }
        .detail-value { font-weight: 700; color: #000; }
        @media (max-width: 576px) { .timeline { flex-direction: column; gap: 30px; } .timeline::before { display: none; } }
        /* --- CONTACT PAGE STYLES --- */
:root { 
    --primary-blue: #2563eb; 
    --navy-dark: #1e293b; 
}

.contact-header { 
    background: linear-gradient(135deg, var(--navy-dark) 0%, #334155 100%); 
    padding: 80px 0; 
    color: white; 
    margin-bottom: -50px;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 10;
    position: relative;
    will-change: transform;
}

.info-box {
    background: var(--primary-blue);
    color: white;
    height: 100%;
}

.submit-btn {
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    padding: 14px 30px;
    font-weight: 700;
    border: none;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-link {
    transition: opacity 0.3s, transform 0.2s;
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 767.98px) {
    .contact-header { padding: 60px 0 80px; }
    .contact-card { border-radius: 0; margin-top: -30px; }
    .info-box { padding: 30px 20px; text-align: center; }
    .info-box .d-flex { flex-direction: column; align-items: center !important; text-align: center; }
    .info-box .icon-circle { margin-bottom: 10px; margin-right: 0 !important; }
}
