/* ========================================
   Rice Road Property Showcase — Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background: url('../images/full/rice-road-02.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    margin-bottom: 0.75rem;
}

.hero-price {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ---- Stats Bar ---- */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    background: #e8e8e8;
    border-bottom: 1px solid #ddd;
}

.stat {
    flex: 1 1 120px;
    max-width: 180px;
    background: #fff;
    padding: 1.25rem 0.75rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    margin-top: 0.15rem;
}

/* ---- About ---- */
.about {
    padding: 3rem 1.5rem;
    background: #f9f9f9;
}

.about-inner {
    max-width: 750px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

/* ---- Features ---- */
.features {
    padding: 3rem 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    color: #444;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.feature-list li.highlight {
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(90deg, #eafaf1 0%, transparent 100%);
    padding: 0.45rem 0.5rem 0.45rem 1.75rem;
    border-radius: 4px;
    border-left: 3px solid #27ae60;
}

.feature-list li.highlight::before {
    content: '★';
    color: #f39c12;
    font-size: 1.05rem;
    left: 0.35rem;
}

@media (max-width: 600px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* ---- Floor Plan ---- */
.floorplan {
    padding: 3rem 1.5rem;
    background: #f9f9f9;
}

.floorplan-container {
    max-width: 650px;
    margin: 0 auto 1.5rem;
}

.floorplan-container img {
    width: 100%;
    height: auto;
}

.floorplan-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
    font-size: 0.95rem;
    color: #555;
}

/* ---- Photo Gallery ---- */
.gallery {
    padding: 3rem 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-counter {
    color: #ccc;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #f1c40f;
}

.lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 0.25rem 0.75rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* ---- Video Tour ---- */
.videos {
    padding: 3rem 1.5rem;
    background: #f9f9f9;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item video {
    width: 100%;
    border-radius: 6px;
    background: #000;
}

/* ---- Contact ---- */
.contact {
    padding: 3rem 1.5rem;
    text-align: center;
}

.contact p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.contact-address {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.15rem !important;
}

.contact-name {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #2c3e50;
}

.contact-phone {
    font-size: 1.2rem !important;
}

.contact-phone a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

.contact-phone a:hover {
    text-decoration: underline;
}

.contact-price {
    font-size: 1.5rem !important;
    color: #27ae60;
    margin-top: 0.5rem !important;
}

/* ---- Footer ---- */
.footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}
