/* Moosh Works Non-Intrusive Upgrade Overlay & In-Place Fix Highlighter (Daniel Hallman) */
:root {
  --moosh-lime: #b6f03c;
  --moosh-ink: #041019;
  --moosh-surface: #0e1b2e;
  --moosh-line: rgba(158, 176, 199, 0.22);
  --moosh-danger: #ef4444;
  --moosh-gold: #cfa64e;
}

/* Guarantee UAEL desktop dropdown arrows (\f107 / \f106) and hover menus work identically to the live origin */
.uael-nav-menu li.menu-item-has-children {
  position: relative;
}
.uael-submenu-icon-arrow .uael-nav-menu .menu-item-has-children .sub-arrow i:before,
.uael-submenu-icon-arrow .uael-nav-menu .parent-has-child .sub-arrow i:before {
  content: "\f107";
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}
.uael-submenu-icon-arrow .uael-nav-menu .menu-item-has-children:hover > .uael-has-submenu-container .sub-arrow i:before,
.uael-submenu-icon-arrow .uael-nav-menu .parent-has-child .sub-menu-active .sub-arrow i:before {
  content: "\f106";
}
.uael-nav-menu li.menu-item-has-children:hover > ul.sub-menu,
.uael-nav-menu li.menu-item-has-children:focus-within > ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Floating Bottom Interactive Upgrade & 3-Click Switch Dock (Zero Top Layout Shift) */
.moosh-upgrade-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 1240px);
  z-index: 99990;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(4, 18, 29, 0.96) 0%, rgba(11, 34, 54, 0.96) 55%, rgba(6, 24, 38, 0.96) 100%);
  border: 1px solid rgba(182, 240, 60, 0.55);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.moosh-upgrade-bar-inner {
  width: 100%;
  padding: 0.48rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.moosh-upgrade-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.moosh-upgrade-status code {
  color: var(--moosh-lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.moosh-pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--moosh-lime);
  box-shadow: 0 0 0 4px rgba(182, 240, 60, 0.22);
  flex-shrink: 0;
}

.moosh-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.moosh-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.88rem !important;
  border-radius: 999px !important;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.79rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  border: 1px solid rgba(182, 240, 60, 0.42) !important;
  background: rgba(15, 34, 54, 0.9) !important;
  color: #f8fafc !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.moosh-bar-btn:hover {
  background: rgba(182, 240, 60, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.moosh-bar-btn[aria-pressed="true"] {
  background: #16a34a !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
}

.moosh-bar-btn-primary {
  background: var(--moosh-lime) !important;
  color: var(--moosh-ink) !important;
  border-color: var(--moosh-lime) !important;
  font-weight: 700 !important;
}

.moosh-bar-btn-primary:hover {
  background: #c7f661 !important;
  color: var(--moosh-ink) !important;
}

/* Interactive "Highlight Fixes on Page" Mode */
body.moosh-highlight-fixes [data-moosh-fix] {
  position: relative;
  outline: 3px solid #22c55e !important;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 9999px rgba(34, 197, 94, 0.04);
}

body.moosh-highlight-fixes [data-moosh-fix]::after {
  content: "✓ " attr(data-moosh-fix);
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 80;
  max-width: min(92vw, 460px);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: #052e16;
  border: 1px solid #4ade80;
  color: #dcfce7;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Instant Hero Fallback Background before Elementor's native Swiper slideshow initializes */
.elementor-10 .elementor-element.elementor-element-bebadb5 {
  background-image: url("/wp-content/uploads/2023/11/slider-home-scaled.jpeg");
  background-size: cover;
  background-position: center center;
}

.elementor-10 .elementor-element-aee194b div.elementor-heading-title {
  font-family: "Jost", Sans-serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.4em;
  color: #FFFFFF;
  margin: 0;
}
@media (max-width: 1024px) {
  .elementor-10 .elementor-element-aee194b div.elementor-heading-title {
    font-size: 2.5rem;
  }
}
@media (max-width: 767px) {
  .elementor-10 .elementor-element-aee194b div.elementor-heading-title {
    font-size: 2rem;
  }
}

/* Restored "Search for Properties" 9-Category Grid inside Vu's Elementor Section (7a669c5) */
.moosh-restored-properties-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 1.75rem auto 0;
  position: relative;
  z-index: 2;
}

.moosh-restored-properties-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.95rem 1.35rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #F5821F;
}

.moosh-restored-properties-toolbar p {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #111111;
}

.moosh-restored-properties-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.moosh-prop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.25rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.moosh-prop-btn-primary {
  background: #F5821F;
  color: #111111 !important;
}

.moosh-prop-btn-primary:hover {
  background: #F5821FCC;
  color: #111111 !important;
}

.moosh-prop-btn-outline {
  background: #111111;
  color: #ffffff !important;
  border: 1px solid #111111;
}

.moosh-prop-btn-outline:hover {
  background: #333333;
  color: #ffffff !important;
}

.moosh-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.moosh-prop-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 1.35rem;
  overflow: hidden;
  text-decoration: none !important;
  background-color: #111111;
  background-size: cover;
  background-position: center center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moosh-prop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.15) 0%, rgba(17, 17, 17, 0.82) 100%);
  transition: background 0.25s ease;
}

.moosh-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.moosh-prop-card:hover::before {
  background: linear-gradient(180deg, rgba(245, 130, 31, 0.22) 0%, rgba(17, 17, 17, 0.88) 100%);
}

.moosh-prop-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.moosh-prop-card-title {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #ffffff !important;
  letter-spacing: 1px;
}

.moosh-prop-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.moosh-prop-card:hover .moosh-prop-card-arrow {
  background: #F5821F;
  color: #111111;
  transform: translateX(3px);
}

/* BuildOut Category Filter Bar on Interior Property Pages */
.moosh-buildout-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: #f9f9f9;
  border: 1px solid #e5e7eb;
}

.moosh-buildout-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.88rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #111111 !important;
  background: #ffffff;
  border: 1px solid #d1d5db;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.moosh-buildout-pill:hover {
  border-color: #F5821F;
  color: #F5821F !important;
}

.moosh-buildout-pill[aria-current="page"] {
  background: #F5821F;
  border-color: #F5821F;
  color: #111111 !important;
  font-weight: 600;
}

/* Dialogs (Scoped strictly to .moosh-dialog) */
.moosh-dialog {
  width: min(94vw, 64rem);
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(182, 240, 60, 0.45);
  background: #071320;
  color: #f8fafc;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.78);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.moosh-dialog::backdrop {
  background: rgba(2, 8, 16, 0.82);
  backdrop-filter: blur(6px);
}

.moosh-dialog-body {
  padding: clamp(1.35rem, 2.8vw, 2.1rem);
  overflow-y: auto;
  max-height: 88dvh;
}

.moosh-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--moosh-line);
}

.moosh-dialog-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 2vw + 0.3rem, 1.85rem);
  color: #ffffff !important;
  font-family: system-ui, -apple-system, sans-serif;
}

.moosh-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moosh-lime);
}

.moosh-close-btn {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--moosh-line) !important;
  background: var(--moosh-surface) !important;
  color: #e2e8f0 !important;
  cursor: pointer;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Container query scope for 3-Click Switch Plan Cards */
.switch-plans-scope {
  margin-top: 0.85rem;
}

@supports (container-type: inline-size) {
  .switch-plans-scope {
    container-type: inline-size;
    container-name: switch-plans;
  }
}

.switch-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@container switch-plans (min-width: 44rem) {
  .switch-plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.switch-plan-option {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--moosh-line);
  background: var(--moosh-surface);
  cursor: pointer;
  color: #f8fafc;
}

.switch-plan-option:has(input:checked) {
  border-color: var(--moosh-lime);
  background: rgba(182, 240, 60, 0.09);
  box-shadow: 0 0 0 1px var(--moosh-lime);
}

.switch-plan-option input[type="radio"] {
  accent-color: var(--moosh-lime);
}

.moosh-dialog-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.moosh-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.moosh-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.moosh-field input,
.moosh-field select,
.moosh-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--moosh-line) !important;
  background: #07101c !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
}

.moosh-field input:user-invalid,
.moosh-field textarea:user-invalid,
.moosh-field input[aria-invalid="true"] {
  border-color: var(--moosh-danger) !important;
}

.moosh-field input:user-valid,
.moosh-field textarea:user-valid {
  border-color: var(--moosh-gold) !important;
}

.fixes-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.84rem;
}

.fixes-table th,
.fixes-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--moosh-line);
  text-align: left;
  vertical-align: top;
}

.fixes-table thead th {
  color: var(--moosh-lime);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fixes-table tbody th {
  color: #f8fafc;
  font-weight: 700;
}

@media (max-width: 900px) {
  .moosh-prop-grid,
  .moosh-dialog-grid-2 {
    grid-template-columns: 1fr;
  }
  .moosh-upgrade-bar {
    border-radius: 16px;
    bottom: 8px;
  }
}

.moosh-upgrade-bar, dialog.moosh-dialog { display: none !important; }
