/* =========================================================
   THBP AI Hotel ROI Calculator
   Mobile-first hotel deal checker + ROI popup
========================================================= */

.thbp-ai-calc {
    --thbp-navy: #172752;
    --thbp-navy-2: #223665;
    --thbp-gold: #c8a96e;
    --thbp-card: #ffffff;
    --thbp-border: #e5e9f1;
    --thbp-text: #243044;
    --thbp-muted: #6b768c;
    --thbp-soft: #f8fafc;
    --thbp-blue-soft: #eef5ff;
    --thbp-green: #0f766e;
    --thbp-red: #b91c1c;
    --thbp-page-bg: #f3f5f8;
    --thbp-shadow: 0 10px 26px rgba(23, 39, 82, 0.06);
    --thbp-modal-shadow: 0 22px 70px rgba(15, 23, 42, 0.28);

    max-width: 760px;
    margin: -34px auto 0 !important;
    padding: 0 18px 42px;
    color: var(--thbp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.48;
}

.entry-content .thbp-ai-calc {
    margin-top: -34px !important;
}

.thbp-ai-calc * {
    box-sizing: border-box;
}

.thbp-ai-calc [hidden] {
    display: none !important;
}

body.thbp-ai-modal-open {
    overflow: hidden;
    position: relative;
}

/* LAYOUT */

.thbp-ai-calc__shell {
    display: block;
}

.thbp-ai-calc__main,
.thbp-ai-calc__main--single {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.thbp-ai-card,
.thbp-ai-results > div {
    background: var(--thbp-card);
    border: 1px solid var(--thbp-border);
    border-radius: 17px;
    box-shadow: var(--thbp-shadow);
}

.thbp-ai-card {
    padding: 18px;
}

.thbp-ai-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.thbp-ai-card__title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--thbp-navy);
    font-size: 14.5px;
    font-weight: 750;
    margin-bottom: 6px;
}

.thbp-ai-card__title--no-margin {
    margin-bottom: 0 !important;
}

.thbp-ai-kicker {
    color: var(--thbp-gold);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
}

.thbp-ai-page-title {
    color: var(--thbp-navy);
    font-size: clamp(21px, 3.6vw, 27px);
    line-height: 1.16;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.thbp-ai-muted {
    color: var(--thbp-muted);
    font-size: 13.25px;
    line-height: 1.48;
    margin: 0 0 12px;
}

.thbp-ai-intro-text {
    max-width: 500px;
}

.thbp-ai-small-muted {
    font-size: 12.5px;
    line-height: 1.42;
    margin-top: 5px;
    margin-bottom: 0;
}

/* SEARCH */

.thbp-ai-search-card--hero {
    padding: 19px;
}

.thbp-ai-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 9px;
    align-items: center;
}

.thbp-ai-calc .thbp-ai-input {
    width: 100%;
    min-height: 46px;
    border: 1.45px solid var(--thbp-border);
    border-radius: 11px;
    padding: 11px 13px;
    font-size: 15px !important;
    color: var(--thbp-text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.thbp-ai-calc .thbp-ai-input::placeholder {
    color: #7c8596;
    opacity: 1;
}

.thbp-ai-calc .thbp-ai-input:focus {
    border-color: var(--thbp-navy);
    box-shadow: 0 0 0 3px rgba(23, 39, 82, 0.08);
}

/* BUTTONS */

.thbp-ai-calc .thbp-ai-btn,
.thbp-ai-calc a.thbp-ai-btn,
.thbp-ai-calc button.thbp-ai-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    border-radius: 11px !important;
    border: 1.45px solid transparent !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
}

.thbp-ai-calc .thbp-ai-btn:hover {
    transform: none !important;
}

.thbp-ai-calc .thbp-ai-btn--navy,
.thbp-ai-calc button.thbp-ai-btn--navy,
.thbp-ai-calc .thbp-ai-btn--gold,
.thbp-ai-calc a.thbp-ai-btn--gold,
.thbp-ai-calc button.thbp-ai-btn--gold {
    background: var(--thbp-navy) !important;
    color: #ffffff !important;
}

.thbp-ai-calc .thbp-ai-btn--navy:hover,
.thbp-ai-calc button.thbp-ai-btn--navy:hover,
.thbp-ai-calc .thbp-ai-btn--gold:hover {
    background: var(--thbp-navy-2) !important;
    color: #ffffff !important;
}

.thbp-ai-calc .thbp-ai-btn--light,
.thbp-ai-calc button.thbp-ai-btn--light {
    background: #ffffff !important;
    color: var(--thbp-navy) !important;
    border-color: var(--thbp-border) !important;
}

.thbp-ai-calc .thbp-ai-btn--light:hover {
    background: #f3f6fa !important;
    color: var(--thbp-navy) !important;
}

.thbp-ai-calc .thbp-ai-btn--full {
    width: 100% !important;
    margin-top: 14px;
}

/* MANUAL LINK */

.thbp-ai-manual-row {
    margin-top: 8px;
    text-align: center;
}

.thbp-ai-manual-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent !important;
    color: #172752 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.4;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 6px !important;
    box-shadow: none !important;
}

.thbp-ai-manual-link:hover {
    color: #223665 !important;
    background: transparent !important;
    text-decoration: underline;
}

/* LOADING */

.thbp-ai-loading {
    margin-top: 10px;
    background: #f8fafc;
    border: 1px solid var(--thbp-border);
    color: var(--thbp-muted);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thbp-ai-spinner {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid rgba(23, 39, 82, 0.15);
    border-top-color: var(--thbp-navy);
    display: inline-block;
    animation: thbpAiSpin 0.75s linear infinite;
}

@keyframes thbpAiSpin {
    to {
        transform: rotate(360deg);
    }
}

/* FOUND HOTEL */

.thbp-ai-found {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: var(--thbp-blue-soft);
    border: 1px solid #d8e8f7;
    border-radius: 13px;
    padding: 11px;
}

.thbp-ai-found--compact {
    margin-top: 14px;
}

.thbp-ai-found__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--thbp-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    font-weight: 750;
    flex: 0 0 auto;
}

.thbp-ai-found__body strong,
.thbp-ai-modal-hotel strong {
    display: block;
    color: var(--thbp-navy);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 750;
}

.thbp-ai-found__body span,
.thbp-ai-modal-hotel span {
    display: block;
    color: var(--thbp-muted);
    font-size: 12px;
    margin-top: 2px;
}

.thbp-ai-link-btn {
    border: none;
    background: transparent;
    color: var(--thbp-navy);
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
    padding: 4px;
    font-size: 12.5px;
}

/* SMART ESTIMATE CARD */

.thbp-ai-estimate-card--compact {
    padding: 15px;
}

.thbp-ai-estimate-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
}

.thbp-ai-estimate-summary__item {
    background: #f3f7fc;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    padding: 9px 10px;
    min-width: 0;
}

.thbp-ai-estimate-summary__item span {
    display: block;
    color: #7b86a0;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 650;
    margin-bottom: 5px;
}

.thbp-ai-estimate-summary__item strong {
    display: block;
    color: var(--thbp-navy);
    font-size: 14.5px;
    line-height: 1.15;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.thbp-ai-estimate-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--thbp-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.thbp-ai-estimate-source-row > span {
    flex: 1 1 auto;
    min-width: 0;
}

.thbp-ai-estimate-source-row .thbp-ai-link-btn {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    text-align: right;
}

.thbp-ai-modal-summary {
    margin-top: 10px;
    background: #f8fafc;
    border: 1px dashed var(--thbp-border);
    border-radius: 14px;
    padding: 11px 12px;
}

.thbp-ai-modal-summary .thbp-ai-break-row {
    align-items: center;
}

.thbp-ai-modal-summary .thbp-ai-break-row span,
.thbp-ai-modal-summary .thbp-ai-break-row strong {
    min-width: 0;
}

.thbp-ai-modal-summary .thbp-ai-break-row strong {
    overflow-wrap: anywhere;
}

/* ROOM LOOKUP STATUS */

.thbp-ai-room-checking {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--thbp-navy) !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.thbp-ai-room-checking::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 999px;
    border: 2px solid rgba(23, 39, 82, 0.18);
    border-top-color: var(--thbp-gold);
    animation: thbpAiRoomSpin 0.8s linear infinite;
}

@keyframes thbpAiRoomSpin {
    to {
        transform: rotate(360deg);
    }
}

/* FORM */

.thbp-ai-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.thbp-ai-required-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thbp-ai-required-grid .thbp-ai-field:nth-child(3) {
    grid-column: 1 / -1;
}

.thbp-ai-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.thbp-ai-field span {
    color: var(--thbp-navy);
    font-size: 13.25px;
    font-weight: 750;
    line-height: 1.35;
}

.thbp-ai-field em,
.thbp-ai-field small {
    color: #7a8498;
    font-size: 11.85px;
    font-weight: 500;
    font-style: normal;
}

.thbp-ai-advanced-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border: 1px solid var(--thbp-border);
    background: #ffffff;
    color: var(--thbp-navy);
    font-size: 12.85px;
    font-weight: 750;
    cursor: pointer;
    padding: 9px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.thbp-ai-advanced-toggle:hover {
    background: #f3f6fa;
}

.thbp-ai-advanced {
    margin-top: 14px;
    background: var(--thbp-soft);
    border: 1px dashed var(--thbp-border);
    border-radius: 14px;
    padding: 13px;
}

.thbp-ai-action-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.thbp-ai-action-row .thbp-ai-btn {
    min-width: 145px;
}

.thbp-ai-action-row--modal {
    margin-top: 18px;
}

.thbp-ai-action-row--results {
    border-top: 1px solid var(--thbp-border);
    padding-top: 14px;
}

/* RESET */

.thbp-ai-reset-link {
    border: 1px solid #e5e9f1;
    background: #f8fafc;
    color: #172752;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.thbp-ai-reset-link:hover {
    background: #eef2f7;
    border-color: #d8dee9;
    color: #172752;
}

/* MODAL */

.thbp-ai-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(10, 18, 35, 0.58);
}

.thbp-ai-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 35, 0.58);
    backdrop-filter: blur(3px);
}

.thbp-ai-modal__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 44px);
    max-height: calc(100dvh - 44px);
    overflow: auto;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--thbp-modal-shadow);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.thbp-ai-modal__header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--thbp-border);
    padding: 16px 18px 13px;
}

.thbp-ai-modal__header h3 {
    color: var(--thbp-navy);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 5px;
}

.thbp-ai-modal__header p {
    color: var(--thbp-muted);
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0;
}

.thbp-ai-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--thbp-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--thbp-navy);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
}

.thbp-ai-modal__close:hover {
    background: #eef2f7;
}

.thbp-ai-modal__body {
    padding: 16px 18px 18px;
}

.thbp-ai-modal-hotel {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--thbp-blue-soft);
    border: 1px solid #d8e8f7;
    border-radius: 14px;
    padding: 11px 12px;
    margin-bottom: 15px;
}

.thbp-ai-modal-section {
    background: #ffffff;
    border: 1px solid var(--thbp-border);
    border-radius: 16px;
    padding: 15px;
    box-shadow: var(--thbp-shadow);
}

/* RESULTS */

.thbp-ai-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thbp-ai-results--modal {
    margin-top: 14px;
}

.thbp-ai-result-main {
    background: var(--thbp-navy) !important;
    color: #ffffff !important;
    padding: 15px;
    border: none !important;
}

.thbp-ai-result-main span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.thbp-ai-result-main strong {
    display: block;
    color: #ffffff;
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 6px;
}

.thbp-ai-result-main small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12.5px;
    line-height: 1.48;
}

.thbp-ai-result-main--strong {
    background: #14532d !important;
}

.thbp-ai-result-main--moderate {
    background: var(--thbp-navy) !important;
}

.thbp-ai-result-main--risk {
    background: #7f1d1d !important;
}

.thbp-ai-result-main--review {
    background: #3f3f46 !important;
}

.thbp-ai-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.thbp-ai-result-grid > div {
    background: #ffffff;
    border: 1px solid var(--thbp-border);
    border-radius: 14px;
    padding: 13px;
    box-shadow: var(--thbp-shadow);
}

.thbp-ai-result-grid span {
    display: block;
    color: var(--thbp-muted);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 7px;
}

.thbp-ai-result-grid strong {
    color: var(--thbp-navy);
    font-size: 20px;
    font-weight: 800;
}

.thbp-ai-breakdown,
.thbp-ai-insight {
    padding: 14px 15px;
}

.thbp-ai-breakdown {
    background: #ffffff;
    border: 1px solid var(--thbp-border);
    border-radius: 15px;
    box-shadow: var(--thbp-shadow);
    margin-top: 10px;
}

.thbp-ai-insight {
    background: #fffdf8 !important;
    border-color: #e8dcc0 !important;
}

.thbp-ai-insight h3 {
    color: var(--thbp-navy);
    font-size: 14.5px;
    font-weight: 750;
    margin: 0 0 8px;
}

.thbp-ai-insight p {
    color: var(--thbp-text);
    font-size: 13.25px;
    line-height: 1.62;
    margin: 0;
}

.thbp-ai-break-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--thbp-border);
    font-size: 14.5px;
}

.thbp-ai-break-row:last-child {
    border-bottom: none;
}

.thbp-ai-break-row span {
    color: var(--thbp-muted);
    font-size: 14.5px;
}

.thbp-ai-break-row strong {
    color: var(--thbp-text);
    text-align: right;
    font-size: 14.75px;
    font-weight: 750;
}

.thbp-ai-break-row--final strong {
    color: var(--thbp-green);
}

/* TABLET */

@media (max-width: 980px) {
    .thbp-ai-calc {
        max-width: 760px;
        padding-top: 0;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .thbp-ai-calc {
        margin-top: -18px !important;
        padding: 0 12px 34px;
        max-width: 100%;
    }

    .entry-content .thbp-ai-calc {
        margin-top: -18px !important;
    }

    .thbp-ai-calc__main {
        gap: 10px;
    }

    .thbp-ai-card {
        padding: 13px;
        border-radius: 14px;
    }

    .thbp-ai-search-card--hero {
        padding: 15px;
    }
   .thbp-ai-search-row {
    gap: 12px;
   }

  .thbp-ai-manual-row {
    margin-top: 11px;
  }
    .thbp-ai-kicker {
        font-size: 10.5px;
        letter-spacing: 0.07em;
        margin-bottom: 6px;
    }

    .thbp-ai-page-title {
        font-size: 21px;
        line-height: 1.16;
        font-weight: 750;
        letter-spacing: -0.018em;
        margin-bottom: 6px;
    }

    .thbp-ai-card__head {
        margin-bottom: 10px;
    }

    .thbp-ai-card__title {
        font-size: 14.5px;
    }

    .thbp-ai-muted {
        font-size: 12.5px;
        line-height: 1.42;
        margin-bottom: 10px;
    }

    .thbp-ai-small-muted {
        font-size: 12.4px;
        line-height: 1.45;
    }

    .thbp-ai-search-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .thbp-ai-calc .thbp-ai-input {
        font-size: 16px !important;
        min-height: 45px;
        padding: 11px 13px;
    }

    .thbp-ai-calc .thbp-ai-btn,
    .thbp-ai-calc a.thbp-ai-btn,
    .thbp-ai-calc button.thbp-ai-btn {
        min-height: 44px !important;
        font-size: 14px !important;
    }

    .thbp-ai-manual-row {
        margin-top: 7px;
        text-align: left;
    }

    .thbp-ai-manual-link {
        font-size: 12.75px !important;
        padding-left: 0 !important;
    }

    .thbp-ai-loading {
        padding: 9px 10px;
        font-size: 12.5px;
    }

    .thbp-ai-found {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 10px;
        gap: 9px;
    }

    .thbp-ai-found__icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .thbp-ai-found__body strong,
    .thbp-ai-modal-hotel strong {
        font-size: 13.5px;
    }

    .thbp-ai-found__body span,
    .thbp-ai-modal-hotel span {
        font-size: 11.75px;
    }

    .thbp-ai-found .thbp-ai-link-btn {
        font-size: 12px;
        white-space: nowrap;
    }

    .thbp-ai-estimate-card--compact {
        padding: 13px;
    }

    .thbp-ai-estimate-summary {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 11px;
    }

    .thbp-ai-estimate-summary__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 11px;
    }

    .thbp-ai-estimate-summary__item span {
        margin-bottom: 0;
        font-size: 12px;
    }

    .thbp-ai-estimate-summary__item strong {
        font-size: 14.5px;
        text-align: right;
    }

    .thbp-ai-estimate-source-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-top: 9px;
    }

    .thbp-ai-estimate-source-row > span {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12.25px;
        line-height: 1.35;
    }

    .thbp-ai-estimate-source-row .thbp-ai-link-btn {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 12.25px;
        line-height: 1.3;
        white-space: nowrap;
        text-align: right;
    }

    .thbp-ai-calc .thbp-ai-btn--full {
        margin-top: 10px;
    }

    .thbp-ai-modal {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
        background: var(--thbp-page-bg);
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .thbp-ai-modal__overlay {
        background: var(--thbp-page-bg);
        backdrop-filter: none;
    }

    .thbp-ai-modal__panel {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: var(--thbp-page-bg);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .thbp-ai-modal__header {
        padding: 12px 13px 10px;
        background: #ffffff;
    }

    .thbp-ai-modal__header h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .thbp-ai-modal__header p {
        font-size: 12.25px;
        line-height: 1.4;
    }

    .thbp-ai-modal__close {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .thbp-ai-modal__body {
        padding: 11px 12px 20px;
        background: var(--thbp-page-bg);
    }

    .thbp-ai-modal-hotel {
        padding: 10px;
        margin-bottom: 10px;
        background: #ffffff;
        border-radius: 13px;
    }

    .thbp-ai-modal-section {
        padding: 13px;
        border-radius: 14px;
    }

    .thbp-ai-form-grid,
    .thbp-ai-required-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .thbp-ai-required-grid .thbp-ai-field:nth-child(3) {
        grid-column: auto;
    }

    .thbp-ai-field {
        gap: 6px;
    }

    .thbp-ai-field span {
        font-size: 13.5px;
    }

    .thbp-ai-field em,
    .thbp-ai-field small {
        font-size: 11.75px;
    }

    .thbp-ai-advanced-toggle {
        font-size: 12.85px;
        width: 100%;
        min-height: 41px;
        margin-top: 10px;
        padding: 8px 12px;
    }

    .thbp-ai-advanced {
        margin-top: 10px;
        padding: 12px;
        border-radius: 13px;
    }

    .thbp-ai-action-row {
        gap: 8px;
        margin-top: 13px;
    }

    .thbp-ai-action-row .thbp-ai-btn {
        width: 100% !important;
        min-width: 0;
    }

    .thbp-ai-results {
        gap: 10px;
    }

    .thbp-ai-results--modal {
        margin-top: 11px;
    }

    .thbp-ai-result-main {
        padding: 14px 15px;
        border-radius: 14px;
    }

    .thbp-ai-result-main span {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .thbp-ai-result-main strong {
        margin-bottom: 7px;
    }

    .thbp-ai-result-main small {
        font-size: 12.25px;
    }

    .thbp-ai-result-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .thbp-ai-result-grid > div {
        padding: 12px;
        border-radius: 13px;
    }

    .thbp-ai-result-grid span {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .thbp-ai-result-grid strong {
        font-size: 17.5px;
    }

    .thbp-ai-breakdown,
    .thbp-ai-insight {
        padding: 13px;
        border-radius: 14px;
    }

    .thbp-ai-insight h3 {
        font-size: 14.5px;
        margin-bottom: 6px;
    }

    .thbp-ai-insight p {
        font-size: 12.85px;
        line-height: 1.58;
    }

    .thbp-ai-break-row,
    .thbp-ai-break-row span {
        font-size: 13.5px;
    }

    .thbp-ai-break-row {
        gap: 10px;
        padding: 8px 0;
    }

    .thbp-ai-break-row strong {
        font-size: 13.25px;
    }

    .thbp-ai-modal-summary {
        padding: 11px 12px;
        border-radius: 13px;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row {
        align-items: flex-start;
        gap: 10px;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row span {
        flex: 0 0 43%;
        font-size: 12.5px;
        line-height: 1.45;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row strong {
        flex: 1 1 auto;
        font-size: 12.5px;
        line-height: 1.45;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row:last-child strong {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .thbp-ai-reset-link {
        padding: 6px 10px;
        font-size: 11.75px;
    }

    .thbp-ai-room-checking {
        justify-content: flex-start;
        white-space: normal;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .thbp-ai-calc {
        padding-left: 12px;
        padding-right: 12px;
    }

    .thbp-ai-page-title {
        font-size: 22px;
        line-height: 1.17;
    }

    .thbp-ai-search-card--hero,
    .thbp-ai-card {
        padding: 13px;
    }

    .thbp-ai-estimate-card--compact {
        padding: 13px;
    }

    .thbp-ai-result-main strong {
        font-size: 28px;
    }

    .thbp-ai-result-grid {
        grid-template-columns: 1fr;
    }

    .thbp-ai-estimate-summary__item {
        align-items: center;
        flex-direction: row;
    }

    .thbp-ai-estimate-summary__item strong {
        text-align: right;
    }

    .thbp-ai-break-row {
        align-items: flex-start;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row span {
        flex-basis: 41%;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row strong {
        font-size: 12.5px;
    }
}

/* =========================================================
   Compact text cleanup
   Keeps calculator functions unchanged
========================================================= */

.thbp-ai-search-card--hero .thbp-ai-muted {
    max-width: 480px;
}

.thbp-ai-calc .thbp-ai-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.thbp-ai-estimate-source-row,
.thbp-ai-modal-summary,
.thbp-ai-insight p {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .thbp-ai-search-card--hero .thbp-ai-muted {
        max-width: 100%;
    }

    .thbp-ai-page-title {
        max-width: 320px;
    }

    .thbp-ai-intro-text {
        max-width: 320px;
    }

    .thbp-ai-search-row {
        margin-top: 2px;
    }

    .thbp-ai-manual-link {
        text-underline-offset: 2px;
    }

    .thbp-ai-card__head {
        gap: 8px;
    }

    .thbp-ai-estimate-source-row > span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .thbp-ai-modal__header .thbp-ai-kicker {
        margin-bottom: 4px;
    }

    .thbp-ai-modal__header h3 {
        max-width: 250px;
    }

    .thbp-ai-result-main strong {
        font-size: 27px;
    }

    .thbp-ai-insight p {
        line-height: 1.5;
    }
}

@media (max-width: 420px) {
    .thbp-ai-page-title {
        font-size: 20.5px;
    }

    .thbp-ai-calc {
        padding-left: 11px;
        padding-right: 11px;
    }

    .thbp-ai-search-card--hero,
    .thbp-ai-card {
        padding: 13px;
    }

    .thbp-ai-result-main strong {
        font-size: 26px;
    }
}

/* =========================================================
   Result flip view
   Used when Calculate ROI hides the form and shows results
========================================================= */

.thbp-ai-modal__body > .thbp-ai-results--modal {
    margin-top: 0;
}

.thbp-ai-modal__body > .thbp-ai-results--modal:not([hidden]) {
    animation: thbpAiResultFadeIn 0.18s ease-out;
}

@keyframes thbpAiResultFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thbp-ai-results--modal .thbp-ai-result-main {
    border-radius: 17px;
}

.thbp-ai-results--modal .thbp-ai-action-row--results {
    background: transparent;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    margin-top: 4px;
}

@media (min-width: 681px) {
    .thbp-ai-modal__body > .thbp-ai-results--modal {
        max-width: 100%;
    }

    .thbp-ai-results--modal .thbp-ai-result-main {
        padding: 20px 22px;
    }

    .thbp-ai-results--modal .thbp-ai-result-grid > div {
        padding: 16px;
    }
}

@media (max-width: 680px) {
    .thbp-ai-modal__body > .thbp-ai-results--modal {
        margin-top: 0;
    }

    .thbp-ai-results--modal .thbp-ai-result-main {
        padding: 16px;
        border-radius: 15px;
    }

    .thbp-ai-results--modal .thbp-ai-result-main strong {
        font-size: 30px;
    }

    .thbp-ai-results--modal .thbp-ai-insight {
        padding: 13px;
    }

    .thbp-ai-results--modal .thbp-ai-action-row--results {
        padding-top: 12px;
        margin-top: 2px;
    }
}

@media (max-width: 420px) {
    .thbp-ai-results--modal .thbp-ai-result-main strong {
        font-size: 28px;
    }
}

/* =========================================================
   Desktop deal number layout
   Keeps mobile stacked, makes desktop modal shorter
========================================================= */

@media (min-width: 681px) {
    .thbp-ai-required-grid .thbp-ai-field:nth-child(3) {
        grid-column: auto;
    }

    .thbp-ai-required-grid .thbp-ai-field:nth-child(4) {
        grid-column: auto;
    }

    .thbp-ai-modal-section {
        padding-bottom: 14px;
    }
}

/* =========================================================
   THBP AI Calculator Clean Final Launch Styles
   Single consolidated production block. Keep this at the end.
========================================================= */

@media (min-width: 681px) {
    .thbp-ai-calc {
        max-width: 740px;
        font-size: 14.5px;
        line-height: 1.52;
    }

    .thbp-ai-search-card--hero {
        padding: 23px 24px;
    }

    .thbp-ai-page-title {
        font-size: 30px;
        line-height: 1.18;
        font-weight: 760;
        letter-spacing: -0.025em;
    }

    .thbp-ai-muted,
    .thbp-ai-intro-text {
        font-size: 15.25px;
        line-height: 1.55;
    }

    .thbp-ai-calc .thbp-ai-input {
        min-height: 50px;
        font-size: 16px !important;
        border-radius: 13px;
    }

    .thbp-ai-calc .thbp-ai-btn,
    .thbp-ai-calc a.thbp-ai-btn,
    .thbp-ai-calc button.thbp-ai-btn {
        min-height: 48px !important;
        font-size: 15.5px !important;
        font-weight: 730 !important;
        border-radius: 13px !important;
    }

    .thbp-ai-estimate-summary__item strong {
        font-size: 18px;
        font-weight: 760;
    }

    .thbp-ai-break-row,
    .thbp-ai-break-row span {
        font-size: 15px;
    }

    .thbp-ai-break-row strong {
        font-size: 15.25px;
        font-weight: 720;
    }
}

@media (max-width: 680px) {
    .thbp-ai-calc {
        font-size: 14.25px !important;
        line-height: 1.48 !important;
        margin-top: -16px !important;
        padding: 0 13px 34px !important;
        max-width: 100%;
    }

    .entry-content .thbp-ai-calc {
        margin-top: -16px !important;
    }

    .thbp-ai-calc__main {
        gap: 10px;
    }

    .thbp-ai-card,
    .thbp-ai-estimate-card--compact {
        padding: 15px !important;
        border-radius: 15px !important;
    }

    .thbp-ai-search-card--hero {
        padding: 18px 15px 17px !important;
        border-radius: 15px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-kicker,
    .thbp-ai-kicker {
        font-size: 10.25px !important;
        line-height: 1.28 !important;
        letter-spacing: 0.07em !important;
        margin-bottom: 8px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-page-title,
    .thbp-ai-page-title {
        font-size: 19.75px !important;
        line-height: 1.24 !important;
        font-weight: 740 !important;
        letter-spacing: -0.01em !important;
        margin-bottom: 10px !important;
        max-width: 100% !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-muted,
    .thbp-ai-search-card--hero .thbp-ai-intro-text,
    .thbp-ai-muted,
    .thbp-ai-intro-text {
        font-size: 13.75px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
        max-width: 100% !important;
    }

    .thbp-ai-card__head {
        gap: 8px;
        margin-bottom: 10px;
    }

    .thbp-ai-card__title {
        font-size: 15.5px !important;
        line-height: 1.32 !important;
        font-weight: 740 !important;
    }

    .thbp-ai-small-muted {
        font-size: 13.25px !important;
        line-height: 1.5 !important;
    }

    .thbp-ai-search-row {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        margin-top: 0 !important;
    }

    .thbp-ai-calc .thbp-ai-input {
        min-height: 47px !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        padding: 11px 13px !important;
        border-radius: 12px !important;
    }

    .thbp-ai-calc .thbp-ai-btn,
    .thbp-ai-calc a.thbp-ai-btn,
    .thbp-ai-calc button.thbp-ai-btn {
        min-height: 44px !important;
        font-size: 14.1px !important;
        line-height: 1.2 !important;
        font-weight: 710 !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
    }

    .thbp-ai-manual-row {
        margin-top: 13px !important;
        text-align: left !important;
    }

    .thbp-ai-manual-link,
    .thbp-ai-link-btn {
        font-size: 13.25px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        text-underline-offset: 2px !important;
        padding-left: 0 !important;
    }

    .thbp-ai-loading {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.45;
        border-radius: 12px;
    }

    .thbp-ai-found {
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        padding: 11px !important;
        gap: 9px !important;
        border-radius: 14px !important;
    }

    .thbp-ai-found__icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        font-size: 14.5px !important;
    }

    .thbp-ai-found__body strong,
    .thbp-ai-modal-hotel strong {
        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 740 !important;
    }

    .thbp-ai-found__body span,
    .thbp-ai-modal-hotel span {
        font-size: 12.25px !important;
        line-height: 1.42 !important;
    }

    .thbp-ai-found .thbp-ai-link-btn {
        font-size: 12.75px !important;
        white-space: nowrap;
    }

    .thbp-ai-estimate-summary {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .thbp-ai-estimate-summary__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 48px !important;
        padding: 9px 11px !important;
        border-radius: 12px !important;
    }

    .thbp-ai-estimate-summary__item span {
        margin-bottom: 0;
        font-size: 13.1px !important;
        line-height: 1.35 !important;
        font-weight: 650 !important;
    }

    .thbp-ai-estimate-summary__item strong {
        font-size: 16.5px !important;
        line-height: 1.25 !important;
        font-weight: 740 !important;
        text-align: right;
    }

    .thbp-ai-estimate-source-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .thbp-ai-estimate-source-row,
    .thbp-ai-estimate-source-row > span {
        font-size: 13.25px !important;
        line-height: 1.45 !important;
    }

    .thbp-ai-estimate-source-row > span {
        flex: 1 1 auto;
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .thbp-ai-estimate-source-row .thbp-ai-link-btn {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 13.25px !important;
        font-weight: 700 !important;
        white-space: nowrap;
        text-align: right;
    }

    .thbp-ai-calc .thbp-ai-btn--full {
        min-height: 44px !important;
        margin-top: 10px !important;
    }

    .thbp-ai-modal {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
        background: var(--thbp-page-bg);
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .thbp-ai-modal__overlay {
        background: var(--thbp-page-bg);
        backdrop-filter: none;
    }

    .thbp-ai-modal__panel {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: var(--thbp-page-bg);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .thbp-ai-modal__header {
        padding: 12px 13px 10px;
        background: #ffffff;
    }

    .thbp-ai-modal__header h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .thbp-ai-modal__header p {
        font-size: 12.25px;
        line-height: 1.4;
    }

    .thbp-ai-modal__close {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .thbp-ai-modal__body {
        padding: 11px 12px 20px;
        background: var(--thbp-page-bg);
    }

    .thbp-ai-modal-hotel {
        padding: 10px;
        margin-bottom: 10px;
        background: #ffffff;
        border-radius: 13px;
    }

    .thbp-ai-modal-section {
        padding: 13px;
        border-radius: 14px;
    }

    .thbp-ai-form-grid,
    .thbp-ai-required-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .thbp-ai-required-grid .thbp-ai-field:nth-child(3) {
        grid-column: auto;
    }

    .thbp-ai-field {
        gap: 6px;
    }

    .thbp-ai-field span {
        font-size: 13.5px;
    }

    .thbp-ai-field em,
    .thbp-ai-field small {
        font-size: 11.75px;
    }

    .thbp-ai-advanced-toggle {
        font-size: 12.85px;
        width: 100%;
        min-height: 41px;
        margin-top: 10px;
        padding: 8px 12px;
    }

    .thbp-ai-advanced {
        margin-top: 10px;
        padding: 12px;
        border-radius: 13px;
    }

    .thbp-ai-action-row {
        gap: 8px;
        margin-top: 13px;
    }

    .thbp-ai-action-row .thbp-ai-btn {
        width: 100% !important;
        min-width: 0;
    }

    .thbp-ai-results {
        gap: 10px;
    }

    .thbp-ai-results--modal {
        margin-top: 11px;
    }

    .thbp-ai-result-main {
        padding: 14px 15px;
        border-radius: 14px;
    }

    .thbp-ai-result-main span {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .thbp-ai-result-main strong,
    .thbp-ai-results--modal .thbp-ai-result-main strong {
        font-size: 29px !important;
        margin-bottom: 7px;
    }

    .thbp-ai-result-main small {
        font-size: 12.25px;
    }

    .thbp-ai-result-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .thbp-ai-result-grid > div {
        padding: 12px;
        border-radius: 13px;
    }

    .thbp-ai-result-grid span {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .thbp-ai-result-grid strong {
        font-size: 17.5px;
    }

    .thbp-ai-breakdown,
    .thbp-ai-insight {
        padding: 13px;
        border-radius: 14px;
    }

    .thbp-ai-insight h3 {
        font-size: 14.5px;
        margin-bottom: 6px;
    }

    .thbp-ai-insight p {
        font-size: 13.75px !important;
        line-height: 1.6 !important;
    }

    .thbp-ai-modal-summary {
        padding: 11px 12px !important;
        border-radius: 14px !important;
        margin-top: 10px !important;
    }

    .thbp-ai-break-row,
    .thbp-ai-break-row span {
        font-size: 13.85px !important;
        line-height: 1.45 !important;
    }

    .thbp-ai-break-row {
        padding: 8.5px 0 !important;
        gap: 10px !important;
    }

    .thbp-ai-break-row strong {
        font-size: 14.1px !important;
        line-height: 1.45 !important;
        font-weight: 700 !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row {
        align-items: center;
        gap: 10px;
        padding: 8.5px 0 !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row span {
        flex: 0 0 40% !important;
        font-size: 13.85px !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row strong {
        flex: 1 1 auto;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row:last-child {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row:last-child span {
        flex: 0 0 31% !important;
        width: auto;
        font-size: 13.75px !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row:last-child strong {
        flex: 1 1 auto;
        width: auto;
        font-size: 13.45px !important;
        font-weight: 700 !important;
        text-align: right;
    }

    .thbp-ai-room-checking {
        justify-content: flex-start;
        white-space: normal;
        text-align: left;
        font-size: 13.85px !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 420px) {
    .thbp-ai-calc {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .thbp-ai-search-card--hero,
    .thbp-ai-card,
    .thbp-ai-estimate-card--compact {
        padding: 14px !important;
    }

    .thbp-ai-page-title {
        font-size: 19.25px !important;
    }

    .thbp-ai-muted,
    .thbp-ai-intro-text {
        font-size: 13.35px !important;
    }

    .thbp-ai-estimate-summary__item strong {
        font-size: 16px !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row span,
    .thbp-ai-modal-summary .thbp-ai-break-row strong {
        font-size: 13.65px !important;
    }

    .thbp-ai-modal-summary .thbp-ai-break-row:last-child strong {
        font-size: 13.25px !important;
    }

    .thbp-ai-result-main strong,
    .thbp-ai-results--modal .thbp-ai-result-main strong {
        font-size: 28px !important;
    }
}

/* =========================================================
   THBP AI Calculator Result Loader Box Polish
   Shows a calm progress box above the buttons and keeps button text stable.
========================================================= */

.thbp-ai-calc-progress {
    margin-top: 14px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid var(--thbp-border);
    color: var(--thbp-muted);
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 9px;
}

.thbp-ai-calc-progress[hidden] {
    display: none !important;
}

.thbp-ai-calc-progress .thbp-ai-spinner {
    flex: 0 0 15px;
}

.thbp-ai-calc-progress__text {
    display: inline-block;
    color: var(--thbp-muted);
}

.thbp-ai-calc .thbp-ai-btn--calculating {
    opacity: 0.78;
    cursor: not-allowed !important;
}

.thbp-ai-calc .thbp-ai-btn--calculating::before,
.thbp-ai-calc .thbp-ai-btn--calculating::after {
    content: none !important;
    display: none !important;
}

.thbp-ai-results--ready {
    animation: thbpAiResultReady 0.28s ease-out;
}

@keyframes thbpAiResultReady {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 680px) {
    .thbp-ai-calc-progress {
        margin-top: 12px;
        margin-bottom: 9px;
        padding: 11px 13px;
        border-radius: 12px;
        font-size: 13.5px;
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thbp-ai-results--ready {
        animation: none !important;
    }
}

@media (max-width: 680px) {
    .thbp-ai-search-row {
        gap: 20px !important;
    }
}
/* =========================================================
   THBP AI Calculator Final Mobile UX Polish
   Wider readable search card, balanced spacing, SaaS-style mobile rhythm.
   Keep this block at the end of the file.
========================================================= */

@media (max-width: 680px) {
    .thbp-ai-calc {
        width: 100% !important;
        max-width: 680px !important;
        margin-top: -12px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 38px !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .entry-content .thbp-ai-calc {
        margin-top: -12px !important;
    }

    .thbp-ai-calc__main,
    .thbp-ai-calc__main--single {
        gap: 18px !important;
    }

    .thbp-ai-card,
    .thbp-ai-estimate-card--compact,
    .thbp-ai-results > div {
        border-radius: 18px !important;
    }

    .thbp-ai-card,
    .thbp-ai-estimate-card--compact {
        padding: 18px !important;
    }

    .thbp-ai-search-card--hero {
        width: 100% !important;
        padding: 24px 21px 22px !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 38px rgba(23, 39, 82, 0.08) !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-kicker,
    .thbp-ai-kicker {
        font-size: 12px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.075em !important;
        margin-bottom: 13px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-page-title,
    .thbp-ai-page-title {
        font-size: 28px !important;
        line-height: 1.14 !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-muted,
    .thbp-ai-search-card--hero .thbp-ai-intro-text,
    .thbp-ai-muted,
    .thbp-ai-intro-text {
        font-size: 16px !important;
        line-height: 1.58 !important;
        margin-bottom: 24px !important;
        max-width: 100% !important;
    }

    .thbp-ai-search-row {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        margin-top: 0 !important;
    }

    .thbp-ai-calc .thbp-ai-input {
        min-height: 58px !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        padding: 15px 17px !important;
        border-radius: 16px !important;
        border-width: 1.5px !important;
    }

    .thbp-ai-calc .thbp-ai-input::placeholder {
        font-size: 16px !important;
    }

    .thbp-ai-calc .thbp-ai-btn,
    .thbp-ai-calc a.thbp-ai-btn,
    .thbp-ai-calc button.thbp-ai-btn {
        min-height: 56px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 760 !important;
        padding: 14px 18px !important;
        border-radius: 16px !important;
    }

    .thbp-ai-manual-row {
        margin-top: 20px !important;
        text-align: left !important;
    }

    .thbp-ai-manual-link,
    .thbp-ai-link-btn {
        font-size: 15px !important;
        line-height: 1.45 !important;
        font-weight: 720 !important;
        text-underline-offset: 3px !important;
    }

    .thbp-ai-loading,
    .thbp-ai-calc-progress {
        margin-top: 16px !important;
        margin-bottom: 12px !important;
        padding: 13px 14px !important;
        border-radius: 14px !important;
        font-size: 14.25px !important;
        line-height: 1.5 !important;
    }

    .thbp-ai-found {
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        gap: 11px !important;
        padding: 13px !important;
        border-radius: 16px !important;
        margin-top: 14px !important;
    }

    .thbp-ai-found__icon {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
    }

    .thbp-ai-found__body strong,
    .thbp-ai-modal-hotel strong {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .thbp-ai-found__body span,
    .thbp-ai-modal-hotel span {
        font-size: 13.25px !important;
        line-height: 1.45 !important;
    }

    .thbp-ai-card__head {
        margin-bottom: 14px !important;
    }

    .thbp-ai-card__title {
        font-size: 17px !important;
        line-height: 1.3 !important;
        font-weight: 770 !important;
    }

    .thbp-ai-small-muted {
        font-size: 14.25px !important;
        line-height: 1.55 !important;
    }

    .thbp-ai-estimate-summary {
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .thbp-ai-estimate-summary__item {
        min-height: 54px !important;
        padding: 11px 13px !important;
        border-radius: 14px !important;
    }

    .thbp-ai-estimate-summary__item span {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .thbp-ai-estimate-summary__item strong {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .thbp-ai-estimate-source-row,
    .thbp-ai-estimate-source-row > span,
    .thbp-ai-estimate-source-row .thbp-ai-link-btn {
        font-size: 14.25px !important;
        line-height: 1.45 !important;
    }

    .thbp-ai-calc .thbp-ai-btn--full {
        min-height: 56px !important;
        margin-top: 16px !important;
    }

    .thbp-ai-modal__header {
        padding: 16px 16px 13px !important;
    }

    .thbp-ai-modal__header h3 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .thbp-ai-modal__header p {
        font-size: 14px !important;
        line-height: 1.48 !important;
    }

    .thbp-ai-modal__body {
        padding: 15px 14px 24px !important;
    }

    .thbp-ai-modal-hotel,
    .thbp-ai-modal-section {
        border-radius: 16px !important;
    }

    .thbp-ai-modal-section {
        padding: 16px !important;
    }

    .thbp-ai-form-grid,
    .thbp-ai-required-grid {
        gap: 14px !important;
    }

    .thbp-ai-field {
        gap: 7px !important;
    }

    .thbp-ai-field span {
        font-size: 14.5px !important;
        line-height: 1.35 !important;
    }

    .thbp-ai-field em,
    .thbp-ai-field small {
        font-size: 12.75px !important;
        line-height: 1.42 !important;
    }

    .thbp-ai-advanced-toggle {
        min-height: 48px !important;
        margin-top: 14px !important;
        font-size: 14px !important;
        border-radius: 999px !important;
    }

    .thbp-ai-action-row {
        gap: 11px !important;
        margin-top: 17px !important;
    }

    .thbp-ai-results,
    .thbp-ai-results--modal {
        gap: 14px !important;
    }

    .thbp-ai-result-main,
    .thbp-ai-results--modal .thbp-ai-result-main {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .thbp-ai-result-main span {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    .thbp-ai-result-main strong,
    .thbp-ai-results--modal .thbp-ai-result-main strong {
        font-size: 34px !important;
        line-height: 1 !important;
        margin-bottom: 9px !important;
    }

    .thbp-ai-result-main small {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .thbp-ai-result-grid {
        gap: 11px !important;
    }

    .thbp-ai-result-grid > div {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .thbp-ai-result-grid span {
        font-size: 11.75px !important;
    }

    .thbp-ai-result-grid strong {
        font-size: 19px !important;
    }

    .thbp-ai-breakdown,
    .thbp-ai-insight {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .thbp-ai-insight h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .thbp-ai-insight p {
        font-size: 14.5px !important;
        line-height: 1.62 !important;
    }

    .thbp-ai-break-row,
    .thbp-ai-break-row span,
    .thbp-ai-break-row strong {
        font-size: 14.5px !important;
        line-height: 1.5 !important;
    }

    .thbp-ai-break-row {
        padding: 10px 0 !important;
    }
}

@media (max-width: 420px) {
    .thbp-ai-calc {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .thbp-ai-search-card--hero {
        padding: 22px 18px 21px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-page-title,
    .thbp-ai-page-title {
        font-size: 25.5px !important;
        line-height: 1.15 !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-muted,
    .thbp-ai-search-card--hero .thbp-ai-intro-text,
    .thbp-ai-muted,
    .thbp-ai-intro-text {
        font-size: 15.25px !important;
        line-height: 1.58 !important;
    }

    .thbp-ai-search-row {
        gap: 19px !important;
    }

    .thbp-ai-calc .thbp-ai-input {
        min-height: 56px !important;
        padding: 14px 15px !important;
    }

    .thbp-ai-calc .thbp-ai-btn,
    .thbp-ai-calc a.thbp-ai-btn,
    .thbp-ai-calc button.thbp-ai-btn {
        min-height: 54px !important;
        font-size: 15.5px !important;
    }

    .thbp-ai-result-main strong,
    .thbp-ai-results--modal .thbp-ai-result-main strong {
        font-size: 31px !important;
    }
}

@media (max-width: 360px) {
    .thbp-ai-search-card--hero .thbp-ai-page-title,
    .thbp-ai-page-title {
        font-size: 23.5px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-muted,
    .thbp-ai-search-card--hero .thbp-ai-intro-text,
    .thbp-ai-muted,
    .thbp-ai-intro-text {
        font-size: 14.5px !important;
    }
}

/* =========================================================
   THBP AI Calculator Final Live Mobile Balance
   Final adjustment: smaller search title + cleaner vertical spacing.
   Result screens keep their current readable sizing.
========================================================= */

@media (max-width: 680px) {
    .thbp-ai-search-card--hero .thbp-ai-kicker {
        margin-bottom: 15px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-page-title {
        font-size: 25px !important;
        line-height: 1.18 !important;
        font-weight: 780 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 18px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-muted,
    .thbp-ai-search-card--hero .thbp-ai-intro-text {
        margin-bottom: 28px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-search-row {
        gap: 24px !important;
    }

    .thbp-ai-search-card--hero .thbp-ai-manual-row {
        margin-top: 22px !important;
    }
}

@media (max-width: 420px) {
    .thbp-ai-search-card--hero .thbp-ai-page-title {
        font-size: 23.5px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 360px) {
    .thbp-ai-search-card--hero .thbp-ai-page-title {
        font-size: 22.5px !important;
    }
}
