* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: #f4f4f4;
}

/* ================= NAVBAR ================= */

.navbar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
    z-index: 1000;
    direction: rtl;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 200px;
}

.logo h3 {
    font-size: 18px;
    font-weight: 800;
}

.logo span {
    font-size: 11px;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.booking-btn {
    background: #f7a928;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

/* ================ RESPONSIVE ================= */

@media(max-width:992px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .script-title {
        font-size: 40px;
    }

    .contact-pill {
        padding: 14px 25px;
    }

}

/* ================= MOBILE NAV ================= */

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #111;
    color: #fff;
    padding: 30px;
    transition: 0.4s ease;
    z-index: 2000;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 50px;
}

.mobile-menu li {
    margin-bottom: 25px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.mobile-menu.active {
    right: 0;
}

.close-btn {
    text-align: left;
    font-size: 20px;
    cursor: pointer;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1500;
}

.overlay-menu.active {
    display: block;
}

/* ===== Dropdown Base ===== */
.dropdown {
    position: relative;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* سهم */
.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* القائمة الأساسية */
.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s ease;
}

/* عند hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* لف السهم */
.dropdown:hover>a .arrow {
    transform: rotate(180deg);
}

/* العناصر */
.dropdown-menu li {
    padding: 10px 20px;
    position: relative;
}

.dropdown-menu li a {
    color: #000;
    display: flex;
    justify-content: space-between;
}

/* ===== Sub Dropdown ===== */
.dropdown-sub {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 0;
    right: 100%;
    background: #fff;
    min-width: 160px;
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;

    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) scale(0.95);
    transition: all 0.3s ease;
}

.dropdown-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* سهم sub */
.dropdown-sub:hover>a .arrow {
    transform: rotate(90deg);
}
/* موبايل dropdown */
.mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* السهم */
.mobile-dropdown .arrow {
    transition: transform 0.3s ease;
}

/* لف السهم لما يفتح */
.mobile-dropdown.active .arrow {
    transform: rotate(180deg);
}

/* Animation خفيفة للقائمة */
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px; /* كفاية للمحتوى */
}
/* Responsive */

@media(max-width:992px) {

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .booking-btn {
        display: none;
    }
}

.page-header {
    background: #f7a928;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-top: 150px;
}

.page-header .container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    direction: rtl;
}

/* العنوان */
.page-header h1 {
    font-size: 28px;
    color: #0f3d2e;
    /* أخضر غامق */
    margin: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

.properties-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.container {
  width: 90%;
  margin: auto;
}

/* GRID */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: 0.4s ease;
}

/* CARD */
.property-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transform: translateY(20px);
  opacity: 0;
  transition: 0.4s;
}

.property-card.show {
  opacity: 1;
  transform: translateY(0);
}

.property-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-content {
  padding: 20px;
}

.price {
  color: #f4a51c;
  font-weight: bold;
}

.address {
  font-size: 12px;
  color: #888;
}

.location {
  margin: 10px 0;
}

.details {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.btn {
  background: #f4a51c;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
}

/* PAGINATION */
.pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination-wrapper button,
#pagination span {
  padding: 8px 14px;
  border: none;
  background: #e9ecef;
  cursor: pointer;
  border-radius: 6px;
}

#pagination span.active {
  background: #f4a51c;
  color: #fff;
}

.pagination-wrapper button:hover,
#pagination span:hover {
  background: #f4a51c;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #efefef;
  padding: 60px 20px 30px;
  direction: rtl;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #f4a51c;
}

.footer-col p {
  color: #777;
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  color: #777;
  text-decoration: underline;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #000;
}

/* SOURCES GRID */
.links-grid {
  display: flex;
  gap: 40px;
}

/* SOCIAL */
.social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.social span {
  width: 45px;
  height: 45px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.social span i {
  font-size: 16px;
  color: #555;
}

.social span:hover {
  background: #f4a51c;
}

.social span:hover i {
  color: #fff;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  color: #777;
  font-size: 14px;
}

.footer-bottom a {
  color: #777;
  text-decoration: underline;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .links-grid {
    flex-direction: column;
  }

  .social {
    justify-content: flex-start;
  }

  .footer {
    padding: 40px 15px;
  }
}