/* ---------- Color Palette ---------- */

:root {

    --primary: #1E3A5F;
    --secondary: #F5F5F5;
    --accent: #4A90E2;
    --text: #333333;
    --white: #FFFFFF;
    --primary-hover: #29517F;

}

/* ---------- Reset ---------- */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    font-family: "Inter", sans-serif;
    color: var(--text);
    background: white;

}

/* ---------- Navigation ---------- */
/*New change for keyboard. just this one right below*/
.nav-links a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {

    outline: 3px solid var(--accent);

    outline-offset: 3px;

}

.navbar {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 8%;

    background: var(--primary);

}

.logo {

    display: flex;
    align-items: center;
    text-decoration: none;

}

.logo img {

    height: 70px;
    width: auto;
    display: block;

}

.nav-links {

    display: flex;
    list-style: none;
    gap: 35px;

}

.nav-links a {

    color: white;
    text-decoration: none;
    font-weight: 500;

    transition: .2s;

}

.nav-links a:hover {

    color: #dddddd;

}

.nav-links a.active {

    border-bottom: 2px solid var(--white);

}

/* ---------- Hero ---------- */

.hero {
    position: relative;

    height: 75vh;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.slides {

    position: absolute;

    inset: 0;

}

.slide {

    position: absolute;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    opacity: 0;

    transition: opacity 2s ease-in-out;

}

.slide.active {

    opacity: 1;

}

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.40);

}

.hero-content {

    position: relative;

    z-index: 5;

    text-align: center;

    color: white;

    padding: 20px;

}

.hero-content h1 {

    font-size: 3.5rem;

    margin-bottom: 20px;

    text-shadow:
    0 2px 8px rgba(0,0,0,.35);

}

.hero-content p {

    font-size: 1.3rem;

    text-shadow:
        0 2px 8px rgba(0,0,0,.35);

}

/* ---------- About ---------- */

.about {

    width: min(900px, 90%);
    margin: 80px auto;

}

.about h2 {

    margin-bottom: 25px;
    color: var(--primary);

}

.about p {

    line-height: 1.8;

}

.center-text{
        text-align: center;
}
/* ---------- Footer ---------- */

footer {

    background: var(--primary);
    color: white;

    text-align: center;

    padding: 25px;

    margin-top: 100px;

}

/* ---------- Mobile ---------- */

@media (max-width:768px){

.navbar{

    flex-direction:column;
    gap:20px;

}

.nav-links{

    gap:20px;

}

.hero h1{

    font-size:2.3rem;

}

.hero{

    height:60vh;

}

}

/* ---------- Properties Page ---------- */


.page-header {

    background: var(--primary);

    color:white;

    text-align:center;

    padding:70px 20px;

}


.properties-container {

    width:min(1100px,90%);

    margin:60px auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}


.property-card {

    background:white;

    box-shadow:0 5px 20px rgba(0,0,0,.12);

    border-radius:8px;

    overflow:hidden;

}


.property-image {

    height:220px;

    background-size:cover;

    background-position:center;

}


.property-info {

    padding:25px;

}


.property-info h2 {

    color:var(--primary);

    margin-bottom:20px;

}


.property-info p {

    margin-bottom:12px;

    line-height:1.5;

}

.loading-message {

    grid-column: 1 / -1;

    text-align: center;

    padding: 2rem;

    color: var(--text);

}
/* ---------- Contact Page ---------- */


.contact-container {

    width:min(700px,92%);

    margin:60px auto;

}


#contact-form {

    display:flex;

    flex-direction:column;

    gap:15px;

}


#contact-form label {

    font-weight:600;

    color:var(--primary);

}


#contact-form input,
#contact-form textarea {


    padding:12px;

    border:1px solid #ccc;

    border-radius:5px;

    font-family:inherit;

    font-size:1rem;

}


#contact-form textarea {

    resize:vertical;

}


#contact-form button {


    margin-top:20px;

    padding:14px;

    border:none;

    border-radius:5px;

    background:var(--primary);

    color:white;

    font-size:1rem;

    cursor:pointer;

    transition:.2s;

}


#contact-form button {

    transition:
        background-color .2s ease,
        transform .2s ease;

}

#contact-form button:hover {

    background: var(--primary-hover);

    transform: translateY(-1px);

}

#form-message {

    margin-bottom:20px;

    font-weight:600;

}

.required-fields-note {

    font-size: .9rem;

    color: var(--text);

}

.required-marker {

    color: #B42318;

    font-weight: 700;

}


.success {

    color:green;

}

.hidden {
    display: none;
}

.success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#contact-success {
    text-align: center;
    padding: 2rem;
}

#contact-success h2 {
    margin-bottom: 1rem;
}

#contact-success p {
    margin-bottom: 1rem;
}

/* ---------- Available Space ---------- */

.listings-container {

    width: min(1200px, 90%);

    margin: 60px auto;

    display: grid;

    gap: 40px;

}

.listing-card {

    display: grid;

    grid-template-columns: 350px 1fr;

    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,.12);

}

.listing-image {

    min-height: 320px;

    background-size: cover;

    background-position: center;

}

.listing-info {

    padding: 30px;

}

.listing-info h2 {

    color: var(--primary);

    margin-bottom: .25rem;

}

.listing-info h3 {

    margin-bottom: 1.25rem;

    font-weight: 500;

}

.listing-info p {

    margin-bottom: .9rem;

    line-height: 1.6;

}

.listing-button {

    margin-top: 1.5rem;

    padding: 14px 22px;

    border: none;

    border-radius: 6px;

    background: var(--primary);

    color: white;

    font-size: 1rem;

    cursor: pointer;

    transition: opacity .2s;

}

.listing-button:hover {

    opacity: .9;

}

@media (max-width:768px) {

    .listing-card {

        grid-template-columns: 1fr;

    }

    .listing-image {

        min-height: 220px;

    }

}

.listing-gallery {

    position: relative;

    overflow: hidden;

}

.listing-image {

    width: 100%;

    height: 320px;

    object-fit: cover;

    display: block;

}

.gallery-button {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,.55);

    color: white;

    cursor: pointer;

    font-size: 1.2rem;

    transition: background .2s;

}

.gallery-button:hover {

    background: rgba(0,0,0,.75);

}

.gallery-prev {

    left: 12px;

}

.gallery-next {

    right: 12px;

}
