/* ==========================================================
   THE HOMEBRIDGE — FINAL POLISH v1
   Session 30 — Launch-ready premium finish
   Fixes: modal UX, mobile gaps, form spacing, accessibility,
   reduced motion, button hover states, trust signals
   ========================================================== */

/* ============================
   1. REDUCED MOTION SUPPORT
   ============================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .thbx-aurora, .thbx-particles, .thbx-float-icons,
    .thbx-ticker-track, .thbx-bridge-path circle { display: none !important; }
}

/* ============================
   2. SIGNUP MODAL IMPROVEMENTS
   ============================ */
/* Better signup modal on all screens */
#signUp .modal-dialog {
    max-width: 720px;
}
#signUp .modal-body {
    padding: 24px 28px 20px !important;
}
#signUp .modal-body h4 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}
/* Role selection tabs — more prominent */
#signUp .role-selection {
    gap: 8px;
    margin-bottom: 8px;
}
#signUp .role-selection .label-check {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .88rem;
    border: 2px solid var(--thb-line, #e5e5e5);
    background: #f8f9fa;
    transition: all .25s ease;
    cursor: pointer;
}
#signUp .role-selection .custom-check:checked + .label-check {
    background: var(--thb-purple, #6C5CE7);
    color: #fff;
    border-color: var(--thb-purple, #6C5CE7);
    box-shadow: 0 4px 14px rgba(108,92,231,.3);
}
/* Form groups — tighter spacing */
#signUp .form-group {
    margin-bottom: 14px;
}
#signUp .form-group label,
#signUp .form-group p.mb-1 {
    font-size: .82rem;
    font-weight: 600;
    color: var(--thb-ink, #1a1a2e);
}
/* Terms checkbox area */
#signUp #termsCheckbox {
    width: 18px;
    height: 18px;
    accent-color: var(--thb-purple, #6C5CE7);
    vertical-align: middle;
    margin-right: 6px;
}
/* Register button — bolder */
#signUp #SignUpbtn,
#signUp #SignUp {
    height: 50px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--thb-purple, #6C5CE7), #5a4bd4) !important;
    border: none;
    box-shadow: 0 6px 20px rgba(108,92,231,.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
#signUp #SignUpbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108,92,231,.45);
}
/* Required asterisk consistent */
.required-asterisk {
    color: #dc3545;
    font-weight: 700;
    margin-left: 2px;
}

/* ============================
   3. LOGIN MODAL IMPROVEMENTS
   ============================ */
#login .modal-body {
    padding: 24px 28px 20px !important;
}
#login .form-control {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    transition: border-color .2s, box-shadow .2s;
}
#login .form-control:focus {
    border-color: var(--thb-purple, #6C5CE7);
    box-shadow: 0 0 0 3px rgba(108,92,231,.12);
}

/* ============================
   4. ALL FORM INPUTS — PREMIUM
   ============================ */
.form-control {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: .92rem;
    padding: 10px 14px;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    background: #fafbfc !important;
}
.form-control:focus {
    border-color: var(--thb-purple, #6C5CE7) !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,.1) !important;
    background: #fff !important;
}
/* Select inputs */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C5CE7' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px;
}

/* ============================
   5. BUTTONS — GLOBAL POLISH
   ============================ */
.btn.theme-bg {
    background: linear-gradient(135deg, var(--thb-purple, #6C5CE7), #5a4bd4) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease !important;
    box-shadow: 0 4px 14px rgba(108,92,231,.25);
}
.btn.theme-bg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,92,231,.4) !important;
}
.btn.theme-bg:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108,92,231,.2) !important;
}
/* Focus visible for accessibility */
.btn:focus-visible {
    outline: 2px solid var(--thb-purple, #6C5CE7);
    outline-offset: 2px;
}

/* ============================
   6. MOBILE-FIRST FIXES
   ============================ */
@media (max-width: 767px) {
    /* Remove excess whitespace on mobile */
    body { overflow-x: hidden; }

    /* Hero section mobile */
    .thbx-hero { min-height: auto; padding-bottom: 40px; }
    .thbx-hero-copy h1 { font-size: 1.8rem !important; line-height: 1.2; }
    .thbx-hero-copy .thbx-sub { font-size: .92rem; }
    .thbx-hero-copy .thbx-eyebrow { font-size: .72rem; }

    /* Search form stacks on mobile */
    .thbx-search { flex-direction: column; padding: 16px !important; gap: 0; }
    .thbx-search-field { padding: 12px 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
    .thbx-search-div { display: none; }
    .thbx-search-btn { margin-top: 12px; width: 100%; border-radius: 14px !important; }

    /* Role cards stack properly */
    .thbx-hrole-deck { flex-direction: column; gap: 10px; }
    .thbx-hrole { padding: 14px 16px; }

    /* Trust bar wraps nicely */
    .thbx-trust { flex-wrap: wrap; gap: 12px; }
    .thbx-trust-item { flex: 1 1 calc(50% - 8px); min-width: 140px; padding: 12px; }

    /* Steps stack on mobile */
    .thbx-steps { flex-direction: column; gap: 16px; }
    .thbx-step-line { display: none; }
    .thbx-step { padding: 20px; }

    /* Cards grid */
    .thbx-why-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .thbx-promise-grid { grid-template-columns: 1fr !important; gap: 16px; }

    /* City grid */
    .thbx-city-grid { grid-template-columns: 1fr !important; }
    .thbx-city-card--lg { grid-column: span 1 !important; }

    /* Numbers strip */
    .thbx-numbers-grid { flex-direction: column; gap: 20px; }
    .thbx-num-div { display: none; }

    /* Owner section */
    .thbx-own-grid { grid-template-columns: 1fr !important; }

    /* Testimonials */
    .thbx-tgrid { grid-template-columns: 1fr !important; }

    /* CTA section */
    .thbx-cta-btns { flex-direction: column; gap: 10px; }
    .thbx-cta-btns .thbx-btn { width: 100%; text-align: center; }

    /* Sections tighter spacing */
    .thbx-sec { padding: 48px 0 !important; }
    .thbx-sec-head h2 { font-size: 1.5rem !important; }
    .thbx-sec-head p { font-size: .9rem; }

    /* Signup modal on mobile */
    #signUp .modal-dialog { margin: 8px; max-width: 100%; }
    #signUp .modal-body { padding: 16px !important; }
    #signUp .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }

    /* Login modal on mobile */
    #login .modal-dialog { margin: 8px; }
    #login .modal-body { padding: 20px 16px !important; }

    /* Footer stacking */
    .light-footer .row > [class*="col-"] { margin-bottom: 24px; }

    /* Newsletter section */
    .subscribe_section { padding: 40px 0 !important; }
    .subscribe_section h2 { font-size: 1.3rem !important; }

    /* Property cards on mobile */
    .property_block_wrap { margin-bottom: 16px; }

    /* No horizontal overflow */
    .container { overflow-x: hidden; }
    .thbx-welcome-ticker { overflow: hidden; }

    /* About/Contact hero banners shorter on mobile */
    .about-bg.bg-cover,
    .contactUs-section { min-height: 180px !important; }
    .about-bg h1,
    .contactUs-section h1 { font-size: 1.6rem !important; }
}

@media (max-width: 575px) {
    /* Extra small screens */
    .thbx-hero-copy h1 { font-size: 1.5rem !important; }
    .thbx-trust-item { flex: 1 1 100%; }
    .thbx-finder-opts { flex-direction: column; }
    .thbx-finder-opt { width: 100%; }

    /* Signup form 1 column on tiny screens */
    #signUp .col-xl-4,
    #signUp .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet tweaks */
    .thbx-hero-copy h1 { font-size: 2.2rem !important; }
    .thbx-city-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .thbx-city-card--lg { grid-column: span 2 !important; }
    .thbx-why-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .thbx-promise-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================
   7. EMPTY STATES
   ============================ */
.thb-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--thb-muted, #64748b);
}
.thb-empty-state i {
    font-size: 3rem;
    color: var(--thb-purple-l, #EDEBFF);
    margin-bottom: 16px;
    display: block;
}
.thb-empty-state h3 {
    font-family: var(--thb-font-h);
    font-weight: 700;
    color: var(--thb-ink, #1a1a2e);
    margin-bottom: 8px;
}
.thb-empty-state p {
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* ============================
   8. COOKIE BANNER POLISH
   ============================ */
.cc-window {
    font-family: var(--thb-font, 'Inter', sans-serif) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(11,22,51,.15) !important;
    padding: 16px 20px !important;
    max-width: 420px;
}
.cc-window .cc-btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    text-transform: none !important;
}
.cc-window .cc-compliance {
    gap: 8px;
}

/* ============================
   9. TYPOGRAPHY HIERARCHY FIX
   ============================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--thb-font-h, 'Figtree', sans-serif);
}
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.02em; }
p { line-height: 1.65; }

/* ============================
   10. LOADING / TRANSITION
   ============================ */
.thbloader {
    background: var(--thb-white, #fff) !important;
}
.thbloader-icon img {
    animation: thb-pulse 1.5s ease-in-out infinite;
}
@keyframes thb-pulse {
    0%, 100% { opacity: .6; transform: scale(.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ============================
   11. SCROLL-TO-TOP BUTTON
   ============================ */
.top-scroll {
    background: linear-gradient(135deg, var(--thb-purple, #6C5CE7), #5a4bd4) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(108,92,231,.3) !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.top-scroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108,92,231,.5) !important;
}

/* ============================
   12. PASSWORD VISIBILITY TOGGLE
   ============================ */
.passInp {
    position: relative;
}
.passInp .fa-eye,
.passInp .fa-eye-slash {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(25%);
    cursor: pointer;
    color: var(--thb-muted, #64748b);
    font-size: .9rem;
    transition: color .2s;
    z-index: 5;
}
.passInp .fa-eye:hover,
.passInp .fa-eye-slash:hover {
    color: var(--thb-purple, #6C5CE7);
}

/* ============================
   13. FOOTER POLISH
   ============================ */
.light-footer {
    border-top: 1px solid var(--thb-line, rgba(0,0,0,.06));
}
.footer_widget h6 {
    font-family: var(--thb-font-h) !important;
    font-weight: 700 !important;
    color: var(--thb-navy, #0B1633) !important;
    margin-bottom: 16px;
}
.footer_widget .address {
    color: var(--thb-muted, #64748b);
    font-size: .9rem;
    line-height: 1.7;
}
/* Newsletter section */
.subscribe_section {
    background: linear-gradient(135deg, #0B1633 0%, #1a1145 50%, #2d1b69 100%) !important;
}
.subscribe_section h6 {
    color: rgba(255,255,255,.7) !important;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .75rem;
}
.subscribe_section h2 {
    font-family: var(--thb-font-h) !important;
    font-weight: 800 !important;
}

/* ============================
   14. ADMIN LOGIN PAGE POLISH
   ============================ */
.admin-login-page .card,
body[data-page="admin-login"] .card {
    border-radius: var(--thb-r-lg, 24px);
    box-shadow: var(--thb-sh-lg, 0 20px 60px rgba(11,22,51,.08));
    border: 1px solid var(--thb-line, rgba(0,0,0,.06));
}

/* ============================
   15. PROPERTIES PAGE CARDS
   ============================ */
.property_block_wrap {
    border-radius: var(--thb-r, 16px) !important;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid var(--thb-line, rgba(0,0,0,.06));
}
.property_block_wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(11,22,51,.1) !important;
}
/* Property image */
.property_block_wrap .property_img img {
    transition: transform .4s ease;
}
.property_block_wrap:hover .property_img img {
    transform: scale(1.04);
}
/* Price tag */
.property_block_wrap .prt_price_fontsize {
    font-family: var(--thb-font-h) !important;
    font-weight: 800 !important;
    color: var(--thb-purple, #6C5CE7);
}

/* ============================
   16. ACCESSIBILITY: CONTRAST
   ============================ */
/* Ensure muted text meets 4.5:1 contrast */
.text-muted {
    color: #5a6577 !important; /* meets WCAG AA on white */
}
/* Links within content */
a.theme-cl {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}
a.theme-cl:hover {
    text-decoration: underline;
}
/* Skip to content for screen readers */
.sr-only-focusable:focus {
    position: fixed;
    top: 8px; left: 8px;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--thb-purple, #6C5CE7);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
}

/* ============================
   17. HOVER/FOCUS STATES
   ============================ */
/* All clickable cards */
.thbx-wc, .thbx-promise-card, .thbx-tcard, .thbx-city-card {
    transition: transform .3s ease, box-shadow .3s ease;
}
.thbx-wc:hover, .thbx-promise-card:hover, .thbx-tcard:hover {
    transform: translateY(-4px);
}

/* Finder quiz buttons */
.thbx-finder-opt:focus-visible {
    outline: 2px solid var(--thb-purple, #6C5CE7);
    outline-offset: 2px;
}

/* ============================
   18. MOBILE MENU FIX
   ============================ */
/* Hamburger icon invisible on non-index pages (white on white) — fix */
.nonIndex .nav-toggle:before,
.header-scrolled .nav-toggle:before {
    background-color: #1a1a2e !important;
    box-shadow: 0 .5em 0 0 #1a1a2e, 0 1em 0 0 #1a1a2e !important;
}
/* Mobile menu panel polish */
.nav-menus-wrapper {
    transition: left .3s cubic-bezier(.4,0,.2,1), right .3s cubic-bezier(.4,0,.2,1) !important;
}
.nav-menus-wrapper-open {
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
/* Mobile nav overlay */
.nav-overlay-panel {
    background: rgba(0,0,0,.4) !important;
    transition: opacity .3s ease !important;
}
/* Mobile login button in header — more visible */
.mobile_nav .crs_yuo12 {
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
}
/* Ensure nav-toggle is always accessible */
.nav-toggle {
    z-index: 20010;
    min-width: 30px;
    min-height: 30px;
    border: 0;
    background: transparent;
}
.header-transparent .nav-toggle:before {
    background-color: #fff !important;
    box-shadow: 0 .5em 0 0 #fff, 0 1em 0 0 #fff !important;
}
.navigation-portrait .nav-menus-wrapper {
    max-width: min(86vw, 340px);
}
.navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-open {
    left: 0 !important;
}
.navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-right.nav-menus-wrapper-open {
    right: 0 !important;
}
.navigation-portrait .nav-overlay-panel {
    z-index: 19999 !important;
}
.navigation-portrait .nav-menu > li > a {
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* ============================
   19. CONTACT PAGE ROLE CARDS
   ============================ */
.thb-info-card {
    border-radius: var(--thb-r, 16px);
    padding: 28px 24px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}
.thb-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(11,22,51,.12);
}
.thb-info-card:focus-within {
    outline: 2px solid var(--thb-purple, #6C5CE7);
    outline-offset: 2px;
}
.thb-info-card:focus,
.thb-info-card.is-active {
    outline: 2px solid var(--thb-purple, #6C5CE7);
    outline-offset: 3px;
    box-shadow: 0 16px 48px rgba(108,92,231,.16);
}
.thb-info-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
}
.thb-info-card h3 {
    font-family: var(--thb-font-h, 'Figtree', sans-serif);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--thb-navy, #0B1633);
}
.thb-info-card p {
    font-size: .88rem;
    color: var(--thb-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 16px;
}
/* Card action link */
.thb-info-card__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: gap .2s ease;
}
.thb-info-card:hover .thb-info-card__action {
    gap: 10px;
}
/* Card colour variants */
.thb-info-card--purple {
    background: linear-gradient(135deg, #f3f0ff, #ede9fe);
    border-color: #e8e0fc;
}
.thb-info-card--purple .thb-info-card__icon {
    background: var(--thb-purple, #6C5CE7);
    color: #fff;
}
.thb-info-card--purple .thb-info-card__action { color: var(--thb-purple, #6C5CE7); }

.thb-info-card--green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}
.thb-info-card--green .thb-info-card__icon {
    background: #059669;
    color: #fff;
}
.thb-info-card--green .thb-info-card__action { color: #059669; }

.thb-info-card--orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #fed7aa;
}
.thb-info-card--orange .thb-info-card__icon {
    background: #ea580c;
    color: #fff;
}
.thb-info-card--orange .thb-info-card__action { color: #ea580c; }

/* Card grid layout */
.thb-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 767px) {
    .thb-card-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .thb-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   20. CONTACT INFO PANEL
   ============================ */
.thb-contact-info-panel {
    background: linear-gradient(135deg, #0B1633 0%, #1a1145 50%, #2d1b69 100%);
    color: #fff;
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.thb-contact-info-panel h3 {
    font-family: var(--thb-font-h, 'Figtree', sans-serif);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.thb-contact-info-panel > p {
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    line-height: 1.6;
}
.thb-contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
}
.thb-contact-method__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.thb-contact-method__label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.5);
    font-weight: 600;
}
.thb-contact-method__value {
    display: block;
    font-weight: 700;
    font-size: .95rem;
}
.thb-contact-social h4 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255,255,255,.8);
}
.thb-contact-social__links {
    display: flex;
    gap: 12px;
}
.thb-contact-social__links a {
    opacity: .7;
    transition: opacity .2s;
}
.thb-contact-social__links a:hover { opacity: 1; }

/* Trust strip below contact form */
.thb-contact-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px 0 40px;
    flex-wrap: wrap;
}
.thb-contact-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--thb-muted, #64748b);
    font-size: .85rem;
    font-weight: 600;
}
.thb-contact-trust__item i {
    color: var(--thb-purple, #6C5CE7);
    font-size: 1rem;
}

/* ============================
   21. TRUST SIGNALS IN MODALS
   ============================ */
.thb-modal-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 14px 0 4px;
    flex-wrap: wrap;
}
.thb-modal-trust span {
    font-size: .72rem;
    color: var(--thb-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 4px;
}
.thb-modal-trust i {
    color: var(--thb-purple, #6C5CE7);
    font-size: .7rem;
}

/* ============================
   22. STATIC PAGE SECTION
   ============================ */
.thb-static-page {
    padding: 48px 0;
}
.thb-static-page h2 {
    font-family: var(--thb-font-h, 'Figtree', sans-serif);
}

/* ============================
   23. REVEAL ANIMATIONS
   ============================ */
/* Fade-up reveal for sections */
.thb-reveal,
.thb-fade-up,
.thb-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.thb-reveal.thb-visible,
.thb-fade-up.thb-visible,
.thb-stagger.thb-visible > * {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.thb-stagger.thb-visible > *:nth-child(1) { transition-delay: 0s; }
.thb-stagger.thb-visible > *:nth-child(2) { transition-delay: .1s; }
.thb-stagger.thb-visible > *:nth-child(3) { transition-delay: .2s; }
.thb-stagger.thb-visible > *:nth-child(4) { transition-delay: .25s; }
.thb-stagger.thb-visible > *:nth-child(5) { transition-delay: .3s; }
/* Scale-up variant */
.thb-scale-in {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .5s ease, transform .5s ease;
}
.thb-scale-in.thb-visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================
   24. LANDING PAGE MOBILE POLISH
   ============================ */
@media (max-width: 767px) {
    /* Hero section — better mobile spacing */
    .thbx-hero { padding: 100px 0 40px !important; }
    .thbx-hero-copy { padding: 0 8px; }
    .thbx-hero-copy .thbx-eyebrow { margin-bottom: 12px; }
    .thbx-hero-copy h1 { margin-bottom: 16px !important; }
    .thbx-hero-copy .thbx-sub { margin-bottom: 20px; }

    /* Role deck on landing — tighter */
    .thbx-hrole-deck { margin-top: 24px; padding: 0 4px; }
    .thbx-hrole { border-radius: 14px; }
    .thbx-hrole h4 { font-size: .95rem; }

    /* Property finder quiz on mobile */
    .thbx-finder { padding: 24px 16px !important; border-radius: 20px !important; }
    .thbx-finder h3 { font-size: 1.1rem !important; }

    /* Welcome ticker — single line no overflow */
    .thbx-welcome-ticker { padding: 10px 0; }

    /* Steps section — compact */
    .thbx-step { border-radius: 16px; }
    .thbx-step-num { width: 40px; height: 40px; font-size: .85rem; }

    /* Why cards */
    .thbx-wc { padding: 20px !important; border-radius: 16px; }
    .thbx-wc-icon { width: 48px; height: 48px; }

    /* Promise cards */
    .thbx-promise-card { padding: 20px !important; border-radius: 16px; }

    /* Numbers section */
    .thbx-num { padding: 0; }
    .thbx-num-val { font-size: 2rem !important; }
    .thbx-num-label { font-size: .8rem; }

    /* CTA section mobile */
    .thbx-cta { padding: 40px 20px !important; border-radius: 20px !important; }
    .thbx-cta h2 { font-size: 1.4rem !important; }
    .thbx-cta p { font-size: .88rem; }

    /* Owner section */
    .thbx-own-txt { padding: 0 !important; }
    .thbx-own-txt h2 { font-size: 1.3rem !important; }

    /* Testimonials */
    .thbx-tcard { padding: 20px !important; border-radius: 16px; }

    /* Page headings on inner pages */
    .page-title h2 { font-size: 1.4rem !important; }

    /* Properties page filters */
    .filter_search_opt { padding: 16px !important; }

    /* Contact page mobile */
    .thb-contact-info-panel { padding: 28px 20px; }
    .thb-contact-trust { gap: 16px; padding: 16px 0 32px; }
}

@media (max-width: 375px) {
    /* Very small phones */
    .thbx-hero-copy h1 { font-size: 1.3rem !important; }
    .thbx-hero { padding: 90px 0 32px !important; }
    .thb-info-card { padding: 20px 16px; }
    .thb-contact-info-panel { padding: 24px 16px; }
}

/* ============================
   25. PROPERTIES PAGE POLISH
   ============================ */
/* Property listing page header */
.properties-hero,
.page-title.bg-cover {
    position: relative;
}
.properties-hero::after,
.page-title.bg-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,22,51,.7), rgba(108,92,231,.4));
    pointer-events: none;
}
/* Property card — premium finish */
.property_block_wrap .property_block_wrap_body {
    padding: 16px 18px !important;
}
.property_block_wrap .property_block_wrap_body h4 {
    font-family: var(--thb-font-h, 'Figtree', sans-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--thb-navy, #0B1633);
    margin-bottom: 6px;
}
.property_block_wrap .property_block_wrap_body .text-muted {
    font-size: .82rem;
}
/* Property image placeholder */
.property_block_wrap .property_img {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
}
.property_block_wrap .property_img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.15), transparent 40%);
    z-index: 1;
    pointer-events: none;
}
/* Property badges */
.property_block_wrap .badge {
    border-radius: 8px !important;
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .02em;
}

/* ============================
   26. ABOUT PAGE POLISH
   ============================ */
.about-bg.bg-cover {
    position: relative;
}
.about-bg.bg-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,22,51,.65), rgba(108,92,231,.35));
    pointer-events: none;
}
.about-bg h1 {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* ============================
   27. SMOOTH SCROLL
   ============================ */
html {
    scroll-behavior: smooth;
}

/* ============================
   28. HEADER SCROLLED STATE
   ============================ */
.header.header-scrolled {
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(11,22,51,.06);
}

/* ============================
   29. LINK/BUTTON CONNECTIVITY
   ============================ */
/* Ensure all nav links have proper cursor */
.nav-menu a,
.nav-menu-social a,
.mobile_nav a,
.footer_widget a {
    cursor: pointer;
}

/* ============================
   31. LAUNCH QA PATCHES
   ============================ */
.thb-detail-placeholder {
    min-height: 360px;
    border-radius: 0;
}

.Goodup-grid-thumb img {
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.Goodup-grid-wrap:hover .Goodup-grid-thumb img {
    transform: scale(1.045);
}

@media (max-width: 575px) {
    .thbx-hero {
        padding-top: 84px !important;
        padding-bottom: 18px !important;
    }
    .thbx-hero-shell {
        gap: 12px !important;
        align-items: stretch;
    }
    .thbx-eyebrow {
        letter-spacing: .08em !important;
        font-size: .64rem !important;
        margin-bottom: 8px !important;
    }
    .thbx-hero h1 {
        font-size: clamp(1.95rem, 8.4vw, 2.35rem) !important;
        line-height: 1.06 !important;
    }
    .thbx-sub {
        font-size: .86rem !important;
        line-height: 1.5 !important;
        margin-top: 10px !important;
    }
    .thbx-search {
        padding: 10px !important;
        border-radius: 18px !important;
    }
    .thbx-search-field {
        flex: 0 0 100% !important;
        padding: 9px 8px !important;
    }
    .thbx-search-field:first-child {
        flex-basis: 100% !important;
    }
    .thbx-search-field:not(:first-child) {
        flex: 1 1 calc(33.333% - 8px) !important;
        min-width: 0 !important;
    }
    .thbx-search-field:not(:first-child) .thbx-sf-icon {
        display: none !important;
    }
    .thbx-search-field label {
        font-size: .62rem !important;
    }
    .thbx-search-field select,
    .thbx-search-field input {
        font-size: .78rem !important;
    }
    .thbx-search-btn {
        height: 46px !important;
    }
    .thbx-hero-roles-label {
        text-align: left !important;
        margin-bottom: 8px !important;
    }
    .thbx-hrole-deck {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    .thbx-hrole {
        min-height: 104px;
        padding: 10px 8px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        text-align: left;
    }
    .thbx-hrole-ic {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
    }
    .thbx-hrole-body strong {
        display: block;
        font-size: .78rem !important;
        line-height: 1.12 !important;
    }
    .thbx-hrole-body span,
    .thbx-hrole-arrow {
        display: none !important;
    }
    .thbx-trust {
        padding: 10px !important;
        border-radius: 16px !important;
    }
    .thbx-trust-item {
        flex: 1 1 calc(50% - 8px) !important;
        padding: 0 !important;
    }
    .thbx-trust-item strong {
        font-size: .68rem !important;
    }
    .thbx-trust-item span {
        display: none !important;
    }
    .properties-filter {
        min-height: auto !important;
        padding: 92px 0 22px;
    }
    .Goodup-grid-wrap {
        border-radius: 14px !important;
        overflow: hidden;
    }
    .Goodup-grid-fl-wrap .row > [class*="col-"] {
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .thb-card-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-top: 18px !important;
    }
    .cc-window.cc-banner {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: auto !important;
        max-width: none !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
        font-size: .76rem !important;
        line-height: 1.35 !important;
    }
    .cc-window .cc-message {
        margin-right: 0 !important;
    }
    .cc-window .cc-compliance {
        margin-top: 8px !important;
    }
    .cc-window .cc-btn {
        padding: 8px 12px !important;
        min-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .Goodup-grid-thumb img,
    .Goodup-grid-wrap:hover .Goodup-grid-thumb img {
        transition: none !important;
        transform: none !important;
    }
}
/* Clickable property cards */
.property_block_wrap a {
    text-decoration: none;
    color: inherit;
}
/* All anchor tags without href should still look clickable when role is set */
a[href="javascript:void(0)"],
a[href="javascript:;"] {
    cursor: pointer;
}

/* ============================
   32. V33 MOBILE-FIRST LAUNCH REDESIGN
   ============================ */
:root {
    --thb-ink: #102033;
    --thb-paper: #fffaf4;
    --thb-surface: #ffffff;
    --thb-warm: #f47b20;
    --thb-green: #2fa66a;
    --thb-violet: #6c5ce7;
    --thb-line: rgba(16,32,51,.1);
}

body {
    background: linear-gradient(180deg, #fffaf4 0, #ffffff 420px, #f7f8fb 100%) !important;
    color: var(--thb-ink);
}

.header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header.nonIndex,
.header.header-scrolled {
    box-shadow: 0 14px 36px rgba(16,32,51,.08);
}

.nav-toggle {
    border-radius: 999px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,.18) !important;
    box-shadow: 0 12px 30px rgba(16,32,51,.16);
}

.nonIndex .nav-toggle,
.header-scrolled .nav-toggle {
    background: #102033 !important;
}

.nav-toggle:before,
.nav-toggle:after {
    left: 11px !important;
    width: 22px !important;
}

.thbx-hero {
    background: radial-gradient(circle at 20% 18%, rgba(244,123,32,.25), transparent 30%), radial-gradient(circle at 85% 22%, rgba(47,166,106,.22), transparent 28%), linear-gradient(145deg, #09152b 0%, #15264a 48%, #0f3b35 100%) !important;
    overflow: hidden;
}

.thbx-hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(255,250,244,.16));
    pointer-events: none;
}

.thbx-hero-shell {
    position: relative;
    z-index: 2;
}

.thbx-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff7ed !important;
}

.thbx-hero-copy h1 {
    color: #fff !important;
    text-wrap: balance;
    letter-spacing: 0 !important;
    text-shadow: 0 18px 46px rgba(0,0,0,.28);
}

.thbx-purple {
    color: #ffd8a8 !important;
}

.thbx-sub {
    color: rgba(255,255,255,.84) !important;
    max-width: 720px;
}

.thbx-search {
    border: 1px solid rgba(255,255,255,.28) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.28) !important;
}

.thbx-search-btn,
.theme-bg,
.btn.theme-bg {
    background: linear-gradient(135deg, #f47b20, #ffad42) !important;
    box-shadow: 0 14px 32px rgba(244,123,32,.28);
}

.thbx-hrole {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.24) !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
    transform: translateZ(0);
}

.thbx-hrole:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0));
    opacity: .9;
    pointer-events: none;
}

.thbx-hrole--student { background: linear-gradient(135deg, rgba(108,92,231,.94), rgba(91,70,214,.78)) !important; }
.thbx-hrole--owner { background: linear-gradient(135deg, rgba(47,166,106,.94), rgba(17,121,84,.78)) !important; }
.thbx-hrole--agent { background: linear-gradient(135deg, rgba(244,123,32,.95), rgba(206,86,30,.78)) !important; }

.thbx-hrole-ic {
    background: rgba(255,255,255,.2) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.thbx-hrole-body strong,
.thbx-hrole-body span,
.thbx-hrole-arrow {
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.thbx-hrole:hover,
.thbx-hrole:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 28px 72px rgba(0,0,0,.28);
}

.thbx-trust {
    background: rgba(255,255,255,.11) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.thbx-trust-item strong {
    color: #fff !important;
}

.thbx-trust-item span {
    color: rgba(255,255,255,.74) !important;
}

.thb-static-page,
.gray,
.listing {
    background: linear-gradient(180deg, #fffaf4, #f7f8fb) !important;
}

.thb-info-card,
.Goodup-grid-wrap,
.wrk-pro-box,
.thb-empty-card {
    border: 1px solid rgba(16,32,51,.08) !important;
    box-shadow: 0 18px 50px rgba(16,32,51,.08) !important;
}

.thb-contact-path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.thb-info-card--partner .thb-info-card__icon {
    color: #0f766e;
    background: rgba(15,118,110,.1);
}

.thb-contact-role-card {
    min-height: 260px;
}

.thb-contact-role-card.is-active {
    transform: translateY(-6px);
}

.properties-filter {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(9,21,43,.88), rgba(15,59,53,.82)), url(/front/img/study_bg.jpg) center/cover no-repeat !important;
}

.properties-filter:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(244,123,32,.2), transparent 40%), linear-gradient(180deg, transparent, rgba(255,250,244,.18));
    z-index: -1;
}

.properties-title {
    color: #fff !important;
    text-shadow: 0 12px 34px rgba(0,0,0,.32);
}

.properties-filter p {
    color: rgba(255,255,255,.82) !important;
}

.property-filter {
    padding: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.28);
}

.thb-showcase-preview {
    margin: 34px 0 10px;
}

.thb-showcase-preview__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 22px;
}

.thb-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a4d10;
    background: rgba(244,123,32,.12);
    font-weight: 800;
    font-size: .76rem;
    text-transform: uppercase;
}

.thb-showcase-preview__head h2 {
    margin: 12px 0 8px;
    font-weight: 850;
    color: var(--thb-ink);
}

.thb-showcase-preview__head p {
    color: #5a6878;
}

.thb-showcase-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.thb-showcase-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(16,32,51,.08);
    box-shadow: 0 18px 44px rgba(16,32,51,.1);
}

.thb-showcase-card__media {
    min-height: 150px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #102033);
}

.thb-showcase-card--manchester .thb-showcase-card__media { background: linear-gradient(135deg, #2fa66a, #102033); }
.thb-showcase-card--leeds .thb-showcase-card__media { background: linear-gradient(135deg, #f47b20, #102033); }
.thb-showcase-card--birmingham .thb-showcase-card__media { background: linear-gradient(135deg, #0f766e, #102033); }
.thb-showcase-card--sheffield .thb-showcase-card__media { background: linear-gradient(135deg, #3959d8, #102033); }

.thb-showcase-card__media span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: .72rem;
    opacity: .82;
}

.thb-showcase-card__media strong {
    font-size: 1.2rem;
    line-height: 1.12;
}

.thb-showcase-card__body {
    padding: 16px;
}

.thb-showcase-badge-soft {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(244,123,32,.12);
    color: #a34b0b;
    font-weight: 800;
    font-size: .7rem;
}

.thb-showcase-card h3 {
    margin: 10px 0 8px;
    font-size: 1rem;
    font-weight: 850;
    color: var(--thb-ink);
}

.thb-showcase-card p {
    color: #5a6878;
    font-size: .86rem;
    line-height: 1.55;
}

.thb-showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.thb-showcase-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f4f6f9;
    color: #334155;
    font-size: .72rem;
    font-weight: 700;
}

.thb-showcase-link {
    color: #102033;
    font-weight: 850;
    font-size: .84rem;
}

.modal-content {
    border-radius: 20px !important;
    border: 1px solid rgba(16,32,51,.08);
    box-shadow: 0 30px 90px rgba(16,32,51,.24);
}

.form-control:focus,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(244,123,32,.35) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(244,123,32,.12) !important;
}

@media (max-width: 1199px) {
    .thb-showcase-grid,
    .thb-contact-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .nav-menus-wrapper {
        background: linear-gradient(180deg, #fffaf4, #ffffff 44%, #f7f8fb) !important;
        width: min(88vw, 380px) !important;
        padding: 16px 16px 26px !important;
        box-shadow: 24px 0 70px rgba(16,32,51,.22);
        overflow-y: auto !important;
    }

    .nav-menus-wrapper-close-button {
        top: 16px !important;
        right: 16px !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 999px !important;
        background: #102033 !important;
        color: #fff !important;
        line-height: 42px !important;
    }

    .thb-menu-brand {
        display: block !important;
        padding: 8px 54px 14px 0 !important;
    }

    .thb-menu-brand img {
        max-width: 150px;
        margin-bottom: 8px;
    }

    .thb-menu-brand span {
        display: block;
        color: #64748b;
        font-size: .82rem;
        line-height: 1.35;
    }

    .thb-mobile-menu-list > li > a {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        min-height: 48px !important;
        padding: 12px 14px !important;
        margin: 4px 0;
        border-radius: 14px;
        color: #102033 !important;
        background: rgba(255,255,255,.72);
        border: 1px solid rgba(16,32,51,.06);
        font-weight: 750 !important;
    }

    .thb-mobile-menu-list > li > a i {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(108,92,231,.1);
        color: #6c5ce7;
    }

    .thb-menu-section-label span {
        display: block;
        margin: 16px 4px 6px;
        color: #8a97a8;
        font-size: .72rem;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .thb-mobile-login {
        background: #102033 !important;
        color: #fff !important;
    }

    .thb-mobile-login i {
        background: rgba(255,255,255,.16) !important;
        color: #fff !important;
    }

    .thb-mobile-register {
        background: linear-gradient(135deg, #f47b20, #ffad42) !important;
        color: #fff !important;
        box-shadow: 0 14px 30px rgba(244,123,32,.22);
    }

    .thb-mobile-register i {
        background: rgba(255,255,255,.18) !important;
        color: #fff !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .thbx-hero {
        min-height: 100svh;
        padding-top: 76px !important;
        padding-bottom: 24px !important;
    }

    .thbx-hero-shell {
        gap: 12px !important;
    }

    .thbx-eyebrow {
        font-size: .6rem !important;
        padding: 7px 10px;
        margin-bottom: 8px !important;
    }

    .thbx-hero h1 {
        font-size: clamp(2.05rem, 10vw, 2.85rem) !important;
        line-height: .98 !important;
        margin-bottom: 10px !important;
    }

    .thbx-sub {
        font-size: .93rem !important;
        line-height: 1.5 !important;
        margin-top: 0 !important;
    }

    .thbx-search {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 20px !important;
    }

    .thbx-search-div,
    .thbx-search-field:not(:first-child) {
        display: none !important;
    }

    .thbx-search-field:first-child {
        min-height: 52px;
        padding: 8px 8px !important;
    }

    .thbx-search-btn {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        border-radius: 16px !important;
    }

    .thbx-search-btn em {
        display: none !important;
    }

    .thbx-hero-roles-label {
        color: rgba(255,255,255,.78) !important;
        font-size: .74rem !important;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .thbx-hrole-deck {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .thbx-hrole {
        min-height: 76px !important;
        padding: 13px 14px !important;
        border-radius: 18px !important;
        align-items: center !important;
    }

    .thbx-hrole-body span,
    .thbx-hrole-arrow {
        display: block !important;
    }

    .thbx-hrole-body strong {
        font-size: .98rem !important;
    }

    .thbx-hrole-body span {
        font-size: .76rem !important;
        opacity: .86;
        line-height: 1.25;
    }

    .thbx-trust {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        padding: 10px !important;
    }

    .thbx-trust-item {
        align-items: center !important;
        min-width: 0 !important;
    }

    .thbx-trust-item strong {
        font-size: .72rem !important;
    }

    .properties-filter {
        min-height: auto !important;
        padding: 94px 0 28px !important;
    }

    .properties-title {
        font-size: 2rem !important;
        line-height: 1.05 !important;
    }

    .property-filter {
        border-radius: 22px !important;
        padding: 12px !important;
    }

    .property-filter .search-col,
    .property-filter .col-lg-2 {
        width: 100%;
    }

    .thb-empty-card {
        padding: 22px 16px !important;
        border-radius: 22px !important;
    }

    .thb-empty-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .thb-showcase-grid,
    .thb-contact-path-grid {
        grid-template-columns: 1fr !important;
    }

    .thb-showcase-card {
        border-radius: 20px;
    }

    .thb-showcase-card__media {
        min-height: 138px;
    }

    .thb-info-card,
    .thb-contact-role-card {
        min-height: auto !important;
        border-radius: 20px !important;
    }

    .cc-window.cc-banner {
        font-size: .72rem !important;
        padding: 9px 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thbx-hrole,
    .thb-contact-role-card,
    .Goodup-grid-wrap,
    .thb-showcase-card {
        transition: none !important;
        transform: none !important;
    }
}

/* ============================
   33. V34 LAUNCH FIXES
   ============================ */
html,
body {
    overflow-x: hidden !important;
}

body.thb-menu-open {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 991px) {
    #navigation.navigation-portrait .nav-menus-wrapper,
    #thbMobileMenu.nav-menus-wrapper {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: -92vw !important;
        right: auto !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 20050 !important;
        transform: translateX(0);
        transition: left .28s cubic-bezier(.2,.8,.2,1) !important;
        background: linear-gradient(180deg, #fffaf4 0%, #fff 45%, #f4f7fb 100%) !important;
    }

    #navigation.navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-open,
    #thbMobileMenu.nav-menus-wrapper-open {
        left: 0 !important;
    }

    #navigation .nav-overlay-panel {
        position: fixed !important;
        inset: 0 !important;
        z-index: 20040 !important;
        background: rgba(9,21,43,.54) !important;
        backdrop-filter: blur(4px);
    }

    .nav-menus-wrapper-close-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important;
    }

    .nav-menus-wrapper-close-button:before {
        content: "\f00d";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 18px;
    }

    .mobile_nav .theme-bg {
        min-height: 40px;
        border-radius: 999px !important;
        padding: 8px 12px !important;
        box-shadow: 0 12px 28px rgba(244,123,32,.24);
    }

    .nav-brand img {
        max-height: 46px !important;
        width: auto !important;
    }
}

.thbx-search-field {
    background: #fff8ef !important;
    border: 1px solid rgba(16,32,51,.12) !important;
    border-radius: 16px;
}

.thbx-search-field label {
    color: #6b4a2d !important;
}

.thbx-search-field input,
.thbx-search-field select {
    width: 100% !important;
    min-height: 40px;
    padding: 4px 10px 6px 0 !important;
    background: #fff8ef !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #102033 !important;
    font-weight: 750 !important;
    box-shadow: none !important;
}

.thbx-search-field select {
    padding-right: 28px !important;
}

.thbx-search-field input::placeholder {
    color: #7d6b5b !important;
    opacity: 1 !important;
}

.thbx-sf-icon {
    color: #d76313 !important;
}

.thbx-search-field:focus-within {
    border-color: rgba(244,123,32,.6) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(244,123,32,.16);
}

.thbx-search-btn:active,
.thb-showcase-primary:active,
.thb-mobile-register:active {
    transform: translateY(1px) scale(.99);
}

.thbx-sec,
.space,
.thb-static-page,
.properties-container {
    padding-top: clamp(34px, 5vw, 70px) !important;
    padding-bottom: clamp(34px, 5vw, 70px) !important;
}

.thbx-sec-head {
    margin-bottom: clamp(18px, 3vw, 34px) !important;
}

.thbx-steps,
.thb-card-grid,
.thb-showcase-grid {
    margin-top: clamp(16px, 3vw, 28px) !important;
}

.thb-contact-detail-wrap {
    max-width: 1120px;
    margin: 0 auto 34px;
}

.thb-contact-detail {
    display: none;
    padding: clamp(18px, 4vw, 34px);
    border-radius: 24px;
    background: linear-gradient(135deg, #102033, #183b55);
    color: #fff;
    box-shadow: 0 22px 60px rgba(16,32,51,.16);
    border: 1px solid rgba(255,255,255,.12);
}

.thb-contact-detail.is-active {
    display: block;
    animation: thbDetailIn .28s ease both;
}

.thb-contact-detail span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffd8a8;
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.thb-contact-detail h3 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.thb-contact-detail p,
.thb-contact-detail li {
    color: rgba(255,255,255,.82);
}

.thb-contact-detail ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    margin: 14px 0 18px;
}

.thb-contact-detail a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffad42;
    color: #102033;
    font-weight: 850;
}

@keyframes thbDetailIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.thb-showcase-detail {
    background: linear-gradient(180deg, #fffaf4, #f7f8fb);
}

.thb-showcase-hero {
    padding: 118px 0 42px;
    background: radial-gradient(circle at 20% 20%, rgba(244,123,32,.25), transparent 32%), linear-gradient(135deg, #102033, #0f3b35);
    color: #fff;
}

.thb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.82);
    font-weight: 800;
    margin-bottom: 20px;
}

.thb-showcase-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 34px;
    align-items: center;
}

.thb-showcase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffd8a8;
    font-weight: 850;
}

.thb-showcase-hero h1 {
    color: #fff;
    margin: 14px 0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: .98;
    letter-spacing: 0 !important;
}

.thb-showcase-hero p {
    color: rgba(255,255,255,.82);
    max-width: 680px;
}

.thb-showcase-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #fff;
    font-weight: 850;
}

.thb-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.thb-showcase-primary,
.thb-showcase-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 850;
}

.thb-showcase-primary {
    background: linear-gradient(135deg, #f47b20, #ffad42);
    color: #102033;
}

.thb-showcase-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
}

.thb-showcase-photo-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.thb-showcase-photo {
    min-height: 150px;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, rgba(108,92,231,.9), rgba(244,123,32,.82));
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
}

.thb-showcase-photo--main {
    grid-column: 1 / -1;
    min-height: 280px;
}

.thb-showcase-photo span {
    font-size: .78rem;
    opacity: .86;
    font-weight: 850;
    text-transform: uppercase;
}

.thb-showcase-photo strong {
    color: #fff;
    font-size: 1.6rem;
}

.thb-showcase-facts,
.thb-showcase-content {
    padding: 32px 0;
}

.thb-showcase-fact-grid,
.thb-showcase-content__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.thb-showcase-fact-grid div,
.thb-showcase-panel {
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(16,32,51,.08);
    box-shadow: 0 16px 42px rgba(16,32,51,.08);
}

.thb-showcase-fact-grid span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.thb-showcase-fact-grid strong {
    display: block;
    color: #102033;
    font-size: 1.05rem;
    margin-top: 4px;
}

.thb-showcase-panel--wide {
    grid-column: 1 / -1;
}

.thb-chip-list,
.thb-safety-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thb-chip-list span,
.thb-safety-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f3f6fa;
    color: #102033;
    font-weight: 750;
}

.cc-window,
.cc-window.cc-banner {
    z-index: 9000 !important;
    background: #102033 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.14) !important;
}

.cc-window .cc-btn {
    background: #ffad42 !important;
    color: #102033 !important;
    border: 0 !important;
}

.cc-window .cc-deny {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .thbx-hero {
        min-height: auto !important;
        padding-top: 82px !important;
    }

    .thbx-hero h1 {
        font-size: clamp(2rem, 9vw, 2.55rem) !important;
    }

    .thbx-sub {
        margin-bottom: 0 !important;
    }

    .thbx-search {
        margin-top: 6px !important;
    }

    .thb-showcase-hero {
        padding: 96px 0 28px;
    }

    .thb-showcase-hero__grid,
    .thb-showcase-fact-grid,
    .thb-showcase-content__grid {
        grid-template-columns: 1fr;
    }

    .thb-showcase-photo--main {
        min-height: 210px;
    }

    .thb-showcase-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .thb-contact-detail {
        border-radius: 20px;
    }

    .cc-window.cc-banner {
        left: 12px !important;
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-height: 34vh;
        overflow-y: auto;
    }
}

/* ============================
   30. PRINT STYLES
   ============================ */
@media print {
    .header, .light-footer, .subscribe_section, .thbx-welcome-ticker,
    .top-scroll, .cc-window, .thbloader { display: none !important; }
    body { font-size: 12pt; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 80%; }
}
