/* ============================================================
   rooms-non-critical.css
   Loaded async on rooms-for-rent variants only.
   Companion to non-critical.css (shared) + inline critical CSS.
   ============================================================ */

/* Press logos — white background so transparent PNGs render correctly */
.press-logos img { background: #fff; }

/* ============================================================
   Choose your path — 2-column override for rooms variant
   ============================================================ */
.path-grid--rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

/* Path grid — stack to single column on mobile */
@media (max-width: 640px) {
    .path-grid--rooms {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

/* ============================================================
   How It Works — mode tab toggle
   ============================================================ */
.how-tabs {
    display: flex;
    gap: 4px;
    width: fit-content;
    margin: 0 auto 52px;
    padding: 5px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.how-tab {
    appearance: none; border: 0; cursor: pointer;
    padding: 12px 30px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-body);
    background: transparent;
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.how-tab:hover { color: var(--text-primary); }
.how-tab.is-active {
    color: #fff;
    background: var(--brand-orange);
    box-shadow: 0 8px 20px rgba(242, 107, 33, 0.30);
}
.how-mode.is-hidden { display: none; }

/* How step placeholder screens (shown when image file not yet added) */
.step-ph {
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    border-radius: 14px;
    border: 1px solid var(--brand-orange-line);
    background-color: #fff7f2;
    background-image: repeating-linear-gradient(45deg, rgba(242,107,33,0.05) 0 10px, transparent 10px 20px);
}
.step-ph-glyph {
    width: 66px; height: 66px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: #fff;
    color: var(--brand-orange);
    font-size: 30px; line-height: 1;
    box-shadow: 0 10px 22px rgba(242, 107, 33, 0.16);
}
.step-ph-label {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand-orange);
}

/* How tabs responsive */
@media (max-width: 900px) { .how-tab { padding: 11px 22px; font-size: 14px; } }
@media (max-width: 520px) {
    .how-tabs { width: 100%; border-radius: 14px; }
    .how-tab { flex: 1; font-size: 14px; padding: 11px 12px; text-align: center; }
}

/* ============================================================
   Recently Posted Rooms
   ============================================================ */
.rooms-section { padding: var(--section-pad-y) 24px; background: var(--bg-white); }
.rooms-inner { max-width: 1200px; margin: 0 auto; }
.rooms-heading {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.rooms-heading .eyebrow { margin-bottom: 10px; }
.rooms-heading h2 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.08; font-weight: 900;
    letter-spacing: -0.04em; color: var(--text-primary);
}
.rooms-viewall {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 15px;
    color: var(--brand-orange); text-decoration: none; white-space: nowrap;
}
.rooms-viewall:hover { text-decoration: underline; text-underline-offset: 4px; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Room cards — non-clickable static display */
.room-card {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--border-soft);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.055);
    cursor: default;
}
.room-card:hover { transform: none; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.055); }
.room-card-media { position: relative; height: 200px; overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-card-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.92); color: #1f2328;
    font-size: 12px; font-weight: 700;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.room-card-type {
    position: absolute; top: 14px; right: 14px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--brand-orange); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.room-card-price {
    position: absolute; bottom: 14px; right: 14px;
    padding: 8px 13px; border-radius: 10px;
    background: var(--brand-orange); color: #fff;
    font-size: 18px; font-weight: 900; letter-spacing: -0.02em;
    box-shadow: 0 8px 20px rgba(242, 107, 33, 0.30);
}
.room-card-price span { font-size: 12px; font-weight: 600; opacity: 0.9; }
.room-card-body { padding: 20px 22px 24px; }
.room-card-body h3 {
    margin: 0 0 8px; font-size: 19px; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text-primary);
}
.room-card-loc {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 16px; font-size: 14px; color: var(--text-muted);
}
.room-card-loc::before {
    content: ""; width: 8px; height: 8px; flex: 0 0 auto;
    border-radius: 999px 999px 999px 0;
    background: var(--brand-orange); transform: rotate(-45deg);
}
.room-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.room-card-tags span {
    display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-orange-soft); border: 1px solid var(--brand-orange-line);
    font-size: 12px; font-weight: 700; color: #9a4a1e;
}
.room-card-tags span.tag--coliving {
    background: rgba(242,107,33,0.15); border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* Signup nudge below the grid */
.rooms-nudge { margin-top: 28px; text-align: center; }
.rooms-nudge p { font-size: 15px; color: var(--text-muted); }
.rooms-nudge-link {
    font-weight: 700;
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rooms-nudge-link:hover { color: var(--brand-orange-hover); }

/* Rooms grid responsive */
@media (max-width: 900px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rooms-grid { grid-template-columns: 1fr; } }
