/* General Body and Typography */
body {
    font-family: 'Inter', sans-serif; /* Use Inter font if available, fallback to sans-serif */
    color: #343a40; /* Default dark grey text color */
    background-color: #f8f9fa; /* Light background for the page */
}

h1, h2, h3, h4, h5, h6 {
    color: #0d6efd; /* Primary blue for headings (Bootstrap primary color) */
    font-weight: 700;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(to right, #e0f7fa, #ffffff) !important; /* Light cyan to white gradient */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Slightly more prominent separator */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
}

/* Navbar Brand (Your Logo/Site Name) */
.navbar-brand {
    color: #007bff !important; /* Stronger blue for brand */
}

/* Ensure navigation links are visible on a light background */
.navbar-light .navbar-nav .nav-link {
    color: #0056b3; /* Darker blue for links for better visibility */
    font-weight: 600; /* Slightly bolder */
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    border-radius: 0.3rem; /* Slight rounding on hover */
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #007bff; /* Primary blue on hover/active */
    background-color: rgba(0, 123, 255, 0.1); /* Very light blue background on hover/active */
}

/* Specific styling for the Call to Action button in navbar (Login/Dashboard) */
.navbar-nav .btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 600; /* Bolder button text */
    /* Ensure primary/outline-primary colors are consistent from Bootstrap */
}

/* Dropdown Menu Styling */
.navbar-nav .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1); /* Add a subtle border */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    background-color: #f8f9fa; /* Light grey background for dropdown */
}

.navbar-nav .dropdown-item {
    color: #343a40; /* Dark text for dropdown items */
    padding: 0.75rem 1.25rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: #e9ecef; /* Lighter grey on hover */
    color: #0d6efd; /* Primary blue on hover */
}

/* Hero Section (from index.php) */
.hero-section {
    background: linear-gradient(135deg, #e0f2f7 0%, #ffffff 100%); /* Light blue to white gradient */
    padding: 6rem 2rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #495057;
}

/* Common Card Styling (used on various pages like pricing, about us, forms) */
.card {
    border-radius: 0.75rem;
    border: none;
    overflow: hidden; /* Ensures rounded corners on image top */
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-text.text-muted.mb-5 {
    font-size: 1.1rem;
}

/* Buttons in forms/sections */
.btn-primary, .btn-success, .btn-info {
    font-weight: 600;
}

/* --- Image Aspect Ratio & Height Fixes --- */
/* For images at the top of cards (listings, etc.) */
.card-img-top {
    width: 100%;
    height: 200px; /* Fixed height for all card-top images */
    object-fit: cover; /* Ensures image covers area, maintains aspect ratio, crops if necessary */
    display: block; /* Remove extra space below image */
}

/* For primary image on detail pages (larger view) */
#detailPrimaryPhoto {
    width: 100%;
    max-height: 500px; /* Max height, but allow to be smaller if image aspect ratio makes it so */
    object-fit: cover;
    display: block;
}

/* For thumbnail images on detail pages */
.img-thumbnail.thumbnail-click {
    width: 80px;
    height: 60px; /* Fixed height for thumbnails */
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Footer Styling */
footer {
    background-color: #212529 !important; /* Ensure dark background */
    color: rgba(255, 255, 255, 0.8);
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #fff;
}

footer .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #0d6efd; /* Primary blue on hover */
}

/* Responsive Adjustments (Bootstrap handles most, but for custom overrides) */
@media (max-width: 991.98px) { /* Medium devices and down */
    .navbar-collapse {
        background-color: #fff; /* Ensure dropdown menu has background on mobile */
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    }
    .navbar-light .navbar-nav .nav-link {
        padding-left: 0.5rem; /* Adjust padding for mobile links */
    }
    .hero-section {
        padding: 4rem 1rem;
    }
}