/*
 * Main CSS file for Deer Creek Rentals Inc website
 * This file contains all the custom styles for the website
 */

/*
 * Global Styles
 * Defines color variables and basic body styling
 */
:root {
    --primary-color: #006400; /* Dark Green - Used for primary elements like navbar, footer, buttons */
    --secondary-color: #006400; /* Dark Green - Used for accents, links, and highlights */
    --accent-color: #e74c3c; /* Red - Used for attention-grabbing elements */
    --light-color: #ecf0f1; /* Light Gray - Used for light backgrounds and text on dark backgrounds */
    --dark-color: #2c3e50; /* Dark Blue/Slate - Used for text and dark elements */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
}

/*
 * Navbar Styles
 * Styling for the top navigation bar
 */
.navbar {
    background-color: rgba(0, 100, 0, 0.9); /* Semi-transparent dark green */
    padding: 1rem 2rem;
}

.navbar-brand img {
    height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-color);
    font-weight: 500;
    margin: 0 10px;
    opacity: 1;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/*
 * Hero Section Styles
 * Styling for the large banner at the top of the homepage
 */
.hero {
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/*
 * Section Styles
 * Common styling for content sections
 */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/*
 * Team Section Styles
 * Styling for the team members display
 */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--secondary-color);
}

/*
 * Property Cards Styles
 * Styling for property listing cards
 */
.property-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-img {
    height: 200px;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.1);
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-info .features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.property-info .btn {
    margin-right: 0.5rem;
}

/*
 * Property Detail Styles
 * Styling for the property detail page
 */
#propertyCarousel .carousel-item img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-title.text-primary small {
    font-size: 0.6em;
    opacity: 0.8;
}

/* Back to properties button styling */
.py-5.bg-light .btn-outline-primary {
    padding: 10px 20px;
    font-weight: 500;
    min-width: 200px;
}

/*
 * Contact Form Styles
 * Styling for the contact form and contact information
 */
.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form .form-control {
    margin-bottom: 1.5rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

/*
 * Footer Styles
 * Styling for the page footer
 */
footer {
    background-color: rgba(0, 100, 0, 0.9); /* Semi-transparent dark green */
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

footer, footer p, footer li, footer a {
    opacity: 1;
}

footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--light-color);
    text-decoration: none;
}

footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/*
 * Bootstrap Overrides
 * Custom styling for Bootstrap components
 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/*
 * Back to Top Button Styles
 * Styling for the back to top button that appears when scrolling
 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white !important;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-to-top i {
    color: white !important;
    line-height: 50px;
    font-size: 20px;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-3px);
}

/*
 * Responsive Styles
 * Media queries for responsive design
 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Center headings on xs, sm, and md devices */
    .col-lg-6 h3,
    .col-lg-6 h4,
    .contact-form h3,
    .contact-info h3,
    .contact-info h4,
    .col-lg-8 h3,
    .card-title {
        text-align: center;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Add some spacing between sections on smaller screens */
    .col-lg-6,
    .col-lg-8,
    .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    /* Center property features on smaller screens */
    @media (max-width: 767px) {
        .d-flex.align-items-center {
            justify-content: center;
        }
    }
}

/*
 * Rental Application Form Styles
 * Styling for the rental application form page
 */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.required-field::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
}

.alert {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/*
 * Lightbox Gallery Styles
 * Custom styles for the lightbox image gallery
 * These styles override the default lightbox.css to make navigation arrows always visible
 * and improve the user experience when viewing property images
 */
/* Gallery container and layout */
.gallery-container {
    padding: 2rem 0;
}

.gallery-title {
    margin-bottom: 2rem;
}

.gallery-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0; /* Non-rounded corners as per requirements */
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Pagination styles */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

/* Lightbox custom styles */
.lightbox .lb-image {
    border-radius: 0 !important; /* Override lightbox rounded corners */
}

/* Make navigation arrows visible */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.7 !important; /* Make arrows visible by default instead of hidden */
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1 !important; /* Increase opacity on hover for better visibility */
}

/* Responsive adjustments for gallery */
@media (max-width: 767.98px) {
    .gallery-item img {
        height: 200px;
    }
}
