.amenities-showcase-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: #fff;
    font-family: sans-serif;
    border-radius: 10px;
    --amenities-gap: 20px; /* Default gap */
}

/* Hide Navigation Elements based on prefix classes */
.amenities-showcase-nav-arrows .amenities-pagination,
.amenities-showcase-nav-dots .amenities-nav,
.amenities-showcase-nav-none .amenities-pagination,
.amenities-showcase-nav-none .amenities-nav {
    display: none !important;
}

.amenities-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.amenity-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.amenity-bg.active {
    opacity: 1;
}

.amenities-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%), linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.amenities-content-container {
    position: relative;
    z-index: 3;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.amenities-header {
    max-width: 50%;
    margin-bottom: 40px;
}

.amenities-main-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #fff;
}

.amenities-main-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

.amenities-cards-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    width: 100%;
    justify-content: flex-end; /* Align right side */
}

.amenities-nav {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    flex-shrink: 0;
}
.amenities-nav:hover { background: #555; }

.amenities-cards-viewport {
    overflow: hidden;
    flex: 1;
}

/* Center Mode Styles */
.amenities-showcase-center-yes .amenities-cards-viewport {
    padding-left: 10%;
    padding-right: 10%;
}

.amenities-cards-track {
    display: flex;
    gap: var(--amenities-gap);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px 0;
}

.amenity-card {
    background: rgba(40, 50, 50, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.amenities-showcase-center-yes .amenity-card {
    opacity: 0.5;
    transform: scale(0.9);
}

.amenities-showcase-center-yes .amenity-card.active {
    opacity: 1;
    transform: scale(1) translateY(-10px);
}

.amenity-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #fff;
    transition: color 0.4s ease;
}

.amenity-card p {
    font-size: 0.9rem;
    margin: 0;
    color: #ddd;
    transition: color 0.4s ease;
}

.amenity-card.active {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.amenity-card.active h3 {
    color: #1a3c34;
}

.amenity-card.active p {
    color: #444;
}

.amenities-pagination {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 30px;
    padding-left: 20px;
}

.amenity-dot {
    width: 30px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.amenity-dot.active {
    background: #fff;
    width: 40px;
}

@media (max-width: 1024px) {
    .amenities-header { max-width: 70%; }
}

@media (max-width: 767px) {
    .amenities-header { max-width: 100%; }
    .amenities-content-container { padding: 20px; }
    .amenities-cards-container { flex-direction: column; }
    .amenities-cards-viewport { width: 100%; max-width: 100%; }
    .amenities-nav { align-self: center; margin: 10px 0; }
}