/* assets/css/style.css */

/* Google Fonts - Inter (for general text) and Playfair Display (for headings) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Color Palette inspired by African Nature */
:root {
    --color-primary: #8B4513; /* SaddleBrown - Deep earthy brown */
    --color-secondary: #FFD700; /* Gold - Accent for luxury */
    --color-tertiary: #228B22; /* ForestGreen - Rich green highlights */
    --color-light: #F8F4E3; /* Off-white / Cream - Warm background */
    --color-dark: #362A1F; /* Dark Coffee - Rich dark text/elements */
    --color-gray: #A0988A; /* Muted Gray - Subtler text/borders */
    --color-success: #28a745; /* Green for success messages */
    --color-error: #dc3545;   /* Red for error messages */

    /* New colors for Farmhouse subtle differentiation */
    --color-farmhouse-accent: #6B8E23; /* OliveDrab - A earthy green for farmhouse */
    --color-farmhouse-bg: #E6EAD0; /* Light greenish-cream */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Page Load Animation Styles removed (as per previous request) */


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--color-secondary);
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-secondary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* Utility Classes for Spacing & Alignment */
.section-padding {
    padding: 6rem 0; /* Consistent vertical padding for sections */
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-dark { color: var(--color-dark) !important; }
.bg-light { background-color: var(--color-light) !important; }
.bg-dark { background-color: var(--color-dark) !important; }

/* Floating Logo Styles */
#floating-logo-container {
    position: fixed; /* Fixed position relative to viewport */
    top: 0; /* Align to the very top */
    left: 20px; /* Aligned to the left */
    /* transform: translateX(-50%); Removed for left alignment */
    z-index: 1002; /* Ensure it's above the navbar (z-index 1000) */
    padding-top: 10px; /* Small padding from the very top */
    pointer-events: none; /* Allow clicks to pass through to elements below */
}

#floating-logo-container img {
    height: 120px; /* Adjust size as desired for floating effect */
    width: auto;
    display: block; /* Remove extra space below image */
    pointer-events: auto; /* Make the image itself clickable */
    transition: height 0.3s ease-in-out; /* Smooth transition for size change on scroll */
}

/* Responsive adjustment for floating logo on smaller screens */
@media (max-width: 768px) {
    #floating-logo-container img {
        height: 90px; /* Smaller logo on mobile */
    }
}

/* Sticky Navigation Bar */
.navbar-custom {
    background-color: transparent; /* Transparent initially */
    padding: 0.5rem 0; /* Reduced padding to make header container shorter */
    transition: background-color 0.3s ease-in-out;
    position: fixed; /* Ensure it stays fixed */
    width: 100%; /* Ensure it spans full width */
    z-index: 1000; /* Ensure it's above most content, but below floating logo */
}

.navbar-custom.scrolled {
    background-color: #6d6864; /* Solid color when scrolled */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Add a subtle shadow */
}

.navbar-brand {
    /* This is now an empty link, but keep styles for potential future use or if text is added */
    font-family: var(--font-heading);
    color: var(--color-secondary) !important;
    font-size: 2rem;
    font-weight: 600;
}

/* Remove image specific styles from navbar-brand img if they were there */
.navbar-brand img {
    /* No specific styles needed here as logo is now floating */
}


.navbar-nav .nav-link {
    color: var(--color-light) !important; /* Default white/light */
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-secondary) !important; /* Yellow on hover/active */
}

/* Dropdown specific styles */
.navbar-nav .dropdown-menu {
    background-color: rgba(54, 42, 31, 0.9); /* Slightly opaque dark background for readability */
    border: none;
    border-radius: 5px;
}

.navbar-nav .dropdown-item {
    color: var(--color-light) !important; /* Keep light for dropdown items on dark background */
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
    background-color: var(--color-primary);
    color: var(--color-secondary) !important;
}

/* Adjust the main content to start below the fixed header and large logo */
main {
    padding-top: 120px; /* Adjusted to clear the fixed floating logo and navbar */
    /* This will push all content down to prevent it from being hidden by the fixed header and large logo */
}


/* Hero Section Styles (Home Page) */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Carousel controls (for hero slider) */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--color-light);
    opacity: 0.8;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

/* Card/Grid Layouts (Rooms, Facilities, Gallery) */
.card-custom {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #fff;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-custom img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-custom:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.card-body-custom {
    padding: 1.5rem;
}

.card-body-custom h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-body-custom ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.card-body-custom ul li {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.card-body-custom ul li i {
    color: var(--color-tertiary);
    margin-right: 8px;
}

/* Gallery Specific Styles */
.gallery-grid img {
    cursor: pointer;
    border-radius: 8px;
    object-fit: cover;
}

.gallery-grid .col-md-4 {
    margin-bottom: 30px;
}

/* Gallery Filter Buttons */
.gallery-filters .btn {
    margin: 5px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}

.gallery-filters .btn.active,
.gallery-filters .btn:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* Lightbox Modal (JavaScript will handle display) */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* Above Bootstrap modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Forms */
.form-control-custom {
    border-radius: 5px;
    border: 1px solid var(--color-gray);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    font-family: var(--font-body);
}

.form-control-custom:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25); /* Using RGB for primary */
}

.form-label {
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

footer h5 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: var(--color-light);
}

footer ul li a:hover {
    color: var(--color-secondary);
}

.social-icons a {
    color: var(--color-light);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--color-secondary);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-gray);
}


/* --- Property Specific Styles --- */
/* For Properties Overview Page and Farmhouse content */
.property-card {
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #fff;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.property-card .card-img-top {
    height: 300px;
    object-fit: cover;
}

.property-card .card-body {
    padding: 2rem;
    flex-grow: 1; /* Make body fill available available space */
    display: flex;
    flex-direction: column;
}

.property-card h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.property-card p {
    flex-grow: 1; /* Push button to bottom */
}

/* Farmhouse Specific Accents */
.farmhouse-bg {
    background-color: var(--color-farmhouse-bg) !important;
}
.farmhouse-accent-text {
    color: var(--color-farmhouse-accent) !important;
}
.farmhouse-accent-border {
    border-color: var(--color-farmhouse-accent) !important;
}

/* Bootstrap Tabs Customization */
.nav-pills .nav-link {
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    margin: 0 5px;
    border-radius: 20px;
    padding: 8px 25px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-content {
    margin-top: 30px;
}

/* --- Tree Timeline Specific Styles --- */
.timeline-tree-design .timeline {
    position: relative;
    padding: 20px 0;
    padding-top: 50px; /* Space for the top of the tree */
    padding-bottom: 50px; /* Space for the bottom of the tree */
}

.timeline-tree-design .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 10px; /* Thicker trunk */
    background-color: var(--color-primary); /* Earthy brown for trunk */
    transform: translateX(-50%);
    border-radius: 5px; /* Rounded trunk */
    z-index: 0; /* Keep behind content */
}

/* Branch effect for left items */
.timeline-tree-design .timeline-item.left {
    padding-right: 60px; /* More space for branch */
}
.timeline-tree-design .timeline-item.left::before { /* This will be the branch */
    content: '';
    position: absolute;
    top: 50%;
    right: -50px; /* Extend from the right of the item towards the center */
    width: 40px; /* Length of the branch */
    height: 6px; /* Thickness of the branch */
    background-color: var(--color-tertiary); /* Green for branches */
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 1;
}
.timeline-tree-design .timeline-item.left::after { /* This will be the connection point/leaf */
    content: '';
    position: absolute;
    top: 50%;
    right: -60px; /* Position at the end of the branch */
    width: 20px;
    height: 20px;
    background-color: var(--color-secondary); /* Gold for emphasis */
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* Branch effect for right items */
.timeline-tree-design .timeline-item.right {
    padding-left: 60px; /* More space for branch */
}
.timeline-tree-design .timeline-item.right::before { /* This will be the branch */
    content: '';
    position: absolute;
    top: 50%;
    left: -50px; /* Extend from the left of the item towards the center */
    width: 40px; /* Length of the branch */
    height: 6px; /* Thickness of the branch */
    background-color: var(--color-tertiary); /* Green for branches */
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 1;
}
.timeline-tree-design .timeline-item.right::after { /* This will be the connection point/leaf */
    content: '';
    position: absolute;
    top: 50%;
    left: -60px; /* Position at the end of the branch */
    width: 20px;
    height: 20px;
    background-color: var(--color-secondary); /* Gold for emphasis */
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* Ensure timeline content is above branches */
.timeline-tree-design .timeline-content {
    position: relative;
    z-index: 3; /* Ensure content is on top */
}

.map-container {
    overflow: hidden;
    position: relative;
    height: 450px; /* Ensure a fixed height or set dynamically */
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3.8rem; }
    .hero-content p { font-size: 1.3rem; }
    .property-card h2 { font-size: 2rem; }
}

@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.7rem; }

    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; }

    .navbar-nav .nav-link {
        margin: 10px 0;
        text-align: center;
    }
    .navbar-nav .dropdown-menu {
        text-align: center;
    }
    .property-card h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero-content .btn-primary, .hero-content .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .card-custom img {
        height: 200px;
    }
    .card-body-custom h3 {
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    /* Responsive adjustments for tree timeline */
    .timeline-tree-design .timeline::before {
        left: 20px; /* Trunk moves to left */
        transform: translateX(0);
    }

    .timeline-tree-design .timeline-item {
        width: 100% !important;
        padding-left: 60px !important; /* All items on left */
        padding-right: 20px !important;
        text-align: left !important;
    }

    .timeline-tree-design .timeline-item.left::before,
    .timeline-tree-design .timeline-item.right::before {
        left: 20px; /* Branches originate from the new trunk position */
        right: auto;
        width: 40px; /* Keep branch length */
        transform: translateY(-50%);
    }

    .timeline-tree-design .timeline-item.left::after,
    .timeline-tree-design .timeline-item.right::after {
        left: 50px; /* Connection point at the end of the branch */
        right: auto;
        transform: translateY(-50%);
    }

    .property-card h2 { font-size: 1.6rem; }
    .property-card .card-img-top { height: 250px; }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.9rem; }

    .social-icons a {
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .nav-pills .nav-link {
        margin: 5px 0; /* Stack tabs on mobile screens */
        width: 100%;
    }
    .property-card h2 { font-size: 1.4rem; }
    .property-card .card-img-top { height: 200px; }
}
