/**
 * West Inn - Single Room Styles
 * Matches Rooms page Elementor design
 */

/* Hero */
.wib-room-hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    max-height: 650px;
    background-size: cover;
    background-position: center;
    background-color: #100909;
}

.wib-room-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,9,9,0.15) 0%, rgba(16,9,9,0.75) 100%);
    display: flex;
    align-items: flex-end;
}

.wib-room-hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px 50px;
}

.wib-room-breadcrumb {
    display: flex;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    margin-bottom: 14px;
}

.wib-room-breadcrumb a { color: rgba(255,255,255,0.75) !important; text-decoration: none; }
.wib-room-breadcrumb a:hover { color: #fff !important; }
.wib-room-breadcrumb span { color: rgba(255,255,255,0.5) !important; }
.wib-room-breadcrumb span:last-child { color: #fff !important; }

.wib-room-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 10px;
    line-height: 1.2;
}

.wib-room-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    max-width: 550px;
    line-height: 1.6;
}

/* Content Wrapper */
.wib-room-content-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Info Bar */
.wib-room-info-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    padding: 10px;
    margin-top: -35px;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.wib-info-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-right: 1px solid #f0f0f0;
}

.wib-info-bar-item svg { stroke: #48684B; flex-shrink: 0; }
.wib-bar-label { display: block; font-family: 'Poppins', sans-serif; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.wib-bar-value { display: block; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: #100909; }
.wib-bar-value small { font-weight: 400; color: #999; }

.wib-info-bar-cta {
    padding: 10px 16px 10px 20px;
    flex-shrink: 0;
}

/* Body Layout */
.wib-room-body {
    display: flex;
    gap: 40px;
    padding-bottom: 70px;
}

.wib-room-main { flex: 1; min-width: 0; }
.wib-room-sidebar { width: 320px; flex-shrink: 0; }

/* Section Title */
.wib-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: #100909;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.wib-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2px;
    background: #48684B;
}

.wib-section-center { text-align: center; }
.wib-section-center::after { left: 50%; transform: translateX(-50%); }

/* Room Sections */
.wib-room-section { margin-bottom: 45px; }

.wib-room-text {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.85;
    color: #636363;
}

.wib-room-text p { margin: 0 0 14px; }

/* Amenities */
.wib-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wib-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: #f8f9f8;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #100909;
}

.wib-amenity-item svg { flex-shrink: 0; }

/* Gallery */
.wib-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.wib-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.wib-gallery-large { grid-column: span 2; grid-row: span 2; }

.wib-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wib-gallery-item:hover img { transform: scale(1.05); }

/* Book Button */
.wib-room-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #48684B !important;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wib-room-book-btn:hover { background: #3a5a3e !important; color: #fff !important; transform: translateY(-2px); }

.wib-book-full {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
}

/* Sidebar Card */
.wib-booking-card {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wib-card-price {
    background: #100909;
    padding: 24px 24px;
    text-align: center;
}

.wib-price-big {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.wib-price-unit {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.5);
}

.wib-card-details { padding: 20px 24px; }

.wib-card-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.wib-card-row:last-child { border-bottom: none; }
.wib-card-row span:first-child { color: #999; }
.wib-card-row span:last-child { color: #100909; font-weight: 500; }

.wib-card-action { padding: 0 24px 24px; }

/* ====================================================
   Other Rooms - matching Rooms page Elementor cards
   ==================================================== */

.wib-other-rooms {
    background: #f8f9f8;
    padding: 70px 0 80px;
}

.wib-other-rooms-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.wib-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Room Card - matching Elementor cards on /rooms/ */
.wib-room-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease;
}

.wib-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.wib-card-img {
    display: block;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
    border-radius: 15px;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
}

.wib-card-img:hover { opacity: 0.9; }

.wib-card-body { padding: 0 4px; }

.wib-card-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #100909 !important;
    margin: 0 0 10px !important;
}

.wib-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.wib-card-meta li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #636363;
}

.wib-card-meta li svg { stroke: #48684B; }

.wib-card-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 12px 0;
}

.wib-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wib-card-footer--center {
    justify-content: center;
}

.wib-card-price-small {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #100909;
}

.wib-card-price-small span {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.wib-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px 8px;
    background: #48684B !important;
    color: #fff !important;
    border: 1px solid #48684B;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.wib-card-btn svg { width: 14px; height: 14px; stroke: #fff !important; }

.wib-card-btn:hover {
    background: #3a5a3e !important;
    color: #fff !important;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1024px) {
    .wib-room-body { flex-direction: column; }
    .wib-room-sidebar { width: 100%; }
    .wib-booking-card { position: static; }
}

@media (max-width: 768px) {
    .wib-room-hero { height: 45vh; min-height: 320px; }
    .wib-room-title { font-size: 30px; }
    .wib-room-info-bar { flex-direction: column; padding: 0; border-radius: 16px; }
    .wib-info-bar-item { border-right: none; border-bottom: 1px solid #f0f0f0; padding: 14px 20px; }
    .wib-info-bar-cta { width: 100%; padding: 16px; }
    .wib-info-bar-cta .wib-room-book-btn { width: 100%; }
    .wib-amenities-grid { grid-template-columns: 1fr; }
    .wib-gallery-grid { grid-template-columns: 1fr 1fr; }
    .wib-gallery-large { grid-column: span 2; grid-row: auto; }
    .wib-rooms-grid { grid-template-columns: repeat(2, 1fr); }
    .wib-card-img { height: 220px; }
}
