/* =====================================================
   Select Hotels Bootstrap Test Theme
   Full theme stylesheet
   ===================================================== */


/* =====================================================
   1. Global base
   ===================================================== */

:root {
    --shbt-white: #ffffff;
    --shbt-black: #111827;
    --shbt-dark: #1f2937;
    --shbt-muted: #6b7280;
    --shbt-light: #f8f9fa;
    --shbt-border: #e5e7eb;
    --shbt-gold: #b8872f;
    --shbt-gold-dark: #9a6a1f;
    --shbt-radius-sm: 0.5rem;
    --shbt-radius-md: 0.75rem;
    --shbt-radius-lg: 1rem;
    --shbt-shadow-soft: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
    --shbt-shadow-card: 0px 8px 24px rgba(0, 0, 0, 0.08);
    --shbt-shadow-dropdown: 0px 8px 24px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behaviour: smooth;
}

body {
    color: var(--shbt-dark);
    background: var(--shbt-white);
    padding-top: 86px;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--shbt-gold-dark);
}

a:hover,
a:focus {
    color: var(--shbt-gold);
}

img {
    max-width: 100%;
    height: auto;
}

.site-main {
    min-height: 70vh;
}

.content p:last-child,
.hotel-section p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   2. Header and fixed navbar
   ===================================================== */

.navbar-hotel {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: var(--shbt-white);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    box-shadow: var(--shbt-shadow-soft);
}

/* WordPress admin bar fix */
body.admin-bar .navbar.navbar-hotel.fixed-top {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar.navbar-hotel.fixed-top {
        top: 46px !important;
    }
}


/* =====================================================
   3. Header layout
   ===================================================== */

.hotel-header-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hotel-header-logo {
    margin-right: auto;
    margin-bottom: 0;
}

.hotel-header-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.hotel-header-logo .custom-logo {
    display: block;
    max-width: 180px;
    width: auto;
    height: auto;
}

.site-title {
    color: var(--shbt-black);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.site-title:hover,
.site-title:focus {
    color: var(--shbt-gold-dark);
}

.hotel-header-toggler {
    margin-left: auto;
    border: 0;
    box-shadow: none;
}

.hotel-header-toggler:focus {
    box-shadow: none;
}

.hotel-header-collapse {
    width: 100%;
}

.hotel-header-nav {
    width: 100%;
    margin-top: 1rem;
}

.hotel-header-action {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}


/* =====================================================
   4. Navigation
   ===================================================== */

.hotel-main-menu {
    gap: 0;
}

.hotel-main-menu .nav-link {
    color: var(--shbt-dark);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0;
    transition: color 0.2s ease;
}

.hotel-main-menu .nav-link:hover,
.hotel-main-menu .nav-link:focus,
.hotel-main-menu .active > .nav-link,
.hotel-main-menu .current-menu-item > .nav-link,
.hotel-main-menu .current-menu-ancestor > .nav-link {
    color: var(--shbt-gold-dark);
}

.navbar-hotel .dropdown-menu {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin-top: 0;
}

.navbar-hotel .dropdown-item {
    color: var(--shbt-dark);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-hotel .dropdown-item:hover,
.navbar-hotel .dropdown-item:focus {
    color: var(--shbt-gold-dark);
    background: rgba(0, 0, 0, 0.035);
}


/* =====================================================
   5. Buttons
   ===================================================== */

.btn-gold,
.navbar-hotel .btn-gold,
.navbar-hotel .hotel-booking-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 0.75rem 1.45rem !important;
    border: 1px solid var(--shbt-gold) !important;
    border-radius: 2px !important;
    background: var(--shbt-gold) !important;
    color: var(--shbt-white) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0px 4px 12px rgba(184, 135, 47, 0.28);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-gold:hover,
.btn-gold:focus,
.navbar-hotel .btn-gold:hover,
.navbar-hotel .btn-gold:focus,
.navbar-hotel .hotel-booking-button:hover,
.navbar-hotel .hotel-booking-button:focus {
    background: var(--shbt-gold-dark) !important;
    border-color: var(--shbt-gold-dark) !important;
    color: var(--shbt-white) !important;
    transform: translateY(-1px);
    box-shadow: 0px 6px 18px rgba(154, 106, 31, 0.34);
}

.btn-outline-secondary {
    border-color: var(--shbt-border);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--shbt-dark);
    border-color: var(--shbt-dark);
    color: var(--shbt-white);
}


/* =====================================================
   6. Hotel hero
   ===================================================== */

.hotel-hero {
    background: var(--shbt-light);
    border-bottom: 1px solid var(--shbt-border);
}

.hotel-hero h1 {
    color: var(--shbt-black);
    line-height: 1.15;
}

.hotel-stars {
    color: var(--shbt-gold);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.hotel-hero .lead {
    max-width: 760px;
}


/* =====================================================
   7. Hotel content sections
   ===================================================== */

.hotel-section {
    margin-bottom: 3rem;
}

.hotel-section h2,
.hotel-section .h3 {
    color: var(--shbt-black);
}

.hotel-section.content {
    font-size: 1.05rem;
}

.hotel-section.content p {
    margin-bottom: 1rem;
}


/* =====================================================
   8. Highlight cards
   ===================================================== */

.hotel-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(184, 135, 47, 0.12);
    color: var(--shbt-gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.hotel-section .bg-light {
    background-color: var(--shbt-light) !important;
}


/* =====================================================
   9. Facility lists
   ===================================================== */

.hotel-facility-list {
    margin-bottom: 0;
}

.hotel-facility-list li span {
    min-height: 48px;
}

.hotel-facility-list .hotel-check {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
}


/* =====================================================
   10. Nearby lists
   ===================================================== */

.list-group {
    border-color: var(--shbt-border);
}

.list-group-item {
    border-color: var(--shbt-border);
    padding: 1rem 1.1rem;
}

.list-group-item strong {
    color: var(--shbt-black);
}


/* =====================================================
   11. FAQ accordion
   ===================================================== */

.hotel-faq-accordion {
    border: 1px solid var(--shbt-border);
    border-radius: var(--shbt-radius-lg);
    overflow: hidden;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.04);
}

.hotel-faq-accordion .accordion-item {
    border-left: 0;
    border-right: 0;
    border-color: var(--shbt-border);
}

.hotel-faq-accordion .accordion-item:first-child {
    border-top: 0;
}

.hotel-faq-accordion .accordion-item:last-child {
    border-bottom: 0;
}

.hotel-faq-accordion .accordion-button {
    color: var(--shbt-black);
    background: var(--shbt-white);
    font-weight: 600;
    padding: 1rem 1.15rem;
    box-shadow: none;
}

.hotel-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--shbt-gold-dark);
    background: rgba(184, 135, 47, 0.06);
    box-shadow: none;
}

.hotel-faq-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.hotel-faq-accordion .accordion-body {
    color: var(--shbt-dark);
    padding: 1rem 1.15rem 1.25rem;
}

.hotel-faq-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   12. Sidebar card
   ===================================================== */

.hotel-sidebar-card {
    top: 7rem;
    border: 1px solid var(--shbt-border) !important;
    box-shadow: var(--shbt-shadow-card) !important;
}

.hotel-sidebar-card h2 {
    color: var(--shbt-black);
}

.hotel-sidebar-card .fs-4 {
    color: var(--shbt-black);
}

.hotel-sidebar-card .small {
    line-height: 1.5;
}


/* =====================================================
   13. Footer
   ===================================================== */

.site-footer {
    background: var(--shbt-white);
    border-top: 1px solid var(--shbt-border);
}

.site-footer a {
    color: var(--shbt-muted);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--shbt-gold-dark);
}


/* =====================================================
   14. Bootstrap utility refinements
   ===================================================== */

.rounded-4 {
    border-radius: var(--shbt-radius-lg) !important;
}

.shadow-sm {
    box-shadow: var(--shbt-shadow-card) !important;
}

.text-muted {
    color: var(--shbt-muted) !important;
}


/* =====================================================
   15. Desktop header layout
   ===================================================== */

@media (min-width: 992px) {
    body {
        padding-top: 90px;
    }

    .navbar-hotel {
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }

    .hotel-header-grid {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1.5rem;
    }

    .hotel-header-logo {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
    }

    .hotel-header-toggler {
        display: none;
    }

    .hotel-header-collapse {
        display: contents !important;
    }

    .hotel-header-nav {
        grid-column: 2;
        justify-self: center;
        width: auto;
        margin-top: 0;
    }

    .hotel-main-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        white-space: nowrap;
    }

    .hotel-main-menu .nav-link {
        padding: 0.5rem 0.85rem;
    }

    .hotel-header-action {
        grid-column: 3;
        justify-self: end;
        justify-content: flex-end;
        width: auto;
        margin-top: 0;
    }

    .btn-gold,
    .navbar-hotel .btn-gold,
    .navbar-hotel .hotel-booking-button {
        width: auto;
    }

    .navbar-hotel .dropdown-menu {
        border: 0;
        border-radius: var(--shbt-radius-md);
        box-shadow: var(--shbt-shadow-dropdown);
        padding: 0.5rem 0;
        margin-top: 0.75rem;
        min-width: 220px;
    }

    .navbar-hotel .dropdown-item {
        padding: 0.55rem 1rem;
    }
}


/* =====================================================
   16. Tablet and mobile refinements
   ===================================================== */

@media (max-width: 991.98px) {
    .hotel-header-collapse {
        width: 100%;
        margin-top: 1rem;
    }

    .hotel-main-menu .nav-link {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .hotel-header-action {
        width: 100%;
        margin-top: 1rem;
    }

    .hotel-booking-button {
        width: 100% !important;
    }

    .hotel-sidebar-card {
        position: static !important;
        margin-top: 2rem;
    }
}


/* =====================================================
   17. Small mobile refinements
   ===================================================== */

@media (max-width: 575.98px) {
    body {
        padding-top: 78px;
    }

    .navbar-hotel {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .hotel-header-logo .custom-logo {
        max-width: 150px;
    }

    .hotel-hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hotel-hero h1 {
        font-size: 2rem;
    }

    .hotel-section {
        margin-bottom: 2.5rem;
    }

    .list-group-item {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .list-group-item .text-nowrap {
        white-space: normal !important;
    }
}


/* =====================================================
   Final desktop header alignment override
   Forces logo left, nav centre, button right
   ===================================================== */

@media (min-width: 992px) {
    .navbar-hotel .hotel-header-grid {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1.5rem;
    }

    .navbar-hotel .hotel-header-logo {
        grid-column: 1;
        justify-self: start;
        margin: 0;
    }

    /*
       Important:
       This must be more specific than Bootstrap's
       .navbar-expand-lg .navbar-collapse display:flex!important
    */
    .navbar-hotel.navbar-expand-lg .navbar-collapse.hotel-header-collapse {
        display: contents !important;
    }

    .navbar-hotel .hotel-header-nav {
        grid-column: 2;
        justify-self: center;
        width: auto;
        margin: 0;
    }

    .navbar-hotel .hotel-main-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        white-space: nowrap;
    }

    .navbar-hotel .hotel-header-action {
        grid-column: 3;
        justify-self: end;
        justify-content: flex-end;
        width: auto;
        margin: 0;
    }

    .navbar-hotel .hotel-booking-button {
        width: auto !important;
    }
}