.slide.fade-out {
    opacity: 0;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 3s ease-in-out;
    display: block;
}
.slide.fade-out img {
    opacity: 0;
    transition: opacity 3s ease-in-out, transform 3.25s cubic-bezier(0.4,0,0.2,1);
}
.slide.active.zoom img {
    transform: scale(1.08);
    object-fit: contain;
    animation: zoomIn 2.5s cubic-bezier(0.4,0,0.2,1) 0.1s;
}
.slide img {
    animation: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 3s ease-in-out, transform 3.25s cubic-bezier(0.4,0,0.2,1);
}
.slide img.fade {
    opacity: 0;
    transition: opacity 3s ease-in-out, transform 3.25s cubic-bezier(0.4,0,0.2,1);
}
.slide.active img.fade {
    opacity: 1;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}
:root {
  --primary-color: #006994;    /* Deep ocean blue */
  --secondary-color: #4FB6E7;  /* Pool blue */
  --accent-color: #FF934F;     /* Warm sunset */
  --text-light: #FFFFFF;
  --text-dark: #2C3E50;
  --bg-light: #F8F9FA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.navbar {
    background: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  margin-left: 2rem;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('../images/Pool 3664.JPG') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
}

.btn:hover {
  background: #e67e3d;
}

.about-section {
    padding: 6rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.properties-section {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.properties-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.location {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.location a {
    color: var(--primary-color);
    text-decoration: none;
}

.location a:hover {
    color: var(--accent-color);
}

.property-detail {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.property-image-container {
    margin: 2rem 0;
}

.featured-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.property-description {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 2rem;
}

.property-description h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.services-section {
    padding: 6rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.services-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.service-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.feature h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-cta {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 2rem;
}

.service-cta p {
    margin-bottom: 1rem;
}

.properties-grid {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.properties-grid h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.property-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.property-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-card h3 {
    padding: 1rem;
    margin: 0;
    color: var(--primary-color);
    text-align: center;
}

.property-card a {
    text-decoration: none;
}

.slideshow-section {
    padding: 6rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow-section h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.slideshow-container {
    position: relative;
    margin: auto;
    max-width: 800px;  /* Added max-width to constrain size */
}

.slides {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
}

.prev { left: 0; }
.next { right: 0; }

.slideshow-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slideshow-dots {
    text-align: center;
    margin: 1rem 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

.featured-property {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
}

.property-card.large img {
    height: 400px;
}

.feature-text {
    padding: 2rem;
}

.feature-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.2rem;
    color: var(--text-dark);
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    z-index: 1;
    pointer-events: none;
    display: block;
}
.slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 3s ease-in-out;
    display: block;
}
.slide.fade-out {
    opacity: 0;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 3s ease-in-out;
    display: block;
}
.slide.fade-out img {
    opacity: 0;
    transition: opacity 3s ease-in-out, transform 3.25s cubic-bezier(0.4,0,0.2,1);
}
.slide.active img {
    display: block;
    transform: scale(1);
    object-fit: contain;
}
.slide.active.zoom img {
    transform: scale(1.08);
    object-fit: contain;
    animation: zoomIn 2.5s cubic-bezier(0.4,0,0.2,1) 0.1s;
}
.slides, .slide {
    overflow: hidden;
}

.caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
}
