/* ===========================
   SINGLE - BIG FLATS
=========================== */

.promo-container {
    position: relative;
    left: -20px;
    width: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px 30px;
    padding: 30px;
    background: #61A346;
    animation: promoPulse 3s ease-in-out infinite;
}

.promo-badge {
    font-family: 'DM Serif Display', serif;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 4px 8px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

.promo-link {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 10px 20px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all .35s ease;
}

.promo-link:hover {
    background: #4A4A49;
    border-color: #4A4A49;
    color: #fff;
}

.promo-link::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -120%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-25deg);
    animation: shine 4.5s infinite;
}

/* ===========================
   SINGLE - STUDENT
=========================== */

.student-offer-container {
    position: relative;
    left: -20px;
    width: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px 30px;
    padding: 30px 10px;
    background: #FC902B;
    animation: promoPulse 3s ease-in-out infinite;
}

.student-offer-badge {
    font-family: 'DM Serif Display', serif;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.student-offer-link {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 10px 20px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all .35s ease;
}

.student-offer-link:hover {
    background: #4A4A49;
    border-color: #4A4A49;
    color: #fff;
}

.student-offer-link::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -120%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-25deg);
    animation: shine 4.5s infinite;
}

/* ===========================
   TABLE - OFFERS
=========================== */

.ap-table tr.is-big-flats-offer,
.ap-table tr.is-student-offer {
    position: relative;
    border-bottom: 1px solid #fff;
    animation: bigFlatsOfferBg 2.8s ease-in-out infinite;
}

.ap-table tr.is-big-flats-offer td:first-child,
.ap-table tr.is-student-offer td:first-child {
    position: relative;
}

.table-offers {
    position: absolute;
    top: -12px;
    left: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-offers__badges {
    display: flex;
    gap: 8px;
}

.table-offers__badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
    animation: bigOfferBadgePulse 3s ease-in-out infinite;
}

.table-offers__badge--big {
    background: #61A346;
    border: 1px solid #61A346;
    color: #fff;
}

.table-offers__badge--student {
    background: #FC902B;
    border: 1px solid #FC902B;
    color: #fff;
}

.table-offers__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    padding: 6px 12px;
    background: #4A4A49;
    border: 1px solid #4A4A49;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: .25s;
}

.table-offers__link:hover {
    background: #5b5b59;
    border-color: #5b5b59;
    color: #fff;
}

.table-offers__link::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -120%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-25deg);
    animation: bigOfferShine 4s infinite;
}

@media (max-width:1367px) {
    .table-offers__badge,
    .table-offers__link {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes promoPulse {
    0%,100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes shine {
    0% {
        left: -120%;
    }
    25% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@keyframes bigOfferBadgePulse {
    0%,100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes bigOfferShine {
    0% {
        left: -120%;
    }
    22% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@keyframes bigFlatsOfferBg {
    0%,100% {
        background-color: rgba(183,167,145,.14);
    }
    50% {
        background-color: rgba(183,167,145,.17);
    }
}

/* ===========================
   SINGLE - OTHER LAYOUTS
=========================== */

.apartment-single__other-layouts {
    margin-top: 60px;
}

.apartment-single__other-layouts-heading {
    margin-bottom: 40px;
    color: #4a4a49;
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 50px;
    text-align: center;
}

.apartment-single__other-layout {
    margin-bottom: 40px;
    text-align: center;
}

.apartment-single__other-layout:last-child {
    margin-bottom: 0;
}

.apartment-single__other-layout-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.apartment-single__other-layouts {
    scroll-margin-top: 120px;
}

/* ===========================
   SINGLE - OTHER LAYOUTS BADGE
=========================== */

.apartment-single__main-image {
    position: relative;
}

.other-layouts-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    padding: 10px 16px;
    background: #B19772;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
    animation: otherLayoutsBadgePulse 2.6s ease-in-out infinite;
}

html {
    scroll-behavior: smooth;
}

.other-layouts-badge {
    text-decoration: none;
    cursor: pointer;
}

.other-layouts-badge:hover {
    color: #fff;
}

@keyframes otherLayoutsBadgePulse {
    0%,100% {
        transform: scale(1);
        background: #B19772;
    }
    50% {
        transform: scale(1.05);
        background: #937145;
    }
}

/* ===========================
   SINGLE - FIXES
=========================== */

.apartment-single__left {
    justify-content: flex-start;
}

.apartment-single .row {
    align-items: flex-start;
}

.apartment-single .col-sm-3,
.apartment-single .col-md-2 {
    align-self: flex-start;
}

.apartment-single__left {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
}