/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Tab Navigation */
.tab-nav {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.tab-nav .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.tab-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.tab-links li a {
    color: white;
    font-weight: 500;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.tab-links li a:hover {
    background-color: #ffbe0b;
    border-radius: 5px;
}

/* Hamburger menu icon */
.hamburger {
    display: none; /* Hidden by default, shown on smaller screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other content */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}


/* Header */
header {
    background: url('images/intro_photo.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: zoom 5s forwards;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

@keyframes zoom {
    from { background-size: 120%; }
    to { background-size: 100%; }
}

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

.header-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 18px;
    margin-bottom: 40px;
}

.btn {
    padding: 10px 20px;
    background-color: #ffbe0b;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ffb703;
}

/* Sections */
.section {
    padding: 80px 20px;
    margin-top: 60px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    text-align: center; /* <-- ADDED THIS LINE */
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ffbe0b;
    margin: 10px auto 0;
}

.section-desc {
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Keep paragraph text left-aligned */
}

#about, #catering, #accommodation, #location {
    background-color: #ffffff;
    color: #333;
}

#restaurant, #weddings, #contact {
    background-color: #333333;
    color: #ffffff;
}

/* Content & Image Container */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    text-align: left;
}

/* Reverse order for alternating layout */
.content-container.reverse {
    flex-direction: row-reverse;
}

.text-content, .image-content {
    flex: 1;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.grid-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.grid-container img:hover {
    transform: scale(1.05);
}

/* Map Container Style */
#map {
  width: 60%;
  max-width: 1200px;
  height: 400px;
  border-radius: 8px;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}

/* Custom Map Link Button */
.leaflet-link-button {
    background-color: #ffbe0b;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    cursor: pointer;
}

.leaflet-link-button a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.leaflet-link-button:hover {
    background-color: #ffb703;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Styles for Tablets and Mobile Phones */
@media (max-width: 768px) {

    /* Make header font smaller */
    .header-content h1 {
        font-size: 36px;
    }

    /* Adjust tab navigation for smaller screens */
    .tab-nav {
        flex-direction: row; /* Keep logo and hamburger on one line */
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .tab-nav .logo {
        flex-grow: 1; /* Allow logo to take available space */
    }

    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .tab-links {
        display: none; /* Hide navigation links by default */
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px; /* Position below the fixed nav bar */
        left: 0;
        text-align: center;
        padding: 10px 0;
    }

    .tab-links.active {
        display: flex; /* Show navigation links when active */
    }

    .tab-links li {
        margin: 10px 0;
    }

    .tab-links li a {
        display: block;
        padding: 10px;
    }


    /* Stack two-column layouts vertically */
    .content-container,
    .content-container.reverse {
        flex-direction: column;
        gap: 20px;
    }

    /* Adjust text alignment for stacked layout */
    .text-content {
        text-align: center;
    }

    /* Change image grids to a single column */
    .grid-container {
        grid-template-columns: 1fr;
    }

    /* Make map take full width on mobile */
    #map {
        width: 90%;
    }
}