* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
}

/*----------------------------
----------- header------------ 
------------------------------*/

header {
    height: 100vh;
}

/*----------- nav bar------------ */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 5;
}

nav {
    z-index: 998;
    margin-top: 10px;
}

nav img {
    width: 300px;
    margin-right: 30px;
    margin-top: 5px;
    padding-top: 0;
}

.navbar-nav {
    font-size: 1.5rem;
}

.navbar-custom {
    position: absolute;
    width: 100%;
    top: 5px;
}

.navbar-nav .nav-item {
    margin-right: 15px;
}

.nav-link {
    color: white;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover i {
    color: #b28e3b;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 5px;
    background-color: transparent;
    transition: background-color 0.3s, width 0.3s;
}

.nav-link:hover::after {
    background-color: #b28e3b;
    border-radius: 5px;
    width: 100%;
}

/* تأثير دائم للرابط "الرئيسية" (active) */
.nav-link.active i {
    color: #b28e3b;
}

/* الخط السفلي الدائم */
.nav-link.active::after {
    background-color: #b28e3b;
    width: 100%;
    border-radius: 5px;
}

.navbar-text a {
    background-color: #b28e3b;
    color: white;
}

.navbar-text a:hover {
    color: #b28e3b;
    background-color: #ffffff;
}

/* الروابط عند الضغط أو التركيز */
.nav-link:focus,
.nav-link:active {
    color: white;
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

.navbar-toggler {
    margin-left: 50px;
    border: #b28e3b 2px solid;
    z-index: 999;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=UTF8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path stroke="%23b28e3b" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/></svg>');
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-collapse {
    transition: transform 0.3s ease;
    z-index: 999;
}

/*----------- carousel------------ */

.carousel-item img {
    height: 100vh;
    object-fit: cover;
    width: 100%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-item.active img {
    opacity: 1;
}

#apartmentCarousel {
    position: relative;

}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100%;
    overflow: hidden;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.carousel-thumbnails img {
    height: 100px;
    width: 140px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.carousel-thumbnails img.active {
    opacity: 1;
}

.carousel-thumbnails img:hover {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
}

.img-thumbnail {
    border-radius: 10px;
    border: none;
    padding: 0;
    margin-right: 5px;
}

/* -- ----------------------------
-----------نظرة عامة------------ 
-------------------------------- */

.section-title {
    font-size: 2.5rem;
    color: #b28e3b;
    text-align: right;
}

#gnrl_vu .icon-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-size: 1.8rem;
    color: #5d5e69;
}

#gnrl_vu .icon-text i {
    font-size: 2rem;
    color: #5d5e69;
}

#gnrl_vu .text-with-line {
    display: inline-block;
    margin: 2px 8px;
    padding: 8px;
    border-right: 1px solid #5d5e69;
}

#gnrl_vu .icon-text:hover i {
    color: #b28e3b;
}

/* -- ----------------------------
----------- الوصف------------ 
-------------------------------- */
#dskr p {
    font-size: 1.6rem;
    text-align: justify;
    color: #5d5e69;
}

/* -- ----------------------------
----------- المخطط------------ 
-------------------------------- */

#pln .btn {
    color: #ffffff;
    background-color: #b28e3b;
    font-size: 1.3rem;
    border: none;
    padding: 8px 16px;
}

#pln .btn.actv {
    color: #b28e3b;
    background-color: #212529;
}

#pln .button-group .btn:focus {
    outline: none;
    box-shadow: none;
}

.display-area {
    margin-top: 20px;
    text-align: center;
    height: 600px;
    overflow: hidden;
}

#videoFrame {
    width: 100%;
    height: 600px;
}


.display-area img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: cover;
}

#pln a.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #b28e3b;
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;

}

a.btn:hover {
    background-color: #272726;
    color: #b28e3b;
}

/* تأثير التحريك عند الوقوف عليه */
a.btn:hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    transition: all 0.5s;
}

a.btn:hover:before {
    left: 100%;
}

/* تصميم للسهم عند الوقوف عليه */
a.btn:hover i {
    transform: translateX(-5px);
    transition: transform 0.3s ease-in;
}

/* -- -- ----------------------------
---------- الموقع------ 
-------------------------------- -- */
#loc iframe {
    height: 600px;
}

/* -- -- -- ----------------------------
---------- قسم للحجز والاستعلام ------ 
-------------------------------- -- -- */
#inf .btn {
    font-size: 1.6rem;
}

#inf p {
    font-size: 1.6rem;
    text-align: justify;
}

#inf a.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #b28e3b;
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;

}


/* -- -- ----------------------------
---------- المزيد------ 
-------------------------------- -- */

#more {
    background-color: #f8f8f8;
}

#more h5 {
    color: #212529;
    font-size: 1.5rem;
}

#more p {
    color: #212529;
    font-size: 1rem;
}


#more .icon-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-size: 1rem;
    color: #5d5e69;
}

#more .icon-text i {
    font-size: 1.5rem;
    color: #5d5e69;
}

#more .card-image {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

#more .text-with-line {
    display: inline-block;
    margin: 2px 8px;
    padding: 8px;
    border-right: 1px solid #5d5e69;
}

#more .card-price {
    color: #5d5e69;
}

#more .card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#more .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#more .card:hover h5 {
    color: #b28e3b;
    transition: color 0.3s ease;
}

#more .card:hover i {
    transition: color 0.3s ease;
    color: #b28e3b;
}


/* ------------------------------
-----------footer--------- 
-------------------------------- */

footer {
    background-color: #212529;
}

footer h5 {
    color: white;
    font-size: 1.5rem;
}

footer p {
    color: white;
    font-size: .8rem;
}

footer p span {
    color: #b28e3b;
    font-size: 1.1rem;
}

.list-unstyled a {
    text-decoration: none;
    color: #b28e3b;
    font-size: 1.1rem;
}

.list-unstyled a:hover {
    color: white;
}

.footer-logo,
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-icons a {
    color: #b28e3b;
    font-size: 30px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
}