#destinations-section {
    padding-bottom: 80px;
    padding-top: 80px;
    background: white;
    z-index: 111;
    position: relative;
}

#destinations-inner-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: white;
}

#destinations-heading-container h2 {
    text-align: center;
    font-size: 21px;
}

#destinations-desc-container h2 {
    font-weight: 700;
    text-align: center;
    font-size: 45px;
}

#destinations-desc-container h2 span {
    font-weight: 700;
    text-align: center;
    font-size: 45px;
    color: rgb(81, 81, 255);
}

#destinations-desc-container p {
    text-align: center;
    font-size: 16px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    background: white;
    justify-content: center;
    align-items: center;
}

.slider-images {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
}

.slider-images img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 6px;
    transition: 0.4s ease;
}

.slider-img.active:hover img {
    transform: scale(1.1);
}

.slider-img:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.slider-img {
    width: 90px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, box-shadow, width, height;
}

.slider-images .slider-img:first-child,
.slider-images .slider-img:last-child {
    height: 380px;
}

.slider-images .slider-img:nth-child(2),
.slider-images .slider-img:nth-child(7) {
    height: 440px;
}

.slider-images .slider-img:nth-child(3),
.slider-images .slider-img:nth-child(6) {
    height: 500px;
}

.slider-images .slider-img:nth-child(4),
.slider-images .slider-img:nth-child(5) {
    height: 570px;
}

.slider-container h1 {
    text-shadow: 0px 0px 12px black;
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    color: white;
    position: absolute;
    transform: rotate(270deg);
    transition: 0.7s ease;
    white-space: nowrap;
}

.details {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-img.active .details {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.details h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: left;
    line-height: 1.2;
    color: white;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.details p {
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 2px;
}

.details span {
    height: 4px;
    width: 0px;
    background: rgb(91, 121, 255);
    display: block;
    transition: 0.4s ease;
}

.details:hover span {
    width: 210px;
    background: rgb(0, 0, 255);
}

.slider-img.active {
    width: 650px !important;
}

.slider-img.active img {
    transform: scale(1.1);
}

.slider-img.active h1 {
    opacity: 0;
    transform: rotate(270deg) translateY(-50px);
}

.slider-img.active .details p,
.slider-img.active .details h2 {
    display: block;
}

/* Responsive Typography and Spacing */
@media only screen and (max-width: 920px) {
    #destinations-section {
        padding-bottom: 60px;
        padding-top: 60px;
    }
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 36px;
    }
    #destinations-desc-container p {
        font-size: 15px;
        padding: 0 20px;
    }
}

@media only screen and (max-width: 900px) {
    #destinations-heading-container h2 {
        font-size: 18px;
    }
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 32px;
    }
}

@media only screen and (max-width: 820px) {
    #destinations-section {
        padding-bottom: 50px;
        padding-top: 50px;
    }
    #destinations-heading-container h2 {
        font-size: 15px;
    }
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 32px;
    }
    #destinations-desc-container p {
        font-size: 13px;
        padding: 0 15px;
    }
}

@media only screen and (max-width: 720px) {
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 30px;
    }
}

@media only screen and (max-width: 620px) {
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 28px;
    }
}

@media only screen and (max-width: 520px) {
    #destinations-section {
        padding-bottom: 40px;
        padding-top: 40px;
    }
    #destinations-heading-container h2 {
        font-size: 13px;
    }
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 28px;
    }
    #destinations-desc-container p {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media only screen and (max-width: 420px) {
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 26px;
    }
}

@media only screen and (max-width: 350px) {
    #destinations-section {
        padding-bottom: 30px;
        padding-top: 30px;
    }
    #destinations-heading-container h2 {
        font-size: 12px;
    }
    #destinations-desc-container h2,
    #destinations-desc-container h2 span {
        font-size: 24px;
    }
    #destinations-desc-container p {
        font-size: 11px;
        padding: 0 8px;
    }
}

/* Slider Responsive Styles */

@media only screen and (max-width: 1120px) {
    .slider-images {
        justify-content: space-evenly;
        gap: 10px;
    }
    .slider-img.active {
        width: 100% !important;
    }
}
@media only screen and (max-width: 820px) {
    .slider-img.active:hover img {
        transform: scale(1);
    }
    .slider-images {
        flex-direction: column;
    }
    .slider-container {
        width: 100%;
        height: 100%;
    }

    .slider-container h1 {
        transform: rotate(0deg);
    }
    .slider-images .slider-img:first-child,
    .slider-images .slider-img:last-child {
        width: 60%;
    }

    .slider-images .slider-img:nth-child(2),
    .slider-images .slider-img:nth-child(7) {
        width: 70%;
    }

    .slider-images .slider-img:nth-child(3),
    .slider-images .slider-img:nth-child(6) {
        width: 80%;
    }

    .slider-images .slider-img:nth-child(4),
    .slider-images .slider-img:nth-child(5) {
        width: 90%;
    }

    .slider-container .slider-images .slider-img {
        height: 110px;
        overflow: hidden;
    }
    .slider-img.active {
        width: 98% !important;
        height: 400px !important;
    }
    .details {
        bottom: 21px;
        left: 22px;
    }
}
@media only screen and (max-width: 520px) {
    .slider-container h1 {
        font-size: 30px;
    }

    .slider-images .slider-img:first-child,
    .slider-images .slider-img:last-child {
        width: 70%;
    }

    .slider-images .slider-img:nth-child(2),
    .slider-images .slider-img:nth-child(7) {
        width: 80%;
    }

    .slider-images .slider-img:nth-child(3),
    .slider-images .slider-img:nth-child(6) {
        width: 90%;
    }

    .slider-images .slider-img:nth-child(4),
    .slider-images .slider-img:nth-child(5) {
        width: 98%;
    }

    .slider-container .slider-images .slider-img {
        height: 90px;
    }
    .details {
        padding: 20px;
        left: 0;
        bottom: 0;
    }
    .details h2 {
        font-size: 20px;
        text-shadow: 0px 0px 12px black;
        line-height: 20px;
    }
    .details p {
        font-size: 17px;
        line-height: 30px;
        text-shadow: 0px 0px 12px black;
        margin: 0;
    }
}

@media only screen and (max-width: 420px) {
    .slider-container .slider-images .slider-img {
        height: 85px;
    }
    .slider-img.active {
        height: 380px !important;
    }
    .details h2 {
        font-size: 18px;
    }
    .details p {
        font-size: 15px;
    }
}
@media only screen and (max-width: 350px) {
    .slider-container .slider-images .slider-img {
        height: 76px;
    }
}

