/* ==========================================================
   IMPORTS
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {

    /* COLORS */

    --bg: #151613;
    --bg2: #1d1d19;
    --color-primary: #52563e;
    --color-primary-hover: #079225;
    --color-white: #ffffff;
    --gold: #965f08b7;
    --gold-light: #976007ff;
    --cream: #ece7df;
    --text: #F5F1EB;
    --muted: #976007d3;

    /* TYPOGRAPHY */

    --font-body: 'Poppins', sans-serif;

    --font-heading:
        'Cormorant Garamond',
        serif;

    /* SHADOWS */

    --shadow-soft:
        0 8px 32px rgba(0, 0, 0, 0.15);

    --shadow-large:
        0 20px 50px rgba(0, 0, 0, 0.25);

    /* BORDER RADII */

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   LAYOUT
   ========================================================== */

.container {
    width: min(1200px, 90%);
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
}

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    z-index: 1000;
    background: rgb(3, 25, 4);
}

.navbar_brand {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
}

/* Menu area */
.navbar_menu {
    width: 70%;
    margin-left: 30px;
    text-shadow: 2px 2px 4px #000000;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.navbar_links {
    display: flex;
    align-items: center;
    gap: 64px;
}

.navbar_link {
    position: relative;
    color: var(--color-white);
    font-size: 1.0rem;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    gap: 20px;
}

.navbar_link::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0;
    height: 2px;

    background: var(--color-white);

    transition: width 0.3s ease;
}

.navbar_link:hover::after {
    width: 100%;
}

.navbar_logo a {
    text-decoration: none;
    color: #fafafaff;
    text-shadow: 2px 2px 4px #000000;

    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.navbar_logo-icon {
    width: 60px;
    height: 50px;
    margin-bottom: -5px;
    margin-top: -10px;
    color: #fafafaff;
    /* feeds into currentColor in the SVG strokes */

}

.navbar_logo-name {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.navbar_logo-sub {
    margin-top: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.5rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* ==========================================================
   NAVBAR RESPONSIVE
   ========================================================== */

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-Belgravia {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.description-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    background-color: rgba(7, 24, 4, 0.658);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 50px;
    text-shadow: 2px 2px 4px #020100;
}

.description-text {
    width: 100%;
    max-width: 480px;
}

.description-text h1,
.description-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.description-text h1 {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0.06em;
}

.description-text h1 span {
    display: block;
    width: 100%;
    text-align: center;
}

.hero-logo-place {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: 0.18em;
}

.description-text h2 {
    font-family: var(--font-heading);
    line-height: 1.8;
    color: #8b5406;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
    display: block;
    font-weight: lighter;
    text-align: center;
    font-size: 1.8rem;
}

.description-text p {
    font-family: var(--font-body);
    line-height: 1.8;
    color: rgba(158, 109, 17, 0.726);
    padding-bottom: 35px;
    letter-spacing: 0.05em;
    display: block;
    font-weight: lighter;
    text-align: center;
    font-size: 1.1rem;
}

/*Overlay*/
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        var(--hero-image, url('images/thumbnail.webp')) center center / cover no-repeat;
    z-index: 1;
}

.main-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--hero-image) center center / cover no-repeat;
}

/* ==========================================================
   HERO RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {

    /* 1. Ensure the parent container can grow */
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* 2. FORCE the image area to be visible at the top */
    .hero::before {
        content: "";
        display: block;
        position: relative;
        /* Change from absolute to relative for mobile */
        width: 100%;
        height: 50vh;
        /* This makes the image take up half the screen */
        background: url('images/thumbnail.webp') center center / cover no-repeat;
        z-index: 1;
    }

    /* 3. Ensure the text box sits neatly below the image */
    .description-container {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 40px 20px;
        background-color: #413b33;
        /* Solid color for readability */
        z-index: 2;
    }

    .description-text {
        max-width: 100%;
    }

    .description-text h1 {
        font-size: clamp(2.2rem, 13vw, 3rem);
        line-height: 0.95;
        margin-bottom: 14px;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .description-text h1 span {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-logo-place {
        font-size: clamp(1.25rem, 5vw, 1.7rem);
        letter-spacing: 0.2em;
    }

    .description-text p {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
        letter-spacing: 0.03em;
    }
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 60%;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    color: rgba(207, 128, 30, 0.49);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-family: var(--font-heading);
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.hero .description-container .description-text h1 {
    font-size: clamp(2.2rem, 3.1vw, 3.7rem);
    letter-spacing: 0.03em;
}

.hero p {
    color: rgb(221, 198, 147);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.brochure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.brochure-modal.active {
    display: flex;
}

.brochure-modal-content {
    background: #9da193;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    position: relative;
}

.brochure-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#brochure-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

#brochure-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn--primary,
.btn--secondary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.btn--primary,
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover,
.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn--secondary,
.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn--secondary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/*===========================
SEARCH BAR
=============================*/

/* --------------------------- */
.search-hero {
    padding: 90px 60px;
    background:
        radial-gradient(circle at top,
            rgba(16, 41, 4, 1),
            transparent 60%),
        linear-gradient(#161713, #141412);
}

/* --------------------------- */
.hero-header {
    text-align: center;
    margin-bottom: 50px;
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 6px;
    font-size: .9rem;
}

.hero-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 68px;
    font-weight: 400;
    margin: 12px 0;
    color: var(--text);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--gold);
    margin: 20px 0;
}

.divider span {
    width: 70px;
    height: 1px;
    background: var(--gold);
}

.hero-text {
    color: var(--muted);
    font-size: 1.3rem;
    max-width: 650px;
    margin: auto;
    line-height: 1.7;
    font-family: 'Times New Roman', Times, serif;
}

/* --------------------------- */
.search-card {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    background: var(--cream);
    border-radius: 20px;
    box-sizing: border-box;
}

.search-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Forces all 3 forms and the button to be the exact same width */
.search-grid .field,
.search-grid .search-btn {
    flex: 1 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Adjusts the button container to align with select inputs */
.search-grid .search-btn {
    height: 60px !important;
}

.search-card h2,
.search-card-heading {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 35px;
    font-weight: 400;
    margin: 0px 0;
    color: #754507;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #030101ff;
}

/* Grouping select and input text boxes together */
.field select,
.field input[type="text"] {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border: 1px solid #d7cec3;
    border-radius: 8px;
    background: #f1f1f1e5;
    font-size: 12px;
    color: #754507de;
    /* Added to prevent the border from altering the 60px box height */
    box-sizing: border-box;
    /* Removes the default styling outline focus ring look */
    outline: none;
}

/* Optional placeholder styling to match the font color theme */
.field input[type="text"]::placeholder {
    color: #8f8b84ff;
}


/* Styles your search button to match the form height */
.search-btn {
    width: 100%;
    height: 60px;
    background: rgb(3, 43, 8);
    /* Matching your label theme color */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    white-space: nowrap;
}

.search-btn:hover {
    background: #131312ff;
}

/* --------------------------- */
.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid #665d51ff;
}

.link-btn {
    background: none;
    border: none;
    color: #5f5548;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {

    /* 1. Reduce the massive side padding on mobile */
    .search-hero {
        padding: 40px 20px !important;
    }

    /* 2. Stack the search fields vertically */
    .search-grid {
        flex-direction: column !important;
        /* Changes from row to column */
        gap: 20px !important;
        width: 100% !important;
    }

    /* 3. Make the search card and fields full width */
    .search-card {
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .field,
    .search-btn {
        width: 100% !important;
        /* Ensures everything fills the screen width */
        height: 55px !important;
        /* Makes it easier to tap on a phone */
    }
}

/* --- SEARCH RESULTS VISIBILITY --- */
.property-results--hidden {
    display: none !important;
}

.property-results {
    display: block;
    padding: 80px 0;
    background-color: #151613;
}

#propertyResultsSummary {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #807362;
    margin-bottom: 40px;
}

/* ==========================================================
   PROJECTS 
   ========================================================== */
#featured-developments {
    padding: 80px 20px;
    background-color: rgb(3, 25, 4);
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 10px;
    margin-left: 4px;
    color: white;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #0e250aff;
    border-radius: 16px;

    flex: 1 1 300px;
    max-width: 360px;

    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.project-card div {
    padding: 16px;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.project-card p {
    font-size: 16px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* ==========================================================
   Individual Project Pages
   ========================================================== */
.project-hero {
    position: relative;

    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: var(--hero-image) center center / cover no-repeat;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.project-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.35);
}

.project-hero-content h1 {
    color: rgb(253, 234, 177);
    font-family: Playfair Display;
    font-size: clamp(1rem, 4vw, 5.5rem);

    letter-spacing: .08em;

    margin-bottom: 16px;
}

.project-hero-content h2 {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    letter-spacing: .08em;

    margin-bottom: 16px;
}

/* Project-deatails and slideshow*/
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 50px;
    width: 90%;
    max-width: 1200px;

    /* REDUCED BOTTOM MARGIN: */
    margin-top: 5px;
    margin-bottom: 5px;
    /* Try a smaller value here */
    margin-left: auto;
    margin-right: auto;

    padding: 0;
    align-items: center;
}

.project-details {
    /* Use flexbox to center content perfectly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Sufficient top margin to clear the fixed navbar */
    margin-top: 30px;
    margin-bottom: 30px;
    /* Give it full height matching the slideshow */
    height: 520px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    min-width: 0;

    font-family: 'Playfair Display', serif;
    color: #ffffff;
}

.project-details h1 {
    letter-spacing: 4px;
    font-weight: 300;
    font-size: 20px;
}

.project-details h2 {
    letter-spacing: 4px;
    font-weight: 300;
    font-size: 15px;
}

.project-details p {
    font-size: 12px;
    margin: 2px;
}

.features-list li {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* The Horizontal Line Divider */
.project-details hr {
    width: 40px;
    border-top: 2px solid var(--gold);
    margin: 3px auto;
}

.features-list {
    list-style-type: disc;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.project-details {
    /* Since the list is 'inline-block', this centers the whole list block */
    text-align: center;
}

/* Mobile Optimization for Project Section */
@media (max-width: 768px) {

    /* Change the grid to a single column stack */
    section.project-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* Make the text details full width and improve spacing */
    .project-details {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 40px 20px !important;
        box-sizing: border-box !important;
    }

    /* Increase font size and line height for the large paragraph */
    .project-details p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    /* Ensure the slideshow also takes up full width */
    .hero-slideshow {
        width: 100% !important;
        height: clamp(280px, 78vw, 360px) !important;
        min-height: 280px;
    }

    .hero-slideshow__slide.active {
        transform: none !important;
        transition: opacity 0.5s ease-in-out !important;
    }

    .floorplan {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 20px !important;
    }

    .floorplan h3,
    .singlefloorplan h3 {
        margin: 0 0 16px 0;
    }

    .floorplan-image,
    .singlefloorplan .floorplan-image {
        height: clamp(240px, 72vw, 340px) !important;
        background-position: center;
    }

    .singlefloorplan {
        padding: 24px 20px !important;
    }
}

.features-list li {
    margin-bottom: 1px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #ffffff;
    font-size: 12px;

}

/* The main wrapper container */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    /* Adjust height as needed */
    overflow: hidden;
}

.slideshow-display {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.2s ease-in-out;
}

/* Individual Slide Styling */
.hero-slideshow__slide {
    /* 1. Ensure the slide takes up space */
    width: 100%;
    height: 100%;

    /* 2. Positioning (Change to absolute if they should overlap) */
    position: absolute;
    top: 0;
    left: 0;

    /* 3. Fix the Zoom Issue */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* 4. Ensure they are hidden by default, shown when active */
    display: none;
}

.hero-slideshow__slide.active {
    display: block;
}

/* Navigation Button Layout Positioning over slideshow */
.hero-slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    font-size: 2.5rem;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 4px;
}

.hero-slideshow__nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hero-slideshow__nav--prev {
    left: 15px;
}

.hero-slideshow__nav--next {
    right: 15px;
}

/* Floating Image Counter UI Positioning */
.hero-slideshow__counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 10;
}

.floorplan {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two equal columns */
    gap: 40px;
    /* Space between the columns */

    padding: 30px 40px;
    width: 100%;
    background: linear-gradient(145deg, #012005, #021605);
}

.floorplan-62m,
.floorplan-68m {
    display: flex;
    flex-direction: column;
}

.floorplan h3 {
    margin: 0 0 -40px 0;
    line-height: 1.1;
}

.floorplan-image {
    margin-top: 0px;
    width: 100%;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
}

.singlefloorplan {
    padding: 30px 40px;
    width: 100%;
    background: linear-gradient(145deg, #012005, #021605);
}

.singlefloorplan .floorplan-image {
    margin-top: 5px;
    width: 100%;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mainpage slideshow styling */
.mainpage_slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    /* Adjust height as needed */
    overflow: hidden;
}

.mainpage_slideshow-display {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
}

/* Individual Slide Styling */
.mainpage_slideshow__slide {
    position: absolute;
    top: 0;
    left: 0;

    width: 100% !important;
    height: 100% !important;

    background-size: cover;
    background-position: center;

    /* Ensure no weird margins are pushing the image */
    margin: 0;
    padding: 0;

    /* Smooth fade setup */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;

    /* Add this to be absolutely sure: */
    max-width: 100%;
}

/* The active slide that fades in */
.mainpage_slideshow__slide.active {
    opacity: 1;
    z-index: 2;
}

/* Navigation Button Layout Positioning over slideshow */
.mainpage_slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    font-size: 2.5rem;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 4px;
}

.mainpage_slideshow__nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.mainpage_slideshow__nav--prev {
    left: 15px;
}

.mainpage_slideshow__nav--next {
    right: 15px;
}

/* Floating Image Counter UI Positioning */
.mainpage_slideshow__counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 10;
}

/* ==========================================================
   MOBILE RESPONSIVENESS FOR PROJECT GRID
   ========================================================== */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        /* Stack text and image vertically */
        grid-gap: 0;
    }

    .project-details,
    .hero-slideshow {
        height: 400px;
        /* Reduce height slightly for better phone viewing */
    }

    .project-details h1 {
        font-size: 32px;
        /* Smaller heading for mobile */
    }

    .project-details hr {
        margin: 20px 0;
        /* Less space on mobile */
    }
}

/*==========================================================
  IDX NEWS TITLES
   ========================================================== */
.idx-News_Title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 20px;
    margin-left: 10%;
}

.idx-News_Content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    margin-bottom: 24px;
    color: #1a1a1a;
    text-align: left;
    margin-left: 10%;
}

/* AMENITIES */
.amenities {
    padding: 28px 8%;
    background-color: rgb(3, 25, 4);
}

.availableAmenities {
    margin: 0 auto;
    max-width: 1240px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(145deg, #e9dcc8, #999281);
    border: 1px solid rgba(16, 58, 26, 0.841);
    box-shadow:
        inset 0 0 0 8px rgba(123, 96, 61, 0.527),
        0 18px 40px rgba(7, 61, 8, 0.467);
}

.availableAmenities h2 {
    margin: 0 0 26px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #2f2415;
}

.amenity-group {
    margin-bottom: 36px;
}

.amenity-group:last-child {
    margin-bottom: 0;
}

.amenity-group h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #2f2415;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

/* base grid stays the same as your .amenities-list */
.amenities-list {
    display: grid;
    gap: 24px;
    padding: 12px;
}

.amenity-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(123, 96, 61, 0.28);
    box-shadow: 0 12px 28px rgba(150, 131, 94, 0.923);
}

/* size each floor's row by item count, capped at 5 columns wide so
   cards don't get oversized when there are only 3 */
.floor-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
}

.floor-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
}

.floor-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 980px) {

    .floor-3,
    .floor-6,
    .floor-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

@media (max-width: 640px) {

    .floor-3,
    .floor-6,
    .floor-5 {
        grid-template-columns: 1fr;
    }
}

/* CTA */
.cta {
    text-align: center;
    background: linear-gradient(145deg, #012005, #010e03);
    color: #ffffff;
    padding: 80px 40px;
}

.cta-link {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    background: #2e2a1f;
    padding: 16px 48px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: #333;
}

.cta a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================
   FULLSCREEN IMAGE MODAL
   ========================================================== */
.hero-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    /* Hidden until triggered by JS */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.hero-slideshow__slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.05);
    /* Slight zoom */
    transition: opacity 0.8s ease-in-out, transform 8s linear;
    /* Long slow zoom */
}

.hero-fullscreen__image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid var(--gold);
    /* Uses your existing gold variable */
}

.hero-fullscreen__close,
.hero-fullscreen__nav {
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px 20px;
    transition: background 0.3s;
}

.hero-fullscreen__close {
    top: 30px;
    right: 40px;
}

.hero-fullscreen__nav--prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-fullscreen__nav--next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-fullscreen__meta {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-family: var(--font-body);
}

.map-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, #012005, #010e03);
    text-align: center;
}

.map-container {
    width: 90%;
    /* Responsive on mobile */
    max-width: 500px;
    /* Consistent with property card width */
    aspect-ratio: 4 / 3;
    /* Standard map/photo proportion */
    margin: 0 auto;
    /* Ensures centering */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* Slightly more rounded for a modern look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.map-container:hover .map-image {
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    pointer-events: none;
}

/* ==========================================================
   UTILITY
   ========================================================== */
.no-scroll {
    overflow: hidden;
}

/* ==========================================================
   HERO TYPOGRAPHY CLASSES
   ========================================================== */
.hero-logo-place {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    letter-spacing: 0.35em;
    display: block;
}

.project-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    letter-spacing: 0.2em;
    color: rgba(158, 109, 17, 0.9);
    display: block;
    margin-top: 16px;
}

.unit-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
}

/* ==========================================================
   SEARCH CARD RESULT ENRICHED CLASSES
   ========================================================== */
.project-card__body {
    padding: 20px;
}

.project-card__meta {
    margin-bottom: 8px;
    color: #c2b78e;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.project-card__tagline {
    font-size: 0.85rem;
    color: #a09070;
    font-style: italic;
    margin-top: 4px;
}

/* ==========================================================
   HAMBURGER MENU
   ========================================================== */
.navbar_hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.navbar_hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar_hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar_hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar_hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .navbar_hamburger {
        display: flex;
    }

    .navbar_menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgb(3, 25, 4);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.35s ease;
        overflow-x: visible;
        white-space: normal;
        padding-bottom: 0;
        z-index: 1050;
    }

    .navbar_menu.open {
        right: 0;
    }

    .navbar_link {
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }
}