/* styles.css */

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6; /* Improved readability */
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px; /* Prevent excessive width on large screens */
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: #007bff; /* Standard link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #0066cc; /* Consistent header color */
    color: white;
    padding: 40px 0;
    text-align: center;
}

header img#logo {
    max-width: 200px;  /* Adjust logo size as needed */
    height: auto;
    margin-bottom: 15px;
}

header h1 {
   font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #ff9800;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #e68900;
    text-decoration: none;
    outline: none;
}
.cta-button:active,
.submit-btn:active {
    background-color: #cc7700; /* Slightly darker than hover */
}


/* Sections */
section {
    padding: 40px 0;
}

section:nth-child(even) {
    background-color: #ecf0f1;  /* Alternate background colors */
}

/* Property Info Section */
#property-info {
    border-top: 3px solid #2980b9;
}

#property-info p {
    font-size: 1.1rem;
}

#property-info h3 {
    color: #2980b9;
    margin-top: 20px;
}

.image-container {
    margin-top: 20px;
    text-align: center; /* Center the image */
}

.cabana-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

/* Retirement Lifestyle Section */
#retiree-lifestyle ul {
    list-style-type: none;
    padding: 0;
}

#retiree-lifestyle li {
    font-size: 1.1rem;
    padding-left: 25px;
    position: relative;
}

#retiree-lifestyle li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2980b9;
}

/* Location Section */
#location .map-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0; /* Optional fallback */
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Rental Options Section */
#rental-options ul {
    list-style-type: none;
    padding: 0;
}

#rental-options li {
    font-size: 1.1rem;
}

.amenities-image-container {
    text-align: center;
    margin-top: 20px;
}

.amenities-image-container img {
    max-width: 80%; /* Adjust as needed */
    height: auto;
    border-radius: 8px;
}

/* Form Styles */
#inquiry .form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#inquiry .form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#inquiry .form-field {
    margin-bottom: 15px;
}

#inquiry .form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#inquiry .form-field input[type="text"],
#inquiry .form-field input[type="email"],
#inquiry .form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 1rem;
    color: #333;
}

/* Smooth transition for border color changes */
input,
textarea {
    transition: border-color 0.3s ease;
}

/* Form Validation Feedback */
input:invalid, textarea:invalid {
    border-color: red;
}

input:valid, textarea:valid {
    border-color: green;
}


#inquiry .form-field textarea {
    height: 120px;
    resize: vertical; /* Allows vertical resizing */
}

#inquiry .form-container .submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

#inquiry .form-container .submit-btn:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #34495e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 1.1rem;
}

footer p {
    margin: 5px 0;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-align: center;
    display: none;
    z-index: 999;
}
.back-to-top:hover {
    background: #0056b3;
}


/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    #property-info p,
    #retiree-lifestyle li,
    #rental-options li {
        font-size: 1rem;
    }

    #location iframe {
        height: 300px;
    }

    .amenities-image-container img {
        max-width: 100%;
    }
    #inquiry .form-container {
        padding: 15px;
    }

    #inquiry .form-field {
        margin-bottom: 10px;
    }

    #inquiry .form-field label {
        font-size: 0.9rem;
    }

    #inquiry .form-field input[type="text"],
    #inquiry .form-field input[type="email"],
    #inquiry .form-field textarea {
        padding: 8px;
        font-size: 0.9rem;
    }

    #inquiry .form-container .submit-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }
}