/* ==========================================================================
   Rooms Page
   Premium public-facing room card layout for rooms.php and load_more_rooms.php.
   Keep this file rooms-specific so future redesigns stay easy to manage.
   ========================================================================== */

/* Section spacing and centered layout */
.rooms-page-section {
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    padding-top: 24px;
}

.rooms-container {
    max-width: 1240px;
}

.breadcrumb-section .breadcrumb-text {
    padding-bottom: 28px;
}

/* Responsive card grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.rooms-grid-item {
    min-width: 0;
}

/* Premium room card shell */
.room-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fffdfa;
    border: 1px solid rgba(14, 44, 77, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(18, 38, 63, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 55px rgba(18, 38, 63, 0.14);
    border-color: rgba(30, 94, 179, 0.18);
}

/* Image area */
.room-card-image-wrap {
    position: relative;
    overflow: hidden;
    background: #eef3f9;
}

.room-card-image {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-card-image {
    transform: scale(1.05);
}

/* Floating labels on the image */
.room-price-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.16);
    backdrop-filter: blur(6px);
}

.room-price-value {
    font-family: 'Lora', serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    color: #0d5bd3;
}

.room-price-unit {
    font-size: 0.88rem;
    color: #4f6278;
}

.room-limited-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ff5c5c;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(255, 92, 92, 0.22);
}

/* Text content */
.room-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 24px 22px;
}

.room-card-title {
    margin: 0 0 18px;
    font-family: 'Lora', serif;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #1b2431;
}

/* Feature list stays readable even when room names vary */
.room-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0 0 26px;
    padding: 0;
}

.room-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    color: #4b5b6f;
    font-size: 0.96rem;
    line-height: 1.45;
}

.room-features i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #1f63d7;
    font-size: 0.95rem;
}

.room-features span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Action row */
.room-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
}

.room-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.room-btn:hover,
.room-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.room-btn-secondary {
    border: 1px solid rgba(19, 42, 70, 0.2);
    background: #ffffff;
    color: #23364d;
    box-shadow: inset 0 0 0 1px rgba(19, 42, 70, 0.02);
}

.room-btn-secondary:hover,
.room-btn-secondary:focus {
    border-color: rgba(31, 99, 215, 0.42);
    color: #1f63d7;
    box-shadow: 0 14px 25px rgba(31, 99, 215, 0.1);
}

.room-btn-primary {
    border: 1px solid #1f63d7;
    background: linear-gradient(135deg, #2f7ef7 0%, #0d5bd3 100%);
    color: #ffffff;
    box-shadow: 0 16px 24px rgba(31, 99, 215, 0.18);
}

.room-btn-primary:hover,
.room-btn-primary:focus {
    color: #ffffff;
    box-shadow: 0 20px 30px rgba(31, 99, 215, 0.24);
}

/* Empty state and pagination button */
.rooms-empty-state {
    grid-column: 1 / -1;
    margin: 20px 0 0;
}

.rooms-show-more-wrap {
    padding-top: 34px;
}

.room-show-more-btn {
    min-width: 220px;
    min-height: 54px;
    padding: 14px 28px;
    border: 1px solid rgba(31, 99, 215, 0.24);
    border-radius: 999px;
    background: #ffffff;
    color: #1f63d7;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(18, 38, 63, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.room-show-more-btn:hover,
.room-show-more-btn:focus {
    background: #1f63d7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(31, 99, 215, 0.18);
}

.room-show-more-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Tablet layout */
@media only screen and (max-width: 1199px) {
    .rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile layout */
@media only screen and (max-width: 767px) {
    .rooms-page-section {
        padding-top: 12px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .room-card-image {
        height: 220px;
    }

    .room-card-body {
        padding: 22px 18px 20px;
    }

    .room-card-title {
        font-size: 1.45rem;
    }

    .room-features,
    .room-card-actions {
        grid-template-columns: 1fr;
    }

    .room-show-more-btn {
        width: 100%;
        min-width: 0;
    }
}
