/* Room listing detail page — matches listing-new-home design */

.room-listing-page {
    --rl-ink: #1c1a17;
    --rl-ink-2: #52493f;
    --rl-ink-3: #8a7f70;
    --rl-bg: #fbf9f5;
    --rl-bg-2: #f0ebe1;
    --rl-line: #e2dccf;
    --rl-rust: #b5562f;
    --rl-rust-dark: #8f4324;
    --rl-green: #3f6b4a;
    --rl-gold: #a9842f;
    --rl-serif: 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
    --rl-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --rl-radius: 4px;
    background: var(--rl-bg);
    color: var(--rl-ink);
    font-family: var(--rl-sans);
    padding-bottom: 3rem;
}

.room-listing-page img {
    max-width: 100%;
    display: block;
}

.room-listing-page a {
    color: inherit;
    text-decoration: none;
}

/* Breadcrumb */
.rl-bc {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    font-size: 12px;
    color: var(--rl-ink-3);
}

.rl-bc a {
    color: var(--rl-ink-3);
}

.rl-bc a:hover {
    color: var(--rl-rust);
}

.rl-bc span {
    margin: 0 6px;
}

/* Photo gallery */
.rl-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 8px;
}

.rl-gallery-main {
    grid-row: 1 / 3;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    position: relative;
}

.rl-gallery-thumb {
    overflow: hidden;
    position: relative;
}

.rl-gallery-thumb:nth-child(3) {
    border-radius: 0 8px 0 0;
}

.rl-gallery-thumb:nth-child(5) {
    border-radius: 0 0 8px 0;
}

.rl-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rl-gallery img:hover {
    transform: scale(1.03);
}

.rl-gallery-count {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(28, 26, 23, 0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Main two-column layout wrapper */
.rl-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px 0;
}

.rl-main > .row {
    align-items: flex-start;
}

.rl-left {
    padding-bottom: 2rem;
}

/* Title block */
.rl-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rl-rust);
    margin-bottom: 10px;
}

.rl-h1 {
    font-family: var(--rl-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: var(--rl-ink);
    margin-bottom: 0.7rem;
    line-height: 1.2;
}

.rl-meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--rl-ink-2);
    margin-bottom: 1rem;
    align-items: center;
}

.rl-meta-dot {
    color: var(--rl-line);
}

.rl-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rl-ink);
}

.rl-rating-stars {
    color: var(--rl-gold);
}

.rl-pets {
    color: var(--rl-green);
    font-weight: 600;
}

.rl-divider {
    border: none;
    border-top: 1px solid var(--rl-line);
    margin: 1.6rem 0;
}

/* Quick facts */
.rl-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 1.4rem 0;
}

.rl-fact {
    background: var(--rl-bg-2);
    border-radius: 6px;
    padding: 12px 14px;
    text-align: center;
}

.rl-fact-icon {
    font-size: 18px;
    margin-bottom: 6px;
}

.rl-fact-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--rl-ink);
}

.rl-fact-label {
    font-size: 11px;
    color: var(--rl-ink-3);
    margin-top: 2px;
}

/* Description */
.rl-sec-title {
    font-family: var(--rl-serif);
    font-size: 1.3rem;
    color: var(--rl-ink);
    margin-bottom: 1.2rem;
}

.rl-desc {
    font-size: 15px;
    color: var(--rl-ink-2);
    line-height: 1.8;
    max-width: 620px;
    white-space: pre-line;
}

.rl-desc p {
    margin-bottom: 1rem;
}

.rl-desc p:last-child {
    margin-bottom: 0;
}

/* Amenities */
.rl-amen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.rl-amen-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 0.5px solid var(--rl-line);
    font-size: 13.5px;
    color: var(--rl-ink-2);
}

.rl-amen-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 1.4em;
    text-align: center;
}

.rl-amen-more {
    margin-top: 1rem;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rl-rust-dark);
    background: none;
    border: 1px solid var(--rl-line);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
}

.rl-amen-more:hover {
    background: var(--rl-bg-2);
    color: var(--rl-rust-dark);
}

/* Map / location */
.rl-map-block {
    background: var(--rl-bg-2);
    border-radius: 8px;
    padding: 1.4rem;
    border: 1px solid var(--rl-line);
}

.rl-map-img {
    aspect-ratio: 16 / 9;
    background: #d8d3c8;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--rl-ink-3);
    text-align: center;
    padding: 1rem;
}

.rl-map-img a {
    color: var(--rl-rust-dark);
    font-weight: 600;
    text-decoration: underline;
}

.rl-nearby-list {
    display: flex;
    flex-direction: column;
}

.rl-nearby-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--rl-line);
    font-size: 13px;
    color: var(--rl-ink-2);
}

.rl-nearby-item:last-child {
    border-bottom: none;
}

.rl-nearby-dist {
    color: var(--rl-ink-3);
    flex-shrink: 0;
}

.rl-neighborhood {
    font-size: 14px;
    color: var(--rl-ink-2);
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* House rules */
.rl-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    font-size: 14px;
    color: var(--rl-ink-2);
}

.rl-rules-grid b {
    color: var(--rl-ink);
}

.rl-rules-extra {
    margin-top: 1rem;
    font-size: 14px;
    color: var(--rl-ink-2);
    line-height: 1.7;
    white-space: pre-line;
}

/* Cancellation */
.rl-cancel-box {
    font-size: 14px;
    color: var(--rl-ink-2);
    line-height: 1.7;
    white-space: pre-line;
}

/* Guest reviews */
.rl-review-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rl-review-big {
    font-family: var(--rl-serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--rl-ink);
    line-height: 1;
}

.rl-review-big-sub {
    font-size: 13px;
    color: var(--rl-ink-3);
    margin-top: 4px;
}

.rl-review-stars-lg {
    font-size: 24px;
    color: var(--rl-gold);
    letter-spacing: 1px;
}

.rl-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rl-review-slider {
    margin: 0 -8px 0.5rem;
}

.rl-review-slider .slick-slide {
    padding: 0 8px;
    height: auto;
}

.rl-review-slider .slick-track {
    display: flex !important;
}

.rl-review-slider .slick-slide > div {
    height: 100%;
}

.rl-review-slider .rl-review-card {
    height: 100%;
    min-height: 160px;
}

.rl-review-slider ul.slick-dots {
    bottom: -28px;
    position: relative;
    display: flex !important;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.rl-review-slider ul.slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.rl-review-slider ul.slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--rl-line);
    border: none;
    font-size: 0;
}

.rl-review-slider ul.slick-dots li.slick-active button {
    background: var(--rl-rust);
}

.rl-review-card {
    background: var(--rl-bg-2);
    border-radius: 8px;
    padding: 1.2rem 1.3rem;
}

.rl-review-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rl-ink);
    margin-bottom: 2px;
}

.rl-review-date {
    font-size: 11.5px;
    color: var(--rl-ink-3);
    margin-bottom: 8px;
}

.rl-review-stars {
    font-size: 12px;
    color: var(--rl-gold);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.rl-review-text {
    font-size: 13.5px;
    color: var(--rl-ink-2);
    line-height: 1.6;
    font-family: var(--rl-serif);
    font-style: italic;
}

.rl-review-form-wrap {
    margin-top: 1.5rem;
    padding: 1.2rem 1.3rem;
    background: #fff;
    border: 1px solid var(--rl-line);
    border-radius: 8px;
}

.rl-review-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rl-rust-dark);
    border: 1px solid var(--rl-line);
    border-radius: 6px;
    padding: 10px 16px;
    background: #fff;
}

.rl-review-more:hover {
    background: var(--rl-bg-2);
    color: var(--rl-rust-dark);
}

/* Similar listings */
.rl-similar-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 2rem;
}

.rl-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rl-similar-card {
    border: 1px solid var(--rl-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    display: block;
    color: inherit;
    text-decoration: none;
}

.rl-similar-card:hover {
    box-shadow: 0 4px 14px rgba(28, 26, 23, 0.08);
    color: inherit;
}

.rl-similar-img {
    aspect-ratio: 4 / 3;
    background: var(--rl-bg-2);
    overflow: hidden;
}

.rl-similar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rl-similar-body {
    padding: 0.9rem 1rem;
}

.rl-similar-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rl-ink);
    margin-bottom: 3px;
    line-height: 1.3;
}

.rl-similar-meta {
    font-size: 12px;
    color: var(--rl-ink-3);
    margin-bottom: 6px;
}

.rl-similar-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--rl-ink);
}

.rl-similar-price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--rl-ink-3);
}

/* Sidebar polish so it sits on cream bg */
.room-listing-page .pro-sidebar {
    background: #fff;
    border: 1px solid var(--rl-line);
    border-radius: 10px;
    padding: 1.4rem;
    position: sticky;
    top: 90px;
    box-shadow: 0 2px 8px rgba(28, 26, 23, 0.06);
}

.room-listing-page .pro-sidebar.mt-4 {
    margin-top: 1rem !important;
}

.room-listing-page .project-details-page {
    background: transparent;
}

/* Hide old hero when listing page is used */
.room-listing-page + .project-details-page,
.inner-hero.room-details {
    /* overridden by structure */
}

@media (max-width: 900px) {
    .rl-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 280px;
        height: 280px;
    }

    .rl-gallery-thumb {
        display: none;
    }

    .rl-gallery-main {
        border-radius: 8px;
        grid-row: auto;
    }

    .rl-facts {
        grid-template-columns: 1fr 1fr;
    }

    .rl-amen-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rl-similar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rl-reviews-grid {
        grid-template-columns: 1fr;
    }

    .room-listing-page .pro-sidebar {
        position: static;
        box-shadow: none;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .rl-rules-grid {
        grid-template-columns: 1fr;
    }

    .rl-similar-grid {
        grid-template-columns: 1fr;
    }
}
