.main-footer h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.main-footer h2 span {
    background-color: var(--accent-color);
    padding: 2px 14px;
}

.house-wrapper {
    display: block;
    max-width: 400px;
    margin: auto;
}

.house-wrapper .item {
    position: relative;
    display: block;
    cursor: pointer;
}

.house-wrapper .item img, .house-wrapper img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.house-wrapper .item span {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


.house-wrapper .item:hover {
    opacity: 0.9;
}

.house-wrapper .item:hover span {
    background-color: #e3a1278a;
}

.house-wrapper .item .info {
    display: block;
    background-color: var(--surface-color);
    font-size: 12px;
    padding: 10px 20px;
    position: absolute;
    left: -130px;
    top: 2px;
    color: #ffffff82;
    min-width: 130px;
    text-align: right;
    opacity: 1;
    z-index:2;
    border-radius: 15px 0  0 15px ;
}


.house-wrapper .item:hover .info {
    background-color: var(--accent-color);
    color: white;
    opacity: 1;
}




.road {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1b262c;
    margin-top: 10px;
    overflow: hidden;
    border-top: 4px solid #06141c94;
    border-bottom: 4px solid #06141c94;
}

.road .street-name {
    position: absolute;
    margin: auto;
    font-size: 20px;
    padding: 10px;
    text-align: center;
    color: #ffffff3d;
    font-weight: 700;
    display: block;
    left: 0;
    right: 0;
}

.lane-line {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(to right, rgb(255 255 255 / 27%) 0, rgb(255 255 255 / 37%) 30px, transparent 30px, transparent 60px);
    transform: translateY(-50%);
}

.car {
    position: absolute;
    bottom: 20px;
    width: 60px;
    height: 30px;
    border-radius: 5px;
    background: #0d1d26;
    animation: drive 10s linear infinite;
}

.car-2 {
    top: 20px;
    bottom: unset;
    animation: drive-right 10s linear infinite;
}

.car:nth-child(2) {
    background: rgba(194, 194, 194, 0.69);
    animation-delay: 3s;
    animation-duration: 12s;
}

.car:nth-child(3) {
    background: #e3a12745;
    animation-delay: 5s;
    animation-duration: 8s;
}

.car:nth-child(4) {
    background: rgba(179, 144, 78, 0.27);
    animation-delay: 5s;
    animation-duration: 8s;
}

@keyframes drive {
    0% {
        left: -80px;
    }
    100% {
        left: 110%;
    }
}



@keyframes drive-right {
    0% {
        right: -100px;
    }
    100% {
        right: 110%;
    }
}

.flats-wrapper {
    display: block;
    margin: auto;
    width: 100%;
    /* max-width: 682px; */
    /* height: 492px; */
    /* background: #c2c2c2; */
    background: #c2c2c233;
    position: relative;
    border-radius: 5px;
}

.flats-wrapper .inner-wrapper {
    display: flex;
    gap: 30px;
}

.flats-wrapper .inner-wrapper div {
    display: block;
    width: 100%;
}

.flats-wrapper .inner-wrapper .flat-wrapper-canvas {
    display: block;
    position: relative;
    height: 600px;
    background-color: #7b8286;
    margin: 20px;
    /* border: solid 10px #e39e26; */
    padding: 20px;
}

.flats-wrapper .inner-wrapper .flat-wrapper-canvas img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}
.flats-wrapper .inner-wrapper .flat-desc {
    display: block;
    padding: 20px;
    text-align: left;
    color: white;
}

.flats-wrapper .inner-wrapper .flat-desc ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.flats-wrapper .inner-wrapper .flat-desc ul li {
    display: block;
}


.flats-wrapper .inner-wrapper .flat-desc ul li:first-letter {
    color: #e3a127;
    font-weight: 700;
    font-size: 16px
}


.flats-wrapper .inner-wrapper .flat-desc .desc-header {
    display: block;
    margin-top: 0;
}


.flats-wrapper .inner-wrapper .flat-desc .desc-header .area {
    font-size: 30px;
    font-weight: 700;
}

.flats-wrapper .inner-wrapper .flat-desc .desc-header .status {
    font-size: 20px
}


.flats-wrapper img.all {
    position: relative;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.flats-wrapper  .flat-selector {
    display: flex;
    position: absolute;
    z-index: 2;
    /*border: solid 1px aqua;*/
    top: 0;
    left: 0;
    width: 40%;
    height: 50%;
    align-content: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flats-wrapper  .flat-selector.flat-2 {
    z-index: 3;
    bottom: 0;
    top: unset;
    left: 20%;
    width: 25%;
}


.flats-wrapper  .flat-selector.flat-3 {
    z-index: 4;
    bottom: 0;
    top: unset;
    left: 45%;
    width: 35%;
}


.flats-wrapper  .flat-selector.flat-4 {
    z-index: 5;
    bottom: 0;
    top: 0;
    left: unset;
    right: 0;
    width: 40%;
}

.flats-wrapper  .flat-selector .flat-info{
    display: flex;
    border-radius: 16px;
    font-size: 14px;
    background-color:#0d1d26c4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    max-width: 120px;
    padding: 10px;
    border: solid 2px #ffffffc9;
    color: white;

}


.flats-wrapper  .flat-selector .flat-info span:last-child {
    color: #66d866;
    font-weight: 700;
}

.js-hide {
    display: none;
}

.yellow-select {
    position: absolute !important;
    z-index: 2;
    top: 0;
    left: 0;
}


.pulsar {
    opacity: 0.6;
    animation: pulsarOpacity 1.5s infinite ease-in-out;
}

@keyframes pulsarOpacity {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}


.project-nav {
    padding: 0 0 30px 0;
    max-width: 900px;
    margin: auto;
    color: #ffffff;
    position: relative;
}

.project-nav .nav-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.project-nav .nav-header > div {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.project-nav .nav-header h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.project-nav .prev,
.project-nav .next {
    position: absolute;
    top: 24px;
    padding: 4px;
    font-size: 22px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-nav .prev:hover,
.project-nav .next:hover {
    background-color: var(--accent-color);
}

.project-nav .prev {
    left: 24px;
}

.project-nav .next {
    right: 24px;
}

.project-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
}

.project-nav ul li {
    background: #1e2b33;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 12px;
}

.project-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-nav ul li a:hover {
    color: #ffcd38;
}

.project-nav ul li span {
    color: #ffcd38;
    font-weight: bold;
}

@media (max-width: 680px) {
    .house-wrapper .item .info {
        display: block;
        background-color: #ffffff8a;
        font-size: 10px;
        padding: 5px 10px 5px 20px;
        position: absolute;
        left: 2px;
        top: 0px;
        color: var(--surface-color);
        min-width: 130px;
        text-align: left;
        opacity: 1;
        z-index: 2;
        border-radius: 0 5px 5px 0;
        border-left: solid 3px var(--accent-color);
    }

    .flats-wrapper .inner-wrapper {
        flex-direction: column-reverse;
    }

    .flats-wrapper .inner-wrapper .flat-wrapper-canvas {
        margin: 0;
        height: unset;
    }

    .flats-wrapper .flat-selector .flat-info {
        border-radius: 5px;
        font-size: 10px;
        background-color: #0d1d26c4;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        align-content: center;
        max-width: 120px;
        padding: 3px;
        border: solid 1px #ffffffc9;
        color: white;
    }

    .flats-wrapper .inner-wrapper .flat-desc .desc-header .area {
        font-size: 18px;
    }

    .flats-wrapper .inner-wrapper .flat-desc .desc-header .status {
        font-size: 16px;
    }
}


@media (max-width: 480px) {
    .project-nav {
        padding: 16px;
    }

    .project-nav .prev,
    .project-nav .next {
        position: static;
        display: inline-block;
        margin: 10px 5px 0 0;
    }

    .project-nav .nav-header {
        align-items: center;
    }

    .project-nav ul {
        flex-direction: column;
        gap: 6px;
    }

    .project-nav .nav-header h1 {
        font-size: 20px;
    }
}

