a {
  text-decoration: none;
}

#navbar {
  color: black;
  ul {
    a {
      font-size: 18px;
    }
    .drop-down-icon {
      font-size: 14px !important;
    }
  }

  .dropdown-menu {
    background-color: white;
  }

  li {
    font-size: 14px;
    color: rgba(83, 90, 94, 1);
  }

  .product-mega-parent {
    ul {
      a {
        font-size: 14px;
      }
    }
  }

  .pms-logo-text {
    font-size: 16px !important;
  }

  .guests-logo-text {
    font-size: 16px !important;
  }

  .guest-ul-wrapper {
    gap: 10px;
  }

  .pms-products-text {
    font-size: 10px;
    font-weight: 600;
    margin-top: 0px;
    color: rgba(96, 118, 130, 1);
  }

  .navbar-logo {
    height: 1.5rem;
    width: 8rem;
  }

  .navbar {
    transition: 0.3s, color 0.3s;
  }

  .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
  }

  .nav-link {
    font-weight: 500;
    color: #333;
    margin-right: 1rem;
  }

  .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    font-weight: 600;
  }

  .btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
  }

  .sign-in:hover {
    color: var(--primary-color) !important;
  }

  /* Mega Menu Styles */
  .mega-menu {
    position: static; /* Important for full-width dropdown */
  }

  .mega-menu .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 10px 10px;
    border-top: 1px solid #007bff;
    /* Animation styles */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(
      -15px
    ); /* Start slightly higher for a slide-down effect */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out,
      visibility 0s linear 0.3s;
    pointer-events: none;
  }

  .mega-menu .dropdown-menu.show {
    /* Bootstrap adds .show class when dropdown is open */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
  }

  .mega-menu .dropdown-menu .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .mega-menu-image-col img {
    /* Adjust as needed */
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    object-fit: cover;
  }

  .mega-menu-image-col .image-caption {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
  }

  /* Styling for the links column in mega menu */
  .mega-menu-links-col h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
  }

  .navbar:has(.menu-hover:hover, .navbar-mega-hover:hover, .menu-hover:focus) {
    background-color: white;
    color: rgba(83, 90, 94, 1) !important;
    .sign-in {
      color: black !important;
    }

    a {
      color: black !important;
    }

    .dropdown-menu {
      a {
        color: rgba(83, 90, 94, 1) !important;
      }
    }

    button {
      color: black !important;
    }

    .navbar-logo {
      filter: brightness(0);
      transition: filter 0.3s ease;
    }
  }

  .navbar-nav .dropdown-toggle::after {
    margin-left: 0.5em;
  }

  .list-style {
    list-style-type: disc;
    padding-left: 15px;
  }
}

@media screen and (max-width: 1200px) {
  /* Fix list style for small devices: bullets inside and no overflow */
  #navbar .list-style {
    list-style-position: inside;
    padding-left: 0.3em;
    margin-left: 0;
    word-break: break-word;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
  }
  #navbar .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  #navbar .navbar-brand {
    margin-right: 0;
    flex: 0 0 auto;
  }

  #navbar .navbar-logo {
    height: 1.5rem;
    width: 7rem;
  }

  #navbar .navbar-toggler {
    border: none;
    box-shadow: none;
  }

  #navbar .navbar-collapse {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    padding: 1rem 0.5rem;
  }

  #navbar .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  #navbar .nav-item {
    width: 100%;
  }

  #navbar .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #f2f2f2;
    margin-right: 0;
  }

  #navbar .nav-link:last-child {
    border-bottom: none;
  }

  #navbar .mega-menu .dropdown-menu {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    box-shadow: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.5rem;
    margin-top: 0;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  #navbar .mega-menu .dropdown-menu.show {
    display: block;
  }

  #navbar .mega-menu-image-col {
    display: none !important;
  }

  #navbar .mega-menu-links-col {
    width: 100%;
    padding: 0;
  }

  #navbar .d-lg-flex {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  #navbar .btn,
  #navbar .sign-in {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #navbar .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem !important;
    margin-top: 1rem;
  }

  .btn-outline-light {
    color: black;
  }

  .property-type-logo-text {
    font-size: 14px !important;
  }

  .property-size-logo-text {
    font-size: 14px !important;
  }

  .property-size-logo {
    height: 23px;
    width: 23px;
  }

  .property-type-logo {
    height: 23px;
    width: 23px;
  }

  .pms-icon {
    height: 23px;
    width: 23px;
  }

  .guests-icon {
    height: 23px;
    width: 23px;
  }

  .pms-products-text {
    display: none;
  }

  .navbar-toggler {
    color: #333;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1699px) {
  #navbar {
    .navbar-brand img {
      filter: brightness(0) invert(1);
      transition: filter 0.3s ease;
    }

    .navbar a {
      color: white;
    }

    .mega-menu-image-col {
      width: 38% !important;
      margin-right: 20px !important;
    }

    .mega-menu-image-col img {
      max-width: 100% !important;
      height: auto;
    }

    .pms-logo-text {
      font-size: 20px !important;
    }

    .guests-logo-text {
      font-size: 20px !important;
    }

    .property-type-logo-text {
      font-size: 20px !important;
    }
    .property-size-logo-text {
      font-size: 20px !important;
    }

    .property{
        padding-left: 200px !important;
    }

    .pms-products-text{
        font-size: 14px !important;
    }

        .navbar:has(
        .menu-hover:hover,
        .navbar-mega-hover:hover,
        .menu-hover:focus
      ) {
      background-color: white;
      color: rgba(83, 90, 94, 1) !important;
      a {
        color: black !important;
      }

      .dropdown-menu {
        a {
          color: rgba(83, 90, 94, 1) !important;
        }
      }

      button {
        color: black !important;
      }

      .nav-link:hover,
      .nav-link:focus {
        border-bottom: 1px solid rgba(242, 99, 54, 1);
        color: white;
      }

      .navbar-logo {
        filter: brightness(0); /* removes light = pure black */
        transition: filter 0.3s ease;
      }
    }
 
  }
}

@media screen and (min-width: 1700px) {
  #navbar {
    #megaMenu.navbar {
      padding-top: 70px;
    }

    .nav-link,
    .btn {
      font-size: 20px;
    }

    .navbar:has(
        .menu-hover:hover,
        .navbar-mega-hover:hover,
        .menu-hover:focus
      ) {
      background-color: white;
      color: rgba(83, 90, 94, 1) !important;
      a {
        color: black !important;
      }

      .dropdown-menu {
        a {
          color: rgba(83, 90, 94, 1) !important;
        }
      }

      button {
        color: black !important;
      }

      .nav-link:hover,
      .nav-link:focus {
        border-bottom: 1px solid rgba(242, 99, 54, 1);
        color: white;
      }

      .navbar-logo {
        filter: brightness(0); /* removes light = pure black */
        transition: filter 0.3s ease;
      }
    }

    ul {
      a {
        font-size: 18px;
      }
    }

    li {
      font-size: 13px;
      color: rgba(83, 90, 94, 1);
    }

    .pms-logo-text {
      font-size: 24px !important;
    }

    .guests-logo-text {
      font-size: 24px !important;
    }

    .property-type-logo-text {
      font-size: 24px !important;
    }

    .property-size-logo-text {
      font-size: 24px !important;
    }

    .pms-ul-wrapper {
      padding-right: 50px !important;
    }

    .guest-ul-wrapper {
      padding-left: 40px;
    }

    .property-type-wrapper {
      width: 490px;
    }

    .pms-logo {
      width: 50px;
    }

    .pms-products-text {
      font-size: 16px;
      font-weight: 600;
      color: rgba(96, 118, 130, 1);
      margin-bottom: -15px;
    }

    .products-img {
      height: 445px;
      width: 698px;
    }

    .gradient-overlay {
      position: relative;
      display: inline-block;
      overflow: hidden;
      transform: scaleX(var(--icon-flip, 1));
    }

    .gradient-overlay::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.61), transparent);
      pointer-events: none; /* lets clicks pass through */
    }

    .navbar-nav .nav-item {
      width: auto;
    }

    .product-mega-parent {
      margin-left: 65px;
    }

    .navbar-logo {
      height: 1.7rem;
      width: 9rem;
    }

    .navbar {
      transition: 0.3s, color 0.3s;
    }

    .product-mega-parent {
      ul {
        a {
          font-size: 18px;
        }
      }
    }

    .navbar a {
      color: white;
    }

    .navbar-brand {
      font-weight: 700;
      font-size: 1.5rem;
    }

    .navbar-brand img {
      filter: brightness(0) invert(1);
      transition: filter 0.3s ease;
    }

    .nav-link {
      font-weight: 500;
      color: #333;
      margin-right: 1rem;
    }

    .nav-link:hover,
    .nav-link:focus {
      border-bottom: 1px solid rgba(242, 99, 54, 1);
      color: white;
    }

    .btn-outline-primary {
      border-color: #007bff;
      color: #007bff;
      font-weight: 600;
    }

    .btn-outline-primary:hover {
      background-color: #007bff;
      color: #fff;
    }

    .sign-in:hover {
      color: var(--primary-color) !important;
    }

    /* Mega Menu Styles */
    .mega-menu {
      position: static; /* Important for full-width dropdown */
    }

    .mega-menu .dropdown-menu {
      width: 100%;
      left: 0;
      right: 0;
      top: 100%;
      margin-top: 0;
      border-radius: 0 0 0.5rem 0.5rem;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
      padding: 20px 30px;
      border-top: 1px solid #007bff;
      /* Animation styles */
      display: block;
      opacity: 0;
      visibility: hidden;
      transform: translateY(
        -15px
      ); /* Start slightly higher for a slide-down effect */
      transition: opacity 0.3s ease-out, transform 0.3s ease-out,
        visibility 0s linear 0.3s;
      pointer-events: none;
    }

    .mega-menu .dropdown-menu.show {
      /* Bootstrap adds .show class when dropdown is open */
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition-delay: 0s;
      pointer-events: auto;
    }

    .mega-menu .dropdown-menu .container-fluid {
      padding-left: 0;
      padding-right: 0;
    }

    .mega-menu-image-col img {
      max-width: 100%;
    }

    .mega-menu-image-col .image-caption {
      font-size: 0.85rem;
      color: #6c757d;
      margin-top: 0.5rem;
    }

    /* Styling for the links column in mega menu */
    .mega-menu-links-col h5 {
      margin-bottom: 0.75rem;
      font-weight: 600;
      font-size: 1.1rem;
    }

    .mega-menu .list-unstyled a.mega-menu-link-small {
      text-decoration: none;
      color: #495057;
      padding: 0.25rem 0;
      display: block;
      border-radius: 0.25rem;
      transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    }

    .mega-menu .list-unstyled a.mega-menu-link-small:hover {
      background-color: white;
      color: rgba(242, 99, 54, 1);
    }

    /* Ensure dropdown toggle arrow is visible */
    .navbar-nav .dropdown-toggle::after {
      margin-left: 0.5em;
    }

    .list-style {
      list-style-type: disc;
      padding-left: 20px;
    }

    /* Responsive adjustments for smaller screens */
  }
}

body.rtl .mega-menu-image-col img {
  transform: scaleX(-1);
}

