/* --- Single Room Page Layout --- */

/* 1. Header Badges */
.jk-room-header {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.jk-hotel-badge {
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
}
.jk-dist-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* 2. The Main Grid */
.jk-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts Content, 1 part Sidebar */
    gap: 40px;
    align-items: start; /* Important for sticky sidebar */
}

/* 3. Left Column Styling */
.jk-desc-box, .jk-amenities-box {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.jk-desc-box h3, .jk-amenities-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #D32F2F; /* Sindoor Red */
}

/* Amenities Grid */
.jk-amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.jk-amenity-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #eee;
}

/* Promise Box */
.jk-promise-box {
    background: #FFF8E1; /* Cream/Gold bg */
    border: 1px solid #FFD700;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 4. Right Column (Sticky Sidebar) */
.jk-sticky-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 25px;
    position: sticky; /* The magic */
    top: 100px; /* Sticks 100px from top of screen */
}

.jk-card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.jk-price-big {
    font-size: 28px;
    font-weight: 800;
    color: #333;
}
.jk-per-night {
    color: #777;
    font-size: 14px;
}

/* Bonus/USP Alert */
.jk-bonus-alert {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
    line-height: 1.4;
}

/* Form Elements */
.jk-date-group {
    margin-bottom: 15px;
}
.jk-date-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.jk-date-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.jk-book-btn {
    width: 100%;
    background: #D32F2F;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}
.jk-book-btn:hover {
    background: #B71C1C;
}

.jk-secure-note {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .jk-grid-layout {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .jk-sticky-card {
        position: relative; /* Remove sticky on mobile */
        top: 0;
        margin-top: 20px;
    }
}

/* --- FIX FOR ROOM PAGE LAYOUT --- */

/* 1. Hide the Theme's Big Top Image on Room Pages */
.single-jk_room .post-thumbnail, 
.single-jk_room .featured-image,
.single-jk_room .entry-header .wp-post-image {
    display: none !important;
}

/* 2. Hide the Date Box (e.g., '28 Nov') */
.single-jk_room .post-date,
.single-jk_room .entry-meta,
.single-jk_room .badge-container {
    display: none !important;
}

/* 3. Hide the Title if it appears twice (Optional) */
/* Uncomment the lines below if the Room Name appears twice at the top */
/* .single-jk_room .entry-title {
    display: none !important;
} 
*/

/* 4. Ensure our layout starts at the top */
.single-jk_room .entry-content {
    margin-top: 0 !important;
    padding-top: 10px !important;
}