@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

:root {
  --fd-blue: #ffc119;
  --fd-dark: #333;
  --fd-light-gray: #f5f5f5;
  --fd-white: #fff;
  --fd-red: #db4437;
  --fd-facebook: #4267b2;
  --fd-google: #4285f4;
}

/* --- Custom Scrollbar Styling --- */
/* Main Browser Scrollbar */
::-webkit-scrollbar {
  width: 0.6rem;
}

/* All other scrollable elements */
*::-webkit-scrollbar {
  width: 0.3rem;
  height: 0.3rem;
}

/* Re-ensure html/body have 0.6rem */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0.6rem;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: var(--fd-blue);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: #e5ac16;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Cairo", "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

body {
  background-color: var(--fd-white);
  color: var(--fd-dark);
}

a {
  text-decoration: none;
  color: var(--fd-dark);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 50px;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 50px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: var(--fd-white) !important;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  justify-self: start;
}

.logo {
  height: 70px;
  width: auto;
  max-width: 100%;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--fd-blue);
  line-height: 1.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-self: center;
}

.nav-links a {
  font-size: 18px;
  font-weight: 500;
  color: var(--fd-dark);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--fd-blue);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-self: end;
}

.lang-btn {
  background: var(--fd-blue);
  border: 1px solid;
  color: white;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 60px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  background-color: #ffa000;
  transform: scale(1.05);
}

.icon-btn {
  background-color: var(--fd-blue);
  border: none;
  font-size: 18px;
  color: white;
  cursor: pointer;
  padding: 10px 14px;
  transition: all 0.3s;
  font-weight: bold;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.icon-btn:hover {
  background-color: #ffa000;
  transform: scale(1.05);
}

.hero-section {
  background: linear-gradient(135deg, #fffbe6 0%, #ffffff 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  
  position: relative;
  overflow: hidden;
  padding-top: 20px;
 
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(255, 193, 25, 0.6);
  border-radius: 50%;
  filter: blur(200px);
  z-index: 1;
}

.hero-section::before {
  top: -100px;
  right: -100px;
}

.hero-section::after {
  bottom: -50px;
  left: -50px;
}

.hero-section .container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
}

.hero-section-fade-out {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 2;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      var(--fd-light-gray) 100%);
}

.hero-section h1 {
  font-size: 56px;
  margin-bottom: 15px;
  font-weight: 900;
  color: var(--fd-blue);
  line-height: 1.1;
}

.hero-section p {
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--fd-dark);
  font-weight: 500;
}

.search-wrapper {
  padding: 0;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.search-box {
  height: 60px;
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--fd-white);
  border: 2px solid var(--fd-blue);
}

.search-box input {
  padding: 16px 25px;
  flex-grow: 1;
  border: none;
  font-size: 19px;
  outline: none;
  background-color: transparent;
  border-radius: 0;
}

.search-box button {
  height: 100%;
  padding: 16px 20px;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--fd-dark);
  flex-shrink: 0;
  margin: 0;
}

#location-btn {
  width: 53px;
  height: 50px;
  padding: 10px 18px;
  border-radius: 500px;
  background-color: var(--fd-dark);
  color: var(--fd-white);
}

#location-btn:hover {
  background-color: #1a1a1a;
}

#final-search-btn {
  width: 53px;
  height: 50px;
  margin-left: 5px;
  margin-right: 7px;
  padding: 10px 18px;
  border-radius: 500px;
  background-color: var(--fd-blue);
}

#final-search-btn:hover {
  background-color: #ffa000;
}

.categories-section {
  padding: 50px 0;
  text-align: center;
}

.categories-section.gray-bg {
  background-color: var(--fd-light-gray);
}

.categories-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: bold;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  padding: 30px;
  background-color: #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
  transition: all 0.3s;
}

.category-card-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.categories-section:not(.gray-bg) .category-card-bg::after,
.category-card.plain-bg .category-card-bg::after {
  content: none;
  background-color: transparent;
}

.category-card:hover .category-card-bg {
  opacity: 1;
  transform: scale(1.05);
}

.card-content {
  margin-top: 0;
  position: relative;
  z-index: 3;
  color: var(--fd-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.category-card.plain-bg .card-content {
  margin-top: 0;
  height: 100%;
  justify-content: center;
  color: var(--fd-dark);
}

.categories-section.gray-bg .card-content h3,
.categories-section.gray-bg .card-content p,
.categories-section.gray-bg .card-content a {
  color: var(--fd-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.category-card.plain-bg .card-content h3,
.category-card.plain-bg .card-content p,
.category-card.plain-bg .card-content a {
  color: var(--fd-dark);
  text-shadow: none;
}

.card-icon {
  font-size: 40px;
  color: var(--fd-blue);
  background-color: rgba(255, 255, 255, 0.8);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cities-section {
  padding: 80px 0;
  background-color: var(--fd-light-gray);
  text-align: center;
  border-top: 1px solid #eee;
}

.cities-section .section-icon {
  font-size: 48px;
  color: var(--fd-blue);
  margin-bottom: 15px;
}

.cities-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: bold;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background-image: url("../images/map.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.cities-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
  border-radius: 15px;
}

.cities-grid>a {
  position: relative;
  z-index: 2;
}

.city-card {
  display: block;
  padding: 15px 20px;
  background-color: var(--fd-white);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid var(--fd-light-gray);
  color: var(--fd-dark);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 18px;
}

.city-card:hover {
  background-color: var(--fd-blue);
  color: var(--fd-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--fd-blue);
}

.footer {
  background-color: var(--fd-dark);
  color: var(--fd-white);
  padding: 40px 0;
  font-size: 18px;
}

.footer-grid {
  display: flex;
  justify-content: center;
  gap: 280px;
  border-bottom: 1px solid #444;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

.footer-column {
  text-align: center;
  max-width: 200px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--fd-blue);
}

.footer-column a {
  color: #ccc;
  margin-bottom: 8px;
  font-size: 18px;
  display: block;
  padding: 3px 0;
  transition: color 0.3s, padding-right 0.3s;
  text-align: center;
}

.footer-column a:hover {
  color: var(--fd-blue);
  text-decoration: none;
  padding-right: 0px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  color: #ccc;
  flex-direction: column;
  gap: 15px;
}

.social-links {
  text-align: center;
}

.social-links a {
  color: var(--fd-white);
  font-size: 20px;
  transition: color 0.3s;
  margin: 0 10px;
}

.social-links a:hover {
  color: var(--fd-blue);
}

@media (max-width: 900px) {
  .content-container {
    padding: 0 20px;
  }

  .header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  #userDropDown {
    scale: 0.9;
    transform-origin: left top;

    &:after {
      left: 14px !important;
    }
  }

  /* ** التعديل المطلوب لتقليل الطول ** */
  .hero-section {
    padding-bottom: 15px;
    /* تم تقليله من 60px في العرض الكبير */
    height: 450px;
    /* تم تقليله من 100vh لجعله أقل طولًا */
  }

  /* ** نهاية التعديل ** */
  .hero-section h1 {
    font-size: 38px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .search-box {
    height: 60px;
    flex-wrap: nowrap;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
    padding: 0;
  }

  .search-box input {
    width: 100%;
    padding: 16px 25px 16px 125px;
    border-radius: 50px;
    border-bottom: none;
    font-size: 19px;
    height: 100%;
  }

  #location-btn,
  #final-search-btn {
    height: 50px;
    width: 50px;
    flex-grow: 0;
    padding: 0;
    font-size: 24px;
    border-radius: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  #location-btn {
    left: 61px;
    background-color: var(--fd-dark);
  }

  #final-search-btn {
    left: 5px;
    background-color: var(--fd-blue);
  }

  .categories-section {
    padding: 30px 0;
  }

  .categories-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    min-height: 180px;
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .cities-section {
    padding: 40px 0;
  }

  .cities-grid {
    background-image: url("map.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--fd-white);
    gap: 15px;
  }

  .cities-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    border-radius: 15px;
  }

  .city-card {
    /* إعادة استخدام ظل أضعف لتتناسب مع الشاشة الأصغر */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    padding: 30px 0;
  }
}

section#userDashboard {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 25px;
}

.userProfileField {
  padding: 25px;
  padding-top: calc(120px + var(--safe-area-inset-top, 0px));
  margin-bottom: 25px;
  max-width: 1024px;
  width: 100%;
  margin-inline: auto;
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 2rem;
  font-weight: bold;
}

.profile-head i {
    cursor: pointer;
    font-size: 1.75rem;
    transition: 0.5s color ease, 0.5s transform ease;
    display: none;
}

.profile-head i:hover {
    color: var(--fd-blue);
    transform: rotate(180deg);
}

.profile-head.active i {
    transform: rotate(180deg);
    color: var(--fd-blue);
}

.profileContainer {
  display: grid;
  grid-template-columns: 20% 80%;
  margin-top: 20px;
  padding: 25px 0px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.profileSettings {
  list-style-type: none;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  height: fit-content;

  li {
    padding: 10px;
    transition: 0.3s color ease;

    &:hover {
      a {
        color: var(--fd-blue);
      }
    }

    a {
      transition: inherit;
    }
  }
}

.profileSettings li.active {
  a {
    color: var(--fd-blue);
  }

  border-right: 2px solid var(--fd-blue);
}

.route {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  color: #777;

  i {
    color: var(--fd-blue);
    scale: 1.125;
  }

  a {
    color: black !important;
  }
}

.profileContainer .Uform {
  padding-block: 10px;
  padding-right: 25px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  input {
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 0.2rem 1rem;
    width: 100%;
    max-width: 300px;
    background-color: transparent;
    font-size: 0.9rem;
  }

  label,
  button {
    white-space: nowrap;
  }

  label {
    min-width: 113px;
  }

  button {
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background-color: transparent;
    transition: var(--transition);
    font-weight: bold;

    &:hover {
      background-color: var(--fd-blue);
      color: white;
      border-color: transparent;
    }
  }

  .service_subscribe {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 1rem;

    input[type="checkbox"] {
      width: fit-content;
      scale: 1.5;
      accent-color: var(--fd-blue);
    }
  }
}

button[type="submit"] {
  background-color: var(--fd-blue) !important;
  color: white;
  font-size: 1rem !important;
  max-width: 250px;
  width: 100%;
  margin: auto;
  border-width: 2px;
  transition: var(--transition);
  border-color: transparent !important;

  &:hover {
    border-color: var(--fd-blue) !important;
    background-color: transparent !important;
    color: var(--fd-blue) !important;
  }
}


.editBtns {
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  gap: 1rem;
}


html[dir="rtl"] {
 select{
  direction: ltr;
 }
 #ContentPlaceHolder1_ddlAddress{
  direction: rtl !important;
 }
}


.modal-body.p-2{
  padding: 0 !important;

  
}

.gender-btn {
  padding: 10px 68px;
  border: 1px solid #ccc;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.gender-btn:last-child {
  border-radius: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.gender-btn:hover {
  background-color: #f0f0f0;
}

input[type="radio"]:checked+label {
  background-color: var(--fd-blue);
  color: white;
  border-color: var(--fd-blue);
}

input[type="radio"] {
  width: 150px;
}

.birthday {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 300px;

  svg {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 16px;
  }
}

.inputHolder {
  position: relative;
  width: 100%;
  border-radius: 0.25rem;
  max-width: 300px;
  isolation: isolate;
  background-color: #e9ecef;
  overflow: hidden;

  input {

    color: rgb(74, 71, 71);

    &:focus {
      outline: none;
    }
  }
}

.labelTag {
  font-size: 1.5rem;
  color: var(--fd-blue);
}

.dataField {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
}

#dataEditorPopup {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  width: 100%;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  padding-inline: 50px;
  padding-block: 25px;
}

#dataEditorPopup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#dataEditorPopup .dataEditContainer {
  height: 100%;
  width: 100%;
  max-height: 600px;
  max-width: 700px;
  scale: 0.9;
  transition: var(--transition);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
  overflow: hidden;
}

#dataEditorPopup.is-visible .dataEditContainer {
  scale: 1;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background-color: rgba(220, 220, 220, 0.6);
  color: var(--fd-blue);
}

#cartItemsNumber {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--fd-red);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transform: translate(25%, 25%);
}

#cartIcon {
  position: relative;
  isolation: isolate;
}

.dataEditContainer {
  padding-inline: 10px;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  input {
    width: 100%;
    max-width: 300px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 0.25rem 1rem;
  }

  .password-input-wrapper {
    width: 100%;
    max-width: 300px;
    position: relative;
    isolation: isolate;
  }

  .showPassword {
    position: absolute;
    left: 0;
  }

  label {
    min-width: 178px;
  }

  button {
    outline: 0;
    border-radius: 2rem;
    width: 150px;
    padding-block: 0.35rem !important;
  }
}

#removeFormChange {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  border-top: 1px solid rgba(0, 0, 0, 0.5);

  &:hover {
    background-color: var(--fd-blue);
    color: white;
    border-color: transparent;
  }
}

#sendChange {
  margin: 0;
}

.submitEdit {
  display: flex;
  position: relative;
  isolation: isolate;
  padding-block: 25px;
  justify-content: end;
  align-items: center;
  gap: 0.5rem;
}

.submitEdit::after {
  content: "";
  position: absolute;
  top: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 1px;
}

#emptyLocations {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.25rem;
  min-height: 300px;
  color: #777;

  i {
    font-size: 3rem;
    position: relative;
  }

  i::after {
    content: "";
    border-radius: 8px;
    rotate: 45deg;
    display: none;
    inset: 0;
    margin: auto;
    width: 8px;
    height: calc(100% + 24px);
    background: linear-gradient(to right, #777 50%, white 50%);
    position: absolute;
  }

  button {
    background-color: var(--fd-blue);
    color: white;
    padding: 0.5rem 1rem;
    outline: 0;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: var(--transition);

    &:hover {
      background-color: transparent;
      color: var(--fd-blue);
      border-color: currentColor;
    }
  }
}

@media (max-width: 900px) {


  .content-container {
    padding: 0 20px;
  }

  .header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  #userDropDown {
    scale: 0.8;
    transform-origin: left top;
    left: 14px;

    &:after {
      left: 14px !important;
    }
  }

  /* ** التعديل المطلوب لتقليل الطول ** */
  .hero-section {
    padding-bottom: 15px;
    /* تم تقليله من 60px في العرض الكبير */
    height: 450px;
    /* تم تقليله من 100vh لجعله أقل طولًا */
  }

  /* ** نهاية التعديل ** */
  .hero-section h1 {
    font-size: 38px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .search-box {
    height: 60px;
    flex-wrap: nowrap;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
    padding: 0;
  }

  .search-box input {
    width: 100%;
    padding: 16px 25px 16px 125px;
    border-radius: 50px;
    border-bottom: none;
    font-size: 19px;
    height: 100%;
  }

  #location-btn,
  #final-search-btn {
    height: 50px;
    width: 50px;
    flex-grow: 0;
    padding: 0;
    font-size: 24px;
    border-radius: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  #location-btn {
    left: 61px;
    background-color: var(--fd-dark);
  }

  #final-search-btn {
    left: 5px;
    background-color: var(--fd-blue);
  }

  .categories-section {
    padding: 30px 0;
  }

  .categories-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    min-height: 180px;
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .cities-section {
    padding: 40px 0;
  }

  .cities-grid {
    background-image: url("map.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--fd-white);
    gap: 15px;
  }

  .cities-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    border-radius: 15px;
  }

  .city-card {
    /* إعادة استخدام ظل أضعف لتتناسب مع الشاشة الأصغر */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    padding: 30px 0;
  }

  .userProfileField {
    padding-right: 0px !important;
  }

  .profileContainer {
    grid-template-columns: auto !important;

    .profileSettings {
      border: 1px solid rgba(0, 0, 0, 0.25) !important;
      border-top: 0 !important;
      justify-content: center;
      align-items: center;
      display: flex;
      flex-direction: column;
      height: 0;
      border-bottom-right-radius: 6px;
      border-bottom-left-radius: 6px;

      transition: all 1000ms linear(0,
          0.012 0.9%,
          0.05 2%,
          0.411 9.2%,
          0.517 11.8%,
          0.611 14.6%,
          0.694 17.7%,
          0.765 21.1%,
          0.824 24.8%,
          0.872 28.9%,
          0.91 33.4%,
          0.939 38.4%,
          0.977 50.9%,
          0.994 68.4%,
          1);
      transform-origin: bottom;
      interpolate-size: allow-keywords;
      overflow: hidden;
    }
  }

  .profileSettings.active {
    height: auto;
  }

  .profileContainer {
    border: none;
  }

  .profileSettings li.active {
    border-right: 0;
    border-bottom: 2px solid var(--fd-blue);
    max-width: 200px;
  }

  .profile-head {
    background-color: whitesmoke;
    margin-top: 10px;
    border-radius: 6px;
    padding-inline: 10px;

    i {
      display: block;
    }
  }

  .editBtns {
    min-width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .profileContainer {
    padding-block: 0;

    input,
    .inputHolder,
    .birthday {
      max-width: 100% !important;
    }
  }

  .dataField {
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
#ContentPlaceHolder1_ddlAddressP{
  font-size: 0.8rem !important;
}
  #emptyLocations p {
    font-size: 20px !important;
  }

  .close-btn {
    font-size: 20px;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--fd-dark);
    padding: 0;
    transition: color 0.2s;
  }

  .login-heading {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .social-buttons button {
    padding: 10px;
    font-size: 15px;
  }

  .line {
    margin: 10px 0 8px;
  }

  .login-form-row {
    padding: 6px 8px;
    margin-bottom: 8px;
  }

  .login-form-row input {
    font-size: 15px;
    padding: 3px 0;
  }

  .login-form-row i {
    font-size: 16px;
    margin-left: 8px;
  }

  .showPassword,
  .forgot-password {
    font-size: 13px;
  }

  .login-button {
    padding: 12px;
    font-size: 16px;
    margin: 10px 0 5px;
  }

  .register-text {
    font-size: 14px;
  }

  .login_form {
    padding: 25px !important;
  }
}

@media (max-width: 480px) {
  #confirmLocationBtn {
    left: 15px;
    transform: none;
  }

  #mapModal {
    padding-inline: 10px;
  }

  .map-content {
    max-height: 450px;
  }

  #location-btn,
  #final-search-btn {
    scale: 0.9;
    transform-origin: top;
  }

  .gender-selection:not(.locationDataField .gender-selection) {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .gender-btn {
    border-radius: 0.5rem;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    width: 100% !important;
  }

  .gender-btn:last-child {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }

  #userDashboard {
    padding-inline: 10px !important;
  }

  #dataEditorPopup {
    padding-inline: 10px;
  }
}

/* EN STYLES */
html[dir="ltr"],
html[lang="en"],
body[dir="ltr"] {
  .login-form-row {
    input {
      text-align: left;
    }

    i {
      margin-right: 10px;
    }
  }

  #userDropDown {
    left: initial;
    right: 20px;

    &:after {
      left: initial !important;
      right: 40px;
    }
  }

  .profileSettings {
    border-left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.25);
  }

  .profileSettings li.active {
    border-right: 0;
    border-left: 2px solid var(--fd-blue);
  }

  .profileContainer {
    padding-right: 0;
    padding-left: 25px;
  }

  .gender-btn {
    border-radius: 0.5rem;
  }

  .birthday svg {
    left: initial;
    right: 0.5rem;
  }

  .route i {
    rotate: 180deg;
  }
}

/* EN MEDIA */
html[dir="ltr"],
html[lang="en"],
body[dir="ltr"] {
  @media (max-width: 900px) {
    #userDropDown {
      right: 14px;
      transform-origin: right top;

      &:after {
        right: 14px !important;
      }
    }

    .profileContainer {
      padding-left: 0;
    }

    .profileSettings li.active {
      border-left: 0;
    }
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}



.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--fd-dark);
  padding: 0;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--fd-blue);
}

.login-heading {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  text-align: center;
  color: var(--fd-dark);
}

.social-buttons button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-buttons button:hover {
  opacity: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-buttons .google {
  background-color: var(--fd-white);
  color: var(--fd-dark);
  border: 1px solid #ccc;
}

.social-buttons .google i {
  color: var(--fd-red);
  font-size: 18px;
}

.social-buttons .facebook {
  background-color: var(--fd-facebook);
  color: var(--fd-white);
  border: 1px solid var(--fd-facebook);
}

.social-buttons .instagram {
  background: #d6249f;
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
  color: var(--fd-white);
  border: 1px solid #d6249f;
}

.line {
  text-align: center;
  margin: 15px 0 10px;
  position: relative;
}

.line span {
  background-color: var(--fd-white);
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  z-index: 10;
}

.line::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background-color: #ccc;
  transform: translateY(-50%);
  z-index: 5;
}

.login-form-row {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  background-color: var(--fd-light-gray);
}

.login-form-row i {
  color: var(--fd-dark);
  font-size: 18px;
  margin-left: 10px;
}

.login-form-row input {
  border: none;
  outline: none;
  width: 100%;
  padding: 5px 0;
  background-color: transparent;
  font-size: 16px;
  text-align: right;
}

.password-input-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.showPassword {
  font-size: 14px;
  cursor: pointer;
  color: var(--fd-blue);
  font-weight: 700;
  padding-left: 10px;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.forgot-password {
  font-size: 14px;
  color: var(--fd-blue);
  cursor: pointer;
  font-weight: 600;
}

.login-button {
  background-color: var(--fd-blue);
  color: var(--fd-white);
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 10px 0 5px;
}

.login-button:hover {
  background-color: #ffa000;
}

a,
button {
  cursor: pointer;
}

.register-text {
  text-align: center;
  font-size: 16px;
  margin-top: 10px;
}

.register-text a {
  color: var(--fd-blue);
  font-weight: 700;
  transition: color 0.2s;
}

.register-text a:hover {
  color: #ffa000;
}

@media (max-width: 768px) {

  .close-btn {
    font-size: 20px;
  }

  .login-heading {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .social-buttons button {
    padding: 10px;
    font-size: 15px;
  }

  .line {
    margin: 10px 0 8px;
  }

  .login-form-row {
    padding: 6px 8px;
    margin-bottom: 8px;
  }

  .login-form-row input {
    font-size: 15px;
    padding: 3px 0;
  }

  .login-form-row i {
    font-size: 16px;
    margin-left: 8px;
  }

  .showPassword,
  .forgot-password {
    font-size: 13px;
  }

  .login-button {
    padding: 12px;
    font-size: 16px;
    margin: 10px 0 5px;
  }

  .register-text {
    font-size: 14px;
  }

  .login_form {
    padding: 25px !important;
  }
}

/* login page styles */
.login_form {
  min-height: calc(100vh - 100px);
  padding: 50px;
  padding-top: 125px !important;
  display: flex;
  justify-content: center;
  align-content: center;
}

.login_form .modal-body {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;

  >* {
    width: 100%;
  }
}

.invalid {
  border: 2px solid #e63946;
  background-color: #fff5f5;
}

html[dir="ltr"] {
  .login-form-row {
    input {
      text-align: left;
    }

    i {
      margin-right: 10px;
    }
  }
}

#userDropDown {
  position: fixed;
  top: 100px;
  left: 20px;
  background-color: white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.25);
  z-index: 1000;
  border-radius: 0.25rem;
  padding: 25px 50px;
  display: none;
  transition: 0.5s all ease;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  scale: 0.99;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  gap: 2rem;
  list-style-type: none;

  li {
    width: 100%;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    align-items: center;
  }

  a {
    display: flex;
    gap: 1rem;
    align-items: center;
    font: bold;
    font-size: 1rem;
    width: 100%;
  }

  i {
    color: var(--fd-blue);
    font-size: 1.25rem;
  }
}

#userDropDown::after {
  width: 20px;
  height: 20px;
  background-color: white;
  position: absolute;
  top: -11px;
  border-left: 1px solid rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  rotate: 45deg;
  display: block;
  left: 40px;
  content: "";
  z-index: -1;
}

#userDropDown.showDropDown {
  opacity: 1 !important;
  scale: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.header i {
  pointer-events: none;
}

@media (hover: none) {
::-webkit-scrollbar{
  width: 0px !important;
  height: 0px !important;
}
}

#locationDetails {
  background-color: white;
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}
.modal-header .btn-close {
margin: 0 !important;
}
.locationDataField {
  & .inputHolder {
    input {
      /*direction: ltr;*/
      width: 100%;
      padding-left: 4rem;
      cursor: auto !important;
    }
  }
}

#locationDetails {
  .dataField {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
}

.locationDataField {
  .inputHolder {
    position: relative;
    isolation: isolate;
    border-radius: 0.5rem;
    cursor: auto !important;
    max-width: none;
  }
}

.locationDataField {

  input,
  select,
  textarea {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    resize: none;
    max-height: 250px;
    /*direction: rtl;*/
  }
}

.locationDataField {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.5rem;
}

@media(max-width:480px) {
  .locationDataField {
    grid-template-columns: 1fr !important;
  }
}

.locationDataField {
  .egyptNum {
    position: absolute;
    left: 1rem;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    margin: auto;
  }
}

.locationDataField {
  .radio-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
}

/* الأسهم لليسار */
html[dir="ltr"] .fa-chevron-left {
  transform: rotateY(180deg);
}

html[dir="rtl"] .fa-chevron-left {
  transform: rotateY(0deg);
}

/* الأسهم لليمين */
html[dir="ltr"] .fa-chevron-right {
  transform: rotateY(0deg);
}

html[dir="rtl"] .fa-chevron-right {
  transform: rotateY(180deg);
}

/* الأسهم لأعلى وأسفل (تظل كما هي) */
html[dir="ltr"] .fa-chevron-up,
html[dir="rtl"] .fa-chevron-up {
  transform: rotate(0deg);
}

html[dir="ltr"] .fa-chevron-down,
html[dir="rtl"] .fa-chevron-down {
  transform: rotate(0deg);
}

html[dir="rtl"] .showPassword {
  left: 0 !important;
  right: auto !important;
  padding-left: 10px !important;
}

/* لو الصفحة LTR */
html[dir="ltr"] .showPassword {
  right: 0 !important;
  left: auto !important;
  padding-right: 10px !important;
}