/* Amenities Section CSS - Redesigned for Organic Icon Style */
#amenities-section {
    background-color: #f5f0e1;
    /* Very light beige background */
    padding: 100px 0;
}

.amenities-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.amenities-grid {
    overflow-x: auto; /* Enable scrolling */
    overflow-y: hidden;
    padding: 20px 0;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.amenities-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.amenities-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--brand-brown);
    border: 1px solid rgba(104, 68, 36, 0.2);
    cursor: pointer;
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.amenities-nav-btn:hover {
    background-color: var(--brand-brown);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 45px rgba(104, 68, 36, 0.3);
    border-color: var(--brand-brown);
}

.amenities-nav-btn i {
    transition: transform 0.3s ease;
}

.amenities-nav-btn.prev:hover i {
    transform: translateX(-5px);
}

.amenities-nav-btn.next:hover i {
    transform: translateX(5px);
}

.amenities-nav-btn.prev {
    left: -30px;
}

.amenities-nav-btn.next {
    right: -30px;
}

@media (max-width: 1300px) {
    .amenities-nav-btn.prev { left: 10px; }
    .amenities-nav-btn.next { right: 10px; }
}

.amenities-slider-wrapper.manual-scroll .amenities-track {
    animation: none;
}

.amenities-track {
    display: flex;
    width: max-content;
    animation: scrollAmenities 35s linear infinite;
}

.amenities-track:hover {
    animation-play-state: paused;
}

.amenities-set {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    /* Gap between the two sets */
}

@keyframes scrollAmenities {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.amenity-card {
    flex: 0 0 220px;
    /* Fixed width for scrolling */
    position: relative;
    height: 220px;
    background-color: #d2b48c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.4s ease;
    cursor: pointer;

    /* Apply Rough Edge Mask to the entire card */
    mask-image: var(--rough-mask);
    -webkit-mask-image: var(--rough-mask);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

.amenity-card:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #c5a376;
    box-shadow: 0 15px 30px rgba(104, 68, 36, 0.2);
}

.amenity-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(26%) sepia(87%) saturate(347%) hue-rotate(345deg) brightness(85%) contrast(90%);
}

.amenity-icon i {
    font-size: 35px;
    color: var(--brand-brown) !important;
}

.amenity-card:hover .amenity-icon {
    transform: scale(1.1);
}

.amenity-card h3 {
    font-size: 0.85rem;
    color: var(--brand-brown);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    max-width: 180px;
    line-height: 1.3;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1240px) {
    .amenities-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .amenity-card {
        flex: 0 0 180px;
        height: 180px;
    }

    .amenity-icon {
        width: 80px;
        height: 80px;
    }

    .amenity-icon img {
        width: 70px;
        height: 70px;
    }

    .amenity-icon i {
        font-size: 28px;
    }
}

/* Coming Soon Styling */
.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--brand-gold);
    color: var(--brand-brown);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.coming-soon-text {
    color: var(--brand-gold);
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* --- Clubhouse Experience Section --- */
.clubhouse-experience {
    padding: 120px 0;
    background-color: var(--brand-brown);
    color: #fff;
    overflow: hidden;
}

.clubhouse-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.clubhouse-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.clubhouse-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.clubhouse-image-container:hover img {
    transform: scale(1.05);
}

.clubhouse-text {
    padding-right: 40px;
}

.clubhouse-text .badge {
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    /* Increased margin for better spacing */
    display: block;
}

.clubhouse-text h2 {
    font-size: 2.5rem; /* Standard global h2 */
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.clubhouse-text p {
    font-size: 1.1rem; /* Standard global p */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.clubhouse-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.clubhouse-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--brand-gold);
}

.clubhouse-features-list i {
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .clubhouse-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .clubhouse-text {
        padding-right: 0;
        order: 2;
    }

    .clubhouse-image-container {
        order: 1;
    }

    .clubhouse-text h2 {
        font-size: 2.3rem;
    }
}

/* --- Amenity Card Enhancements --- */
.amenity-card {
    background: linear-gradient(145deg, #d2b48c, #c5a376) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.amenity-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.25; /* Increased base visibility for premium images */
    filter: sepia(0.3) brightness(0.8) grayscale(20%); /* "Coming Soon" preview filter */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    pointer-events: none;
}

.amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.amenity-card:hover .amenity-image {
    opacity: 0.55; /* Reveal more of the premium visual on hover */
    filter: sepia(0) brightness(1) grayscale(0); /* Momentarily clear filter on hover */
}

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

.amenity-info {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.amenity-info h4,
.amenity-info p {
    color: #ffffff;
}

.amenity-info h4 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.amenity-info p {
    font-size: 0.95rem;
}

.amenity-info .amenity-icon i {
    color: #ffffff !important;
}
