/* --- VARIABLES --- */
:root {
    --primary-color: #1d3b56; 
    --accent-color: #3f72a4;  
    --text-light: #ffffff;
    --text-dark: #334155;
    --bg-light: #ffffff;      
    --bg-off-white: #f1f5f9;
}

/* --- GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    /* Removed the dangerous overflow rule here */
}

/* --- NAVIGATION --- */
.navbar {
    background-color: var(--bg-light);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(14, 43, 75, 0.1); 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 90px; 
    width: auto;  
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ACTIVE LINK STATE --- */
.nav-links a.active {
    color: var(--accent-color); 
    border-bottom: 3px solid var(--accent-color); 
    padding-bottom: 5px; 
}

.btn-highlight {
    background-color: var(--accent-color);
    color: var(--text-light) !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-highlight:hover {
    background-color: var(--primary-color);
}

/* --- CAROUSEL / HERO --- */
.carousel-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    height: 85vh; 
    background-color: #000; 
    overflow: hidden;
}

.mySlides {
    display: none;
    height: 100%;
}

.mySlides img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.8; 
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    width: 80%;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-overlay p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--accent-color);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--primary-color);
}

/* --- SECTIONS & GRIDS --- */
section {
    padding: 5rem 0;
}

.amenities, .details {
    background-color: var(--bg-off-white);
    text-align: center;
}

.amenities h2, .details h2, .contact-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    flex: 1 1 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-top: 4px solid var(--accent-color); 
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- CONTACT FORM --- */
.contact-section {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact-section h2 {
    color: var(--text-light);
}

.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form input {
    padding: 15px;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 10px;
}

/* --- SUB-PAGE HERO HEADERS --- */
.static-hero {
    height: 60vh; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.static-hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(14, 43, 75, 0.4); 
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.5rem;
}

/* --- LODGE PAGE SPECIFIC STYLES --- */
.grid-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 4rem 0;
    text-align: left;
}

.grid-row.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.image-content {
    flex: 1;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 600;
    color: var(--primary-color);
}

.feature-list li::before {
    content: "•";
    color: var(--accent-color); 
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1rem;
}

.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 3rem 0;
}

/* --- FLOOR PLAN SECTION STYLES --- */
.floorplans-section {
    background-color: var(--bg-light); 
    text-align: center;
}

.floorplans-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.floorplan-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    flex: 1 1 400px; 
    max-width: 550px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.floorplan-card:hover {
    transform: translateY(-5px); 
}

.fp-image-container {
    height: 250px;
    background-color: #f8fafc;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.fp-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.status-badge.available {
    background-color: #10b981; 
}

.status-badge.pending {
    background-color: #f59e0b; 
}

.fp-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fp-details h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.specs {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.floorplan-card hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-text {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #0a1f38; 
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* --- INQUIRY SECTION --- */
.inquiry-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0;
}

.inquiry-section h2 {
    color: var(--text-light); 
    margin-bottom: 1rem;
}

.inquiry-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1; 
}

.inquiry-section .btn {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--bg-light);
}

.inquiry-section .btn:hover {
    background-color: transparent;
    color: var(--bg-light);
    border: 2px solid var(--bg-light);
}

/* --- MINI CARD CAROUSEL --- */
.mini-carousel-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    height: 450px; 
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.miniSlides {
    display: none;
    height: 100%;
}

.miniSlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.prev-mini, .next-mini {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 12px; 
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next-mini {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-mini:hover, .next-mini:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- MOBILE TWEAKS (Clean Version) --- */
@media (max-width: 768px) {
    /* Stack the navbar nicely */
    .navbar .container {
        flex-direction: column;
        height: auto;
    }
    
    .logo {
        height: 60px; /* Smaller logo */
        margin-bottom: 10px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin-top: 10px;
    }

    /* Prevent overflow issues */
    .hero h1, .static-hero h1 { font-size: 2rem; }
    .carousel-container { height: 60vh; }
    
    /* Stack grid items */
    .grid-row, .grid-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .mini-carousel-container { height: 300px; }
}

/* --- FOOTER RETURN LINK --- */
.footer-return {
    margin-top: 15px; /* Spacing between copyright and link */
}

.footer-return a {
    color: #F26522; /* The Kaart.com Orange */
    text-decoration: none;
    font-weight: 700; /* Made slightly bolder to pop against the navy */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-return a:hover {
    color: #ffffff; /* Turns white when you hover over it */
    text-decoration: underline;
}