@media (max-width: 579px) {
    .listing_price{
        font-size: 17px;
    }
  }

  @media (max-width: 991px) {
    .navbar-expand-md1{
      display: none;
    }
  }

  @media (max-width: 1163px) {
    .nav-link-title{
      font-size: 11px;
    }
    .nav-link{
      min-width: 0px !important;
      padding-right: 0px !important;
    }
    .font-responsive{
      font-size: 11px;
    }
    .navbar .navbar-nav-1 .nav-link{
      padding: 0px 0px !important;
    }
  }
/* Default styles for mobile (with no rounded-pill or background classes) */
@media (max-width: 768px) {
  .mobile_badge {
    padding: 20px !important;
    background: none;
    color: inherit !important;
    border-radius: 0 !important;
    padding: 0;
    border-radius: 0 !important;
    background-color: transparent !important;
}
}

/* ── Internal content links (SEO internal linking) ──────────────────────
   ua-ilink anchors are injected automatically into page body text by
   ua_apply_internal_links() in functions.php.

   DEFAULT (all backgrounds): sky/baby blue #7ec8f4 — bright, airy,
     high contrast on every dark navy/slate section on the site.

   WHITE / LIGHT BACKGROUNDS: highlighter green #1fa846 — vivid green
     that pops clearly on white and light-grey sections. */

/* Universal default — sky blue on everything */
a.ua-ilink {
    color: #7ec8f4 !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(126, 200, 244, 0.45);
    text-shadow: none;
    transition: color 0.2s, border-color 0.2s;
}
a.ua-ilink:hover,
a.ua-ilink:focus {
    color: #b3dff7 !important;
    border-bottom-color: rgba(126, 200, 244, 0.75);
    text-decoration: none !important;
}

/* Safety-net reinforcement for named dark-background classes
   (redundant with the default above, but ensures no theme override
   can sneak a darker colour back in on these contexts). */
.bg-dark-gray      a.ua-ilink,
.bg-dark-blue      a.ua-ilink,
.section-dark      a.ua-ilink,
.footer-dark       a.ua-ilink,
.cover-background  a.ua-ilink,
.ua-hero           a.ua-ilink,
.ua-section-dark   a.ua-ilink,
#ua-blog-articles-section a.ua-ilink {
    color: #7ec8f4 !important;
    border-bottom-color: rgba(126, 200, 244, 0.45) !important;
    text-shadow: none !important;
}
.bg-dark-gray      a.ua-ilink:hover, .bg-dark-gray      a.ua-ilink:focus,
.bg-dark-blue      a.ua-ilink:hover, .bg-dark-blue      a.ua-ilink:focus,
.section-dark      a.ua-ilink:hover, .section-dark      a.ua-ilink:focus,
.footer-dark       a.ua-ilink:hover, .footer-dark       a.ua-ilink:focus,
.cover-background  a.ua-ilink:hover, .cover-background  a.ua-ilink:focus,
.ua-hero           a.ua-ilink:hover, .ua-hero           a.ua-ilink:focus,
.ua-section-dark   a.ua-ilink:hover, .ua-section-dark   a.ua-ilink:focus,
#ua-blog-articles-section a.ua-ilink:hover,
#ua-blog-articles-section a.ua-ilink:focus {
    color: #b3dff7 !important;
    border-bottom-color: rgba(126, 200, 244, 0.7) !important;
    text-shadow: none !important;
}

/* White / light backgrounds — highlighter green */
.bg-white a.ua-ilink {
    color: #1fa846 !important;
    border-bottom-color: rgba(31, 168, 70, 0.4) !important;
    text-shadow: none !important;
}
.bg-white a.ua-ilink:hover,
.bg-white a.ua-ilink:focus {
    color: #178038 !important;
    border-bottom-color: #1fa846 !important;
    text-shadow: none !important;
}

/* ── Hero "Explore Off-Market Exit" button ───────────────────────────────
   The hero section always sits on a dark background image. In Tabler's
   dark-mode the theme's CSS variables can drain the white styling from
   btn-outline-white, making text invisible against the dark hero.
   These rules lock the button to white-on-transparent / dark-on-white
   regardless of the active colour scheme. */
.btn.btn-outline-white,
[data-bs-theme="dark"] .btn.btn-outline-white {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    background-color: transparent !important;
}

.btn.btn-outline-white:hover,
.btn.btn-outline-white:focus,
.btn.btn-outline-white:active,
[data-bs-theme="dark"] .btn.btn-outline-white:hover,
[data-bs-theme="dark"] .btn.btn-outline-white:focus,
[data-bs-theme="dark"] .btn.btn-outline-white:active {
    color: #0d1117 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

/* ── Mega-menu navigation ─────────────────────────────────── */
.ua-mega-menu {
    background: #0b1426 !important;
    border: 1px solid rgba(201,168,76,0.28) !important;
    border-top: 2px solid #c9a84c !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55) !important;
    padding: 0 !important;
    margin-top: 2px !important;
}
.ua-mega-inner {
    display: flex;
}
.ua-mega-col {
    flex: 1;
    padding: 20px 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
    min-width: 0;
}
.ua-mega-col:last-child {
    border-right: none;
}
.ua-mega-heading {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c9a84c;
    padding-bottom: 9px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(201,168,76,0.22);
    white-space: nowrap;
}
.ua-mega-item {
    display: block;
    color: rgba(230,226,218,0.68) !important;
    font-size: 0.83rem;
    line-height: 1.3;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none !important;
    transition: color 0.15s ease, padding-left 0.12s ease;
    white-space: nowrap;
}
.ua-mega-item:hover {
    color: #c9a84c !important;
    padding-left: 5px;
    text-decoration: none !important;
}
.ua-mega-item:last-child {
    border-bottom: none;
}

/* Inline content link styles for institutional pages */
.ua-clink {
    color: #e2c97e !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px !important;
    font-weight: 600;
    transition: color 0.15s;
}
.ua-clink:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.ua-clink-lt {
    color: #7a5c28 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px !important;
    font-weight: 600;
    transition: color 0.15s;
}
.ua-clink-lt:hover {
    color: #0b1426 !important;
}

/* Mega-menu responsive */
@media (max-width: 1199px) {
    .ua-mega-item { font-size: 0.78rem; }
    .ua-mega-col  { padding: 16px 12px; }
}
@media (max-width: 991px) {
    .ua-mega-inner  { flex-direction: column; }
    .ua-mega-col    { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 10px 14px; }
    .ua-mega-col:last-child { border-bottom: none; }
    .ua-mega-menu   { min-width: auto !important; position: static !important; transform: none !important; box-shadow: none !important; border: none !important; border-left: 3px solid #c9a84c !important; border-radius: 0 !important; margin: 0 !important; }
    .ua-mega-item   { white-space: normal; }
}

/* ── Sticky nav: always visible — no hide-then-reappear ─────────────────── */
header.sticky {
    transform: translateY(0) !important;
    animation: ua-header-slide-down 0.28s ease-out;
}
@keyframes ua-header-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0);     }
}

/* ── Sticky nav: dark navy instead of theme default dark-gray ───────────── */
header.sticky [data-header-hover=dark] {
    background-color: rgba(11, 20, 38, 0.97) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4) !important;
}
header.sticky [data-header-hover=dark] .navbar-nav .nav-link,
header.sticky [data-header-hover=dark] .icon > a {
    color: rgba(255, 255, 255, 0.9) !important;
}
header.sticky [data-header-hover=dark] .navbar-nav .nav-item:hover .nav-link,
header.sticky [data-header-hover=dark] .icon > a:hover {
    color: #e2c97e !important;
    opacity: 1 !important;
}

/* ════════════════════════════════════════════════════════════
   UA MOBILE NAV — phones only (UA-detected, not breakpoint)
   Triggered by .ua-mobile-device on <html> (set via JS UA sniff)
════════════════════════════════════════════════════════════ */

/* Hide trigger and overlay by default; unhide only on detected phones */
#ua-mob-trigger { display: none; }
#ua-mob-overlay { display: none; }

.ua-mobile-device #ua-mob-trigger { display: flex; }
.ua-mobile-device #ua-mob-overlay { display: flex; }

/* On phones, hide the existing Bootstrap toggler + its collapse menu */
.ua-mobile-device .navbar-toggler { display: none !important; }
.ua-mobile-device .collapse.navbar-collapse { display: none !important; }

/* ── Hamburger trigger button ── */
#ua-mob-trigger {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 10;
    transition: border-color 0.2s;
}
#ua-mob-trigger:hover { border-color: #e2c97e; }
#ua-mob-trigger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
}
body.ua-mob-open #ua-mob-trigger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.ua-mob-open #ua-mob-trigger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.ua-mob-open #ua-mob-trigger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Full-screen overlay ── */
#ua-mob-overlay {
    position: fixed;
    inset: 0;
    background: #0b1426;
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.ua-mob-open { overflow: hidden; }
body.ua-mob-open #ua-mob-overlay { transform: translateY(0); }

/* ── Overlay header strip ── */
.ua-mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.ua-mob-header img { height: 44px; object-fit: contain; }
#ua-mob-close {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Scrollable nav body ── */
.ua-mob-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

/* ── Top-level direct links ── */
.ua-mob-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f5f3ef;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s, background 0.2s;
}
.ua-mob-link i { color: #c9a84c; width: 22px; text-align: center; font-size: 1.05rem; }
.ua-mob-link:hover { color: #e2c97e; background: rgba(201,168,76,0.06); }

/* ── Expandable section toggles ── */
.ua-mob-section-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f5f3ef;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}
.ua-mob-section-left { display: flex; align-items: center; gap: 14px; }
.ua-mob-section-btn i.ua-mob-icon { color: #c9a84c; width: 22px; text-align: center; font-size: 1.05rem; }
.ua-mob-chevron { font-size: 0.7rem; color: rgba(255,255,255,0.35); transition: transform 0.25s; }
.ua-mob-section-btn.open .ua-mob-chevron { transform: rotate(180deg); }
.ua-mob-section-btn.open { color: #e2c97e; }

/* ── Sub-panels ── */
.ua-mob-sub {
    display: none;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ua-mob-sub.open { display: block; }
.ua-mob-sub-heading {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c;
    padding: 14px 24px 6px;
}
.ua-mob-sub-link {
    display: block;
    padding: 13px 24px 13px 44px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #e8e5df;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.04);
    transition: color 0.18s, padding-left 0.18s;
}
.ua-mob-sub-link:hover { color: #e2c97e; padding-left: 52px; }

/* ── CTA buttons ── */
.ua-mob-cta-row {
    padding: 18px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.ua-mob-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c9a84c;
    color: #0b1426 !important;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px;
    border-radius: 2px;
    transition: background 0.2s;
}
.ua-mob-cta-primary:hover { background: #e2c97e; }
.ua-mob-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    color: #f0ede8 !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 13px;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.ua-mob-cta-secondary:hover { border-color: #e2c97e; color: #e2c97e !important; }

/* ── Nav login button (desktop + tablet) ────────────────────────────────
   Replaces the old btn-info pill — slim, corporate, no background. */
.ua-nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    padding: 6px 13px;
    text-decoration: none !important;
    background: transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.ua-nav-login-btn i {
    font-size: 0.85rem;
    opacity: 0.9;
}
.ua-nav-login-btn:hover {
    color: #ffffff !important;
    border-color: rgba(201,168,76,0.6);
    background: rgba(201,168,76,0.08);
}

/* ── Mobile positioning tweaks ── */
/* Shift login button left of the hamburger on mobile */
.ua-mobile-device .ua-nav-login-btn {
    margin-right: 10px;
}
/* Nudge hamburger down so it clears the iOS status-bar safe area */
.ua-mobile-device #ua-mob-trigger {
    margin-top: 7px;
    align-self: center;
}

/* ── Contact info strip ── */
.ua-mob-contact {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.ua-mob-contact a {
    color: #d4d0c8;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ua-mob-contact a i { color: #c9a84c; }