/*
Theme Name: Gambia Travel Guide
Theme URI: https://gambia-travel-guide.com
Author: TGTA - The Gambia Travel Assistant
Description: Travel guide theme for The Gambia with logo support, hotels, tours, and expanded navigation
Version: 1.2.0
*/

:root {
    --primary: #0C1C8C;
    --primary-light: #1a3d9e;
    --secondary: #3A7728;
    --accent: #CE1126;
    --text-dark: #1a1a1a;
    --bg-light: #f8f9fa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Flag Bar */
.flag-bar {
    height: 6px;
    background: linear-gradient(to right, #CE1126 0%, #CE1126 20%, #fff 20%, #fff 35%, #0C1C8C 35%, #0C1C8C 65%, #fff 65%, #fff 80%, #3A7728 80%, #3A7728 100%);
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 50px;
}

.main-nav a:hover {
    background: var(--primary);
    color: #fff;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    .main-nav.active ul {
        flex-direction: column;
    }
    .main-nav.active a {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.125rem; opacity: 0.9; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.page-header h1 { color: #fff; }

/* Content */
.main-content {
    padding: 2rem 0;
}

.content-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-box h2, .content-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
}

.quick-link {
    display: block;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.quick-link-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: #fff;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 { margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: rgba(255,255,255,0.7); }
.footer-section a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }

/* Social Links */
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
}
.social-link:hover { background: var(--primary); }

/* Emergency Box */
.emergency-box {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.emergency-box p { margin-bottom: 0.25rem; font-size: 0.9rem; }

@media (min-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 4rem 2rem; }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img,
.logo .custom-logo,
.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    height: 50px;
    width: auto;
}

/* Back Button */
.back-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Page Navigation */
.page-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Hotel/Tour Grid */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hotel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.booking-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hotel-image {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-image.placeholder {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.hotel-info {
    padding: 1.25rem;
}

.hotel-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hotel-info h3 a {
    color: inherit;
}

.hotel-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Additional Buttons */
.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Content Lists */
.content-box ul, .content-box ol {
    margin-left: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Responsive Updates */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem;
        z-index: 1000;
    }
    .main-nav.active ul {
        flex-direction: column;
    }
    .main-nav.active a {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }
    .logo img, .logo .custom-logo, .logo-img, .custom-logo-link img { height: 45px; }
}

@media (max-width: 480px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .hotel-grid {
        grid-template-columns: 1fr;
    }
    .page-nav {
        flex-direction: column;
    }
    .page-nav .btn {
        width: 100%;
        text-align: center;
    }
}

/* Share Section */
.share-box {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-email { background: #6c757d; color: #fff; }
.share-email:hover { background: #5a6268; color: #fff; }

.share-facebook { background: #1877F2; color: #fff; }
.share-facebook:hover { background: #0d6efd; color: #fff; }

.share-twitter { background: #000; color: #fff; }
.share-twitter:hover { background: #333; color: #fff; }

.share-whatsapp { background: #25D366; color: #fff; }
.share-whatsapp:hover { background: #1da851; color: #fff; }

.share-linkedin { background: #0A66C2; color: #fff; }
.share-linkedin:hover { background: #084d93; color: #fff; }

.share-reddit { background: #FF4500; color: #fff; }
.share-reddit:hover { background: #cc3700; color: #fff; }

@media (max-width: 480px) {
    .share-links {
        flex-direction: column;
    }
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
