/* Custom CSS File for Property Features */

/* New Mobile Menu Styles */
.rh-new-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.rh-new-mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rh-new-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  height: 100vh;
  background: #1a1a1a;
  z-index: 9999;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.admin-bar .rh-new-mobile-menu {
  padding-top: 46px;
}

.rh-new-mobile-menu.active {
  left: 0;
}

.rh-new-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  min-height: 80px;
}

.rh-new-mobile-menu-logo {
  flex: 1;
}

.rh-new-mobile-menu-logo img {
  max-height: 40px;
  width: auto;
}

.rh-new-mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #333;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.rh-new-mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.rh-new-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Override default menu styles for our mobile menu */
.rh-new-mobile-menu .rh-new-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rh-new-mobile-menu .rh-new-mobile-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rh-new-mobile-menu .rh-new-mobile-menu-list a {
  display: block;
  padding: 18px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.rh-new-mobile-menu .rh-new-mobile-menu-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  padding-left: 25px;
}

.rh-new-mobile-menu .rh-new-mobile-menu-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #1db2ff;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.rh-new-mobile-menu .rh-new-mobile-menu-list a:hover::before {
  transform: scaleY(1);
}

.rh-new-mobile-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rh-new-mobile-menu-link {
  display: block;
  padding: 18px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.rh-new-mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  padding-left: 25px;
}

.rh-new-mobile-menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #1db2ff;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.rh-new-mobile-menu-link:hover::before {
  transform: scaleY(1);
}

/* GTranslate Widget Styling */
.rh-new-mobile-gtranslate-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rh-new-mobile-gtranslate-wrapper {
  padding: 18px 20px;
}

.rh-new-mobile-gtranslate-wrapper .gt_switcher-popup {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.rh-new-mobile-gtranslate-wrapper .gt_switcher-popup:hover {
  color: #1db2ff !important;
}

.rh-new-mobile-gtranslate-wrapper .gt_switcher-popup img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.rh-new-mobile-gtranslate-wrapper .gt_switcher-popup span {
  color: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
}

/* GTranslate Popup Styling */
.rh-new-mobile-gtranslate-wrapper .gt-popup {
  z-index: 100000 !important;
  position: absolute !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  padding: 12px !important;
  min-width: 220px !important;
  margin-top: 5px !important;
}

.rh-new-mobile-gtranslate-wrapper .gt-popup a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 15px !important;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  transition: background-color 0.2s ease !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.rh-new-mobile-gtranslate-wrapper .gt-popup a:hover {
  background-color: #f5f5f5 !important;
  color: #333 !important;
  text-decoration: none !important;
}

.rh-new-mobile-gtranslate-wrapper .gt-popup img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}

.rh-new-mobile-menu-footer {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rh-new-mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.rh-new-mobile-menu-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rh-new-mobile-menu-user i {
  font-size: 18px;
  color: #1db2ff;
}

/* Mobile Menu Toggle Button */
.rh-new-mobile-menu-toggle {
  display: none;
  cursor: pointer;
  padding: 12px;
  background: none;
  border: none;
  color: #333;
  flex-direction: column;
  gap: 4px;
}

.rh-new-mobile-menu-toggle .hamburger-line {
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

.rh-new-mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.rh-new-mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.rh-new-mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.rh-new-mobile-gtranslate-wrapper .gt_white_content {
  height: auto;
  max-height: 200px;
}
.rh-new-mobile-gtranslate-wrapper .gt_white_content .gt_languages {
  flex-flow: column !important;
  max-height: inherit !important;
  overflow-x: initial !important;
}
.rh-new-mobile-gtranslate-wrapper .gtranslate_wrapper > a {
  color: #fff !important;
}
.rh-new-mobile-gtranslate-wrapper .gtranslate_wrapper .gt_languages a {
  color: #000 !important;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .rh-new-mobile-menu-toggle {
    display: flex;
  }

  .rh-new-mobile-menu {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 1200px) {
  .rh-new-mobile-menu,
  .rh-new-mobile-menu-overlay {
    display: none !important;
  }
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}
