/* --- VARIABLES & RESET --- */
:root {
    --primary: #4CB320; /* Your theme color */
    --primary-dark: #3a8a18;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.highlight { color: var(--primary); }
.text-warning { color: #f4c150; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 10px; }
.btn-outline:hover { background: var(--white); color: var(--text-dark); }

.btn-white { background: var(--white); color: var(--primary); }

/* --- HERO SECTION --- */
.hero {
    height: 90vh; /* Full screen height */
    background: url('/static/images/safarikenya.webp') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -80px; /* Pull behind navbar if navbar is transparent */
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Dark overlay for readability */
}

.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-subtitle { display: block; font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }
.hero-title { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-text { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }

/* --- SEARCH WIDGET --- */
.search-widget-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.search-widget {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 100px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-right: 1px solid #eee;
}

.input-group:last-of-type { border-right: none; }
.input-group i { color: var(--primary); margin-right: 10px; }
.input-group input, .input-group select {
    border: none; outline: none; width: 100%; font-family: inherit; font-size: 0.95rem;
}

.btn-search {
    background: var(--primary); color: white; border: none;
    padding: 15px 40px; border-radius: 50px; cursor: pointer; font-weight: 600;
}

/* --- PACKAGES GRID --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; }

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.package-card:hover { transform: translateY(-10px); }

.card-image { position: relative; height: 220px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--primary); color: white;
    padding: 5px 12px; border-radius: 20px; font-size: 0.8rem;
}

.card-content { padding: 25px; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card-footer {
    margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.price { color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.price small { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }
.btn-link { color: var(--text-dark); text-decoration: none; font-weight: 600; transition: 0.2s; }
.btn-link:hover { color: var(--primary); }

/* --- FEATURES --- */
.features-grid { display: flex; justify-content: space-between; gap: 30px; text-align: center; flex-wrap: wrap; }
.feature-box { flex: 1; min-width: 250px; padding: 30px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.icon-box {
    width: 70px; height: 70px; background: #eef9ea; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 20px;
}

/* --- PARALLAX BANNER --- */
.parallax-banner {
    background: linear-gradient(rgba(76,179,32,0.9), rgba(76,179,32,0.9)), url('/static/images/safarikenya.webp');
    background-attachment: fixed;
    background-size: cover;
    padding: 100px 20px;
    text-align: center;
    color: white;
}
.banner-content h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* --- RESPONSIVE DESIGN (Includes Wrist Watch Optimization) --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .search-widget { flex-direction: column; border-radius: 20px; }
    .input-group { width: 100%; border-right: none; border-bottom: 1px solid #eee; }
    .btn-search { width: 100%; }
}

/* Tiny screens (Galaxy Fold outer screen / Apple Watch browser) */
@media (max-width: 320px) {
    .hero-title { font-size: 1.8rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; width: 100%; margin-bottom: 10px; margin-left: 0; }
    .package-card { margin-bottom: 20px; }
    .section-title { font-size: 1.8rem; }
    .container { padding: 0 10px; }
}

/* --- MESSAGE / ALERT STYLES --- */
/* --- MESSAGE / ALERT STYLES --- */
.message-container {
    position: fixed;
    top: 90px;       /* Just below the navbar */
    right: 20px;     /* Align to the right edge */
    left: auto;      /* Remove centering */
    transform: none; /* Remove centering transform */
    z-index: 2000;
    width: auto;     /* Let width adjust to content */
    min-width: 300px;
    max-width: 400px;
    text-align: left; /* Align text naturally */
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease-out;
}

/* Specific Colors for Message Types */
.alert.success { background-color: #4CB320; } /* Green */
.alert.error { background-color: #dc3545; }   /* Red */
.alert.warning { background-color: #f4c150; color: #333; } /* Yellow */
.alert.info { background-color: #17a2b8; }    /* Blue */

/* Animation to make it slide in smoothly */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- NAVIGATION LINKS --- */
.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* --- USER DROPDOWN STYLES --- */
.dropdown-btn {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.dropdown-btn:hover {
    background: white;
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 120%; /* Push it down slightly */
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Arrow Indicator */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px; right: 20px;
    width: 12px; height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    color: #333;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333 !important; /* Forces text to be dark, overriding JS */
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.dropdown-item i { margin-right: 10px; width: 20px; text-align: center; }

.dropdown-item:hover {
    background-color: #f4f9f2;
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.text-red { color: #dc3545; }
.text-red:hover { background-color: #fff5f5; color: #dc3545; }

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 70px 0 20px;
    margin-top: 80px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

/* Brand Column */
.footer-logo { font-size: 1.8rem; color: white; margin-bottom: 20px; font-weight: 700; }
.footer-logo span { color: var(--primary); }
.footer-desc { line-height: 1.6; margin-bottom: 20px; }

/* Links */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}
.footer-links a i { font-size: 0.7rem; margin-right: 10px; color: var(--primary); transition: 0.3s; }
.footer-links a:hover { color: white; transform: translateX(5px); }

/* Newsletter */
.newsletter-form {
    display: flex;
    background: #333;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 20px;
}
.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    width: 100%;
    outline: none;
}
.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.newsletter-form button:hover { background: white; color: var(--primary); }

/* Social Icons */
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 40px; height: 40px;
    background: #333;
    color: white;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }

/* Payment Badges */
.payment-methods { display: flex; gap: 15px; align-items: center; font-size: 0.9rem; }
.mpesa-badge {
    background: #4CB320; color: white; padding: 2px 8px;
    border-radius: 4px; font-weight: bold; font-size: 0.8rem; letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

@media(max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; }
}