/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fbfd;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: #1a252f;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h2 {
    font-weight: 600;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* ==========================================================================
   3. HOMEPAGE SLIDESHOW
   ========================================================================== */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    height: 70vh;
    overflow: hidden;
    background-color: #000;
}

.mySlides {
    display: none;
    height: 100%;
    position: relative;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.slide-text {
    position: absolute;
    bottom: 25%;
    left: 5%;
    color: #ffffff;
    max-width: 600px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.slide-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-text p {
    font-size: 1.2rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.intro-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* ==========================================================================
   4. AVAILABLE SPACES PAGE (GRID & CARDS)
   ========================================================================== */
.page-title {
    text-align: center;
    padding: 60px 20px 20px 20px;
    background-color: #f0f4f8;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #1a252f;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 1.1rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: stretch; /* Explicitly forces every card in a row to match the tallest one */
}

.property-card {
background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e8ed;
    height: 100%; /* Forces all cards in the row to stretch to the exact same height */
   }

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #2ecc71;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.property-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the detail box to expand evenly */
    justify-content: space-between; /* Pushes the button container strictly to the bottom */
}

.property-details h3 {
    color: #1a252f;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.property-details .location {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.property-details .specs {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.property-details .description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-buttons {
   display: flex;
    gap: 10px;
    margin-top: auto; /* Acts like an invisible spring pushing the buttons to the absolute bottom */
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    flex: 1;
    transition: background 0.2s ease;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #f0f4f8;
    color: #1a252f;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    background-color: #1a252f;
    color: #7f8c8d;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
}