/* Developed By Saqueeb */
:root {
    --primary-color: rgb(207, 39, 39);
    --primary-color-hover: rgba(207, 39, 39, .8);
    --secondary-color: #3a5a78;
    --accent-color: #ffd06b;
    --light-color: #f8f9fa;
    --dark-color: rgba(0, 0, 0, .6);
    --transition-speed: .3s
}

body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100dvh;
    background-color: var(--light-color);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif
}

.property-viewer {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden
}

.brand-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    align-items: center;
    /* background-color: var(--dark-color); */
    background-color: rgba(0, 0, 0, 0.0);
    padding: 10px 10px;
    border-radius: 10px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, .1) */
}

.brand-logo h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-left: 10px
}

.brand-logo img {
    height: 20px
}

.navigation-panel {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: var(--dark-color);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .2);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px)
}
/* Developed By Saqueeb */
.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 8px;
    margin: 8px 0;
    color: var(--light-color);
    background: transparent;
    border: none;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    width: 90px;
    text-align: center;
    font-size: .85rem
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, .2);
    color: var(--primary-color)
}

.nav-button.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 4px 12px rgba(0, 156, 222, .3)
}

.nav-button i {
    font-size: 1.5rem;
    margin-bottom: 8px
}

.content-area {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity var(--transition-speed) ease;
    opacity: 0
}

.content-area.active {
    display: block;
    opacity: 1
}

.imagesRoate {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 600px;
    background-color: var(--dark-color);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 900
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color)
}

.form-range::-moz-range-thumb {
    background: var(--primary-color)
}

.form-range::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, .3);
    height: 6px;
    border-radius: 3px
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px
}

.play-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2)
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-color-hover)
}

.img-compare-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    overflow: hidden
}

.img-compare-container img {
    width: 100dvw;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center
}

.img-compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden
}

.img-compare-overlay img {
    width: 100dvw;
    height: 100%;
    object-fit: cover;
    object-position: center center
}

.img-compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--light-color);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10
}

.img-compare-slider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, .5);
    border: 3px solid white
}

.img-compare-slider::after {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light-color);
    font-weight: bold;
    font-size: 1.2rem
}

.time-label {
    position: absolute;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2)
}

.day-label {
    bottom: 20px;
    left: 20px
}

.evening-label {
    bottom: 20px;
    right: 20px
}

#highlights video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.iframe-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-color);
    color: var(--light-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease
}

.iframe-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--primary-color)
}

.iframe-placeholder p {
    font-size: 1.5rem;
    text-align: center;
    max-width: 80%
}

.iframe-placeholder:hover {
    background-color: rgba(0, 0, 0, .8)
}

.iframe-placeholder:hover i {
    transform: scale(1.1)
}

#amenities {
    position: relative;
    overflow: hidden;
    background-color: var(--light-color)
}

.amenities-container {
    display: none
}

.amenities-title {
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 3rem
}

.amenity-btn {
    background-color: var(--light-color);
    border: none;
    border-radius: 12px;
    padding: 25px 20px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%
}

.amenity-btn i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color)
}

.amenity-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    background-color: var(--primary-color);
    color: var(--light-color)
}

.amenity-btn:hover i {
    color: var(--light-color)
}

.video-controls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background-color: var(--dark-color);
    padding: 15px 25px;
    border-radius: 50px;
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2)
}

.video-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-speed) ease
}

.video-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-color-hover)
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .5s ease
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(0, 156, 222, .2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.sound-toggle {
    position: absolute;
    /* top: 20px; */
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    background-color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease
}

.sound-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: var(--light-color)
}

.modal-content {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .3)
}

.btn-close {
    background-color: var(--light-color);
    border-radius: 50%;
    padding: 12px;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    z-index: 1100
}

@media (max-width:992px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    #amenities-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0
    }
/* Developed   By   Saqueeb */
    .amenities-container {
        position: relative;
        z-index: 10;
        height: 100dvh;
        width: 100%;
        display: block !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 50px 20px;
        overflow-y: scroll;
        margin-top: 3rem
    }
}

@media (max-width:768px) {
    .imagesRoate {
        width: 80%;
        bottom: 100px
    }

    .brand-logo {
        top: 15px;
        left: 15px
    }

    .brand-logo h1 {
        font-size: 1rem
    }

    .brand-logo img {
        /* height: 30px */
        height: 25px
    }

    .sound-toggle {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px
    }
}

@media (max-width:576px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .amenity-btn {
        padding: 20px 15px
    }

    .time-label {
        padding: 6px 15px;
        font-size: .9rem
    }
}

@media (max-width:900px) {
    .navigation-panel {
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        transform: none;
        display: flex;
        justify-content: space-around;
        border-radius: 20px 20px 0 0;
        padding: 15px 10px;
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch
    }

    .nav-button {
        min-width: 65px;
        padding: 8px 5px;
        margin: 0 3px;
        flex: 0 0 auto;
        font-size: .7rem;
        transform: translateX(0) !important
    }

    .nav-button i {
        font-size: 1.2rem;
        margin-bottom: 4px
    }

    .nav-button span {
        font-size: .7rem;
        white-space: nowrap
    }

    .imagesRoate {
        bottom: 85px !important;
        z-index: 990;
        margin-bottom: 1rem
    }

    .video-controls {
        bottom: 85px
    }

    .navigation-panel {
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0))
    }
}
/* Developed   By        Saqueeb */
@media (min-width: 900px) and (max-width: 1000px) {
    .brand-logo {
        top: 4px;
        left: 23px;
        margin-bottom: 2px;
    }

    .brand-logo img {
        height: 17px;
    }
    .navigation-panel{
        height: 90dvh;
        overflow-y: scroll;
    }
    .sound-toggle{
        top: 4px;
        right: 6px;
    }
}