/* Search Bar Widget */
.sb-wrap {
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
}

.sb-tabs {
    display: flex;
    gap: 0;
    align-items: flex-end;
}

.sb-tab {
    padding: 10px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    border-bottom: 3px solid transparent;
    margin-right: 3px;
    transition: all 0.18s;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-block;
}

.sb-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sb-tab.active {
    background: #fff;
    color: #1a1a1a;
    border-bottom-color: var(--gold);
    font-weight: 600;
}

.sb-form {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

.sb-form *,
.sb-form *::before,
.sb-form *::after {
    box-sizing: border-box;
}

.sb-row {
    background: #fff;
    border-radius: 0 4px 4px 4px;
    display: flex;
    align-items: stretch;
    height: 56px;
    max-height: 56px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
    width: 100%;
}

.sb-divider {
    width: 1px;
    background: #e8e8e8;
    align-self: stretch;
    flex-shrink: 0;
}

.sb-city {
    flex: 1.6;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    cursor: text;
}

.sb-city svg {
    width: 18px;
    height: 18px;
    color: #999;
    flex-shrink: 0;
}

.sb-city-input {
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: transparent;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 18px;
}

.sb-city-input::placeholder {
    color: #aaa;
}

.sb-city {
    position: relative;
}

.sb-city .select2-container,
.sb-type .select2-container {
    flex: 1;
    width: 100% !important;
}

.sb-row .select2-container--default .select2-selection--single {
    height: 56px;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.sb-row .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 56px;
    padding-left: 0;
    padding-right: 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.sb-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 56px;
    right: 0;
}

.sb-row .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #aaa;
}

.sb-type {
    flex: 1.2;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    position: relative;
}

.sb-type-select {
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: #1a1a1a;
    background: transparent;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 22px;
}

.sb-type .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 0.92rem;
}

.sb-btn {
    flex: 0 0 140px;
    width: 140px;
    height: auto;
    min-height: 0;
    align-self: stretch;
    background: var(--gold);
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.sb-btn:hover {
    background: #b8932e;
}

.sb-btn svg {
    width: 17px;
    height: 17px;
}

.sb-quick {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.5);
}

.sb-quick-link {
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.sb-quick-link:hover {
    color: #fff;
    text-decoration: underline;
}

.sb-quick-sep {
    color: rgba(255, 255, 255, 0.3);
}

.sb-quick-link.owner-link {
    color: var(--gold);
    font-weight: 500;
}

.sb-quick-link.owner-link:hover {
    color: #e0c070;
}

/* ─── BLOG / MARKET UPDATES ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--stone-mid);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-top {
    background: linear-gradient(135deg, var(--accent) 0%, #0E2018 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.blog-card-top::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.12);
}

.blog-cat {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
}

.blog-title-card {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.3;
}

.blog-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone-dark);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-dark);
    transition: gap 0.2s;
}

.blog-read-more:hover {
    gap: 10px;
}

/* ─── DEALS / TOMBSTONES ─── */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.deal-card {
    background: var(--white);
    border: 1px solid var(--stone-mid);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.deal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.deal-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.deal-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.deal-sub {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.deal-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.deal-stat-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
}

.deal-stat-label {
    font-size: 0.7rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
}

.deal-confidential {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: var(--stone);
    padding: 3px 8px;
    border-radius: 3px;
}

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--stone-mid);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--gold-light);
    line-height: 0.6;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    pointer-events: none;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--stone);
    border: 2px solid var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 1px;
}

.testimonial-market {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(201, 169, 110, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ─── CLIENT LOGOS ─── */
.logos-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    opacity: 0.45;
}

.logo-item {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ─── MARKET REPORT (GATED) ─── */
.report-section {
    background: var(--ink);
    color: var(--white);
}

.report-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.report-eyebrow {
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.report-section h2 {
    color: var(--white);
    margin-bottom: 1.2rem;
}

.report-section p {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.report-items {
    list-style: none;
    margin-bottom: 2rem;
}

.report-items li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.report-items li:last-child {
    border-bottom: none;
}

.r-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.report-form-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    padding: 2.5rem;
}

.report-form-box h3 {
    color: var(--white);
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.report-form-box p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
}

.report-field {
    margin-bottom: 1rem;
}

.report-field input,
.report-field select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r);
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.report-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.report-field input:focus,
.report-field select:focus {
    border-color: var(--gold);
}

.report-field select {
    color: rgba(255, 255, 255, 0.6);
}

.report-field select option {
    background: var(--ink);
    color: var(--white);
}

.report-submit {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: var(--r);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.report-submit:hover {
    background: var(--gold-light);
}

.report-success {
    text-align: center;
    padding: 2rem 0;
    display: none;
}

.report-success .big-check {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.report-success h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.report-success p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ─── EXIT INTENT ─── */
#exit-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(14, 14, 14, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#exit-modal.show {
    display: flex;
}

.exit-box {
    background: var(--white);
    border-radius: var(--r-lg);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.exit-top {
    background: var(--ink);
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
}

.exit-top .eyebrow {
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.exit-top h2 {
    color: var(--white);
    font-size: 2rem;
    line-height: 1.25;
}

.exit-top h2 em {
    color: var(--gold);
}

.exit-body {
    padding: 2rem 2.5rem 2.5rem;
}

.exit-body p {
    color: var(--ink-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.exit-field {
    margin-bottom: 10px;
}

.exit-field input,
.exit-field select {
    width: 100%;
    border: 1px solid var(--stone-dark);
    border-radius: var(--r);
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: var(--stone);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.exit-field input:focus,
.exit-field select:focus {
    border-color: var(--gold);
}

.exit-submit {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: var(--r);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.exit-submit:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.exit-dismiss {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--ink-muted);
    cursor: pointer;
    background: none;
    border: none;
}

.exit-dismiss:hover {
    color: var(--ink);
}

@media (max-width: 768px) {
    .sb-tabs {
        flex-wrap: wrap;
        gap: 3px;
    }

    .sb-tab {
        padding: 8px 14px;
        font-size: 0.76rem;
    }

    .sb-row {
        flex-wrap: wrap;
        height: auto;
        max-height: none;
    }

    .sb-city,
    .sb-type {
        flex: 1 1 100%;
        height: 50px;
        border-bottom: 1px solid #eee;
    }

    .sb-divider {
        display: none;
    }

    .sb-btn {
        flex: 1 1 100%;
        height: 48px;
        width: 100%;
        border-radius: 0;
    }

    .sb-tab.active {
        border-radius: 4px 4px 0 0;
    }
}

@media (max-width: 480px) {
    .sb-tab {
        font-size: 0.72rem !important;
        padding: 7px 10px !important;
    }
}

/* =======================================================
   MOBILE OPTIMIZATIONS (< 768px)
   ======================================================= */
@media (max-width: 768px) {

    #tombstone-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 0.75rem !important;
        padding-bottom: 1rem !important;
        -webkit-overflow-scrolling: touch;
    }

    #tombstone-grid::-webkit-scrollbar {
        display: none;
    }

    #tombstone-grid>div {
        flex: 0 0 75% !important;
        scroll-snap-align: center;
        padding: 1.1rem !important;
    }

    #tombstone-grid>div>div:nth-child(1) {
        font-size: 0.55rem !important;
        margin-bottom: 0.4rem !important;
    }

    #tombstone-grid>div>div:nth-child(2) {
        font-size: 1.3rem !important;
    }

    #tombstone-grid>div>div:nth-child(3) {
        font-size: 0.7rem !important;
        margin: 2px 0 !important;
    }

    #tombstone-grid>div>div:nth-child(4) {
        font-size: 0.7rem !important;
    }


    #testimonials-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .testimonial-card,
    .blog-card {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    .testimonial-card {
        padding: 1.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .testimonial-card::before {
        font-size: 3.5rem !important;
        top: 1rem !important;
        left: 1rem !important;
    }

    .testimonial-quote {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
        padding-top: 1rem !important;
    }

    .testimonial-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .testimonial-name {
        font-size: 0.85rem !important;
    }

    .testimonial-role {
        font-size: 0.7rem !important;
    }

    .testimonial-market {
        font-size: 0.7rem !important;
        margin-top: 1rem !important;
        padding: 3px 8px !important;
        display: block !important;
        word-wrap: break-word !important;

    }

    .report-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .report-section {
        padding: 3rem 0 !important;
    }

    .report-section h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    .report-items li {
        padding: 0.3rem 0 !important;
        font-size: 0.8rem !important;
    }

    .report-form-box {
        padding: 1.5rem !important;
    }

    .report-form-box h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
    }

    .report-form-box p {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .report-field {
        margin-bottom: 0.75rem !important;
    }

    .report-field input,
    .report-field select {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }

    .report-submit {
        padding: 10px !important;
        font-size: 0.8rem !important;
        margin-top: 0.25rem !important;
    }

    #blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .blog-card-top {
        padding: 1.25rem !important;
    }

    .blog-title-card {
        font-size: 1.05rem !important;
    }

    .blog-card-body {
        padding: 1.25rem !important;
    }

    .blog-excerpt {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    #seo-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #seo-grid h3 {
        font-size: 1.05rem !important;
    }

    #seo-grid p {
        font-size: 0.8rem !important;
        line-height: 1.6 !important;
    }

    .logos-strip {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .logo-item {
        font-size: 0.85rem !important;
    }

    #testimonials h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    #testimonials h2 br {
        display: none;
    }
}