/* Global Resets and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
}

body:has(#slideshow-container) {
    overflow-y: hidden;
}

/* Slideshow Styles (index.html) */
#slideshow-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-image.active {
    opacity: 1;
}

/* Button Styles (Common for both pages) */
.overlay-button {
    position: fixed;
    width: 150px;
    height: 100px;
    background-color: white;
    color: black;
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 24px; /* Default button font size */
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid white;
    box-sizing: border-box;
    z-index: 10;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.overlay-button:hover {
    color: #808080;
}

/* Specific Button Positions & Styles */
#enter-button {
    top: 50px;
    left: 50px;
    background-color: transparent;
    border: none;
}

#enter-button:hover {
    color: #505050;
}

#photos-button {
    top: 50px;
    left: 50px;
}

#email-button {
    top: 151px;
    left: 35px;
}

/* Details Page Specific Styles (details.html) */
.details-page-background {
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    position: relative;
}

.details-text-container {
    padding-left: 75px;
    padding-right: 75px;
    padding-top: 77.5px;
    padding-bottom: 50px;
    text-align: right;
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #333333;
    box-sizing: border-box;
}

.details-text-container p {
    margin-bottom: 1em;
}

.details-text-container strong {
    font-weight: bold;
}

.details-intro-block {
    margin-bottom: 1em;
}

.details-intro-block .for-rent-text {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    font-weight: bold !important;
    margin-bottom: 0.5em;
    font-size: 24px !important; /* Desktop "FOR RENT" font size */
    line-height: 1.3;
}

.highlighted-intro-text {
    padding: 0;
    display: inline-block;
    text-align: right;
    margin-bottom: 20px;
}

.highlighted-intro-text p {
    font-size: 24px !important;
    color: #333333;
    line-height: 1.4;
}
.highlighted-intro-text p:last-child {
    margin-bottom: 0;
}


/* --- Responsive Adjustments --- */

/* Medium screens (tablets, larger phones) - Target width 768px and below */
@media (max-width: 768px) {
    .overlay-button {
        width: 120px;
        height: 80px;
        font-size: 18px; /* Button text font size for medium screens */
    }

    #enter-button {
        left: 20px;
        top: 20px;
    }
    #photos-button {
        left: 24px;
        top: 20px;
    }

    #email-button {
        left: 20px;
        top: 110px;
    }

    .details-text-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 220px;
        text-align: left;
        font-size: 14px;
    }

    .details-intro-block .for-rent-text { /* "FOR RENT" text on medium screens */
        font-size: 18px !important; /* Mobile "FOR RENT" font size */
    }

    .highlighted-intro-text {
        text-align: left;
        display: block;
        margin-bottom: 40px;
    }

    .highlighted-intro-text p {
        font-size: 18px !important;
    }

    #slideshow-container .slide-image {
        object-fit: contain;
        background-color: white;
    }
}

/* Small screens (most mobile phones) - Target width 480px and below */
@media (max-width: 480px) {
    .overlay-button {
        width: 100px;
        height: 60px;
        font-size: 16px; /* Button text font size for small screens */
    }

    #enter-button {
        left: 15px;
        top: 15px;
    }
    #photos-button {
        left: 24px;
        top: 15px;
    }

    #email-button {
        left: 15px;
        top: 85px;
    }

    .details-text-container {
        padding-left: 40px;
        padding-right: 15px;
        padding-top: 180px;
        text-align: left;
        font-size: 13px;
    }

    .details-intro-block .for-rent-text { /* "FOR RENT" text on small screens */
         font-size: 18px !important; /* NEW: Mobile "FOR RENT" font size, changed from 16px */
     }
     .highlighted-intro-text p {
        font-size: 18px !important;
        text-align: left;
    }

    #slideshow-container .slide-image {
        background-color: white;
    }
}