/* GOOGLE FONT & RESET */
@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL SAFETY RESET */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Make the page a flex container that fills the viewport */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Main content should grow to fill available space */
main {
    flex: 1 0 auto; /* allows main to expand and push footer down */
}

/* Footer stays at the bottom */
footer {
    flex-shrink: 0; /* prevent footer from shrinking */
}


main {
    margin-left: 260px;
}

.main-wrapper,
.main-wrapper-about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 32px;
}

body {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #FFFFFF;
}

.index-section{
    gap: 32px;
    align-items: start;
    padding: 32px;
    margin: 40px 0;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
}


/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    background-color: #235668;
    padding-top: 40px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

nav a,
nav .dropbtn {
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    width: 100%;
    display: block;
    border-radius: 5px;
}

nav a:hover,
nav .dropbtn:hover {
    background-color: #2596be;
}

/* Dropdown */
.dropdown {
    width: 100%;
    position: relative;
}

.dropdown-content {
    display: none;
    position: relative;
    background-color: #2596be;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 5px;
    margin-left: 10px;
}

.dropdown-content a {
    color: #FFFFFF;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    font-weight: 400;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: #FFFFFF;
    color: #235668;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn::after {
    content: " ▼";
    font-size: 0.6em;
    margin-left: 5px;
}

/* MAIN */
main {
    margin-left: 220px;
    padding: 60px 40px;
    background-color: transparent;
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: #235668;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
}

.main-wrapper section {
    margin-bottom: 60px;
}

/* Headings */
.main-wrapper h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
.main-wrapper h2 { font-size: 2rem; font-weight: 600; margin-bottom: 20px; color: #ffffff; }
.main-wrapper h3 { font-size: 1.5rem; font-weight: 600; margin: 15px 0 5px 0; }
.main-wrapper h4 { font-size: 1.1rem; font-weight: 600; margin: 10px 0 5px 0; }

/* Paragraphs & lists */
.main-wrapper p { font-size: 0.95rem; line-height: 1.35; margin: 5px 0 10px 0; }
.main-wrapper ul { font-size: 0.9rem; margin: 5px 0 10px 0; list-style: none; padding-left: 0; }
.main-wrapper ul li { position: relative; padding-left: 10px; margin-bottom: 10px; }
.main-wrapper ul li::before { content: "•"; color: #2596be; position: absolute; left: 0; }

/* Slideshow */
.slideshow {
    position: relative;
    max-width: 100%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
}

.slides-track { display: flex; transition: transform 0.6s ease-in-out; }
.slides-track img { width: 100%; flex-shrink: 0; border-radius: 12px; }

.slideshow button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #FFF;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow:hover button { opacity: 1; }
.slideshow:hover { transform: translateY(-6px); box-shadow: 0 14px 35px rgba(0,0,0,0.25); }

.prev { left: 15px; }
.next { right: 15px; }

/* Footer */
footer {
    background-color: #235668;
    color: #FFF;
    text-align: center;
    padding: 30px 0;
    font-weight: 600;
}

/* INDEX PAGE */
body.index-page .main-wrapper { text-align: center; }
body.index-page .main-wrapper p,
body.index-page .main-wrapper h1,
body.index-page .main-wrapper h2,
body.index-page .main-wrapper h3,
body.index-page .main-wrapper h4 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
body{
    border-top:5px #2d6a91;
    border-right:5px #2d6a91;
}

body.index-page .main-wrapper ul {
    display: inline-block;
    text-align: left;
    padding-left: 20px;
    margin: 0 auto 15px auto;
}

body.index-page .main-wrapper ul li { text-align: left; }

/* HOMES PAGE */
.home-wrapper {
    display: flex;
    gap: 30px;
    padding: 25px;
    background-color: #2d6a91;
    border-radius: 12px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.home-slideshow { flex: 1; }
.home-info { flex: 1; color: #FFFFFF; text-align: left; }

.home-info h3 { font-size: 1.25rem; margin: 10px 0 5px 0; }
.home-info p { font-size: 0.95rem; line-height: 1.35; margin-bottom: 10px; }
.home-info h4 { font-size: 1.1rem; margin: 10px 0 5px 0; }

.home-info ul { font-size: 0.9rem; margin: 5px 0 10px 0; list-style: none; padding-left: 0; }
.home-info ul li { position: relative; padding-left: 12px; margin-bottom: 8px; }
.home-info ul li::before { content: "•"; color: #2596be; position: absolute; left: 0; }

.home-slideshow img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; }

/* HOMES PAGE - SLIDES LEFT, TEXT RIGHT */
.home-wrapper { display: flex; gap: 30px; padding: 25px; background-color: #2d6a91; border-radius: 12px; align-items: flex-start; margin-bottom: 40px; }
.home-slideshow { flex: 1; }
.home-info { flex: 1; color: #FFFFFF; text-align: left; }
.home-info h3 { font-size: 1.25rem; margin: 10px 0 5px 0; }
.home-info p { font-size: 0.95rem; line-height: 1.35; margin-bottom: 10px; }
.home-info h4 { font-size: 1.1rem; margin: 10px 0 5px 0; }
.home-info ul { font-size: 0.9rem; margin: 5px 0 10px 0; list-style: none; padding-left: 0; }
.home-info ul li { position: relative; padding-left: 12px; margin-bottom: 8px; }
.home-info ul li::before { content: "•"; color: #2596be; position: absolute; left: 0; }
.home-slideshow img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; }

/* Add a small vertical line between slide and text */
.home-info { flex: 1; color: #FFFFFF; text-align: left; padding-left: 20px; border-left: 2px solid #FFFFFF; }

/* Speak with Agent Button */
.home-slideshow .agent-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2596be;
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-slideshow .agent-btn:hover {
    background-color: #1d7a9d;
    transform: translateY(-2px);
}

/* MAIN WRAPPERS */
.main-wrapper,
.main-wrapper-about {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ABOUT PAGE */
.align-center-section {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
}

.align-center-section h1,
.align-center-section p { text-align: center; }

.agent {
    display: grid;
    grid-template-columns: 180px 240px 1fr;
    gap: 32px;
    align-items: start;
    padding: 32px;
    margin: 40px 0;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
}

.agent img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.agent-meta { display: flex; flex-direction: column; gap: 8px; }

.agent-bio {
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.25);
    line-height: 1.6;
}

/* MOBILE: stack cards and remove left-border */
@media (max-width: 1024px) {
    .agent {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .agent img { margin: 0 auto; }
    .agent-meta {
        margin-top: 12px;
        align-items: center;
    }
    .agent-bio {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.25);
        margin-top: 16px;
        padding-top: 12px;
        text-align: left;
    }
}

@media (max-width: 1024px){
    main{ padding: 0px 0px; }
    .main-wrapper{
        padding-top:30px;
    }
}

/* SLIDESHOW BUTTON ADJUSTMENT */
.agent-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2596be;
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.agent-btn:hover { background-color: #1d7a9d; }

@media (max-width: 1024px) {
    main { margin-left: 0; }
    .agent {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .agent-bio {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.25);
        margin-top: 20px;
        padding-top: 16px;
        text-align: left;
    }
}

@media (max-width: 1024px) {
    header {
        background: rgba(20, 60, 75, 0.85);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    main,body {
        border-radius:none !important;
    }
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 3000;
    background: transparent;
}

/* HAMBURGER */
.nav-toggle {
    width: 50px;
    height: 50px;
    background: rgba(30,136,229,0.9);
    color: white;
    font-size: 1.8rem;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3500;
}

/* NAV MENU */
.main-nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(44,94,79,0.95);
    background-color:#235668;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    gap: 14px;
    transition: left 0.35s ease;
    z-index: 3200;
}

.main-nav.show { left: 0; }

.main-nav a { color: white; font-size: 1.1rem; text-decoration: none; }

/* OVERLAY */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3100;
}

.nav-overlay.show { opacity: 1; pointer-events: all; }

/* DESKTOP: Sidebar nav */
@media (min-width: 1024px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        padding: 80px 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: none;
        z-index: 1000;
        background: #235668;
    }

    main { margin-left: 260px; }

    .nav-toggle,
    .nav-overlay { display: none; }

    header {
        background: #235668;
        position: relative;
        height: auto;
        top: auto;
        left: auto;
        width: auto;
        padding: 0;
        box-shadow: none;
    }
}


/* Shared style (same border look) */
#form input[type="text"],
#form input[type="email"],
#form select,
#form textarea {
    padding: 8px;
    border-radius: 6px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

/* Regular inputs width */
#form input[type="text"],
#form input[type="email"],
#form select {
    width: 260px;
}

/* Textarea keeps its own size */
#form textarea {
    width: 315px;      /* starting size */
    min-width: 315px;
    max-width: 500px;  /* max size */
    min-height: 120px;
    max-height: 300px;
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
}



.auto-grow {
    width: 260px;
    min-width: 260px;
    max-width: 400px;
    transition: width 0.15s ease;
}

/* FORM BUTTONS */
#form input[type="submit"],
#form input[type="reset"] {
    padding: 10px 18px;      /* slightly bigger = easier to see */
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
#form input[type="submit"] {
    background-color: #2596be;
    color: white;
}

#form input[type="reset"] {
    background-color: #2c5e4f;
    color: white;
}
#form input[type="submit"]:hover,
#form input[type="reset"]:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
#form input[type="submit"] {
    padding: 12px 24px;
    font-weight: 600;
}
#form input[type="text"],
#form input[type="email"],
#form select,
#form textarea {
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

#form input[type="text"]:focus,
#form input[type="email"]:focus,
#form select:focus,
#form textarea:focus {
    transform: translateY(-1px);
}

#form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: none; /* hide by default */
}

#form-message.success {
    background-color: #2596be;
    color: white;
}

#form-message.error {
    background-color: #e74c3c;
    color: white;
}
#submit-another {
    display: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background-color: #2596be;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

#submit-another:hover {
    background-color: #1d7a9d;
}
input[type="file"] {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 115px;
    background: white;
}


.buy-form-section {
    max-width: 600px;
    margin: 0 auto;
}

.buy-form-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.buy-form-section label {
    font-weight: 600;
}

.buy-form-section input,
.buy-form-section select,
.buy-form-section textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

#submitBtn {
    padding: 12px;
    background-color: #1e3a5f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

#submitBtn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

#submitBtn:hover:not(:disabled) {
    background-color: #16304d;
}

/* Success / Error Message Animation */
#form-message {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    display: none;
    margin-top: 15px;
    font-weight: 600;
}

#form-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#form-message.success {
    color: #ffffff;
}

#form-message.error {
    color: #ffffff;
}
.required-note {
    font-size: 14px;
    margin-bottom: 10px;
}

.required-star {
    color: red;
    font-weight: bold;
}
/* more_house_-.php styling */
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 60px;
}
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 60px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.property-map {
    border: 2px solid #e0e0e0;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}
.property-map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}
.property-right {
    display: flex;
    flex-direction: column;
    gap: 15px;

    border-left: 2px solid #e0e0e0;
    padding-left: 30px;
}

@media (max-width: 1026px) {
    .property-layout {
        grid-template-columns: 1fr;
    }

    .property-right {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #e0e0e0;
        padding-top: 20px;
    }
}
.card {
    border: 2px solid #e0e0e0;
    background: #2d6a91;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 60px;
}

.property-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.photo-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-grid img {
    border: 2px solid #e0e0e0;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.map-card iframe {
    border-left: 2px solid #e0e0e0;
    border-radius: 12px;
}
.agent-btn,
.buy-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.agent-btn {
    background-color: #0d6efd;
    color: white;
}

@media (max-width: 900px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
}
/* homes page phone view */

@media (max-width: 900px) {

    .home-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

}
@media (max-width: 900px) {

    .slideshow .prev,
    .slideshow .next {
        opacity: 1;
        display: block;
    }

}
.slideshow button {
    opacity: 0;
}
@media (max-width: 900px) {

    .home-slideshow .agent-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

}
@media (max-width: 900px) {

    .home-info {
        border-top: 2px solid #e0e0e0;
        padding-top: 20px;
        margin-top: 10px;
        border-left:none;
    }

}
@media (max-width: 900px) {

    .slideshow {
        width: 100%;
    }

    .slides-track img {
        width: 100%;
        height: auto;
    }

}


/* other */

nav img {
    border-radius: 16px;
}
#logo,
#logo:hover,
#logo:focus,
#logo:active {
    background: none !important;
    color: inherit !important;
    text-decoration: none !important;
}
/* Make nav layout horizontal */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Important: make dropdown parent relative */
.dropdown {
    position: relative;
}

/* Make dropdown float */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;

    display: none;
    flex-direction: column;

    min-width: 200px;
    padding: 10px 0;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Show on hover */
.dropdown:hover .dropdown-content {
    display: flex;
}








/*other*/

/* BUTTON GROUP */
.btn-group {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ACCEPT BUTTON */
#accept-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#accept-btn:hover {
  transform: scale(1.05);
}

/* DECLINE BUTTON */
#decline-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#decline-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
#privacy {
    background-color:black;
}
/* BACKGROUND OVERLAY */
#privacy-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.4);

  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  transition: opacity 0.4s ease;
}

/* SHOW ANIMATION */
#privacy-popup.show {
  display: flex;
  opacity: 1;
}

/* POPUP BOX */
.privacy-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;

  padding: 25px;
  text-align: center;

  color: white;
  max-width: 400px;
  width: 90%;

  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* TEXT */
.privacy-box h2 {
  margin-bottom: 10px;
}

.privacy-box p {
  font-size: 14px;
  opacity: 0.9;
}

/* BUTTON */
.privacy-box button {
  margin-top: 15px;
  padding: 10px 20px;

  border: none;
  border-radius: 8px;

  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;

  cursor: pointer;
  transition: 0.3s;
}

.privacy-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.7);
}
/* PAGE FADE */
body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}