/********** BHR brand **********/
html {
    scroll-padding-top: 80px;
}

:root {
    --bs-primary: #A67C52;
    --bs-primary-rgb: 166, 124, 82;
    --bs-dark: #3D2914;
    --bs-dark-rgb: 61, 41, 20;
    --bs-light: #F7F3EE;
    --bs-light-rgb: 247, 243, 238;
    --bhr-bronze: #C4A574;
    --bhr-bronze-dark: #A67C52;
    --bhr-brown: #3D2914;
    --bhr-cream: #F7F3EE;
    --bhr-overlay: rgba(61, 41, 20, .58);
}

body {
    color: var(--bhr-brown);
    background-color: #fff;
}

[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .btn.btn-dark,
[dir="rtl"] .btn.btn-primary {
    font-family: "Cairo", "Noto Naskh Arabic", sans-serif;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #8C6A3D !important;
    border-color: #8C6A3D !important;
    color: #fff !important;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.whatsapp-fab {
    position: fixed;
    left: 25px;
    bottom: 45px;
    z-index: 99;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
    transition: transform .2s;
}

.whatsapp-fab:hover {
    color: #fff !important;
    transform: scale(1.08);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 45px;
}

[dir="rtl"] .whatsapp-fab {
    left: auto;
    right: 25px;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** M, P, Fonts ***/
.mt-6 {
    margin-top: 6rem;
}

.mb-6 {
    margin-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.pt-6 {
    padding-top: 6rem;
}

.pb-6 {
    padding-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

[dir="rtl"] .font-dancing-script {
    font-family: "Cairo", sans-serif;
    font-weight: 600;
}


/*** Button ***/
.btn.btn-dark,
.btn.btn-primary {
    position: relative;
    font-family: 'Yeseva One', serif;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
    background: var(--bhr-overlay);
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: #f7f3ee;
    border-radius: 6px;
    padding: 4px 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 22px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bhr-bronze);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-end: 16px;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.2;
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }

    .lang-switcher {
        margin: 12px 0;
    }

    .navbar-collapse .btn-primary {
        margin-bottom: 16px;
        display: inline-flex;
        width: fit-content;
    }

    .navbar-logo {
        height: 44px;
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }
}

[dir="rtl"] .navbar .navbar-nav .nav-link {
    margin-right: 0;
    margin-left: 22px;
}

[dir="rtl"] .navbar-toggler {
    margin-right: 0;
    margin-left: 1.5rem;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bhr-overlay);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 1200px) {
    .carousel-caption .display-1 {
        font-size: 5rem;
    }
}

#header-carousel .carousel-item {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

#header-carousel .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/*** Fact ***/
.fact-counter {
    background: linear-gradient(var(--bhr-overlay), var(--bhr-overlay)), url(../img/rooms/parking/01.jpg) center center no-repeat;
    background-size: cover;
}


/*** Room ***/
#apartments .row > [class*="col-"] {
    display: flex;
}

.room-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
}

.room-detail {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.room-detail .btn {
    margin-top: auto !important;
}

.room-item .bg-primary h6 {
    font-size: 0.9rem;
    line-height: 1.25;
}

.room-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.room-item .room-detail img {
    transition: none;
}

.room-carousel-wrap {
    position: relative;
}

.room-carousel .carousel-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #1a120c;
    overflow: hidden;
}

.room-carousel .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.room-carousel .carousel-control-prev,
.room-carousel .carousel-control-next {
    width: 18%;
    opacity: 1;
}

.room-carousel .carousel-control-prev-icon,
.room-carousel .carousel-control-next-icon {
    width: 1.6rem;
    height: 1.6rem;
    background-color: rgba(61, 41, 20, .55);
    background-size: 55% 55%;
    border-radius: 50%;
}

.room-carousel .carousel-indicators {
    margin-bottom: .45rem;
}

.room-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
}

.room-size-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: var(--bhr-overlay);
}

[dir="rtl"] .room-size-badge {
    left: auto;
    right: 0;
}

.room-item ul {
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

[dir="rtl"] .room-item ul {
    padding-left: 0;
    padding-right: 1.1rem;
}

.room-item ul li {
    font-size: 0.9rem;
    margin-bottom: 2px;
}


/*** Service ***/
.service-item {
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-primary);
    border-radius: 4px;
    z-index: 1;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
}

.service-item:hover::after {
    width: 0;
    left: auto;
    right: 0;
}

[dir="rtl"] .service-item:hover::after {
    right: auto;
    left: 0;
}

.service-item * {
    position: relative;
    transition: .5s;
    z-index: 3;
}

.service-item:hover * {
    color: #FFFFFF !important;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

[dir="rtl"] .feature-text {
    padding-left: 0.75rem;
}

@media (min-width: 992px) {
    [dir="rtl"] .feature-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
        padding-left: 3rem;
    }
}

@media (min-width: 1200px) {
    [dir="rtl"] .feature-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    [dir="rtl"] .feature-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Rules ***/
.rule-item {
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    height: 100%;
}

.rule-item i {
    color: var(--bs-primary);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

[dir="rtl"] .contact-text {
    padding-left: 0.75rem;
}

@media (min-width: 992px) {
    [dir="rtl"] .contact-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
        padding-left: 3rem;
    }
}

@media (min-width: 1200px) {
    [dir="rtl"] .contact-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    [dir="rtl"] .contact-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.form-status .loading,
.form-status .error-message,
.form-status .sent-message {
    display: none;
    margin-bottom: 12px;
    font-weight: 500;
}

.form-status .loading.d-block,
.form-status .error-message.d-block,
.form-status .sent-message.d-block {
    display: block;
}

.form-status .sent-message {
    color: #198754;
}

.form-status .error-message {
    color: #dc3545;
}

.form-status .loading {
    color: var(--bs-primary);
}


/*** Page header ***/
.page-header {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 64px;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bhr-overlay);
}

.page-header .container {
    position: relative;
    z-index: 1;
}


/*** Service photo cards ***/
.service-photo-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    min-height: 360px;
    color: #fff !important;
    text-decoration: none;
}

.service-photo-card:hover,
.service-photo-card:focus {
    color: #fff !important;
    text-decoration: none;
}

.service-photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.service-photo-card:hover img {
    transform: scale(1.08);
}

.service-photo-overlay {
    position: relative;
    z-index: 2;
    min-height: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(61, 41, 20, .88) 0%, rgba(61, 41, 20, .35) 55%, transparent 100%);
    transition: background .4s;
}

.service-photo-card:hover .service-photo-overlay {
    background: linear-gradient(to top, rgba(61, 41, 20, .94) 0%, rgba(61, 41, 20, .5) 60%, transparent 100%);
}

.service-photo-overlay h3,
.service-photo-overlay p,
.service-photo-overlay span {
    color: #fff;
}

.service-photo-cta {
    display: inline-block;
    margin-top: .5rem;
    font-size: .9rem;
    letter-spacing: .04em;
    color: var(--bhr-bronze) !important;
}

.service-extra {
    background: var(--bs-light);
    border-radius: 4px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
}


/*** Gallery ***/
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.gallery-filter {
    background: transparent;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    transition: .25s;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: var(--bs-primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-item--wide {
        grid-column: span 2;
    }
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    background: #1a120a;
    padding: 0;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item--wide {
    aspect-ratio: 2 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.06);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.show {
    display: flex;
}

.lightbox-img {
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 2;
}

.lightbox-close {
    top: 16px;
    right: 20px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

[dir="rtl"] .lightbox-close {
    right: auto;
    left: 20px;
}

[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 12px;
}

[dir="rtl"] .lightbox-next {
    right: auto;
    left: 12px;
}

body.lightbox-open {
    overflow: hidden;
}


/*** Footer ***/
.footer-gallery a {
    display: block;
}

.footer-gallery img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity .25s;
}

.footer-gallery a:hover img {
    opacity: .85;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-light);
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

[dir="rtl"] .footer .btn.btn-link {
    text-align: right;
}

[dir="rtl"] .footer .btn.btn-link::before {
    content: "\f104";
    margin-right: 0;
    margin-left: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--bs-primary);
}

.footer .copyright a:hover {
    color: var(--bs-light);
}

[dir="rtl"] .num-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .me-4 { margin-right: 0 !important; margin-left: 1.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .ms-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
[dir="rtl"] .pe-lg-0 { padding-left: 0; }
[dir="rtl"] .ps-lg-0 { padding-right: 0; }
[dir="rtl"] .start-0 { left: auto !important; right: 0 !important; }
[dir="rtl"] .top-50.start-50 { transform: translate(50%, -50%); }
