/* Hero Section */
/* FOOLPROOF HERO SECTION CSS */
.amenities-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    min-height: 600px; /* Minimum height */
    max-height: 1200px; /* Maximum height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #0a1f2e; /* Fallback color */
}

/* Image container - absolute positioning */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Image styling */
.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Color overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 31, 46, 0.6) 0%,
        rgba(10, 31, 46, 0.4) 100%
    );
    z-index: 2;
}

/* Content container */
.hero-content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Title styling */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
}

/* Subtitle styling */
.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* CTA button */
.hero-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-cta .btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-cta .btn:hover i {
    transform: translateY(3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    z-index: 4;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .amenities-hero {
        min-height: 500px;
    }
    
    .hero-title .title-line {
        display: inline;
    }
    
    .hero-title .title-line:after {
        content: " ";
    }
}

@media (max-width: 480px) {
    .amenities-hero {
        min-height: 400px;
    }
    
    .hero-content-container {
        padding: 0 1.5rem;
    }
    
    .hero-cta .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Intro Section */
.amenities-intro {
    padding: 80px 0;
    background-color: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(147, 204, 250, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    background-color: rgba(147, 204, 250, 0.2);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.highlight-item span {
    font-weight: 500;
    text-align: center;
}

/* Amenity Category Sections */
.amenity-category {
    padding: 80px 0;
}

.pool-amenity {
    background-color: #f0f8ff;
}

.spa-amenity {
    background-color: #fffaf0;
}

.beach-amenity {
    background-color: #f5f9fc;
}

.amenity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.amenity-grid.reversed {
    direction: rtl;
}

.amenity-grid.reversed > * {
    direction: ltr;
}

.amenity-content {
    padding: 30px;
}

.amenity-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.amenity-features {
    margin: 25px 0;
    list-style: none;
}

.amenity-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.amenity-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.hours {
    font-style: italic;
    color: #666;
}

.cta-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.amenity-media {
    position: relative;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

/* Secondary Amenities Grid */
.secondary-amenities {
    padding: 80px 0;
    background-color: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.amenity-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

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

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(147, 204, 250, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.amenity-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.amenity-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.amenity-card p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Eco Amenities */
.eco-amenities {
    padding: 80px 0;
    background-color: #f5f9f5;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.eco-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.eco-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(100, 180, 100, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4caf50;
}

.eco-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.eco-item p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* CTA Section */
.amenities-cta {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/amenities-cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    text-align: center;
}

.amenities-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.amenities-cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .amenity-grid {
        grid-template-columns: 1fr;
    }
    
    .amenity-grid.reversed {
        direction: ltr;
    }
    
    .amenity-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .amenities-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .cta-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .amenities-hero h1 {
        font-size: 2.2rem;
    }
    
    .amenities-hero p {
        font-size: 1.1rem;
    }
    
    .amenity-features li {
        font-size: 0.95rem;
    }
}