/* ==================================================
   THE CAGE — ROOMS V2
   ================================================== */

:root {
    --tc-rooms-black: #020203;
    --tc-rooms-panel: #070708;
    --tc-rooms-red: #e10d18;
    --tc-rooms-red-dark: #84070d;
    --tc-rooms-white: #f4f4f2;
    --tc-rooms-muted: #bdbdbd;
    --tc-rooms-border: rgba(225, 13, 24, 0.78);
}

/* ==================================================
   RESET
   ================================================== */

html {
    scroll-behavior: smooth;
}

body.tc-rooms-v2 {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--tc-rooms-black);
    color: var(--tc-rooms-white);
    font-family: Arial, Helvetica, sans-serif;
}

body.tc-rooms-v2 *,
body.tc-rooms-v2 *::before,
body.tc-rooms-v2 *::after {
    box-sizing: border-box;
}

body.tc-rooms-v2 a {
    color: inherit;
    text-decoration: none;
}

body.tc-rooms-v2 img {
    display: block;
    max-width: 100%;
}

body.tc-rooms-v2.admin-bar .tc-rooms-header {
    margin-top: 32px;
}

/* ==================================================
   ACCESSIBILITY
   ================================================== */

.tc-rooms-skip-link {
    position: fixed;
    z-index: 99999;
    top: -100px;
    left: 18px;
    padding: 12px 17px;
    background: #ffffff;
    color: #000000;
}

.tc-rooms-skip-link:focus {
    top: 18px;
}

/* ==================================================
   HEADER
   ================================================== */

.tc-rooms-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 112px;
    padding: 15px clamp(24px, 4vw, 68px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.98);
}

.tc-rooms-brand {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    color: #ffffff;
}

.tc-rooms-brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(225, 13, 24, 0.35))
        drop-shadow(0 0 28px rgba(225, 13, 24, 0.12));
}

.tc-rooms-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tc-rooms-brand-text strong {
    color: #f5f5f5;
    font-size: clamp(25px, 2.2vw, 38px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.tc-rooms-brand-text strong span {
    color: var(--tc-rooms-red);
}

.tc-rooms-brand-text small {
    margin-top: 9px;
    color: var(--tc-rooms-red);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.35em;
    white-space: nowrap;
}

.tc-rooms-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 210px;
    min-height: 55px;
    padding: 13px 23px;
    border: 1px solid var(--tc-rooms-red);
    background: rgba(0, 0, 0, 0.45);
    color: #f2f2f2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.13em;
    transition:
        background-color 0.23s ease,
        box-shadow 0.23s ease,
        transform 0.23s ease;
}

.tc-rooms-call-button > span {
    width: 24px;
    height: 24px;
    color: var(--tc-rooms-red);
}

.tc-rooms-call-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tc-rooms-call-button:hover,
.tc-rooms-call-button:focus-visible {
    background: rgba(225, 13, 24, 0.13);
    box-shadow: 0 0 27px rgba(225, 13, 24, 0.2);
    transform: translateY(-2px);
    outline: none;
}

/* ==================================================
   PAGE BACKGROUND
   ================================================== */

.tc-rooms-main {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 112px);
    overflow: hidden;
    padding: 72px 0 96px;
    background:
        radial-gradient(
            circle at 0% 38%,
            rgba(150, 0, 8, 0.15),
            transparent 31%
        ),
        radial-gradient(
            circle at 100% 32%,
            rgba(90, 0, 5, 0.1),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #060607 0%,
            #020203 42%,
            #000000 100%
        );
}

.tc-rooms-main::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.013) 0,
            rgba(255, 255, 255, 0.013) 1px,
            transparent 1px,
            transparent 8px
        );
}

.tc-rooms-main::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: -10%;
    left: -10%;
    height: 330px;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center top,
            rgba(225, 13, 24, 0.08),
            transparent 68%
        );
}

/* ==================================================
   SECTION
   ================================================== */

.tc-rooms-section {
    position: relative;
    z-index: 2;
    width: min(1500px, calc(100% - 70px));
    margin: 0 auto;
}

/* ==================================================
   HEADING
   ================================================== */

.tc-rooms-heading {
    margin: 0 auto 48px;
    text-align: center;
}

.tc-rooms-heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 0 auto 20px;
}

.tc-rooms-heading-divider span {
    width: clamp(80px, 11vw, 180px);
    height: 1px;
}

.tc-rooms-heading-divider span:first-child {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(225, 13, 24, 0.85)
        );
}

.tc-rooms-heading-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(225, 13, 24, 0.85),
            transparent
        );
}

.tc-rooms-heading-divider i {
    width: 13px;
    height: 13px;
    border: 2px solid var(--tc-rooms-red);
    transform: rotate(45deg);
    box-shadow: 0 0 14px rgba(225, 13, 24, 0.32);
}

.tc-rooms-heading h1 {
    margin: 0;
    color: #eeeeeb;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: clamp(47px, 5.2vw, 82px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0.015em;
    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(255, 255, 255, 0.035);
}

.tc-rooms-heading h1 span {
    color: var(--tc-rooms-red);
    text-shadow:
        0 0 16px rgba(225, 13, 24, 0.27),
        0 5px 25px rgba(0, 0, 0, 0.9);
}

.tc-rooms-heading > p {
    margin: 20px 0 0;
    color: #dadada;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.14em;
}

/* ==================================================
   GRID
   ================================================== */

.tc-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(24px, 2.4vw, 40px);
}

/* ==================================================
   ROOM ITEM
   ================================================== */

.tc-room-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.tc-room-card {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 760px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--tc-rooms-border);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            transparent 50%
        ),
        rgba(3, 3, 4, 0.96);
    box-shadow:
        inset 0 0 35px rgba(255, 255, 255, 0.012),
        0 22px 55px rgba(0, 0, 0, 0.45);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.tc-room-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(225, 13, 24, 0.06),
            transparent 35%
        );
}

.tc-room-item:hover .tc-room-card {
    border-color: rgba(225, 13, 24, 1);
    box-shadow:
        0 0 25px rgba(225, 13, 24, 0.11),
        0 27px 65px rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}

/* ==================================================
   POSTER IMAGE
   ================================================== */

.tc-room-image {
    position: relative;
    z-index: 1;
    width: min(74%, 345px);
    aspect-ratio: 3 / 4;
    margin: 18px auto 0;
    overflow: hidden;
    background: #050505;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.035);
}

.tc-room-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.38);
}

.tc-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ==================================================
   ROOM CONTENT
   ================================================== */

.tc-room-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    padding: 26px 27px 29px;
    text-align: center;
}

.tc-room-content h2 {
    margin: 0;
    color: #f3f3f1;
    font-size: clamp(21px, 1.7vw, 28px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.tc-room-content h2 > span {
    display: block;
}

.tc-room-content h2 > small {
    display: block;
    margin-top: 8px;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.23em;
}

.tc-room-description {
    margin-top: 26px;
}

.tc-room-description p {
    margin: 0 0 8px;
    color: #d8d8d8;
    font-size: 15px;
    line-height: 1.45;
}

.tc-room-description p:last-child {
    margin-bottom: 0;
}

.tc-room-question {
    margin: auto 0 0;
    padding-top: 28px;
    color: #f4f4f2;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.055em;
}

/* ==================================================
   BUTTON OUTSIDE CARD
   ================================================== */

.tc-room-enter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    min-height: 58px;
    margin: 19px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--tc-rooms-red);
    background:
        linear-gradient(
            180deg,
            rgba(25, 0, 2, 0.4),
            rgba(0, 0, 0, 0.72)
        );
    color: var(--tc-rooms-red);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.16em;
    transition:
        color 0.23s ease,
        background-color 0.23s ease,
        box-shadow 0.23s ease,
        transform 0.23s ease;
}

.tc-room-enter-button:hover,
.tc-room-enter-button:focus-visible {
    background: var(--tc-rooms-red);
    color: #ffffff;
    box-shadow: 0 0 29px rgba(225, 13, 24, 0.28);
    transform: translateY(-2px);
    outline: none;
}

/* ==================================================
   SMALL DESKTOP
   ================================================== */

@media (min-width: 1101px) and (max-width: 1400px) {

    .tc-rooms-section {
        width: min(1320px, calc(100% - 50px));
    }

    .tc-rooms-grid {
        gap: 22px;
    }

    .tc-room-card {
        min-height: 710px;
    }

    .tc-room-image {
        width: min(72%, 300px);
    }

    .tc-room-content {
        padding: 23px 20px 26px;
    }

    .tc-room-description p {
        font-size: 14px;
    }
}

/* ==================================================
   TABLET
   One card per row
   ================================================== */

@media (max-width: 1100px) {

    body.tc-rooms-v2.admin-bar .tc-rooms-header {
        margin-top: 46px;
    }

    .tc-rooms-main {
        padding: 58px 0 82px;
    }

    .tc-rooms-section {
        width: min(760px, calc(100% - 44px));
    }

    .tc-rooms-heading {
        margin-bottom: 42px;
    }

    .tc-rooms-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .tc-room-item {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

    .tc-room-card {
        min-height: 780px;
    }

    .tc-room-image {
        width: min(72%, 380px);
        margin-top: 24px;
    }

    .tc-room-content {
        padding-inline: 34px;
    }
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 680px) {

    .tc-rooms-header {
        min-height: 91px;
        padding: 12px 16px;
    }

    .tc-rooms-brand {
        gap: 9px;
    }

    .tc-rooms-brand img {
        width: 55px;
        height: 55px;
    }

    .tc-rooms-brand-text strong {
        font-size: 21px;
        letter-spacing: 0.12em;
    }

    .tc-rooms-brand-text small {
        margin-top: 6px;
        font-size: 7px;
        letter-spacing: 0.24em;
    }

    .tc-rooms-call-button {
        min-width: 0;
        min-height: 45px;
        padding: 10px 13px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .tc-rooms-call-button > span {
        display: none;
    }

    .tc-rooms-main {
        min-height: calc(100vh - 91px);
        padding: 45px 0 65px;
    }

    .tc-rooms-section {
        width: min(100% - 28px, 540px);
    }

    .tc-rooms-heading {
        margin-bottom: 34px;
    }

    .tc-rooms-heading-divider {
        margin-bottom: 16px;
    }

    .tc-rooms-heading-divider span {
        width: 55px;
    }

    .tc-rooms-heading h1 {
        font-size: clamp(37px, 11vw, 54px);
        line-height: 1.02;
    }

    .tc-rooms-heading > p {
        max-width: 340px;
        margin: 16px auto 0;
        font-size: 11px;
        line-height: 1.7;
        letter-spacing: 0.1em;
    }

    .tc-rooms-grid {
        gap: 45px;
    }

    .tc-room-card {
        min-height: 690px;
        border-radius: 10px;
    }

    .tc-room-image {
        width: min(78%, 320px);
        margin-top: 16px;
    }

    .tc-room-content {
        padding: 23px 18px 25px;
    }

    .tc-room-content h2 {
        font-size: 23px;
    }

    .tc-room-content h2 > small {
        margin-top: 7px;
        font-size: 11px;
    }

    .tc-room-description {
        margin-top: 23px;
    }

    .tc-room-description p {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .tc-room-question {
        padding-top: 25px;
        font-size: 13px;
    }

    .tc-room-enter-button {
        width: calc(100% - 20px);
        min-height: 53px;
        margin-top: 15px;
        font-size: 13px;
        letter-spacing: 0.13em;
    }
}

/* ==================================================
   VERY SMALL MOBILE
   ================================================== */

@media (max-width: 390px) {

    .tc-rooms-brand-text strong {
        font-size: 18px;
    }

    .tc-rooms-brand-text small {
        display: none;
    }

    .tc-rooms-call-button {
        padding-inline: 10px;
        font-size: 9px;
    }

    .tc-room-card {
        min-height: 650px;
    }

    .tc-room-image {
        width: 82%;
    }

    .tc-room-content h2 {
        font-size: 21px;
    }

    .tc-room-description p {
        font-size: 13px;
    }
}

/* ==================================================
   ACCESSIBILITY
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .tc-room-card,
    .tc-room-enter-button,
    .tc-rooms-call-button {
        transition: none;
    }
}