/* ── Room Detail Page ─────────────────────────────────────────────────────── */

body, input, select, textarea, button { font-family: 'Roboto', sans-serif; }

/* ── Page Title Hero (feather photo) ───────────────────────────────── */
.vd-pt-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 0;
}
.vd-pt-photo {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 70%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    /* Feather starts at 20%, completes at 90% */
    -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, rgba(0,0,0,0.5) 55%, transparent 90%);
    mask-image: linear-gradient(to right, black 0%, black 20%, rgba(0,0,0,0.5) 55%, transparent 90%);
}
.vd-pt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(13,31,60,0.72) 0%,
        rgba(13,31,60,0.59) 30%,
        rgba(13,31,60,0.26) 60%,
        rgba(13,31,60,0.0) 100%
    );
    z-index: 2;
    pointer-events: none;
}
/* Dark tint over the photo area — fades out matching the photo feather */
.vd-pt-tint {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right,
        rgba(13,31,60,0.30) 0%,
        rgba(13,31,60,0.30) 20%,
        rgba(13,31,60,0.15) 55%,
        transparent 90%
    );
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 600px) {
    .vd-pt-tint { display: none; }
}
@media (max-width: 768px) {
    .vd-pt-photo { width: 70%; }
}
@media (max-width: 600px) {
    .vd-pt-photo { display: none; }
}


/* ── Airbnb-style photo grid (1 big + 2 small) ──────────────────────── */
.rd-photo-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.rd-photo-main {
    grid-column: 1;
    grid-row: 1 / 3;
    cursor: pointer;
    overflow: hidden;
    background: #1a1a3e;
    position: relative;
}
.rd-photo-main img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.rd-photo-main:hover img { transform: scale(1.03); }
.rd-photo-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #1a1a3e;
    aspect-ratio: 3 / 2;
}
.rd-photo-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.rd-photo-thumb:hover img { transform: scale(1.05); }
.rd-photo-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
}
.rd-photo-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.88);
    border: 1.5px solid #1a1a2e;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    pointer-events: auto;
    cursor: pointer;
}
.rd-photo-mobile-btn {
    display: none;
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255,255,255,0.88);
    border: 1.5px solid #1a1a2e;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
@media (max-width: 991px) {
    .rd-photo-grid { grid-template-columns: 1fr; }
    .rd-photo-thumb { display: none; }
    .rd-photo-main { grid-row: 1; aspect-ratio: 3 / 2; }
    .rd-photo-mobile-btn { display: flex; }
}

/* ── Photo Lightbox ──────────────────────────────────────────────────── */
.rd-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.rd-lightbox-overlay.open { display: flex; }
.rd-lightbox-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    position: relative;
}
.rd-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: none;
    flex-shrink: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
}
.rd-lightbox-title {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}
.rd-lightbox-close {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}
.rd-lightbox-close:hover { background: #e5e7eb; }
/* Small white bottom padding */
.rd-lightbox-modal::after {
    content: '';
    display: block;
    height: 16px;
    background: #fff;
    flex-shrink: 0;
    border-radius: 0 0 20px 20px;
}
.rd-lightbox-featured {
    position: relative;
    flex: 0 0 auto;
    height: 520px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rd-lightbox-featured img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@media (max-width: 768px) {
    .rd-lightbox-featured { height: 260px; }
    .rd-lightbox-modal { border-radius: 14px; max-height: 95vh; }
}
.rd-lightbox-prev, .rd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    z-index: 2;
}
.rd-lightbox-prev { left: 12px; }
.rd-lightbox-next { right: 12px; }
.rd-lightbox-prev:hover, .rd-lightbox-next:hover { background: #d1d5db; }
.rd-lightbox-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,26,46,0.75);
    color: #fff;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Layout ── */
.rd-layout { display:grid; grid-template-columns:1fr 320px; gap:36px; align-items:start; min-width:0; }
.rd-main { min-width:0; overflow:hidden; }
.rd-sidebar { min-width:0; overflow:hidden; }

/* ── Capacity grid ── */
.rd-cap-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; }
.rd-cap-block { background:#f8f9fc; border:1px solid #e5e7ef; border-radius:12px; padding:16px; text-align:center; }
.rd-cap-num { font-size:26px; font-weight:700; color:#6c63ff; font-family:'Roboto',sans-serif; line-height:1; margin-bottom:4px; }
.rd-cap-label { font-size:12px; color:#6b7280; font-weight:500; }

/* ── Description ── */
.rd-desc { font-size:15px; line-height:1.8; color:#374151; white-space:pre-wrap; }

/* ── Sidebar ── */
.rd-sidebar-card { background:#fff; border:1px solid #e5e7ef; border-radius:16px; padding:22px; margin-bottom:18px; }
.rd-sidebar-card h3 { font-family:'Roboto',sans-serif; font-size:15px; font-weight:700; color:#1a1a2e; margin-bottom:14px; }
.rd-cta-btn { display:block; width:100%; padding:13px; background:#6c63ff; color:#fff; text-align:center; border-radius:10px; font-weight:700; font-size:14px; text-decoration:none; transition:background 0.2s; margin-bottom:10px; }
.rd-cta-btn:hover { background:#5a52e0; color:#fff; text-decoration:none; }
.rd-cta-btn.outline { background:transparent; border:1px solid #d1d5db; color:#6b7280; font-size:13px; padding:10px; }
.rd-cta-btn.outline:hover { background:#f9fafb; color:#374151; }

/* ── Section title ── */
.rd-section-title { font-family:'Roboto',sans-serif; font-size:17px; font-weight:800; color:#1a1a2e; margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid #f3f4f6; display:flex; align-items:center; gap:8px; }

/* ── Info rows (Event Space Overview) ── */
.rd-info-rows { display:flex; flex-direction:column; padding-left:16px; }
.rd-info-row { font-size:14px; color:#374151; padding:10px 0; border-bottom:1px solid #f3f4f6; line-height:1.6; }
.rd-info-row:last-child { border-bottom:none; padding-bottom:0; }
.rd-info-row strong { color:#1a1a2e; font-weight:700; display:inline-block; min-width:90px; }

/* ── Sub-sections inside Event Space Overview ── */
.rd-subsection { padding-left:16px; padding-top:16px; padding-bottom:16px; margin-bottom:0; border-top:1px solid #f3f4f6; }
.rd-subsection:first-child { border-top:none; padding-top:0; }
.rd-subsection:last-child { padding-bottom:0; }
.rd-subsection-title { font-family:'Roboto',sans-serif; font-size:12px; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:0.6px; margin-bottom:8px; }
.rd-subsection-body { font-size:14px; color:#374151; line-height:1.7; }
.rd-subsection-rows { display:flex; flex-direction:column; }
.rd-subsection-row { font-size:14px; color:#374151; padding:6px 0; border-bottom:1px solid #f3f4f6; line-height:1.6; }
.rd-subsection-row:last-child { border-bottom:none; padding-bottom:0; }
.rd-subsection-row strong { color:#1a1a2e; font-weight:700; min-width:90px; display:inline-block; }

/* ── Shared room row + section styles (matches venue-detail) ── */
.vd-section { background:#fff; border:1px solid #e5e7ef; border-radius:14px; padding:22px 24px; margin-bottom:20px; }
.vd-section-title { font-family:'Roboto',sans-serif; font-size:15px; font-weight:800; color:#1a1a2e; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.vd-section-title svg { width:18px; height:18px; color:#6c63ff; flex-shrink:0; }
.vd-rooms-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.vd-room-row { display: flex; align-items: stretch; gap: 0; padding: 0; border: 1px solid #f3f4f6; border-radius: 10px; text-decoration: none; color: inherit; transition: background 0.15s, box-shadow 0.15s; background: #fff; overflow: hidden; min-height: 58px; }
.vd-room-row:hover { background: #f9fafb; box-shadow: 0 2px 8px rgba(0,0,0,0.07); text-decoration: none; color: inherit; }
/* Thumb wrapper */
.vd-room-thumb-wrap { width: 80px; flex-shrink: 0; position: relative; background: linear-gradient(135deg,#6c63ff,#3b82f6); overflow: hidden; }
.vd-room-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-room-thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vd-room-thumb-placeholder svg { width:22px; height:22px; opacity:.35; }
.vd-room-row-body { flex: 1; min-width: 0; padding: 10px 10px 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.vd-room-name { font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 700; color: #1a1a2e; line-height: 1.3; margin-bottom: 2px; }
.vd-room-meta { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-room-badges { display:flex; gap:4px; margin-top:4px; flex-wrap:wrap; }
.vd-room-badge { font-size:10px; font-weight:700; border-radius:4px; padding:1px 6px; }
.vd-room-badge-in  { background:#dbeafe; color:#1d4ed8; }
.vd-room-badge-out { background:#dcfce7; color:#15803d; }
.vd-room-link { font-size: 11px; font-weight: 700; color: #3b82f6; flex-shrink: 0; white-space: nowrap; background: #eff6ff; border-radius: 0 8px 8px 0; margin: 2px; padding: 0 14px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.3px; transition: background 0.15s; align-self: stretch; }
.vd-room-row:hover .vd-room-link { background: #dbeafe; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rd-layout { grid-template-columns: 1fr; }
    /* Sidebar floats to top on mobile so "Add to Quote" is immediately visible */
    .rd-sidebar { order: -1; }
    .rd-main { order: 1; }
    .vd-rooms-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .vd-section { padding: 18px 16px; }
    .rd-cap-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rd-sidebar-card { padding: 18px 16px; }
    .rd-cta-btn { width: 100%; box-sizing: border-box; }
    .rd-main, .rd-sidebar { max-width: 100%; overflow-x: hidden; }
}
@media (max-width: 600px) {
    .vd-section { padding: 16px 14px; }
    .rd-cap-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-section-title { font-size: 15px; }
    .vd-section-title { font-size: 14px; }
}
@media (max-width: 900px) {
    body { overflow-x: hidden; }
    .container { max-width: 100%; }
}
#rfq-back-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgb(255 255 255 / 70%);
    color: #e91e8c;
    border: 2px solid #e91e8c;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    text-decoration: none;
    opacity: 0;
    animation: rfqSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 1s forwards;
}
#rfq-back-btn:hover { background: rgb(227 227 227 / 70%); color: #e91e8c; transform: translateY(-2px); }
#rfq-back-btn svg { width: 14px; height: 14px; flex-shrink: 0; stroke: #e91e8c; }
