/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2d5016;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2d5016;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px; /* Add padding to account for fixed nav */
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #d4af37;
    color: #2d5016;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #2d5016;
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.about {
    background-color: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Destinations */
.destinations {
    background-color: #ffffff;
}

.destinations h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.destination-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #d4af37;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

/* Activities */
.activities {
    background-color: #f0f8f0;
}

.activities h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.activity-link {
    display: inline-block;
    margin-top: 1rem;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.activity-link:hover {
    color: #2d5016;
    border-bottom-color: #d4af37;
    transform: translateX(5px);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
}

/* Footer */
footer {
    background-color: #2d5016;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Contact Section */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .destination-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Section */
.gallery {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery CTA Button */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #d4af37;
}

/* Additional Travel Angola specific styles */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.3), rgba(212, 175, 55, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Card hover effects with Angola theme */
.destination-card,
.activity-card,
.contact-card {
    position: relative;
    overflow: hidden;
}

.destination-card::before,
.activity-card::before,
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.destination-card:hover::before,
.activity-card:hover::before,
.contact-card:hover::before {
    left: 100%;
}

/* Map Section */
.map-section {
    background-color: #ffffff;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.map-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.map-viewport {
    width: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Map lazy loading placeholder */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #2d5016;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.1);
}

.placeholder-content {
    text-align: center;
    color: #495057;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.placeholder-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #2d5016;
}

.placeholder-content p {
    margin: 0 0 1.5rem 0;
    color: #6c757d;
}

.load-map-btn {
    background: linear-gradient(135deg, #2d5016, #d4af37);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.load-map-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Progress Bar Styles */
.progress-container {
    width: 100%;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d5016, #d4af37);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #2d5016;
}

#angola-map-object,
#angola-map {
    width: 100%;
    height: auto;
    display: block;
}

.province-panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #d4af37;
    position: sticky;
    top: 90px;
}

.province-panel h3 {
    margin-bottom: 1rem;
}

.province-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.province-stats .stat-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: baseline;
}

.province-stats dt {
    color: #2d5016;
    font-weight: 600;
}

.province-stats dd {
    margin: 0;
}

/* Province hover/selected styles inside the SVG */
/* Prefer adding data-province="Province Name" attributes to SVG elements */

/* General SVG path styles */
svg path {
    transition: all 0.2s ease;
    cursor: pointer;
}

svg path[data-province] {
    stroke: transparent;
    stroke-width: 1;
}
#angola-map svg [data-province]:hover,
#angola-map-object svg [data-province]:hover,
#angola-map svg .province:hover,
#angola-map-object svg .province:hover {
    stroke: #ff9999 !important;
    stroke-width: 2 !important;
    stroke-opacity: 0.6 !important;
    filter: brightness(1.05) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#angola-map svg [data-province].selected,
#angola-map-object svg [data-province].selected,
#angola-map svg .province.selected,
#angola-map-object svg .province.selected {
    stroke: #ff6b6b !important;
    stroke-width: 3 !important;
    stroke-opacity: 0.8 !important;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(255, 107, 107, 0.6)) !important;
    transition: all 0.3s ease !important;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d5016;
}

.reviews .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #d4af37;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.stars {
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-text {
    font-weight: 600;
    color: #2d5016;
}

.review-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2d5016;
    line-height: 1.3;
}

.review-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.review-author {
    margin-bottom: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

.review-author strong {
    color: #2d5016;
}

.review-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.review-link:hover {
    color: #2d5016;
    transform: translateX(5px);
}

/* Responsive design for reviews */
@media (max-width: 768px) {
    .reviews {
        padding: 60px 0;
    }
    
    .reviews h2 {
        font-size: 2rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
    .province-panel {
        position: static;
    }
}