@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+Pro:wght@400;600&display=swap');

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  box-sizing: border-box;

/* --- UPDATED SVG BACKGROUND IMAGE --- */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 60'%3E%3Cg %3E%3Crect fill='%23246853' width='11' height='11'/%3E%3Crect fill='%23236752' x='10' width='11' height='11'/%3E%3Crect fill='%23236652' y='10' width='11' height='11'/%3E%3Crect fill='%23236651' x='20' width='11' height='11'/%3E%3Crect fill='%23236551' x='10' y='10' width='11' height='11'/%3E%3Crect fill='%23226450' y='20' width='11' height='11'/%3E%3Crect fill='%23226450' x='30' width='11' height='11'/%3E%3Crect fill='%2322634f' x='20' y='10' width='11' height='11'/%3E%3Crect fill='%2322624f' x='10' y='20' width='11' height='11'/%3E%3Crect fill='%2322624e' y='30' width='11' height='11'/%3E%3Crect fill='%2321614e' x='40' width='11' height='11'/%3E%3Crect fill='%2321614d' x='30' y='10' width='11' height='11'/%3E%3Crect fill='%2321604d' x='20' y='20' width='11' height='11'/%3E%3Crect fill='%23215f4c' x='10' y='30' width='11' height='11'/%3E%3Crect fill='%23205f4c' y='40' width='11' height='11'/%3E%3Crect fill='%23205e4b' x='50' width='11' height='11'/%3E%3Crect fill='%23205d4b' x='40' y='10' width='11' height='11'/%3E%3Crect fill='%23205d4a' x='30' y='20' width='11' height='11'/%3E%3Crect fill='%23205c4a' x='20' y='30' width='11' height='11'/%3E%3Crect fill='%231f5c49' x='10' y='40' width='11' height='11'/%3E%3Crect fill='%231f5b49' y='50' width='11' height='11'/%3E%3Crect fill='%231f5a48' x='60' width='11' height='11'/%3E%3Crect fill='%231f5a48' x='50' y='10' width='11' height='11'/%3E%3Crect fill='%231e5947' x='40' y='20' width='11' height='11'/%3E%3Crect fill='%231e5847' x='30' y='30' width='11' height='11'/%3E%3Crect fill='%231e5846' x='20' y='40' width='11' height='11'/%3E%3Crect fill='%231e5746' x='10' y='50' width='11' height='11'/%3E%3Crect fill='%231e5745' x='70' width='11' height='11'/%3E%3Crect fill='%231d5645' x='60' y='10' width='11' height='11'/%3E%3Crect fill='%231d5544' x='50' y='20' width='11' height='11'/%3E%3Crect fill='%231d5544' x='40' y='30' width='11' height='11'/%3E%3Crect fill='%231d5443' x='30' y='40' width='11' height='11'/%3E%3Crect fill='%231c5343' x='20' y='50' width='11' height='11'/%3E%3Crect fill='%231c5342' x='80' width='11' height='11'/%3E%3Crect fill='%231c5242' x='70' y='10' width='11' height='11'/%3E%3Crect fill='%231c5241' x='60' y='20' width='11' height='11'/%3E%3Crect fill='%231c5141' x='50' y='30' width='11' height='11'/%3E%3Crect fill='%231b5040' x='40' y='40' width='11' height='11'/%3E%3Crect fill='%231b5040' x='30' y='50' width='11' height='11'/%3E%3Crect fill='%231b4f3f' x='90' width='11' height='11'/%3E%3Crect fill='%231b4e3f' x='80' y='10' width='11' height='11'/%3E%3Crect fill='%231a4e3e' x='70' y='20' width='11' height='11'/%3E%3Crect fill='%231a4d3e' x='60' y='30' width='11' height='11'/%3E%3Crect fill='%231a4d3d' x='50' y='40' width='11' height='11'/%3E%3Crect fill='%231a4c3d' x='40' y='50' width='11' height='11'/%3E%3Crect fill='%231a4b3c' x='90' y='10' width='11' height='11'/%3E%3Crect fill='%23194b3c' x='80' y='20' width='11' height='11'/%3E%3Crect fill='%23194a3b' x='70' y='30' width='11' height='11'/%3E%3Crect fill='%2319493b' x='60' y='40' width='11' height='11'/%3E%3Crect fill='%2319493a' x='50' y='50' width='11' height='11'/%3E%3Crect fill='%2318483a' x='90' y='20' width='11' height='11'/%3E%3Crect fill='%23184839' x='80' y='30' width='11' height='11'/%3E%3Crect fill='%23184739' x='70' y='40' width='11' height='11'/%3E%3Crect fill='%23184638' x='60' y='50' width='11' height='11'/%3E%3Crect fill='%23184638' x='90' y='30' width='11' height='11'/%3E%3Crect fill='%23174537' x='80' y='40' width='11' height='11'/%3E%3Crect fill='%23174437' x='70' y='50' width='11' height='11'/%3E%3Crect fill='%23174436' x='90' y='40' width='11' height='11'/%3E%3Crect fill='%23174336' x='80' y='50' width='11' height='11'/%3E%3Crect fill='%23174336' x='90' y='50' width='11' height='11'/%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;
}

/* Typography */
h1 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
    padding: 0 20px;
    color: #f7dc93; /* Kept white for contrast against dark green */
}

.well {
    font-size: 20px;
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 40px;
    text-align: center;
    line-height: 1.6;
    color: white; /* Kept white for contrast against dark green */
}

/* Navigation & Logo */
.logo {
    position: absolute;
    top: 20px;
    left: 30px;
    max-height: 100px;
    background: white; /* Changed from white to new secondary color */
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(247, 220, 147, 0.1); /* Adjusted rgba for new secondary color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(247, 220, 147, 0.2); /* Adjusted rgba for new secondary color */
}

.back-to-home {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 12px 25px;
    background-color: #f7dc93; /* Changed from white to new secondary color */
    color: #246853; /* Changed from #CC2024 to new primary color */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.back-to-home:hover {
    background-color: #246853; /* Changed from #CC2024 to new primary color */
    color: white;
    transform: scale(1.05);
    outline: 2px solid #f7dc93; /* Changed from white to new secondary color */
}

.hover-link {
    color: white; /* Kept white for contrast against dark background */
    font-weight: bold;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.hover-link:hover {
    opacity: 0.8;
}

/* Main Header Section */
.main-header {
    padding-top: 120px; /* Space for the logo and home button */
}

/* Luxury Gallery */
.luxury-gallery {
    /* Removed column-count and column-gap */
    display: flex; /* Changed to flexbox */
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 20px; /* Provides spacing between items both horizontally and vertically */
    margin: 0 auto;
    padding: 40px;
    justify-content: center; /* Centers items horizontally within the gallery */
}

.luxury-item {
    /* Removed display: inline-block and break-inside: avoid */
    width: calc((100% - 40px) / 3); /* Adjusted for 3 items per row with 20px gaps */
    margin: 0; /* Remove previous vertical margins as gap handles spacing */

    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luxury-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.luxury-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.luxury-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(36, 104, 83, 0.8); /* Changed from rgba(#CC2024) to rgba(#246853) with transparency */
    backdrop-filter: blur(5px);
    color: white; /* Kept white for contrast against new primary color */
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.luxury-item:hover .luxury-caption {
    opacity: 1;
}

.luxury-caption h3,
.luxury-caption p {
    margin: 0;
    padding: 0;
}

.luxury-caption h3 {
    font-size: 20px;
    font-weight: 600;
}

.luxury-caption p {
    font-size: 14px;
    margin-top: 5px;
}

.luxury-btn {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid white; /* Kept white for contrast */
    background-color: transparent;
    color: white; /* Kept white for contrast */
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.luxury-btn:hover {
    background-color: #f7dc93; /* Changed from white to new secondary color */
    color: #246853; /* Changed from #CC2024 to new primary color */
}

/* Responsive Adjustments for flexbox */
@media (max-width: 1024px) {
    .luxury-item {
        width: calc((100% - 20px) / 2); /* For 2 columns, with 1 * 20px gap */
    }
}

@media (max-width: 768px) {
    .back-to-home {
        padding: 10px 20px;
        font-size: 14px;
        top: 20px;
        right: 20px;
    }
    .logo {
        max-height: 50px;
        top: 20px;
        left: 20px;
    }
     .main-header {
        padding-top: 100px;
    }
}

@media (max-width: 600px) {
    .luxury-item {
        width: 100%; /* For 1 column, full width */
    }
}