body {
    line-height: 1.5;
}

html,
body {
    overflow-x: unset;
}

.tiles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overview-section {
    text-align: center;
}

/*
.overview-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}
*/

.feature-tile {
    flex: 1;
    position: relative;
    transition: flex 1s ease;
    overflow: hidden;
    cursor: pointer;
}

.feature-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-tile .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    color: #fff;
    opacity: 1;
    /* always visible */
}

.carousel {
    padding: 0 7.5px;
}

.carousel:hover .feature-tile:hover {
    flex: 5;
}

.carousel:hover .feature-tile:not(:hover) {
    flex: 1;
}

.feature-tile.show {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    opacity: 1;
    transform: scale(0.95);
    transition: all .6s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.carousel-slide .caption {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #1E3A8A;
    background: rgba(255, 255, 255, .8);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

#back-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1E3A8A;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.highlight {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.amenities-list {
    columns: 2;
    list-style: inside;
    list-style-type: none;
    text-align: left;
}

ul[id=amenities] {
    display: flex;
}

li[id=amenity-item01],
li[id=amenity-item02],
li[id=amenity-item03],
li[id=amenity-item04],
li[id=amenity-item05],
li[id=amenity-item06],
li[id=amenity-item07],
li[id=amenity-item08] {
    font-size: 20px;
    display: inline-block;
}

.li-animate {
    opacity: 1;
    transform: translateY(30px);
    transition: all .8s ease-out;
    margin-bottom: 25px;
    /* Keep if you want vertical gap on column layout */
    /* REMOVE margin-right — use Tailwind's gap instead */
}

.li-highlight {
    width: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    /* Optional: add horizontal padding for consistent look */
    text-align: center;
    flex: 0 1 auto;
    /* optional: allow shrink/grow naturally */
}

@media(max-width:600px) {
    .amenities-list {
        columns: 1;
    }
}

.btn-primary {
    font-family: 'Optima Medium';
    font-size: large;
    text-transform: uppercase;
    background: #b5862c;
    color: #fff;
    border: 2px solid #b5862c;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-secondary {
    background: #fff;
    color: #b5862c;
    border: 2px solid #b5862c;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

section {
    max-width: 1200px;
    position: relative;
}

h4 {
    margin: 0 0 20px;
}

.p[id=paragraph-lifestyle] {
    font-size: large;
    margin-bottom: 20px;
}

h3 {
    text-align: center;
    color: #f9f9f9;
}

h2[id=world-class-amenities],
h2[id=what-you-will-discover],
h2[id=choose-your-residence],
h2[id=breathtaking-clifton-views] {
    text-align: center;
    color: #111;
}

h2[id=lifestyle-crafted-for-the-extraordinary] {
    text-align: center;
    color: #111;
    margin-top: 25px;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate {
    opacity: 1;
    transform: translateY(30px);
    transition: all .8s ease-out;
    margin-bottom: 50px;
}

.intro {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background .3s;
}

.slide-left {
    transform: translateX(-50px)
}

.slide-right {
    transform: translateX(50px)
}

/* Base animation settings */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.slow {
    animation-duration: 1.5s;
    animation-fill-mode: both;
}

.slower {
    animation-duration: 2s;
    animation-fill-mode: both;
}

.slowest {
    animation-duration: 2.5s;
    animation-fill-mode: both;
}

/* Delay classes */
.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Fade In Up Animation (for headings and text) */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In Animation (for cards) */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fadeInUp {
    opacity: 0;
    transform: translateY(30px);
}

.fadeInUp.go {
    animation-name: fadeInUp;
    animation-timing-function: ease-out;
}

.scaleIn {
    opacity: 0;
    transform: scale(0.9);
}

.scaleIn.go {
    animation-name: scaleIn;
    animation-timing-function: ease-in-out;
}

#homepage-world-class-amenities-section {
    max-width: 1200px;
    position: relative;
    margin: 0 auto 0 auto;
}