/* ==========================================================================
   Joe Renter design system  (css/theme.css)
   Loaded by include/layout_head.php and, on standalone pages, by menu.php.
   Layered on top of Bootstrap 5.2.3. Prefix: jr-
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Brand */
    --jr-primary: #0b5fcc;
    --jr-primary-600: #0a52b0;
    --jr-primary-700: #083f8a;
    --jr-primary-900: #061f45;
    --jr-primary-50: #eef4fe;
    --jr-accent: #ff9f1c;
    --jr-accent-600: #ff7a1a;
    --jr-accent-ink: #1f1300;   /* text on orange fills: 9:1 */
    --jr-accent-text: #b45309;  /* orange-family text on white: 5:1 */
    --jr-sage: #9fb7a9;

    /* Neutrals */
    --jr-ink: #0f1b2d;
    --jr-body: #334155;
    --jr-muted: #56657a;
    --jr-line: #e3e8f0;
    --jr-bg: #f5f7fb;
    --jr-surface: #ffffff;

    /* Shape & depth */
    --jr-radius-xs: 8px;
    --jr-radius-sm: 12px;
    --jr-radius: 18px;
    --jr-radius-lg: 28px;
    --jr-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .06);
    --jr-shadow: 0 18px 40px -18px rgba(15, 27, 45, .35);
    --jr-shadow-lg: 0 40px 80px -30px rgba(6, 31, 69, .55);

    /* Type */
    --jr-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --jr-ease: cubic-bezier(.2, .7, .2, 1);
    --jr-nav-h: 68px;

    /* Legacy variables still referenced by older page CSS */
    --main-color: #0066cc;
    --main-sub: #fc9300;
    --main-link: #ffffff;
    --main-text: #ffffff;
    --sub-color: hsla(138, 9%, 37%, 0.49);
}

/* ---------- 2. Base (only on shell pages: <body class="jr">) ---------- */
body.jr {
    font-family: var(--jr-font);
    color: var(--jr-body);
    background: var(--jr-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    --bs-body-font-family: var(--jr-font);
    --bs-primary: var(--jr-primary);
    --bs-primary-rgb: 11, 95, 204;
    --bs-link-color: var(--jr-primary);
    --bs-link-hover-color: var(--jr-primary-700);
}
/* Headings inherit their colour (so .text-white, footer and card headers work); ink only where the background is light. */
body.jr :where(h1, h2, h3, h4, h5, h6) { letter-spacing: -.02em; font-weight: 800; }
body.jr main :where(h1, h2, h3, h4, h5, h6):not(.location_badge, .text-white, .text-light, .text-primary,
    .text-white *, .text-light *, [class*="bg-primary"] *, [class*="bg-dark"] *,
    .jr-auth-aside *, .jr-hero *, .jr-glass *) { color: var(--jr-ink); }
.jr-section-head h2, .jr-auth-main h2 { color: var(--jr-ink); }
body.jr .btn-primary {
    --bs-btn-bg: var(--jr-primary);
    --bs-btn-border-color: var(--jr-primary);
    --bs-btn-hover-bg: var(--jr-primary-600);
    --bs-btn-hover-border-color: var(--jr-primary-600);
    --bs-btn-active-bg: var(--jr-primary-700);
    --bs-btn-active-border-color: var(--jr-primary-700);
}
body.jr ::selection { background: rgba(11, 95, 204, .18); }

.jr-skip {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--jr-ink);
    color: #fff !important;
    padding: .6rem 1rem;
    border-radius: var(--jr-radius-xs);
    font-weight: 700;
    text-decoration: none;
}
.jr-skip:focus { top: 1rem; }

/* Legacy utilities that used to live in menu.php and are used across the site */
.pointer { cursor: pointer; }
.color_back { background-color: #efefef; }
.color_top { background-color: var(--main-color); }
.color_bar { text-align: center; margin: 0 auto; }
.search_button:hover { background-color: var(--main-color); color: #fff; }
.modal { backdrop-filter: blur(5px); background: rgb(255 255 255 / .5); }
.modal-content { box-shadow: 0 3px 10px rgb(0 0 0 / .2); }
.filter-white { filter: invert(100%) sepia(100%) saturate(100%) hue-rotate(90deg) brightness(90%) contrast(100%); }
.filter-white:hover { filter: invert(100%) sepia(100%) saturate(100%) hue-rotate(90deg) brightness(100%) contrast(100%); }

/* ---------- 3. Navigation ---------- */
.jr-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--jr-nav-h);
    padding: .5rem 0;
    font-family: var(--jr-font);
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15, 27, 45, .06);
    transition: box-shadow .3s var(--jr-ease), background-color .3s var(--jr-ease);
}
.jr-nav.is-scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px -18px rgba(15, 27, 45, .45);
}
.jr-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0;
    margin: 0;
    text-decoration: none;
}
.jr-brand img {
    width: 56px;
    height: auto;
    aspect-ratio: 56 / 40;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--jr-primary) 0%, var(--jr-primary-700) 100%);
    border: 0;
    box-shadow: 0 6px 14px -6px rgba(11, 95, 204, .7);
    padding: 6px 7px;
}
.jr-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: var(--jr-ink);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -.02em;
}
.jr-brand-text small {
    margin-top: 3px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--jr-muted);
}
.jr-nav .navbar-nav { gap: .15rem; }
.jr-nav .nav-link,
.jr-nav .jr-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--jr-ink) !important;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    padding: .6rem .95rem !important;
    border: 0;
    background: transparent;
    border-radius: 999px;
    transition: background-color .2s var(--jr-ease), color .2s var(--jr-ease);
}
.jr-nav .nav-link:hover,
.jr-nav .nav-link:focus-visible,
.jr-nav .nav-link.show,
.jr-nav .jr-nav-btn:hover,
.jr-nav .jr-nav-btn:focus-visible {
    background: var(--jr-primary-50);
    color: var(--jr-primary) !important;
}
.jr-nav .nav-link.active { color: var(--jr-primary) !important; }
.jr-nav .nav-link svg,
.jr-nav .jr-nav-btn svg { width: 18px; height: 18px; flex: none; }
.jr-nav .dropdown-toggle::after {
    border: 0;
    width: .55rem;
    height: .55rem;
    margin-left: .1rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.2 8 11.6l6.4-6.4' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.2 8 11.6l6.4-6.4' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s var(--jr-ease);
}
.jr-nav .dropdown-toggle.show::after { transform: rotate(180deg); }

.jr-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .95rem;
    color: var(--jr-accent-ink) !important;
    background: linear-gradient(135deg, var(--jr-accent) 0%, var(--jr-accent-600) 100%);
    border: 0;
    border-radius: 999px;
    padding: .68rem 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px -10px rgba(255, 122, 26, .75);
    transition: transform .2s var(--jr-ease), box-shadow .2s var(--jr-ease), filter .2s;
}
.jr-cta:hover,
.jr-cta:focus-visible {
    color: var(--jr-accent-ink) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -12px rgba(255, 122, 26, .85);
    filter: saturate(1.1);
}
.jr-cta svg { width: 18px; height: 18px; }

/* Mega dropdown of states */
.jr-mega {
    --bs-dropdown-link-active-bg: var(--jr-primary);
    border: 1px solid var(--jr-line);
    border-radius: var(--jr-radius);
    box-shadow: var(--jr-shadow-lg);
    padding: 1.1rem;
    width: min(720px, 94vw);
    margin-top: .6rem !important;
    animation: jrPop .22s var(--jr-ease);
}
.jr-mega-head {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 .35rem .9rem;
    margin-bottom: .6rem;
    border-bottom: 1px solid var(--jr-line);
}
.jr-mega-head strong { color: var(--jr-ink); font-size: 1rem; display: block; }
.jr-mega-head span { color: var(--jr-muted); font-size: .82rem; }
.jr-mega-map {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .85rem;
    color: #fff !important;
    background: var(--jr-primary);
    border-radius: 999px;
    padding: .45rem .9rem;
    text-decoration: none;
}
.jr-mega-map:hover { background: var(--jr-primary-700); }
.jr-mega-map svg { width: 16px; height: 16px; }
.jr-mega-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .1rem .4rem;
    max-height: min(56vh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.jr-mega .dropdown-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    border-radius: var(--jr-radius-xs);
    padding: .45rem .55rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--jr-body);
    white-space: normal;
}
.jr-mega .dropdown-item:hover,
.jr-mega .dropdown-item:focus { background: var(--jr-primary-50); color: var(--jr-primary); }
.jr-abbr {
    flex: none;
    min-width: 2.1rem;
    text-align: center;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--jr-primary);
    background: var(--jr-primary-50);
    border-radius: 6px;
    padding: .18rem .3rem;
}
.jr-count { margin-left: auto; font-size: .75rem; color: var(--jr-muted); font-variant-numeric: tabular-nums; }

/* Animated hamburger */
.jr-toggler {
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: 12px;
    background: var(--jr-primary-50);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    box-shadow: none !important;
}
.jr-toggler span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--jr-ink);
    transition: transform .3s var(--jr-ease), opacity .2s;
}
.jr-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jr-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jr-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .jr-nav .navbar-collapse {
        margin-top: .75rem;
        padding: .75rem;
        background: #fff;
        border: 1px solid var(--jr-line);
        border-radius: var(--jr-radius);
        box-shadow: var(--jr-shadow);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .jr-nav .nav-link,
    .jr-nav .jr-nav-btn { width: 100%; justify-content: flex-start; padding: .8rem 1rem !important; }
    .jr-nav .jr-cta { width: 100%; justify-content: center; margin-top: .4rem; padding: .85rem 1.25rem; }
    .jr-mega {
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: .25rem 0 .5rem;
        margin-top: 0 !important;
        animation: none;
    }
    .jr-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 42vh; }
}
@media (max-width: 420px) {
    .jr-brand-text small { display: none; }
}

/* ---------- 4. Hero ---------- */
.jr-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    min-height: clamp(560px, 82vh, 760px);
    display: flex;
    align-items: center;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(6rem, 11vw, 8.5rem);
    background: var(--jr-primary-900);
}
.jr-hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: 62% 60%;
    transform: scale(1.08);
    animation: jrKenBurns 22s var(--jr-ease) both;
}
.jr-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 520px at 8% 20%, rgba(11, 95, 204, .55), transparent 60%),
        linear-gradient(100deg, rgba(6, 22, 48, .94) 0%, rgba(7, 34, 76, .86) 34%, rgba(8, 48, 105, .45) 64%, rgba(8, 48, 105, .12) 100%);
}
.jr-hero-glow {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -140px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 0, .35), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
}
.jr-hero-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 0;
    width: 100%;
    height: clamp(40px, 6vw, 90px);
    color: var(--jr-bg);
    display: block;
}
.jr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #dbe8ff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: .45rem .9rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.jr-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39d98a;
    box-shadow: 0 0 0 0 rgba(57, 217, 138, .7);
    animation: jrPulse 2s infinite;
}
.jr-hero-title {
    color: #fff !important;
    font-size: clamp(2.35rem, 1.2rem + 4.4vw, 4.4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.035em;
    margin: 1.25rem 0 1.1rem;
    text-wrap: balance;
}
.jr-highlight {
    position: relative;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffd08a 0%, #ff9a3d 45%, #ff7a59 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.jr-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.08em;
    height: .12em;
    border-radius: 99px;
    background: linear-gradient(90deg, #ffd08a, #ff7a59);
    transform-origin: left;
    animation: jrUnderline 1s .5s var(--jr-ease) both;
}
.jr-hero-lead {
    font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
    line-height: 1.6;
    color: #d5e2f5;
    max-width: 36rem;
    margin-bottom: 2rem;
}

/* Search pill */
.jr-search {
    display: flex;
    align-items: center;
    gap: .35rem;
    max-width: 580px;
    padding: .45rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .1);
}
.jr-search-icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-left: .85rem;
    color: var(--jr-primary);
}
.jr-search .form-select {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    box-shadow: none !important;
    background-color: transparent;
    color: var(--jr-ink);
    font-weight: 600;
    font-size: 1rem;
    padding: .8rem 2.2rem .8rem .5rem;
    cursor: pointer;
}
.jr-search .btn {
    flex: none;
    border-radius: 999px;
    padding: .82rem 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    box-shadow: 0 10px 22px -10px rgba(11, 95, 204, .9);
}
.jr-search .btn svg { width: 18px; height: 18px; }
.jr-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    margin-top: 1.1rem;
    font-size: .92rem;
}
.jr-hero-links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    opacity: .9;
}
.jr-hero-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.jr-hero-links svg { width: 16px; height: 16px; }

/* Stats */
.jr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.4rem;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    max-width: 580px;
}
.jr-stat strong {
    display: block;
    color: #fff;
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.jr-stat span {
    display: block;
    margin-top: .4rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a9c0e2;
}

/* Glass panel */
.jr-glass {
    position: relative;
    color: #fff;
    background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--jr-radius-lg);
    padding: 2rem;
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: var(--jr-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .25);
    animation: jrFloatIn .9s .2s var(--jr-ease) both;
}
.jr-glass h2 {
    color: #fff !important;
    font-size: 1.45rem;
    margin-bottom: .35rem;
}
.jr-glass > p { color: #d5e2f5; margin-bottom: 1.4rem; }
.jr-badge-free {
    position: absolute;
    top: -14px;
    right: 22px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3a2100;
    background: linear-gradient(135deg, #ffd08a, #ff9a3d);
    border-radius: 999px;
    padding: .38rem .8rem;
    box-shadow: 0 10px 20px -10px rgba(255, 138, 0, .9);
}
.jr-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    counter-reset: jr-step;
}
.jr-steps li {
    position: relative;
    counter-increment: jr-step;
    padding: 0 0 1.1rem 3.2rem;
    min-height: 2.4rem;
}
.jr-steps li:last-child { padding-bottom: 0; }
.jr-steps li::before {
    content: counter(jr-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--jr-primary-900);
    background: #fff;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5);
}
.jr-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 2.5rem;
    bottom: .2rem;
    width: 2px;
    background: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .05));
}
.jr-steps strong { display: block; color: #fff; font-size: 1rem; }
.jr-steps span { display: block; color: #c5d6ee; font-size: .9rem; line-height: 1.5; }
.jr-glass .jr-cta { width: 100%; justify-content: center; padding: .9rem 1.25rem; }

/* ---------- 5. Sections ---------- */
.jr-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.jr-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.75rem;
}
.jr-kicker {
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--jr-accent-text);
    margin-bottom: .45rem;
}
.jr-section-head h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
    margin: 0 0 .35rem;
}
.jr-section-head p { color: var(--jr-muted); margin: 0; max-width: 34rem; }
a.jr-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--jr-primary);
    text-decoration: none;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    background: var(--jr-surface);
    border: 1px solid var(--jr-line);
    box-shadow: var(--jr-shadow-sm);
    transition: transform .2s var(--jr-ease), box-shadow .2s var(--jr-ease);
}
a.jr-link-arrow:hover { color: var(--jr-primary-700); transform: translateX(3px); box-shadow: var(--jr-shadow); }
a.jr-link-arrow svg { width: 18px; height: 18px; }

/* ---------- 6. Cookie banner (index.php #cookiePopup) ---------- */
#cookiePopup {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 1060;
    width: min(560px, calc(100% - 24px));
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    font-family: var(--jr-font);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--jr-line);
    border-radius: var(--jr-radius);
    box-shadow: var(--jr-shadow-lg);
    animation: jrSlideUp .45s var(--jr-ease) both;
}
#cookiePopup .jr-cookie-text { display: flex; gap: .9rem; align-items: flex-start; color: var(--jr-body); font-size: .92rem; line-height: 1.55; }
#cookiePopup .jr-cookie-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff4e5;
    color: var(--jr-accent-text);
}
#cookiePopup .jr-cookie-icon svg { width: 22px; height: 22px; }
#cookiePopup strong { color: var(--jr-ink); display: block; margin-bottom: .15rem; }
#cookiePopup .jr-cookie-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--jr-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
#cookiePopup .jr-cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
#cookiePopup .jr-cookie-actions button {
    flex: 1 1 180px;
    border-radius: 999px;
    padding: .72rem 1rem;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .2s var(--jr-ease), box-shadow .2s var(--jr-ease), background-color .2s;
}
#acceptCookie {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--jr-primary), var(--jr-primary-700));
    box-shadow: 0 10px 22px -10px rgba(11, 95, 204, .9);
}
#acceptCookie:hover { transform: translateY(-1px); }
#rejectCookie {
    color: var(--jr-ink);
    background: #fff;
    border: 1px solid var(--jr-line);
}
#rejectCookie:hover { background: var(--jr-bg); }

/* ---------- 7. Motion ---------- */
@keyframes jrKenBurns { from { transform: scale(1.18); } to { transform: scale(1.06); } }
@keyframes jrPulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 217, 138, .7); }
    70% { box-shadow: 0 0 0 10px rgba(57, 217, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0); }
}
@keyframes jrUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jrFloatIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes jrPop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes jrSlideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes jrRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.jr-rise { animation: jrRise .8s var(--jr-ease) both; }
.jr-rise-2 { animation-delay: .12s; }
.jr-rise-3 { animation-delay: .24s; }
.jr-rise-4 { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 8. Responsive hero ---------- */
@media (max-width: 991.98px) {
    .jr-hero { min-height: 0; padding-top: 3rem; }
    .jr-hero-overlay {
        background:
            radial-gradient(800px 400px at 0% 0%, rgba(11, 95, 204, .5), transparent 60%),
            linear-gradient(180deg, rgba(6, 22, 48, .9) 0%, rgba(7, 34, 76, .82) 60%, rgba(8, 48, 105, .7) 100%);
    }
    .jr-glass { margin-top: 2.5rem; }
}
@media (max-width: 575.98px) {
    .jr-search { flex-wrap: wrap; border-radius: var(--jr-radius); padding: .5rem; }
    .jr-search-icon { display: none; }
    .jr-search .form-select { flex-basis: 100%; padding-left: .85rem; }
    .jr-search .btn { width: 100%; justify-content: center; border-radius: var(--jr-radius-sm); }
    .jr-glass { padding: 1.6rem 1.3rem; }
    .jr-stats { gap: 1rem 1.6rem; }
}

/* ==========================================================================
   9. Auth & contact pages (/login, /register, /contactus)
   ========================================================================== */
.jr-auth { padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.jr-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    max-width: 1060px;
    margin: 0 auto;
    background: var(--jr-surface);
    border: 1px solid var(--jr-line);
    border-radius: var(--jr-radius-lg);
    box-shadow: var(--jr-shadow);
    overflow: hidden;
    animation: jrFloatIn .6s var(--jr-ease) both;
}
.jr-auth-aside {
    position: relative;
    isolation: isolate;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: #dbe8ff;
    background: linear-gradient(160deg, var(--jr-primary-900) 0%, var(--jr-primary-700) 55%, var(--jr-primary) 100%);
    overflow: hidden;
}
.jr-auth-aside::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 28, .45), transparent 65%);
}
.jr-auth-aside h1 {
    color: #fff;
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
    margin: .75rem 0 .75rem;
}
.jr-auth-aside p { line-height: 1.6; margin-bottom: 1.5rem; }
.jr-kicker-light {
    display: inline-block;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ffd08a;
}
.jr-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.jr-ticks li { position: relative; padding-left: 2rem; color: #fff; font-weight: 600; }
.jr-ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.jr-steps-light li::before { content: counter(jr-step); color: var(--jr-primary-900); background: #fff; opacity: .55; transition: opacity .25s, background-color .25s; }
.jr-steps-light li.is-current::before { opacity: 1; background: #ffd08a; }
.jr-steps-light li.is-done::before { content: "\2713"; opacity: 1; background: #39d98a; }
.jr-steps-light strong { color: #fff; }
.jr-steps-light span { color: #c5d6ee; }
.jr-note-card {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    font-size: .92rem;
    line-height: 1.55;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--jr-radius-sm);
}
.jr-note-card strong { display: block; margin-bottom: .2rem; color: #ffd08a; }

.jr-auth-main { padding: clamp(1.75rem, 4vw, 3rem); }
.jr-auth-main h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin: 0 0 .4rem; }
.jr-auth-sub { color: var(--jr-muted); margin-bottom: 1.5rem; line-height: 1.55; }
.jr-auth-sub a, .jr-textlink {
    color: var(--jr-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.jr-textlink { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; }
.jr-textlink:hover:not(:disabled) { color: var(--jr-primary-700); }
.jr-textlink:disabled { color: var(--jr-muted); text-decoration: none; cursor: default; }
.jr-hint { font-size: .82rem; color: var(--jr-muted); }
.jr-recaptcha-note { margin: 1.5rem 0 0; text-align: center; font-size: .78rem; color: var(--jr-muted); }
.jr-recaptcha-note a { color: inherit; text-decoration: underline; }

.jr-auth .form-control {
    border: 1px solid #cbd5e1;
    border-radius: var(--jr-radius-sm);
    background: #fff;
    color: var(--jr-ink);
    font-weight: 500;
}
.jr-auth .form-floating > label { color: var(--jr-muted); }
.jr-auth .form-control:focus {
    border-color: var(--jr-primary);
    box-shadow: 0 0 0 .25rem rgba(11, 95, 204, .16);
}
.jr-auth .form-control.is-invalid { border-color: #dc2626; background-image: none; padding-right: .75rem; }
.jr-auth .form-control.is-invalid:focus { box-shadow: 0 0 0 .25rem rgba(220, 38, 38, .16); }
.jr-fb { font-size: .84rem; font-weight: 600; color: #b91c1c; min-height: 0; margin-top: .3rem; }
.jr-fb:empty { display: none !important; }
.jr-textarea { min-height: 150px; resize: vertical; }
.jr-code { font-size: 1.6rem; letter-spacing: .5em; font-weight: 700; text-align: center; padding-left: 1rem !important; }
.jr-alert { border-radius: var(--jr-radius-sm); font-weight: 600; }
.jr-submit { border-radius: 999px; font-weight: 700; padding: .85rem 1.5rem; box-shadow: 0 12px 24px -12px rgba(11, 95, 204, .9); }
.jr-auth .form-check-input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; border-color: #94a3b8; }
.jr-auth .form-check-input:checked { background-color: var(--jr-primary); border-color: var(--jr-primary); }

.jr-pw { position: relative; }
.jr-pw .form-control { padding-right: 3rem; }
.jr-pw-btn {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--jr-muted);
    cursor: pointer;
}
.jr-pw-btn:hover, .jr-pw-btn.is-on { color: var(--jr-primary); background: var(--jr-primary-50); }
.jr-pw-btn svg { width: 20px; height: 20px; }

.jr-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.jr-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #39d98a, #16a34a);
    box-shadow: 0 16px 30px -12px rgba(22, 163, 74, .8);
    animation: jrFloatIn .5s var(--jr-ease) both;
}
.jr-success-icon svg { width: 36px; height: 36px; }

@media (max-width: 860px) {
    .jr-auth-shell { grid-template-columns: 1fr; }
    .jr-auth-aside { padding-bottom: 1.5rem; }
    .jr-auth-aside .jr-ticks, .jr-auth-aside .jr-note-card { display: none; }
    .jr-auth-aside p { margin-bottom: 0; }
    .jr-steps-light { display: flex; gap: .75rem; margin: 1rem 0 0; }
    .jr-steps-light li { flex: 1; padding: 0; min-height: 0; text-align: center; }
    .jr-steps-light li::before { position: static; margin: 0 auto .3rem; }
    .jr-steps-light li::after { display: none; }
    .jr-steps-light span { display: none; }
    .jr-steps-light strong { font-size: .78rem; }
}


/* ==========================================================================
   10. Review fixes: focus, contrast, motion, mobile menu
   ========================================================================== */
.jr-toggler:focus-visible { box-shadow: 0 0 0 3px rgba(11, 95, 204, .55) !important; }
.jr-search:focus-within {
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 4px rgba(255, 208, 138, .95);
}
.jr-cta:focus-visible, .jr-mega-map:focus-visible, a.jr-link-arrow:focus-visible {
    outline: 3px solid rgba(11, 95, 204, .6);
    outline-offset: 3px;
}

/* glass panel: dark tinted base so white text keeps >= 5:1 over the bright part of the photo */
.jr-glass {
    background: linear-gradient(160deg, rgba(8, 32, 72, .74), rgba(6, 22, 48, .62));
}
.jr-hero-overlay {
    background:
        radial-gradient(1200px 520px at 8% 20%, rgba(11, 95, 204, .55), transparent 60%),
        linear-gradient(100deg, rgba(6, 22, 48, .94) 0%, rgba(7, 34, 76, .9) 34%, rgba(8, 48, 105, .6) 64%, rgba(8, 48, 105, .18) 100%);
}

/* cookie banner sits above the nav but below dialogs and their backdrop */
#cookiePopup { z-index: 1035; }

/* mobile menu: no empty pill while Bootstrap animates the height; iOS-safe max height */
@media (max-width: 991.98px) {
    .jr-nav .navbar-collapse { max-height: calc(100dvh - 100px); }
    .jr-nav .navbar-collapse.collapsing { padding-block: 0; border-width: 0; margin-top: 0; }
}
/* keep "Browse offices" on one line at the narrow end of the desktop nav */
@media (min-width: 992px) { .jr-nav .nav-link, .jr-nav .jr-nav-btn { white-space: nowrap; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-delay: 0s !important; }
}

/* ==========================================================================
   11. Footer (footer.php)
   ========================================================================== */
.jr-footer { background: var(--jr-primary-900); color: rgba(255,255,255,.72); font-family: var(--jr-font); margin-top: auto; }
.jr-footer-wrap { max-width: 1140px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.jr-footer-cta { background: linear-gradient(110deg, var(--jr-primary) 0%, #1a78ee 55%, #3b93ff 100%); }
.jr-footer-cta .jr-footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.jr-footer-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .25rem; }
.jr-footer-cta p { color: rgba(255,255,255,.85); margin: 0; }
.jr-footer-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; background: #fff; color: var(--jr-primary-700) !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 14px 28px -14px rgba(0,0,0,.5); transition: transform .2s var(--jr-ease); }
.jr-footer-btn:hover { transform: translateY(-2px); }
.jr-footer-main { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-top: 3.25rem; padding-bottom: 2.5rem; }
.jr-footer-logo { display: inline-flex; align-items: center; gap: .75rem; color: #fff !important; font-weight: 800; font-size: 1.15rem; text-decoration: none !important; }
.jr-footer-logo img { width: 48px; height: 48px; padding: 6px 7px; border-radius: 14px; border: 0; background: linear-gradient(145deg, #1a78ee, #0b5fcc); }
.jr-footer-brand p { margin: 1rem 0 .75rem; max-width: 30ch; line-height: 1.6; }
.jr-footer-mail { color: #fff !important; font-weight: 600; text-underline-offset: 4px; }
.jr-footer-col h3 { color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.jr-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.jr-footer-col a { color: rgba(255,255,255,.72) !important; text-decoration: none !important; transition: color .15s; }
.jr-footer-col a:hover, .jr-footer-col a:focus-visible { color: #fff !important; text-decoration: underline !important; text-underline-offset: 4px; }
.jr-footer-base { display: flex; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
@media (max-width: 991.98px) { .jr-footer-main { grid-template-columns: 1fr 1fr; } .jr-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .jr-footer-main { gap: 2rem 1rem; padding-top: 2.5rem; } .jr-footer-btn { width: 100%; justify-content: center; } }

/* ==========================================================================
   12. Pricing (about.php)
   ========================================================================== */
.jr-pricing { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.jr-pricing-head { text-align: center; max-width: 42rem; margin: 0 auto 2rem; }
.jr-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--jr-primary); margin: 0 0 .6rem; }
.jr-pricing-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin: 0 0 1rem; }
.jr-pricing-head p:last-child { color: var(--jr-muted); font-size: 1.08rem; margin: 0; }
.jr-term { display: flex; width: fit-content; margin: 0 auto 2.5rem; padding: 5px; gap: 4px; background: #e6ecf5; border-radius: 999px; max-width: 100%; }
.jr-term input { position: absolute; opacity: 0; pointer-events: none; }
.jr-term label { padding: .55rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--jr-muted); cursor: pointer; white-space: nowrap; }
.jr-term input:checked + label { background: #fff; color: var(--jr-ink); box-shadow: var(--jr-shadow-sm); }
.jr-term input:focus-visible + label { outline: 3px solid rgba(11,95,204,.45); outline-offset: 2px; }
.jr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.jr-plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem; background: #fff; border: 1px solid var(--jr-line); border-radius: var(--jr-radius); box-shadow: var(--jr-shadow-sm); }
.jr-plan.is-pop { border-color: var(--jr-primary); box-shadow: 0 0 0 1px var(--jr-primary), var(--jr-shadow); transform: translateY(-8px); }
.jr-plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: .3rem .9rem; border-radius: 999px; background: var(--jr-accent); color: var(--jr-accent-ink); font-size: .74rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.jr-plan h2 { font-size: 1.35rem; margin: 0 0 .25rem; color: var(--jr-ink); }
.jr-plan-blurb { color: var(--jr-muted); margin: 0 0 1.25rem; }
.jr-plan-price strong { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--jr-ink); }
.jr-plan-price span { display: block; margin-top: .4rem; color: var(--jr-muted); font-size: .9rem; font-weight: 600; }
.jr-plan-feat { list-style: none; margin: 1.5rem 0 1.75rem; padding: 1.25rem 0 0; border-top: 1px solid var(--jr-line); display: grid; gap: .7rem; }
.jr-plan-feat li { display: flex; gap: .6rem; align-items: center; color: var(--jr-body); }
.jr-plan-feat svg { flex: none; width: 18px; height: 18px; color: #0f8a5f; }
.jr-plan-cta { margin-top: auto; text-align: center; padding: .85rem 1rem; border-radius: 12px; font-weight: 800; text-decoration: none !important; border: 1px solid var(--jr-line); color: var(--jr-ink) !important; background: #fff; transition: background .15s, border-color .15s; }
.jr-plan-cta:hover { border-color: #c4d0e2; background: var(--jr-bg); }
.jr-plan.is-pop .jr-plan-cta { background: var(--jr-primary); border-color: var(--jr-primary); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(11,95,204,.8); }
.jr-plan.is-pop .jr-plan-cta:hover { background: var(--jr-primary-600); }
.jr-pricing-note { text-align: center; color: var(--jr-muted); margin: 2rem auto 0; max-width: 40rem; }
@media (max-width: 860px) { .jr-plans { grid-template-columns: 1fr; max-width: 460px; } .jr-plan.is-pop { transform: none; order: -1; } }

/* ==========================================================================
   13. Search / browse results (browse_listings.php + listing_list.php)
   ========================================================================== */
body.jr-browse-page { background: var(--jr-bg) !important; font-family: var(--jr-font); color: var(--jr-body); -webkit-font-smoothing: antialiased; }
.jr-browse { max-width: 1180px; padding-top: 1.25rem; padding-bottom: 3rem; }
.jr-crumbs { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .82rem; font-weight: 600; }
.jr-crumbs li + li::before { content: "/"; margin-right: .25rem; color: #9aa7b8; }
.jr-crumbs a { color: var(--jr-muted); text-decoration: none; }
.jr-crumbs a:hover { color: var(--jr-primary); text-decoration: underline; }
.jr-browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.jr-browse-head h1, .jr-browse-head h2 { display: inline; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; color: var(--jr-ink); margin: 0; }
.jr-browse-head h2 { color: var(--jr-primary); }
.jr-view { display: inline-flex; padding: 4px; gap: 2px; background: #e6ecf5; border-radius: 12px; }
.jr-view button { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; padding: .5rem .9rem; border-radius: 9px; font: 700 .85rem var(--jr-font); color: var(--jr-muted); cursor: pointer; }
.jr-view button svg { width: 16px; height: 16px; }
.jr-view button.is-on { background: #fff; color: var(--jr-primary); box-shadow: var(--jr-shadow-sm); }
.jr-view button:focus-visible { outline: 3px solid rgba(11,95,204,.45); outline-offset: 2px; }

.jr-results { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 0 !important; width: 100%; }
.jr-results-count { grid-column: 1 / -1; font-size: .9rem; font-weight: 600; color: var(--jr-muted); }
.jr-results-count strong { color: var(--jr-ink); }
.jr-results-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #c4d0e2; border-radius: var(--jr-radius); }
.jr-results-empty h3 { font-size: 1.2rem; color: var(--jr-ink); }
.jr-rcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jr-line); border-radius: var(--jr-radius); box-shadow: var(--jr-shadow-sm); overflow: hidden; transition: transform .22s var(--jr-ease), box-shadow .22s var(--jr-ease); }
.jr-rcard:hover { transform: translateY(-4px); box-shadow: var(--jr-shadow); }
.jr-rcard.is-featured { border-color: rgba(11,95,204,.45); }
.jr-rcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e8edf5; overflow: hidden; }
.jr-rcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--jr-ease); }
.jr-rcard:hover .jr-rcard-media img { transform: scale(1.04); }
.jr-tag { position: absolute; padding: .25rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; backdrop-filter: blur(8px); }
.jr-tag--rent, .jr-tag--sale, .jr-tag--flex, .jr-tag--virtual { top: .75rem; left: .75rem; color: #fff; }
.jr-tag--rent { background: rgba(11,95,204,.92); }
.jr-tag--sale { background: rgba(180,35,24,.92); }
.jr-tag--flex { background: rgba(180,92,9,.95); }
.jr-tag--virtual { background: rgba(71,85,105,.95); }
.jr-tag--feat { top: .75rem; right: .75rem; background: var(--jr-accent); color: var(--jr-accent-ink); }
.jr-tag--dist { bottom: .75rem; left: .75rem; background: rgba(255,255,255,.94); color: var(--jr-ink); }
.jr-rcard-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.15rem 1.25rem; min-width: 0; }
.jr-rcard-loc { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--jr-muted); }
.jr-rcard h3 { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.jr-rcard h3 a { color: var(--jr-ink) !important; text-decoration: none !important; }
.jr-rcard h3 a::after { content: ""; position: absolute; inset: 0; }      /* whole card is the link */
.jr-rcard h3 a:focus-visible { outline: 3px solid rgba(11,95,204,.5); outline-offset: -3px; border-radius: var(--jr-radius); }
.jr-rcard:hover h3 a { color: var(--jr-primary) !important; }
.jr-rcard-desc { margin: 0; color: var(--jr-muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* list mode (set by browse_listings.php) */
.jr-results.list-view { grid-template-columns: 1fr; gap: 1rem; }
.jr-results.list-view .jr-rcard { flex-direction: row; }
.jr-results.list-view .jr-rcard-media { flex: 0 0 clamp(150px, 28vw, 260px); aspect-ratio: auto; min-height: 150px; }
.jr-results.list-view .jr-rcard-body { justify-content: center; padding: 1rem 1.5rem; }
@media (max-width: 575.98px) {
    .jr-results.list-view .jr-rcard { flex-direction: column; }
    .jr-results.list-view .jr-rcard-media { flex: none; aspect-ratio: 16 / 10; }
    .jr-results { grid-template-columns: 1fr; }
    .jr-view button { padding: .5rem .7rem; }
}
@media (prefers-reduced-motion: reduce) { .jr-rcard, .jr-rcard-media img { transition: none; } .jr-rcard:hover { transform: none; } .jr-rcard:hover .jr-rcard-media img { transform: none; } }

/* ==========================================================================
   14. Listing detail page (listing.php)
   ========================================================================== */
.jr-listing-crumbs { padding-bottom: 0; }
.jr-listing { padding-top: .25rem; }
.jr-listing-head { margin: 0 0 1.5rem; }
.jr-listing-tags { display: flex; gap: .5rem; margin-bottom: .75rem; }
.jr-tag--inline { position: static; display: inline-block; }
.jr-listing-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; color: var(--jr-ink); margin: 0 0 .5rem; overflow-wrap: anywhere; }
.jr-listing-addr { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--jr-muted); font-weight: 600; }
.jr-listing-addr svg { flex: none; width: 18px; height: 18px; color: var(--jr-primary); }

.jr-listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; align-items: start; }
.jr-listing-main { display: grid; gap: 1.25rem; min-width: 0; }
.jr-panel { background: #fff; border: 1px solid var(--jr-line); border-radius: var(--jr-radius); box-shadow: var(--jr-shadow-sm); padding: 1.5rem; min-width: 0; }
.jr-panel > h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--jr-ink); margin: 0 0 1rem; }
.jr-panel--media { padding: .5rem; overflow: hidden; }
.jr-panel--media .image_content { margin: 0; }
.jr-panel--media .main-img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: calc(var(--jr-radius) - 6px) !important; display: block; }
.jr-panel--media .single-listing-image-outer { display: block; }
.jr-prose { color: var(--jr-body); line-height: 1.75; font-size: 1.02rem; overflow-wrap: anywhere; }

/* amenities + sub-offices rendered by the legacy PHP block */
.jr-listing .jr-amen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.jr-listing .jr-amen .icon { margin: 0; display: inline-flex; align-items: center; gap: .45rem; height: auto; padding: .4rem .8rem; border-radius: 999px; background: var(--jr-primary-50); color: var(--jr-primary-700); font-size: .85rem; font-weight: 700; line-height: 1.2; flex: 0 0 auto; }
.jr-listing .container-fluid { padding: 0 !important; margin: 0 !important; max-width: none; }
.jr-listing .sub-office-card { border: 1px solid var(--jr-line) !important; border-radius: var(--jr-radius-sm); box-shadow: none !important; }
.jr-listing .sub-office-card:hover { box-shadow: var(--jr-shadow-sm) !important; }
.jr-listing .sub-office-card .card-title { font-weight: 800; color: var(--jr-ink) !important; }
.jr-listing .days-display .badge { border-radius: 8px; font-weight: 700; padding: .4em .65em; }
.jr-listing .days-display .bg-success { background: #e6f6ef !important; color: #0f8a5f !important; border: 1px solid #b7e4d0; }
.jr-listing .days-display .bg-light { background: #f1f4f9 !important; color: #8a97aa !important; border: 1px solid #e3e8f0; }
.jr-listing .card.shadow-sm.border { border-radius: var(--jr-radius-sm); }

/* map */
.jr-map-addr { margin: -.5rem 0 1rem; color: var(--jr-muted); font-weight: 600; }
.jr-panel--map #map { display: none; }
.jr-panel--map #map_dir { width: 100%; height: 360px; border-radius: var(--jr-radius-sm); overflow: hidden; background: #e8edf5; }
.jr-panel--map #floating-panel { margin-top: .75rem; text-align: center; }
.jr-panel--map #approximate { color: var(--jr-muted); font-size: .88rem; font-weight: 600; }

/* sticky action card */
.jr-listing-aside { position: sticky; top: 1rem; }
.jr-aside-card { background: #fff; border: 1px solid var(--jr-line); border-radius: var(--jr-radius); box-shadow: var(--jr-shadow); padding: 1.5rem; display: grid; gap: 1rem; }
.jr-aside-price strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--jr-ink); line-height: 1.1; }
.jr-aside-price span { display: block; margin-top: .3rem; color: var(--jr-muted); font-weight: 600; font-size: .92rem; }
.jr-aside-price sup { font-size: .6em; }
.jr-aside-primary { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .95rem 1rem; border: 0; border-radius: 14px; background: var(--jr-primary); color: #fff; font: 800 1rem var(--jr-font); cursor: pointer; box-shadow: 0 14px 26px -14px rgba(11,95,204,.9); transition: transform .15s var(--jr-ease), background .15s; }
.jr-aside-primary:hover { background: var(--jr-primary-600); transform: translateY(-1px); }
.jr-aside-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .6rem; }
.jr-aside-btn { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .4rem; border: 1px solid var(--jr-line); border-radius: 12px; background: #fff; color: var(--jr-ink); font: 700 .8rem var(--jr-font); cursor: pointer; }
.jr-aside-btn i { font-size: 1.1rem; color: var(--jr-primary); }
.jr-aside-btn:hover:not(:disabled) { background: var(--jr-bg); border-color: #c4d0e2; }
.jr-aside-btn:disabled { opacity: .45; cursor: not-allowed; }
.jr-aside-primary:focus-visible, .jr-aside-btn:focus-visible { outline: 3px solid rgba(11,95,204,.45); outline-offset: 2px; }
.jr-aside-note { margin: 0; font-size: .8rem; color: var(--jr-muted); text-align: center; }

@media (max-width: 991.98px) {
    .jr-listing-grid { grid-template-columns: 1fr; }
    .jr-listing-aside { position: static; order: -1; }          /* contact card right under the title on tablets/phones */
}
@media (max-width: 575.98px) { .jr-panel { padding: 1.1rem; } .jr-panel--map #map_dir { height: 280px; } }

/* ==========================================================================
   15. Search filter bar (select_menu.php) - restyle only, markup and ids unchanged
   ========================================================================== */
.select_menu { max-width: 1180px; margin: .5rem auto 0 !important; padding: 0 1.25rem !important; font-family: var(--jr-font); }
.select_menu .color_bar { background: #fff !important; border: 1px solid var(--jr-line); border-radius: var(--jr-radius) var(--jr-radius) 0 0; padding: .6rem !important; box-shadow: var(--jr-shadow-sm); align-items: center; }
.select_menu .input-group { flex-wrap: nowrap; background: var(--jr-bg); border: 1px solid var(--jr-line); border-radius: 12px; overflow: hidden; }
.select_menu .select-text { width: auto !important; min-width: 4.2rem; height: auto !important; padding: .55rem .9rem !important; margin: 0 !important; background: transparent; border: 0; color: var(--jr-muted); font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; }
.select_menu .select-group { height: auto !important; min-height: 2.6rem; margin: 0 !important; padding: .5rem .9rem !important; border: 0 !important; background: transparent !important; font: 600 .95rem var(--jr-font) !important; color: var(--jr-ink); border-radius: 0 !important; text-align: left; box-shadow: none !important; }
.select_menu #select_search { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--jr-primary) !important; color: #fff !important; font-weight: 800 !important; border-radius: 12px !important; cursor: pointer; padding: .5rem 1rem !important; transition: background .15s; }
.select_menu #select_search:hover { background: var(--jr-primary-600) !important; }
.select_menu .select-group:focus-visible { outline: 3px solid rgba(11,95,204,.35); outline-offset: -3px; }
.select_menu .filter-toggle { background: #fff !important; color: var(--jr-primary) !important; border: 1px solid var(--jr-line) !important; border-top: 0 !important; border-radius: 0 0 var(--jr-radius) var(--jr-radius) !important; padding: .6rem 1rem !important; font: 700 .85rem var(--jr-font) !important; box-shadow: var(--jr-shadow-sm); }
.select_menu .filter-toggle:hover { background: var(--jr-primary-50) !important; }
.select_menu .filter-box { background: #fff; border: 1px solid var(--jr-line); border-radius: var(--jr-radius); margin-top: .6rem; box-shadow: var(--jr-shadow-sm); text-align: left; }
.select_menu .filter-row { padding: 1.1rem 1rem .25rem; }
.select_menu .filter-label, .select_menu .property-type-label, .select_menu .days-available-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--jr-muted); margin-bottom: .45rem; }
.select_menu .filter-select, .select_menu .filter-input { height: 2.4rem !important; font: 600 .9rem var(--jr-font); color: var(--jr-ink); border: 1px solid #cfd8e6 !important; border-radius: 10px !important; padding: .3rem .7rem !important; background: #fff; }
.select_menu .filter-select:focus, .select_menu .filter-input:focus { outline: 0; border-color: var(--jr-primary) !important; box-shadow: 0 0 0 4px rgba(11,95,204,.15); }
.select_menu .property-type-section, .select_menu .days-available-section { border: 0 !important; padding-bottom: .5rem !important; }
.select_menu .property-type-btn { min-width: 5.5rem; padding: .5rem 1rem; border: 1px solid #cfd8e6; border-radius: 999px; background: #fff; color: var(--jr-ink); font: 700 .85rem var(--jr-font); }
.select_menu .property-type-btn:hover { background: var(--jr-primary-50); border-color: var(--jr-primary); }
.select_menu .property-type-btn.active { background: var(--jr-primary); border-color: var(--jr-primary); color: #fff; box-shadow: none; }
.select_menu .day-label { display: inline-flex; align-items: center; padding: .35rem .75rem; border: 1px solid var(--jr-line); border-radius: 999px; font: 600 .85rem var(--jr-font); color: var(--jr-body); background: var(--jr-bg); }
.select_menu .day-label:has(input:checked) { background: var(--jr-primary-50); border-color: var(--jr-primary); color: var(--jr-primary-700); }
@media (max-width: 767.98px) { .select_menu { padding: 0 .75rem !important; } .select_menu .color_bar { gap: .35rem 0; } }

/* ==========================================================================
   16. Fixes: logo proportions + state menu placement
   The logo file is 56x40 (wider than tall). It sits in a rounded tile and is
   contained, never stretched, so no other stylesheet can squash it.
   ========================================================================== */
.jr-brand img, .jr-footer-logo img, .mb-brand img {
    box-sizing: border-box !important;
    object-fit: contain !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border: 0 !important;
}
.jr-brand img { width: 64px !important; height: 48px !important; padding: 7px 8px !important; }
.jr-footer-logo img { width: 60px !important; height: 46px !important; padding: 7px 8px !important; }
.mb-brand img { width: 62px !important; height: 48px !important; padding: 7px 8px !important; }
.mb-topbar .mb-brand img { width: 52px !important; height: 40px !important; padding: 6px 7px !important; }
.jr-nav .nav-link:focus-visible, .jr-nav .dropdown-toggle:focus-visible { outline: 3px solid rgba(11, 95, 204, .45) !important; outline-offset: 2px; }

@media (min-width: 992px) {
    /* open the state list under the whole bar, right-aligned, never past the viewport */
    .jr-nav .container-xl { position: relative; }
    .jr-nav .nav-item.dropdown { position: static; }
    .jr-nav .jr-mega {
        position: absolute !important;
        top: 100% !important; right: 0 !important; left: auto !important;
        transform: none !important; inset-inline-start: auto;
        width: min(760px, calc(100vw - 2rem));
        max-width: 100%;
    }
    .jr-mega-grid { max-height: min(60vh, 480px); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .jr-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    /* the opened menu already scrolls as one panel: no second, nested scrollbar */
    .jr-mega-grid { max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jr-nav .dropdown-toggle { background: var(--jr-primary-50); border-radius: 12px; }
    .jr-mega .dropdown-item { padding: .6rem .5rem; }
}
@media (max-width: 380px) {
    .jr-mega-grid { grid-template-columns: 1fr; }
}
