.hero {
    /* Add background image, height, text alignment etc. */
    height: 70vh; /* Example height */
    display: flex; /* Using flex helps but we'll override alignment for content */
    position: relative; /* Needed for absolute positioning of children */
    text-align: left; /* Default text align for content */
    color: #fff; /* Assuming dark image, adjust if light */
    /* background: url('../images/homepage_display.mov') no-repeat center center/cover; */ /* Ensure this is commented out or removed */
    /* padding: 0 1rem; */ /* Removed padding to allow full width */
    border-bottom: none; /* Usually no border for hero */
    
    /* Full width styles - same as carousel */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-content {
    position: absolute;
    bottom: 2rem; /* Position text at the bottom */
    left: 2rem; /* Position text to the left */
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Stronger text shadow for better readability */
    max-width: 70%; /* Use more horizontal space */
    text-align: left; /* Ensure left alignment */
    font-family: sans-serif; /* Override Roboto for hero text */
    background-color: transparent; /* Transparent background */
    padding: 2rem; /* Add padding */
    border-radius: 10px; /* Rounded corners */
}

/* Hero badge styling */
.hero-content .badge {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-content .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero h1 {
    text-align: left; /* Explicitly align left */
    color: #fff; /* Ensure contrast */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-top: 0.5rem; /* Add some space below h1 */
    color: #fff; /* Ensure contrast */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Custom Hero Button Styling */
.btn-hero {
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    border-width: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-hero .bi {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover .bi {
    transform: translateX(5px);
}

/* Navbar Styling - Direct targeting of Bootstrap classes */
.navbar-nav .nav-item .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FF5733; /* Hardcoded primary color to ensure it works */
    transition: width 0.3s ease;
    transform: translateX(-50%); /* Keep centered during transition */
}

/* Remove color change on hover but add transition */
.navbar-nav .nav-item .nav-link:hover {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.navbar-nav .nav-item .nav-link:hover::after {
    width: 100%; /* Full width underline */
    /* left: 50% is maintained from above */
}

#key-highlights {
    background-color: #f9f9f9; /* Slight background variation */
}

#key-highlights p {
    text-align: center;
    max-width: 800px;
    margin: 0.5rem auto;
}

/* Section Divider */
.section-divider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 0; /* No top margin */
    margin-bottom: 0; /* No bottom margin */
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Map Styles */
.map-container {
    position: relative;
    padding-bottom: 60%; /* Increased height by adjusting aspect ratio */
    height: 0;
    overflow: hidden;
    background: #eee;
    width: 100vw; /* 100% of viewport width */
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Negative margin = half of viewport width */
    margin-right: -50vw;
    margin-top: 0; /* No top margin */
    margin-bottom: 1rem; /* Reduced bottom margin */
}

/* Map Heading Overlay */
.map-heading-container {
    position: absolute;
    bottom: 5%; /* Moved closer to the bottom */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0.8rem 2rem; /* Reduced padding to make container smaller */
    border-radius: 30px; /* Slightly reduced border radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: auto;
    max-width: 60%; /* Reduced max-width */
    display: inline-block;
}

@media (max-width: 768px) {
    .map-heading-container {
        position: static;
        transform: none;
        margin: 1rem auto;
        width: 90%;
        max-width: 100%;
        text-align: center;
        background-color: #f8f9fa;
    }
}

.map-heading-container h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem; /* Reduced font size */
    font-weight: 500; /* Slightly reduced font weight */
}

@media (max-width: 768px) {
    .map-heading-container {
        padding: 1rem 2rem;
        bottom: 10%;
    }
    
    .map-heading-container h2 {
        font-size: 1.5rem;
    }
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Location Details Text Styling */
.location-details p {
    margin-bottom: 1rem; /* Add space between paragraphs */
    text-align: center; /* Center align text */
    line-height: 1.6; /* Improve readability */
    /* Additional styling like font-size can be inherited from base.css or set here */
}

/* Modern Contact Form Styling */
.contact-form-container {
    padding: 1rem;
}

.modern-form .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modern-form .form-floating label {
    padding-left: 1rem;
    color: #666;
}

.modern-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 87, 51, 0.15);
    border-color: var(--primary-color);
}

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

.modern-form .btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: white;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Divider with icon */
.divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.divider-line {
    height: 2px;
    width: 80px;
    background-color: #dee2e6;
}

.divider-icon {
    margin: 0 15px;
    color: #0d6efd;
    font-size: 1.5rem;
}

/* Modern Bootstrap Carousel Styling */
.carousel {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 75vh;
    min-height: 500px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev, 
.carousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: white;
}

/* Add fade transition effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Amenities Box Styling */
/* Modern card styles for amenities */
.hover-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.amenities-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.amenities-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.amenities-box h4 {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.3rem;
}

.amenities-box ul li {
    padding-left: 0.5rem;
}

/* Modern Image Grid Styling */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    grid-gap: 15px;
    margin-bottom: 3rem;
}

.image-grid-item {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.image-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.image-grid-item:hover::before {
    opacity: 1;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

.image-grid-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
}

.image-grid-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Specific grid item styling for varied layout */
.image-grid-item:first-child,
.image-grid-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.image-grid-item:nth-child(4) {
    grid-column: span 2;
}

/* Loading indicator styling */
#gallery-loading {
    color: var(--text-color);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Fix for empty ruleset lint warning */
.navbar-nav .nav-link:hover::after {
    width: 50%;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-grid-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .image-grid-item:nth-child(4) {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid-item:nth-child(1),
    .image-grid-item:nth-child(4) {
        grid-column: span 1;
    }
}

/* Home specific responsive */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    
    .contact-form-container {
        padding: 1.5rem !important;
    }
    
    .amenities-box {
        margin-bottom: 1.5rem;
    }
}
