/* --- GLOBAL STYLES --- */
body {
    margin: 0;
    padding: 20px;
    font-family: 'Helvetica Neue', sans-serif;
    background: #111;
    color: #eee;
}

/* Links */
a { text-decoration: none; color: #eee; transition: 0.3s; }
a:hover { color: #aaa; }

/* Hero Section - Combined Rules */
.hero-section {
    /* 1. Layout & Positioning */
    position: relative; /* Anchor for the Nav */
    width: 100%;
    height: 60vh; /* 60% of viewport height */
    
    /* 2. Flexbox for Centering Text */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* 3. Background Image Settings */
    /* Make sure this path matches exactly where your file is! */
    background-image: url('/assets/images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Style the Nav to stick to the top left */
.hero-nav {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10; /* Ensures it sits on top of the image */
}

/* Link Styling */
.hero-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: color 0.3s ease;
}

.hero-nav a:hover {
    color: #ddd;
    text-decoration: underline;
}

/* Text Content Styling */
.hero-content {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    padding: 20px;
}
/* Navigation Bar */
nav {
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Page Headers */
h1 { margin-bottom: 10px; font-weight: 300; }
.intro { color: #888; margin-bottom: 40px; max-width: 600px; line-height: 1.5; }

/* --- SECTION LIST (For Home & Travel Hub) --- */
.section-list {
    display: grid;
    /* Changed minmax from 250px to 200px so they are narrower */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px; /* Slightly tighter gap */
}

.section-card {
    background: #222;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.2s, border-color 0.2s;
}

.section-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    background: #2a2a2a;
}

.section-card h2 { margin: 0; font-size: 1.2rem; }

/* Container for the Masonry Grid */
.masonry-grid {
    column-count: 4; /* Creates 4 columns */
    column-gap: 15px; /* Space between columns */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Grid Items */
.masonry-item {
    display: block;
    position: relative;
    margin-bottom: 15px; /* Space between rows */
    border-radius: 8px; /* Optional: Rounded corners */
    overflow: hidden;
    break-inside: avoid; /* Prevents item from being cut in half across columns */
    text-decoration: none; /* Removes underline from links */
}

/* The Image itself */
.masonry-item img {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
    transition: transform 0.3s ease; /* Smooth zoom effect on hover */
}

/* The Dark Overlay & Text */
.masonry-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darkens image slightly */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* The Title Text */
.masonry-item .title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    z-index: 2;
}

/* Hover Effects */
.masonry-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.masonry-item:hover .overlay {
    background: rgba(0, 0, 0, 0.5); /* Darker on hover for better text readability */
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* --- LIGHTBOX --- */
#lightbox {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s;
}
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 4px; }
#lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}

/* Responsive */
@media (max-width: 800px) { .masonry-grid { column-count: 2; } }