/* ========================
   VARIABLES
======================== */
:root {
    --text: #222;
    --muted: #9a9a9a;
    --border: #eaeaea;
}

/* ========================
   GLOBAL
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #fff;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================
   WRAPPER
======================== */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 4vw;
}

/* ========================
   TOP
======================== */
.top {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    margin-bottom: 80px;
}

.title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: -0.5px;
}

.description .meta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.description p {
    font-size: 18px;
    line-height: 1.7;
}

/* ========================
   MAIN / LIST
======================== */
.main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6vw;
}

.list {
    list-style: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
}

.list li {
    margin-bottom: 16px;
}

/* ========================
   CAROUSEL
======================== */
.carousel {
    position: relative;
    width: 65%;
    height: 35vh;
    cursor: pointer;
}

/* Slide wrapper */
.carousel .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Slide image */
.carousel .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* floor plans fully visible */
    border-radius: 4px;
}

/* Active slide */
.carousel .slide.active {
    opacity: 1;
    transform: scale(1.03);
    z-index: 2;
}

/* Hover effect (desktop) */
@media(min-width: 1025px) {
    .carousel .slide.active:hover {
        transform: scale(1.06) translateY(-2px);
    }
}

/* ========================
   CONTACT WIDGET
======================== */
.contact-widget {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 1001;
    font-family: 'Cormorant Garamond', serif;
}

.contact-toggle {
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.contact-widget.active .contact-toggle {
    background: var(--text);
    color: #fff;
}

.contact-widget.active .contact-toggle::after {
    content: " ×";
    font-size: 16px;
}

.contact-backdrop {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.contact-widget.active~.contact-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.contact-panel {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 26px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(.2, .8, .2, 1);
}

.contact-widget.active .contact-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Panel heading */
.contact-panel h3 {
    font-weight: 400;
    margin-bottom: 18px;
    font-size: 22px;
}

/* Form inside panel */
.contact-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Inputs & textarea */
.contact-panel input[type="text"],
.contact-panel input[type="email"],
.contact-panel textarea {
    font-size: 13px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    transition: border 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-panel textarea {
    font-size: 13px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    transition: border 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

.contact-panel input:focus,
.contact-panel textarea:focus {
    border-color: var(--text);
}

/* Submit button */
#my-form-button {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s ease;
     width: 100%;
    box-sizing: border-box;
}
#my-form-button:hover {
    opacity: 0.85;
}

/* Status message below the button */
#my-form-status {
    font-size: 13px;
    margin-top: 6px;
}


/* ========================
   FORM STATUS MESSAGES
======================== */
.form-status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    animation: fadeIn 0.5s ease forwards;
}

/* simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================
   BOTTOM INFO
======================== */
.bottom-info {
    margin-top: 100px;
    font-size: 16px;
    color: var(--text);
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.price {
    margin-bottom: 8px;
}

/* ========================
   VERTICAL LINES
======================== */
.vertical-line {
    position: fixed;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: #222;
    z-index: 10;
}

.vertical-line.left {
    left: 3vw;
}

.vertical-line.right {
    right: 3vw;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .carousel {
        width: 80%;
    }

    .bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-widget {
        position: fixed;
        bottom: 20px;
        right: 30px;
        z-index: 2000;
    }

    .contact-panel {
        bottom: 60px;
        right: 0;
    }
}

@media (max-width: 600px) {
    .top {
        grid-template-columns: 1fr;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .carousel {
        width: 100%;
        height: 50vh;
        border-radius: 0;
        box-shadow: none;
    }

}