/* ════════════════════════════════════════════════════════════════════════
   Rentero — Design System
   Modern, mobile-first. Inter type, soft layered shadows, smooth motion.
   ════════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Brand palette ──────────────────────────────────────────────── */
    --rnt-primary:        #2563eb;   /* refined royal blue */
    --rnt-primary-rgb:    37, 99, 235;
    --rnt-primary-dark:   #1d4ed8;
    --rnt-primary-light:  #eff4ff;
    --rnt-primary-grad:   linear-gradient(135deg, #2563eb 0%, #1e4fd6 100%);

    --rnt-accent:         #0ea5e9;   /* sky accent for highlights */
    --rnt-success:        #16a34a;
    --rnt-success-light:  #ecfdf3;
    --rnt-danger:         #dc2626;
    --rnt-danger-light:   #fef2f2;
    --rnt-warning:        #d97706;
    --rnt-warning-light:  #fffbeb;

    /* ── Neutrals ───────────────────────────────────────────────────── */
    --rnt-surface:        #ffffff;
    --rnt-bg:             #f6f8fb;
    --rnt-bg-soft:        #f0f3f8;
    --rnt-border:         #e7ebf0;
    --rnt-border-strong:  #d4dbe3;
    --rnt-text:           #0f172a;
    --rnt-text-soft:      #475569;
    --rnt-text-muted:     #6b7686;

    /* ── Radii ──────────────────────────────────────────────────────── */
    --rnt-radius-sm:      0.55rem;
    --rnt-radius:         0.9rem;
    --rnt-radius-lg:      1.35rem;
    --rnt-radius-pill:    999px;

    /* ── Elevation (soft, layered) ──────────────────────────────────── */
    --rnt-shadow-xs:  0 1px 2px rgba(15,23,42,.05);
    --rnt-shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --rnt-shadow:     0 4px 16px rgba(15,23,42,.07), 0 2px 6px rgba(15,23,42,.04);
    --rnt-shadow-md:  0 10px 30px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
    --rnt-shadow-lg:  0 20px 48px rgba(15,23,42,.14), 0 8px 20px rgba(15,23,42,.08);
    --rnt-shadow-primary: 0 8px 22px rgba(var(--rnt-primary-rgb),.28);

    --rnt-bottom-nav-h: 68px;
    --rnt-ease:       cubic-bezier(.4, 0, .2, 1);
    --rnt-transition: .2s var(--rnt-ease);
}

/* ── Typography ─────────────────────────────────────────────────────── */
html { font-size: 14.5px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--rnt-bg);
    color: var(--rnt-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -0.02em; }
.lead { font-weight: 400; color: var(--rnt-text-soft); }
.text-muted { color: var(--rnt-text-muted) !important; }
a { color: var(--rnt-primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--rnt-primary-dark); }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
    box-shadow: var(--rnt-shadow-sm);
    backdrop-filter: saturate(140%) blur(6px);
}
.navbar.bg-dark { background-color: #0f172a !important; }
.navbar-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; }
.navbar-dark .nav-link { font-weight: 500; transition: opacity var(--rnt-transition); border-radius: var(--rnt-radius-sm); }
.navbar-dark .nav-link:hover { opacity: .8; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
    border-radius: var(--rnt-radius);
    border: 1px solid var(--rnt-border);
    box-shadow: var(--rnt-shadow-sm);
    background: var(--rnt-surface);
    transition: box-shadow var(--rnt-transition), transform var(--rnt-transition);
}
.card-header {
    border-radius: var(--rnt-radius) var(--rnt-radius) 0 0 !important;
    background: var(--rnt-surface);
    border-bottom: 1px solid var(--rnt-border);
    font-weight: 600;
}
.card-footer {
    border-radius: 0 0 var(--rnt-radius) var(--rnt-radius) !important;
    border-top: 1px solid var(--rnt-border);
    background: transparent;
}
.shadow-sm { box-shadow: var(--rnt-shadow-sm) !important; }
.shadow { box-shadow: var(--rnt-shadow) !important; }

/* Interactive cards lift on hover (listings, property cards) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .card-hover:hover,
    .listing-card-home-inner:hover {
        transform: translateY(-3px);
        box-shadow: var(--rnt-shadow-md);
        border-color: var(--rnt-border-strong);
    }
}

/* Empty-state dashed border */
.border-dashed { border-style: dashed !important; border-color: var(--rnt-border-strong) !important; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
    font-weight: 600;
    border-radius: var(--rnt-radius-sm);
    padding: 0.5rem 1.1rem;
    transition: all var(--rnt-transition);
    letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--rnt-primary-grad);
    border: none;
    box-shadow: 0 2px 8px rgba(var(--rnt-primary-rgb),.22);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #1e54e0 0%, #1a45c4 100%);
    box-shadow: var(--rnt-shadow-primary);
}
.btn-outline-primary { border-color: var(--rnt-primary); color: var(--rnt-primary); }
.btn-outline-primary:hover { background: var(--rnt-primary); border-color: var(--rnt-primary); }
.btn-outline-secondary {
    border-color: var(--rnt-border-strong);
    color: var(--rnt-text-soft);
}
.btn-outline-secondary:hover {
    background: var(--rnt-bg-soft);
    border-color: var(--rnt-border-strong);
    color: var(--rnt-text);
}
.btn-success { background: var(--rnt-success); border-color: var(--rnt-success); }
.btn-lg { padding: 0.75rem 1.6rem; font-size: 1.0625rem; border-radius: var(--rnt-radius); }
.btn-sm { padding: 0.35rem 0.75rem; }
/* Full-width CTA (auth, primary actions) */
.btn-cta { padding: 0.8rem 1.5rem; font-size: 1rem; font-weight: 700; border-radius: var(--rnt-radius); }

/* ── Form controls ──────────────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: var(--rnt-radius-sm);
    border: 1px solid var(--rnt-border-strong);
    padding: 0.625rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color var(--rnt-transition), box-shadow var(--rnt-transition);
    color: var(--rnt-text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--rnt-primary);
    box-shadow: 0 0 0 3.5px rgba(var(--rnt-primary-rgb),.13);
}
.form-control::placeholder { color: #9aa5b4; }
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--rnt-text); margin-bottom: 0.35rem; }
.form-text { color: var(--rnt-text-muted); }
.text-danger.small { display: block; margin-top: 0.25rem; }
.input-group-text { border-radius: var(--rnt-radius-sm); border-color: var(--rnt-border-strong); background: var(--rnt-bg-soft); }

/* btn-check pill toggles (account type, role) */
.btn-check + .btn { border-color: var(--rnt-border-strong); color: var(--rnt-text-soft); font-weight: 600; }
.btn-check:checked + .btn {
    background: var(--rnt-primary-light);
    border-color: var(--rnt-primary);
    color: var(--rnt-primary-dark);
}

/* ── Badges ─────────────────────────────────────────────────────────── */
.badge { font-weight: 600; letter-spacing: 0.01em; padding: 0.4em 0.7em; border-radius: var(--rnt-radius-pill); }
.bg-light.text-dark { background: var(--rnt-bg-soft) !important; }

/* ── Alerts ─────────────────────────────────────────────────────────── */
.alert { border-radius: var(--rnt-radius); border: 1px solid transparent; font-size: 0.92rem; }
.alert-success { background: var(--rnt-success-light); color: #14532d; border-color: #bbf7d0; }
.alert-danger  { background: var(--rnt-danger-light);  color: #7f1d1d; border-color: #fecaca; }
.alert-warning { background: var(--rnt-warning-light); color: #78350f; border-color: #fde68a; }
.alert-info    { background: var(--rnt-primary-light); color: #1e3a8a; border-color: #c7dbfe; }

/* ── List groups ────────────────────────────────────────────────────── */
.list-group-item { border-color: var(--rnt-border); }

/* ── Page header (back-arrow + title) ───────────────────────────────── */
.page-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.5rem; }
.page-header__back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--rnt-surface); border: 1px solid var(--rnt-border);
    color: var(--rnt-text); text-decoration: none; flex-shrink: 0;
    box-shadow: var(--rnt-shadow-xs);
    transition: all var(--rnt-transition);
}
.page-header__back:hover { background: var(--rnt-primary-light); color: var(--rnt-primary); border-color: var(--rnt-primary); transform: translateX(-2px); }
.page-header__title { font-size: 1.2rem; font-weight: 700; margin: 0; }

/* ── Section titles ─────────────────────────────────────────────────── */
.section-title {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--rnt-text-muted); margin-bottom: 0.85rem;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero-gradient {
    background: radial-gradient(120% 120% at 0% 0%, rgba(var(--rnt-primary-rgb),.10) 0%, rgba(14,165,233,.06) 45%, transparent 80%);
    border-radius: var(--rnt-radius-lg);
}
.feature-tile {
    border: 1px solid var(--rnt-border);
    border-radius: var(--rnt-radius);
    background: var(--rnt-surface);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--rnt-transition);
}
@media (hover: hover) {
    .feature-tile:hover { transform: translateY(-3px); box-shadow: var(--rnt-shadow-md); border-color: var(--rnt-border-strong); }
}
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--rnt-primary-light); color: var(--rnt-primary);
    font-size: 1.5rem; margin-bottom: 1rem;
}

/* ── Toast container (site.js) ──────────────────────────────────────── */
#toast-container { position: fixed; bottom: 1rem; right: 1rem; z-index: 9999; }
@media (max-width: 767.98px) {
    #toast-container { bottom: calc(var(--rnt-bottom-nav-h) + .75rem); right: .75rem; left: .75rem; }
}

/* ── Mobile bottom nav ──────────────────────────────────────────────── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--rnt-bottom-nav-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--rnt-border);
    display: flex; align-items: stretch; z-index: 1030;
    box-shadow: 0 -4px 20px rgba(15,23,42,.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav__item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--rnt-text-muted);
    font-size: 0.66rem; font-weight: 600; padding: 6px 4px;
    transition: color var(--rnt-transition); min-width: 0;
}
.bottom-nav__item i { font-size: 1.4rem; line-height: 1; }
.bottom-nav__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bottom-nav__item:hover, .bottom-nav__item.active { color: var(--rnt-primary); }

.pb-bottom-nav { padding-bottom: 1.5rem; }
@media (max-width: 767.98px) {
    .pb-bottom-nav { padding-bottom: calc(var(--rnt-bottom-nav-h) + 1rem); }
}

/* ── Auth pages ─────────────────────────────────────────────────────── */
.auth-logo {
    font-size: 1.9rem; font-weight: 800; color: var(--rnt-primary);
    letter-spacing: -0.04em; display: block; text-align: center;
    margin-bottom: 0.25rem; text-decoration: none;
}
.auth-logo:hover { color: var(--rnt-primary-dark); }
.auth-card { border-radius: var(--rnt-radius-lg); box-shadow: var(--rnt-shadow-md); border: 1px solid var(--rnt-border); }

/* ── App shell: left sidebar navigation ─────────────────────────────── */
.app-brand { font-weight: 800; font-size: 1.4rem; color: #fff; text-decoration: none; letter-spacing: -0.04em; }
.app-topbar .app-brand { color: var(--rnt-primary); font-size: 1.25rem; }

/* Brand logo mark (favicon tile) next to the wordmark — sizes with the brand font */
.app-brand, .navbar-brand { display: inline-flex; align-items: center; gap: .4rem; }
.brand-logo { width: 1.35em; height: 1.35em; flex: 0 0 auto; }

/* !important: Bootstrap's expanded offcanvas (≥lg) forces background-color: transparent !important */
.app-sidebar { --bs-offcanvas-width: 272px; --bs-offcanvas-bg: #0f172a; background: #0f172a !important; color: #cbd5e1; }
.app-sidebar .offcanvas-header { color: #fff; }
.app-sidebar__body { display: flex; flex-direction: column; min-height: 100%; }

.app-sidebar__profile { background: rgba(255,255,255,.06); border-radius: var(--rnt-radius); padding: .65rem; margin-bottom: 1rem; }
.app-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--rnt-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav--secondary { border-top: 1px solid rgba(255,255,255,.08); padding-top: .5rem; }
.app-nav__link {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .75rem; border-radius: var(--rnt-radius-sm);
    color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: .92rem;
    transition: background var(--rnt-transition), color var(--rnt-transition);
}
.app-nav__link i { font-size: 1.15rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.app-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-nav__link.active { background: var(--rnt-primary); color: #fff; }

.app-topbar {
    display: flex; align-items: center; gap: .25rem;
    padding: .35rem .5rem; background: var(--rnt-surface);
    border-bottom: 1px solid var(--rnt-border);
    position: sticky; top: 0; z-index: 1020;
}

@media (min-width: 992px) {
    .app-shell { display: flex; align-items: flex-start; }
    .app-sidebar {
        position: sticky !important; top: 0; height: 100vh; width: 272px !important;
        flex: 0 0 272px; overflow-y: auto;
        transform: none !important; visibility: visible !important;
    }
    .app-content { flex: 1 1 auto; min-width: 0; }
}

/* ── Admin sub-menu (collapsible) ───────────────────────────────────── */
.app-nav__sublink { padding-left: 2.1rem; font-size: .86rem; }
.app-nav__sublink i { font-size: 1rem; }

/* ── Sticky footer — keep the footer pinned to the bottom on short pages ─ */
.app-content { display: flex; flex-direction: column; min-height: 100vh; }
.app-content > main { flex: 1 0 auto; }
.app-content > footer { flex-shrink: 0; }
@media (max-width: 767.98px) {
    /* clear the fixed mobile bottom-nav — !important needed to beat Bootstrap's .py-3 utility */
    .app-content > footer { padding-bottom: calc(var(--rnt-bottom-nav-h) + .5rem) !important; }
}

/* Public (anonymous) shell uses the same flex-column sticky-footer pattern */
.public-body { display: flex; flex-direction: column; min-height: 100vh; }
.public-body > main { flex: 1 0 auto; }
.public-body > footer { flex-shrink: 0; }

/* ── Footer (marketing + in-app) ──────────────────────────────────────── */
.rnt-footer__top {
    display: flex; flex-wrap: wrap; gap: 2rem 2.5rem;
    padding-bottom: 1.5rem;
}
.rnt-footer__brand { flex: 1 1 220px; min-width: 200px; }
.rnt-footer__brand-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 800; font-size: 1.15rem; letter-spacing: -.04em;
    color: var(--rnt-text); text-decoration: none;
}
.rnt-footer__tagline { max-width: 24rem; margin: .6rem 0 0; }
.rnt-footer__social { display: flex; gap: .5rem; margin-top: .85rem; }
.rnt-footer__social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.15rem; height: 2.15rem; border-radius: 50%;
    background: var(--rnt-bg-soft); color: var(--rnt-text-soft);
    font-size: 1.05rem; text-decoration: none;
    transition: background var(--rnt-transition), color var(--rnt-transition);
}
.rnt-footer__social-link:hover { background: var(--rnt-primary); color: #fff; }
.rnt-footer__col { flex: 1 1 140px; min-width: 130px; display: flex; flex-direction: column; gap: .5rem; }
.rnt-footer__col-title {
    font-weight: 700; font-size: .75rem; text-transform: uppercase;
    letter-spacing: .05em; color: var(--rnt-text-muted); margin-bottom: .1rem;
}
.rnt-footer__col a { color: var(--rnt-text-soft); font-size: .86rem; text-decoration: none; }
.rnt-footer__col a:hover { color: var(--rnt-primary); }
.rnt-footer__bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
    padding-top: 1.25rem; border-top: 1px solid var(--rnt-border);
}

/* ── Searchable dropdown ("combobox") — City / Neighbourhood pickers ──── */
.ss { position: relative; }
.ss-menu {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 1050;
    max-height: 240px; overflow-y: auto;
    background: var(--rnt-surface); border: 1px solid var(--rnt-border);
    border-radius: var(--rnt-radius); box-shadow: var(--rnt-shadow-md);
    padding: .25rem;
}
.ss-menu__item {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: .4rem .6rem; border-radius: calc(var(--rnt-radius) - 4px);
    font-size: .9rem; color: var(--rnt-text);
}
.ss-menu__item:hover, .ss-menu__item.active { background: var(--rnt-primary-light); color: var(--rnt-primary); }
.ss-menu__empty { padding: .5rem .6rem; font-size: .85rem; color: var(--rnt-text-muted); }

/* ── Page help "?" icon — top-right corner on every page ──────────────── */
.page-help-btn {
    position: fixed; top: 12px; right: 12px; z-index: 1040;
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rnt-border);
    background: var(--rnt-surface); color: var(--rnt-text-muted);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--rnt-shadow-sm); font-size: 1rem; cursor: pointer;
}
.page-help-btn:hover { color: var(--rnt-primary); border-color: var(--rnt-primary); }
.page-help-pop {
    position: fixed; top: 52px; right: 12px; z-index: 1040;
    width: min(280px, calc(100vw - 24px)); padding: .9rem 1rem;
    background: var(--rnt-surface); border: 1px solid var(--rnt-border);
    border-radius: var(--rnt-radius); box-shadow: var(--rnt-shadow-md);
}
.page-help-pop__title { font-weight: 600; margin-bottom: .35rem; }
.page-help-pop__text { font-size: .85rem; color: var(--rnt-text-muted); }
@media (max-width: 991.98px) {
    /* clear the mobile .app-topbar (logo + chat icon) which also sits top-right */
    .page-help-btn { top: 60px; }
    .page-help-pop { top: 100px; }
}
@media print {
    .page-help-btn, .page-help-pop { display: none !important; }
}

/* ── Contract "Dodatne klauzule" rich-text rendering ──────────────────── */
.contract-terms-html p:last-child,
.contract-terms-html ul:last-child,
.contract-terms-html ol:last-child { margin-bottom: 0; }
.contract-terms-html ul, .contract-terms-html ol { padding-left: 1.25rem; }

/* ── Blog post content (Quill-authored HTML) ──────────────────────────── */
.blog-content { font-size: 1.05rem; line-height: 1.7; }
.blog-content h1, .blog-content h2, .blog-content h3 { font-weight: 700; margin-top: 1.75rem; margin-bottom: .75rem; }
.blog-content p { margin-bottom: 1rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--rnt-radius); }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-content blockquote { border-left: 3px solid var(--rnt-primary); padding-left: 1rem; color: var(--rnt-text-muted); margin: 1.25rem 0; }
.blog-content a { color: var(--rnt-primary); }

/* ── Guided tour / walkthrough ──────────────────────────────────────── */
.tour-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    z-index: 2000; opacity: 0; transition: opacity .2s ease; pointer-events: auto;
}
.tour-backdrop.show { opacity: 1; }
.tour-highlight {
    position: relative; z-index: 2001;
    outline: 3px solid var(--rnt-primary);
    outline-offset: 3px; border-radius: var(--rnt-radius-sm);
    box-shadow: 0 0 0 6px rgba(var(--rnt-primary-rgb),.25);
    transition: outline-offset .15s ease;
}
.tour-pop {
    position: fixed; z-index: 2002; width: min(330px, calc(100vw - 24px));
    background: var(--rnt-surface); border-radius: var(--rnt-radius);
    box-shadow: var(--rnt-shadow-lg); padding: 1.1rem 1.2rem;
}
.tour-pop__step { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rnt-primary); }
.tour-pop__title { font-size: 1.05rem; font-weight: 700; margin: .15rem 0 .4rem; }
.tour-pop__text { font-size: .9rem; color: var(--rnt-text-soft); margin-bottom: .9rem; line-height: 1.5; }
.tour-pop__bar { display: flex; flex-direction: column; gap: .55rem; }
.tour-pop__dots-row { display: flex; align-items: center; justify-content: space-between; }
.tour-pop__dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 210px; }
.tour-pop__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rnt-border-strong); flex-shrink: 0; }
.tour-pop__dot.active { background: var(--rnt-primary); }
.tour-pop__nav { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }

/* ── Per-property hub sub-nav tiles ─────────────────────────────────── */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.hub-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 0.75rem;
    border: 1px solid var(--rnt-border);
    border-radius: var(--rnt-radius);
    background: var(--rnt-surface);
    color: var(--rnt-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--rnt-shadow-xs);
    transition: all var(--rnt-transition);
}
.hub-tile i { font-size: 1.6rem; color: var(--rnt-primary); }
@media (hover: hover) {
    .hub-tile:hover { transform: translateY(-3px); box-shadow: var(--rnt-shadow-md); border-color: var(--rnt-primary); color: var(--rnt-primary); }
}
.hub-tile--disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.6);
}
.hub-tile__badge { position: absolute; top: 8px; right: 8px; font-size: 0.65rem; }

/* ── Chat bubbles ───────────────────────────────────────────────────── */
.chat-bubble { border-radius: 1.1rem; padding: 0.55rem 0.85rem; max-width: 78%; box-shadow: var(--rnt-shadow-xs); }
.chat-bubble-me   { background: var(--rnt-primary-grad); color: #fff; border-bottom-right-radius: 0.3rem; }
.chat-bubble-them { background: var(--rnt-surface); border: 1px solid var(--rnt-border); border-bottom-left-radius: 0.3rem; }

/* ── Utilities ──────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.fs-7 { font-size: 0.82rem !important; }
.object-fit-cover { object-fit: cover; }
.rounded-4 { border-radius: var(--rnt-radius-lg) !important; }

/* ── Map price pins (Leaflet) ───────────────────────────────────────── */
.map-price-pin { background: #0d6efd; color: #fff; border-radius: 4px;
    padding: 2px 6px; font-size: 0.75rem; font-weight: 600;
    border: 2px solid #fff; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.map-price-pin:after { content: ''; position: absolute; bottom: -7px; left: 50%;
    transform: translateX(-50%); border: 4px solid transparent;
    border-top-color: #fff; }
/* Boosted ("Istaknuto") listings — gold pin so they stand out on the map. */
.map-price-pin--featured { background: #f0ad00; color: #1a1400; }

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
    .bottom-nav, .navbar, #cookie-banner, footer { display: none !important; }
    .pb-bottom-nav { padding-bottom: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* ── Listing gallery (hero + arrows + counter + thumbnail strip) ─────── */
.listing-gallery__hero {
    position: relative;
    height: 460px;
    border-radius: var(--rnt-radius);
    overflow: hidden;
    background: var(--rnt-bg-soft);
    box-shadow: var(--rnt-shadow-sm);
}
.listing-gallery__hero img {
    width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
}
.listing-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: rgba(15,23,42,.55); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    transition: background-color .15s ease;
}
.listing-gallery__nav:hover { background: rgba(15,23,42,.8); }
.listing-gallery__nav--prev { left: .75rem; }
.listing-gallery__nav--next { right: .75rem; }
.listing-gallery__counter {
    position: absolute; bottom: .75rem; left: .75rem;
    background: rgba(15,23,42,.7); color: #fff;
    padding: .3rem .65rem; border-radius: var(--rnt-radius-pill);
    font-size: .8rem; font-weight: 600;
}
.listing-gallery__zoom {
    position: absolute; bottom: .75rem; right: .75rem;
    background: rgba(15,23,42,.7); color: #fff; border: none;
    padding: .35rem .75rem; border-radius: var(--rnt-radius-pill);
    font-size: .8rem; font-weight: 600;
}
.listing-gallery__zoom:hover { background: rgba(15,23,42,.9); }
.listing-gallery__thumbs {
    display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .1rem;
    scrollbar-width: thin;
}
.listing-gallery__thumb {
    flex: 0 0 auto; width: 84px; height: 60px; object-fit: cover;
    border-radius: var(--rnt-radius-sm); cursor: pointer;
    border: 2px solid transparent; opacity: .65;
    transition: opacity .15s ease, border-color .15s ease;
}
.listing-gallery__thumb:hover { opacity: .9; }
.listing-gallery__thumb.active { opacity: 1; border-color: var(--rnt-primary); }

.listing-gallery__lightbox {
    position: fixed; inset: 0; z-index: 1080;
    background: rgba(15,23,42,.94);
    display: flex; align-items: center; justify-content: center;
}
.listing-gallery__lightbox img {
    max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--rnt-radius-sm);
}
.listing-gallery__lightbox-close {
    position: absolute; top: 1rem; right: 1.25rem;
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.listing-gallery__lightbox-close:hover { background: rgba(255,255,255,.22); }
.listing-gallery__lightbox .listing-gallery__nav { width: 3rem; height: 3rem; }

@media (max-width: 767.98px) {
    .listing-gallery__hero { height: 280px; }
}

/* ── Language switcher (custom dropdown — footer + Security page) ───── */
.lang-switcher-dd__toggle {
    border: 1px solid var(--rnt-border-strong);
    border-radius: var(--rnt-radius-pill);
    padding: .3rem .85rem;
    background: var(--rnt-surface);
    color: var(--rnt-text-soft);
    font-size: .8rem;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.lang-switcher-dd__toggle:hover,
.lang-switcher-dd__toggle:focus,
.lang-switcher-dd__toggle:active,
.lang-switcher-dd__toggle.show {
    border-color: var(--rnt-primary) !important;
    color: var(--rnt-primary) !important;
    background: var(--rnt-surface) !important;
    box-shadow: 0 0 0 3px rgba(var(--rnt-primary-rgb), .12) !important;
}
.lang-switcher-dd__toggle-lg {
    font-weight: 500;
    border-radius: var(--rnt-radius-sm);
}
.lang-switcher-dd__menu {
    min-width: 11rem;
    padding: .4rem;
    border: 1px solid var(--rnt-border);
    border-radius: var(--rnt-radius);
    box-shadow: var(--rnt-shadow-md);
}
.lang-switcher-dd__menu .dropdown-item {
    border-radius: var(--rnt-radius-sm);
    padding: .5rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--rnt-text);
}
.lang-switcher-dd__menu .dropdown-item:hover,
.lang-switcher-dd__menu .dropdown-item:focus {
    background: var(--rnt-bg-soft);
}
.lang-switcher-dd__menu .dropdown-item.active {
    background: var(--rnt-primary-light);
    color: var(--rnt-primary-dark);
    font-weight: 600;
}
.lang-switcher-dd__menu .dropdown-item.active i { color: var(--rnt-primary); }
