/* ==========================================================================
   RANGS PROPERTIES EXACT MENU SYSTEM (Ultra-Clean Transparent)
   ESL Holdings Luxury Real Estate Edition
   ========================================================================== */

/* --- Top Header Navigation Bar (100% Transparent, No Scroll Bar) --- */
.rangs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

@media (min-width: 768px) {
  .rangs-header {
    padding: 16px 36px;
  }
}

.rangs-header.scrolled {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.rangs-header__container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align everything to the right */
  gap: 1.25rem;
  pointer-events: auto;
}

/* --- Brand Logo & Floating Glass Capsule Cluster --- */
.rangs-nav-cluster {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 20, 24, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 10px 6px 18px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.rangs-nav-cluster:hover {
  background: rgba(22, 25, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 36px -4px rgba(0, 0, 0, 0.65);
}

.rangs-nav-divider {
  display: block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.rangs-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.rangs-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.rangs-logo:hover img {
  transform: scale(1.05);
}

/* --- Rangs Hamburger Button (Refined Luxury Pill Match) --- */
.hamburger {
  cursor: pointer;
  z-index: 1001;
  height: 38px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: none;
  transition: all 0.25s ease;
  user-select: none;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
  .rangs-nav-cluster {
    gap: 10px;
    padding: 5px 8px 5px 14px;
  }
  .rangs-logo img {
    height: 24px;
  }
  .hamburger {
    height: 34px;
    width: 38px;
  }
  .rangs-nav-divider {
    height: 18px;
  }
}

.hamburger__line_wrapper {
  width: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 5.5px;
}

.hamburger__line_wrapper .line {
  position: relative;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.34, 0.54, 0.51, 0.73), transform 0.3s ease;
}

.hamburger__line_wrapper .line:nth-child(1) { width: 24px; }
.hamburger__line_wrapper .line:nth-child(2) { width: 24px; }
.hamburger__line_wrapper .line:nth-child(3) { width: 24px; }

/* Morph on hover like Rangs */
.hamburger:hover .hamburger__line_wrapper .line:nth-child(2) {
  width: 16px;
  background: #e02928;
}

.hamburger:hover .hamburger__line_wrapper .line:nth-child(3) {
  width: 10px;
}

/* Active State (X Morph) */
.hamburger.active .hamburger__line_wrapper .line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: #e02928;
}

.hamburger.active .hamburger__line_wrapper .line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger__line_wrapper .line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: #e02928;
}

/* --- Backdrop Overlay --- */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Rangs Main Menu Slide-in Drawer (`.main-menu`) --- */
.main-menu {
  position: fixed;
  right: 0;
  top: 0;
  bottom: auto;
  width: 380px;
  max-width: 92vw;
  height: auto;
  max-height: 100vh;
  background: rgba(14, 15, 19, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 18px;
  z-index: 1002;
  padding: 56px 0 35px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-menu.open {
  transform: translateX(0);
  box-shadow: -25px 0 60px rgba(0, 0, 0, 0.85);
}

.main-menu::-webkit-scrollbar {
  width: 5px;
}

.main-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Close Button in Drawer */
.main-menu .close-menu {
  position: absolute;
  right: 25px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.main-menu .close-menu:hover {
  background: #e02928;
  border-color: #e02928;
  transform: rotate(90deg);
}

/* Menu Items List */
.main-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #f4f4f5;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.22s ease;
}

.main-menu li a:hover,
.main-menu li a.active {
  background: rgba(255, 255, 255, 0.05);
  color: #e02928;
  border-left-color: #e02928;
  padding-left: 38px;
}

/* --- Mega Accordion in Drawer (Like Rangs) --- */
.mega-trigger {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.mega-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: -3px;
}

.has-mega.open .mega-trigger .mega-caret {
  transform: rotate(-135deg);
  color: #e02928;
}

.mega {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 0 12px;
}

.mega__group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mega__group:first-child {
  border-top: none;
}

.mega__group-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: #e02928;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.mega__group-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.mega__group.open .mega__group-toggle .mega-caret {
  transform: rotate(-135deg);
}

.mega__group-items {
  padding: 4px 0 8px;
}

.mega__group-items a {
  color: #d1d5db !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
  padding: 7px 40px 7px 52px !important;
  text-transform: capitalize !important;
  border-left: none !important;
}

.mega__group-items a:hover,
.mega__group-items a.active {
  background: #000000 !important;
  color: #e02928 !important;
  padding-left: 56px !important;
}

/* Drawer Footer Info */
.main-menu__footer {
  padding: 24px 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.main-menu__footer-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f4f5;
  margin-bottom: 2px;
}

.main-menu__footer-tagline {
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.main-menu__socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.main-menu__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-menu__socials a:hover {
  background: #bb0112;
  border-color: #bb0112;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(187, 1, 18, 0.45);
}



/* --- Floating Concierge Action Stack (Phone, WhatsApp, Inquiry) --- */
.floating-concierge-stack {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.floating-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid #000000;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-btn:hover {
  transform: scale(1.12);
}

.floating-btn--phone {
  background: #ffffff;
  color: #121212;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.floating-btn--phone:hover {
  background: #f4f4f5;
  color: #e02928;
}

.floating-btn--whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-btn--whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.floating-btn--messenger {
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #764BA2 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

.floating-btn--messenger:hover {
  background: linear-gradient(135deg, #00C6FF 0%, #0072FF 50%, #8E54E9 100%);
  box-shadow: 0 8px 25px rgba(0, 132, 255, 0.6);
}

.rangs-msg {
  position: relative;
}

.rangs-msg .msg_icon_btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #f58220;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-btn svg,
.rangs-msg .msg_icon_btn svg {
  width: 17px;
  height: 17px;
}

.floating-btn .material-symbols-outlined,
.rangs-msg .msg_icon_btn .material-symbols-outlined {
  font-size: 17px !important;
}

.rangs-msg .msg_icon_btn:hover {
  transform: scale(1.12);
  background: #e02928;
}

.rangs-msg .msg_cont_wrap {
  position: fixed;
  right: 25px;
  bottom: 85px;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: rgba(18, 20, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 991;
}

.rangs-msg .msg_cont_wrap.msg_opened {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.rangs-msg .msg_close_btn {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s ease;
}

.rangs-msg .msg_close_btn:hover {
  color: #e02928;
}

.rangs-msg h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.rangs-msg p {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.rangs-msg .form-group {
  margin-bottom: 0.85rem;
}

.rangs-msg .form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.rangs-msg .form-control:focus {
  border-color: #f58220;
  background: rgba(255, 255, 255, 0.08);
}

.rangs-msg textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

.rangs-msg .btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: #f58220;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rangs-msg .btn-submit:hover {
  background: #e02928;
  box-shadow: 0 4px 15px rgba(224, 41, 40, 0.4);
}

/* --- Hamburger Menu Login Button Styles --- */
.menu-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #C91F28;
  border: 1px solid #C91F28;
  border-radius: 9999px;
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(201, 31, 40, 0.35);
}

.menu-login-pill:hover {
  background: #e02928;
  border-color: #ff3333;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 41, 40, 0.5);
  color: #ffffff !important;
}

.menu-login-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 18px;
  background: rgba(201, 31, 40, 0.12);
  border: 1px solid rgba(201, 31, 40, 0.3);
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.menu-login-action-btn:hover {
  background: #C91F28;
  border-color: #C91F28;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 31, 40, 0.4);
}

/* Global SVG utility & Footer Social Icons crisp visibility */
svg.fill-current,
.fill-current {
  fill: currentColor !important;
}

footer a[aria-label="LinkedIn"] svg,
footer a[aria-label="Facebook"] svg,
footer a[aria-label="Instagram"] svg,
footer a[aria-label="YouTube"] svg {
  fill: #ffffff !important;
  color: #ffffff !important;
  width: 17px !important;
  height: 17px !important;
  display: block !important;
}

footer a[aria-label="LinkedIn"],
footer a[aria-label="Facebook"],
footer a[aria-label="Instagram"],
footer a[aria-label="YouTube"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

footer a[aria-label="LinkedIn"]:hover,
footer a[aria-label="Facebook"]:hover,
footer a[aria-label="Instagram"]:hover,
footer a[aria-label="YouTube"]:hover {
  background: var(--color-secondary, #e02928) !important;
  border-color: var(--color-secondary, #e02928) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(224, 41, 40, 0.45);
}



/* Current page in the drawer menu */
.main-menu li a.active {
  font-weight: 700;
  background: rgba(224, 41, 40, 0.12);
  color: #ff5a58;
}
.main-menu li a.active::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e02928;
  box-shadow: 0 0 0 4px rgba(224, 41, 40, 0.22);
  flex-shrink: 0;
}


/* --- Main menu -> sub menu groups (About Us, Testimonials) --- */
.main-menu .menu-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #f4f4f5;
  text-align: left;
  transition: all 0.22s ease;
}
.main-menu .menu-group__toggle:hover,
.main-menu .menu-group.open > .menu-group__toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #e02928;
}
.main-menu .menu-group__caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 4px;
}
.main-menu .menu-group.open > .menu-group__toggle .menu-group__caret {
  transform: rotate(-135deg);
}
.main-menu .menu-group__items {
  display: none;
  background: rgba(255, 255, 255, 0.03);
}
.main-menu .menu-group.open > .menu-group__items {
  display: block;
}
.main-menu .menu-group__items li a {
  padding: 8px 32px 8px 52px;
  font-size: 12.5px;
  color: #d4d4d8;
}
.main-menu .menu-group__items li a:hover,
.main-menu .menu-group__items li a.active {
  padding-left: 58px;
}

/* --- Floating icon labels --- */
.floating-concierge-stack{gap:24px}
.floating-btn,.rangs-msg .msg_icon_btn{position:relative}
.floating-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:3px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:10px;font-weight:600;line-height:1;letter-spacing:.2px;color:#fff;white-space:nowrap;pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 2px rgba(0,0,0,.9)}
.floating-concierge-stack{bottom:42px}

/* Portal Login: tighter space above/below the button */
.main-menu div:has(> .menu-login-action-btn){padding-top:8px!important;padding-bottom:14px!important}
