/* ==========================================================================
   Nedumudy Travels, Business Technology & Online Service Center
   Master Stylesheet (Vanilla CSS Design System)
   ========================================================================== */

:root {
    --primary-emerald: #0d5c46;
    --primary-emerald-dark: #083c2e;
    --primary-teal: #0b3c4d;
    --accent-blue: #2563eb;
    --accent-amber: #d97706;
    --accent-gold: #f59e0b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 30px -10px rgba(11, 60, 77, 0.15);
    --radius-lg: 16px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading-font {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Navbar & Header
   -------------------------------------------------------------------------- */
.top-bar {
    background: var(--primary-teal);
    color: #cbd5e1;
    font-size: 0.875rem;
    padding: 6px 0;
}
.top-bar a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: var(--accent-gold);
}

.main-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-teal) !important;
}
.navbar-brand span {
    color: var(--primary-emerald);
}

.nav-link {
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 8px 16px !important;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-emerald) !important;
}

/* Header Live Search Input */
.header-search-container {
    position: relative;
    max-width: 280px;
    width: 100%;
}
.header-search-input {
    border-radius: 20px;
    padding: 6px 16px 6px 36px;
    font-size: 0.875rem;
    border: 1px solid #cbd5e1;
    transition: all 0.3s;
}
.header-search-input:focus {
    border-color: var(--primary-emerald);
    box-shadow: 0 0 0 3px rgba(13, 92, 70, 0.15);
}
.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Live Search Auto-Complete Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}
.search-result-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: #f8fafc;
}
.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(13, 92, 70, 0.1);
    color: var(--primary-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}
.search-result-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Hero & Banner Sections
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 60, 77, 0.88), rgba(13, 92, 70, 0.82)), url('../images/houseboat_hero.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 0 120px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden;
}
.hero-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    max-width: 680px;
}

/* Big Search Bar on Hero */
.hero-search-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    max-width: 720px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Card Grids & Components
   -------------------------------------------------------------------------- */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-teal);
    margin-bottom: 10px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.custom-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 92, 70, 0.3);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.custom-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-emerald);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;

}
.card-tag.tag-honeymoon {
    background: #e11d48;
}
.card-tag.tag-pos {
    background: var(--accent-blue);
}

.card-body-custom {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Feature Icon Boxes */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 92, 70, 0.1), rgba(37, 99, 235, 0.1));
    color: var(--primary-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-emerald-dark), var(--primary-teal));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 92, 70, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background: var(--primary-teal);
    color: #ffffff;
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    border-radius: 30px;
    padding: 10px 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Floating Action Buttons */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1030;
    text-decoration: none;
    transition: transform 0.3s;
}
.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* --------------------------------------------------------------------------
   Live Customer Chat Widget
   -------------------------------------------------------------------------- */
.chat-widget-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    height: 56px;
    padding: 0 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-emerald));
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(11, 60, 77, 0.4);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s;
}
.chat-widget-toggle:hover {
    transform: scale(1.05);
}

.chat-widget-box {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1030;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-widget-box.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-emerald));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header h6 {
    margin: 0;
    font-weight: 700;
}

.chat-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-bubble.customer {
    background: var(--primary-emerald);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.admin {
    background: #ffffff;
    color: var(--text-main);
    align-self: flex-start;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.chat-bubble-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Footer & Village Tags
   -------------------------------------------------------------------------- */
footer {
    background: var(--primary-teal);
    color: #94a3b8;
    padding: 70px 0 30px;
    margin-top: 100px;
}
footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}
footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--accent-gold);
}

.village-seo-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 3px;
    transition: background 0.2s;
}
.village-seo-pill:hover {
    background: var(--primary-emerald);
    color: white;
}

/* Floating WhatsApp Action Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1030;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
/* Mobile Navigation Collapse Menu Styling */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        padding: 16px;
        margin-top: 10px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
    }
    .main-navbar .nav-link {
        padding: 10px 14px !important;
        border-radius: 10px;
    }
    .main-navbar .nav-link:hover, .main-navbar .nav-link.active {
        background: rgba(13, 92, 70, 0.08);
    }
}

/* Responsive Adjustments & Mobile Optimization across ALL Pages */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
        font-size: 0.8rem;
    }
    
    /* Global Page Banner Adjustments */
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.7rem !important; }
    .display-6 { font-size: 1.45rem !important; }
    .lead { font-size: 0.95rem !important; }
    .section-title { font-size: 1.6rem !important; }
    .section-subtitle { font-size: 0.95rem !important; margin-bottom: 25px !important; }
    
    .hero-section {
        padding: 45px 0 75px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 16px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title { 
        font-size: 1.7rem; 
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .hero-search-box {
        padding: 8px;
        border-radius: 14px;
        max-width: 100%;
    }
    .hero-search-box .input-group {
        flex-direction: column;
    }
    .hero-search-box .input-group .form-control {
        border-radius: 10px !important;
        margin-bottom: 8px;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    .hero-search-box .input-group button {
        border-radius: 10px !important;
        width: 100%;
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    /* Cards & Containers on Inner Pages */
    .custom-card { border-radius: 14px; }
    .card-img-wrapper { height: 180px; }
    
    /* Floating Action Buttons on Mobile */
    .chat-widget-toggle { 
        height: 46px;
        padding: 0 14px;
        font-size: 0.82rem;
        bottom: 16px; 
        right: 14px; 
    }
    .chat-widget-box { 
        width: calc(100vw - 28px); 
        right: 14px; 
        bottom: 72px; 
        height: 420px;
    }
    .floating-whatsapp-btn {
        width: 46px;
        height: 46px;
        font-size: 22px;
        bottom: 16px;
        left: 14px;
    }
    
    .header-search-container { 
        max-width: 100%; 
        margin-top: 10px; 
    }
    
    footer {
        padding: 50px 0 25px !important;
        margin-top: 60px !important;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.45rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .btn-primary-custom, .btn-whatsapp { font-size: 0.88rem; padding: 8px 16px; }
}
