/* =============================================================
   Rooms Tabs Widget — assets/css/rooms-tabs.css
   Drop this into your plugin's assets/css/ folder
   ============================================================= */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* ── Root variables (override in your theme if needed) ─────── */
:root {
    --rt-gold:          #caa938;
    --rt-gold-hover:    #caa938;
    --rt-text:          #54595F;
    --rt-text-light:    #6b6b6b;
    --rt-bg:            #ffffff;
    --rt-tab-bg:        white;
    --rt-tab-active-bg: #CAA938;
    --rt-border:        #E3E3E3;
    --rt-font-body:     'Titillium Web', sans-serif;
    --rt-font-title:    'Playfair Display', serif;
    --rt-radius:        4px;
    --rt-transition:    0.28s ease;
}

@font-face {
    font-family: 'biticon';
    src: url('/wp-content/uploads/sites/2/2026/01/Biticons.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ── Widget wrapper ─────────────────────────────────────────── */
.rooms-tabs-widget {
    width: 100%;
    font-family: var(--rt-font-body);
    color: var(--rt-text);
}

/* ── Tab navigation ─────────────────────────────────────────── */
.rooms-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* centre the tab row */
    gap: 5px;                   /* 5px spacing between each tab */
  /*  border-bottom: 1px solid var(--rt-border);*/
    margin-bottom: 0;
}

.rooms-tabs__tab {
    position: relative;
    padding: 10px 28px;
    background: var(--rt-tab-bg);
    border: 1px solid var(--rt-border);
    border-bottom: none;
    color: var(--rt-text-light);
    font-family: var(--rt-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--rt-transition), color var(--rt-transition);
    outline: none;
    /*margin-bottom: -2px;               /* overlap the nav border-bottom */
    border-radius: 5px 5px 0 0;        /* rounded top corners, sharp bottom */
    overflow: hidden;                  /* clip ::before bar to tab bounds */
}

.rooms-tabs__tab:hover {
    background: #caa938;
    color: #fff;
}

.rooms-tabs__tab--active {
    background: var(--rt-tab-active-bg);
    color: #fff;
    z-index: 1;
}

/* Full-width gold bar spanning the entire top edge of the active tab */
.rooms-tabs__tab--active::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #977E29;
}

.rooms-tabs__tab:focus-visible {
    outline: 2px solid var(--rt-gold);
    outline-offset: 2px;
}

/* ── Panels ─────────────────────────────────────────────────── */
.rooms-tabs__panels {
    border: 1px solid var(--rt-border);
    /*border-top: none;*/
    border-radius: 5px;  
    background: var(--rt-bg);
    overflow: hidden;
}

.rooms-tabs__panel {
    display: none;
}

.rooms-tabs__panel--active {
    display: block;
}

/* ── Individual Room card ───────────────────────────────────── */
.rooms-tabs__room {
    display: flex;
    flex-wrap: wrap;
    min-height: 420px;
}

/* ── Left: Image ────────────────────────────────────────────── */
.rooms-tabs__room-image {
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
    position: relative;
}

.rooms-tabs__room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rooms-tabs__room-image img:hover {
    transform: scale(1.03);
}

.rooms-tabs__room-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #f0ece3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rt-text-light);
    font-size: 0.85rem;
}

/* ── Right: Details ─────────────────────────────────────────── */
.rooms-tabs__room-details {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

/* Category title — Playfair Display, 18px */
.rooms-tabs__room-category a {
    font-family: var(--rt-font-title);
    font-size: 20px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: var(--rt-text);
    margin-bottom: 18px;
}

.rooms-tabs__category-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color var(--rt-transition), color var(--rt-transition);
}

.rooms-tabs__category-link:hover {
    color: var(--rt-gold);
 /*   border-bottom-color: var(--rt-gold);*/
}

/* Gold divider — 3px thick, 100px wide */
.rooms-tabs__divider {
    width: 100px;
    height: 3px;
    background: var(--rt-gold);
    /*border-radius: 2px;*/
    margin-bottom: 25px;
    margin-top:10px;
    flex-shrink: 0;
}

/* Starting rate row */
.rooms-tabs__rate {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--rt-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rt-text);
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.rooms-tabs__rate-icon {
    display: flex;
    align-items: center;
    color: var(--rt-gold);
    flex-shrink: 0;
    line-height: 1;
}

.rooms-tabs__rate-label {
    white-space: nowrap;
    color: var(--rt-text-light);
}

.rooms-tabs__currency {
    font-family: "biticon", Sans-serif !important;
    font-weight: 400;
}

.rooms-tabs__rate-value {
    color: var(--rt-text);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Description — slightly larger */
.rooms-tabs__description {
    font-family: var(--rt-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--rt-text-light);
    flex: 1 1 auto;
    margin-bottom: 28px;
}

.rooms-tabs__description p:first-child {
    margin-top: 0;
}

.rooms-tabs__description p:last-child {
    margin-bottom: 0;
}

/* Book Now button */
.rooms-tabs__cta {
    margin-top: auto;
}

.rooms-tabs__book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 14px !important;
    font-weight: normal;
    color: #caa938 !important;
    background: #fff !important;
    border: 1px solid #caa938;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rooms-tabs__book-btn .fa-angle-right {
    transition: transform 0.2s ease;
}

.rooms-tabs__book-btn:hover {
    background: #caa938 !important;
    color: #fff !important;
}

.rooms-tabs__book-btn:hover .fa-angle-right {
    transform: translateX(4px);
}

.rooms-tabs__book-btn:active {
    transform: scale(0.98);
}

/* No results */
.rooms-tabs__no-results {
    padding: 24px;
    color: var(--rt-text-light);
    font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet: stack rooms, keep tabs */
@media (max-width: 900px) {
    .rooms-tabs__room-image,
    .rooms-tabs__room-details {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .rooms-tabs__room-image {
        min-height: 280px;
    }

    .rooms-tabs__room-image img {
        height: 280px;
    }

    .rooms-tabs__room-details {
        padding: 32px 28px;
    }
}

/* Mobile: scrollable tab nav */
@media (max-width: 600px) {
    .rooms-tabs__nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rooms-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .rooms-tabs__tab {
        flex-shrink: 0;
        padding: 12px 18px;
        font-size: 0.8rem;
    }

    .rooms-tabs__room-image img {
        height: 220px;
    }

    .rooms-tabs__room-details {
        padding: 24px 20px;
    }

    .rooms-tabs__room-category {
        font-size: 16px;
    }

    .rooms-tabs__rate {
        flex-wrap: wrap;
    }
}
