.rooms {
    margin: 164px 0 0 0;
}

.rooms--mob-layout {
    display: none;
}

.rooms__title {
    font-size: 64px;
    font-weight: 700;
    line-height: 70px;
    text-align: center;
    color: var(--white);
    margin: 0;
}

.rooms__description {
    max-width: 540px;
    font-size: 24px;
    font-weight: 400;
    line-height: 31px;
    letter-spacing: 0.48px;
    text-align: center;
    color: var(--white);
    margin: 74px auto 0;
}

.rooms__description span {
    font-weight: 700;
}

/* Triggers */

.rooms-triggers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 74px 0 0 0;
}

.rooms-triggers__trigger {
    font-size: 24px;
    font-weight: 700;
    line-height: 31px;
    text-align: center;
    color: var(--white);

    border-radius: 10px;
    border: 1px solid #FFF;
    background-color: rgba(49, 0, 87, 0.60);
    padding: 15px 74px 15px;
    cursor: pointer;
}

.rooms-triggers__trigger:hover,
.rooms-triggers__trigger:focus {
    border-color: var(--blue);
}

.rooms-triggers__trigger.js-active {
    border: 1px solid var(--blue);
}

/* Tabs */

.rooms-tab {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 30px;
    margin: 70px 0 0 0;
}

/* room-setup */

.room-setup {
    border-radius: 20px;
    padding: 10px;
    background-color: var(--white);
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
}

.room-setup picture {
    grid-area: 1 / 1 / 1 / -1;
}
/* Tooltips */
.room-setup-tooltips {
    grid-area: 1 / 1 / -1 / -1;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.room-setup-tooltip__trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 53px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(2px);
    animation: pulse 2s infinite;
}

.room-setup-tooltip {
    position: absolute;
    width: 50px;
    height: 50px;
}

.room-setup-tooltip__trigger svg {
    width: 14px;
    height: 13px;
}

.room-setup-tooltip-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.70);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    gap: 13px;
    opacity: 0;
    width: 280px;
    height: 100%;
    padding: 17px 0 20px 21px;
    transition: opacity 0.1s ease-in;
    position: relative;
    z-index: 11;
    visibility: hidden;
    transform: translateX(-68%);
}

.room-setup-tooltip-content__title {
    grid-area: 1 / 1 / 1 / -1;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    color: var(--black);
    margin: 0;
}

.room-setup-tooltip-content__price {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: var(--black);
    margin: 0;
}

.room-setup-tooltip-content__buy {
    font-family: var(--font-harmonia);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: var(--white);
    border-radius: 5px;
    border: 1px solid var(--blue);
    color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 102px;
    height: 36px;
    cursor: pointer;
}

.room-setup-tooltip.js-active .room-setup-tooltip-content {
    opacity: 1;
    height: auto;
    visibility: visible;
}

@keyframes pulse{
	0% {
		box-shadow: 0 0 0 0 rgba(0, 175, 255, 0.9);
	}
	
	70% {
		box-shadow: 0 0 0 10px rgba(0, 175, 255, 0);
	}
	
	100% {
		box-shadow: 0 0 0 0 rgba(0, 175, 255, 0);
	}
}

/* Room info */

.room-info {
    max-width: 530px;
    margin: 0 0 0 auto;
}

.room-info-inner-block {
    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 20px;
    border: 1px solid #FFF;
    background: rgba(49, 0, 87, 0.60);

    padding: 35px 24px 80px;
}

.room-info__description {
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
    color: var(--white);
}

.room-brands-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin: 53px 0 50px 0;
}

.room-info__link {
    display: flex;
    width: 280px;
    height: 56px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    font-family: var(--harmonia);
    font-size: 20px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: none;

    border: 1px solid #FFF;
    background-color: var(--white);
    color: var(--black);

}

.room-info__link--catalog {
    color: var(--white);
    background-color: var(--blue);
    border: 1px solid var(--blue);
    margin: 48px auto 0;
}

.room-info__link--room:hover,
.room-info__link--room:focus {
    border-color: var(--blue);
    background-color: var(--blue);
    color: var(--white);
}

.room-info__link--catalog:hover,
.room-info__link--catalog:focus  {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--blue);
}
/* Tooltips position */
/* Room 1007 */
.room-setup-tooltip {
    right: auto;
}
#room-1007 .room-setup-tooltip:first-child {
    top: 65%;
    left: 58%;
}

#room-1007 .room-setup-tooltip:last-child {
    top: 87%;
    left: 36%;
}

/* Room 1008 */
#room-1008 .room-setup-tooltip:first-child {
    top: 48%;
    left: 23%;
}

#room-1008 .room-setup-tooltip:nth-child(2) {
    top: 6%;
    left: 58%;
}

#room-1008 .room-setup-tooltip:nth-child(3) {
    top: 18%;
    left: 79%;
}

#room-1008 .room-setup-tooltip:nth-child(4) {
    top: 34%;
    left: 58%;
}

#room-1008 .room-setup-tooltip:nth-child(5) {
    top: 50%;
    left: 79%;
}

#room-1008 .room-setup-tooltip:last-child {
    top: 72%;
    left: 58%;
}

/* Room 1009 */
#room-1009 .room-setup-tooltip:first-child {
    top: 48%;
    left: 14%;
}

#room-1009 .room-setup-tooltip:nth-child(2) {
    top: 15%;
    left: 58%;
}

#room-1009 .room-setup-tooltip:nth-child(3) {
    top: 38%;
    left: 79%;
}

#room-1009 .room-setup-tooltip:nth-child(4) {
    top: 52%;
    left: 54%;
}

#room-1009 .room-setup-tooltip:nth-child(5) {
    top: 64%;
    left: 79%;
}

#room-1009 .room-setup-tooltip:last-child {
    top: 78%;
    left: 38%;
}

.room-setup-tooltip--left .room-setup-tooltip-content {
    transform: translateX(-24%);
}

@media(max-width: 1024px) {
    .rooms {
        margin: 100px 0 0 0;
    }

    .rooms__title {
        font-size: 32px;
        line-height: 1;
        padding: 0 5px;
    }
    
    .rooms__description {
        max-width: 368px;
        font-size: 16px;
        line-height: 21px;
        letter-spacing: 0.32px;
        margin: 45px auto 0;
    }
    
    .rooms__description span {
        font-weight: 400;
    }

    /* Triggers */

    .rooms-triggers {
        gap: 15px;
        margin: 46px 0 0 0;
    }

    .rooms-triggers__trigger {
        font-size: 16px;
        line-height: 1;
        padding: 11px 37px;
    }

    /* Tabs */

    .rooms-tab {
        gap: 30px;
        margin: 44px 0 0 0;
    }

    /* room-setup */

    .room-setup {
        border-radius: 15px;
        padding: 10px 0 55px;
    }

    /* Room info */

    .room-info {
        max-width: 530px;
    }

    .room-info-inner-block {
        border-radius: 15px;
        padding: 22px 24px 80px;
    }

    .room-info__description {
        font-size: 24px;
        line-height: 28.4px;
    }

    .room-brands-list {
        grid-template-columns: repeat(auto-fill, minmax(131px, 1fr));
        margin: 37px 0 31px 0;
    }

    .room-info__link {
        width: 180px;
        height: 40px;
        font-size: 16px;
        line-height: 1;
    }

    .room-info__link--catalog {
        margin: 9px auto 0;
    }


    /* Tooltips */

    .room-setup-tooltip__trigger {
        width: 40px;
        height: 40px;
    }
}

@media(max-width: 767px) {
    .wrapper--rooms {
        padding: 0;
    }

    .rooms {
       display: none;
    }

    .rooms--mob-layout {
        display: block;
        margin: 60px 0 0 0;
    }
     

    .rooms__description {
        padding: 0 15px;
        margin: 32px auto 0;
    }

    .rooms-triggers {
        justify-content: flex-start;
        gap: 15px;
        padding: 0 15px;
        margin: 32px 0 0 0;
        overflow-y: scroll;
    }

    .rooms-triggers::-webkit-scrollbar {
        display: none;
      }

    .rooms-triggers__trigger {
        font-size: 16px;
        line-height: 1;
        padding: 11px 37px;
        white-space: nowrap;
    }
    
    .rooms-tab {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 0 16px;
        margin: 47px 0 0 0;
    }

    .room-setup {
        border-radius: 5px;
        padding: 0px 0 16px;
    }

    .room-info__link {
        margin: -4px auto 0;
    }

    .room-brands-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        margin: 0;
    }

    .room-setup-tooltip__trigger {
        width: 24px;
        height: 24px;
    }

    .room-setup-tooltip__trigger svg {
        width: 6px;
        height: 5px;
    }
    

    #room-1007 .room-setup-tooltip:first-child {
        left: 38%;
    }

    #room-1007 .room-setup-tooltip:last-child {
        left: 30%;
    }
}