/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    /* John Deere / Sloan Implement Palette */
    --primary: #367C2B;
    /* John Deere Green */
    --secondary: #111111;
    /* Near Black */
    --accent: #FFDE00;
    /* John Deere Yellow */
    --accent-text: #111111;
    --light: #f4f4f4;
    --white: #ffffff;
    --border: #dddddd;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    /* Clean, industrial look similar to Sloan's */
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    /* Bolder headers */
    text-transform: uppercase;
    /* Industrial style */
    color: var(--primary);
}

/* Header */
header {
    background: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--accent);
    /* Yellow border bottom */
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    /* Green Brand */
}

/* Hero / Carousel Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: var(--secondary);
    overflow: hidden;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.control-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--white);
    color: var(--primary);
}

/* Property Info Bar (Floating) */
.property-summary {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 3rem;
    border-radius: 8px;
    display: flex;
    gap: 3rem;
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 1000px;
    justify-content: center;
    align-items: center;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
}

.summary-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
}

.price-tag {
    color: var(--primary);
    /* Green price */
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 6px;
    background: var(--accent);
    /* Yellow Underline */
}

.description {
    margin-bottom: 2rem;
    /* Spacing between major sections - Reduced */
}

.description h3 {
    margin-top: 1rem;
    /* Spacing before sub-headers - Reduced */
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    /* Green border on hover */
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary);
    /* Green Icons */
}

/* Contact/Agent Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.agent-card {
    background: var(--primary);
    /* Green Card */
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.agent-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    /* Yellow Header */
}

.agent-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    /* Yellow Button */
    color: var(--accent-text);
    /* Black Text */
    border: none;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.agent-btn:hover {
    background: #e6c800;
    /* Darker Yellow */
    transform: scale(1.02);
}

/* Gallery Grid (Below Description) */
.gallery-section {
    padding: 4rem 5%;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .property-summary {
        flex-direction: column;
        gap: 1rem;
        width: 85%;
        padding: 1.5rem;
    }

    .hero {
        height: 60vh;
    }
}
/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#lightboxImage {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    background-color: rgba(0,0,0,0.3);
    border: none;
    user-select: none;
    z-index: 1001;
}

.lightbox-nav.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-nav.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-nav:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--accent);
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 20px;
        padding: 10px;
    }
}

