/* =========================================================
   OFFICEBROKER SHORTLIST
   v0.1.13
   Scoped styles only. No Contact Form 7 selectors.
   ========================================================= */

/* ---------------------------------------------------------
   Core / accessibility
   --------------------------------------------------------- */

#obsl-root {
    font-family: inherit;
}

body.obsl-no-scroll {
    overflow: hidden;
}

.obsl-modal[hidden],
.obsl-launcher[hidden],
.obsl-toast[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------
   Shortlist launcher
   --------------------------------------------------------- */

.obsl-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99990;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 18px;
    border: 0;
    border-radius: 999px;

    background: #111;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);

    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.obsl-launcher:hover {
    transform: translateY(-1px);
}

/* Keep the launcher heart monochrome and deliberately muted. */
.obsl-heart {
    color: #a7a7a7;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1;
}

.obsl-count {
    min-width: 23px;
    height: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #e5e5e5;
    color: #555;

    font-size: 12px;
    line-height: 1;
}

/* ---------------------------------------------------------
   Modal
   --------------------------------------------------------- */

.obsl-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;
}

.obsl-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.obsl-dialog {
    position: relative;
    z-index: 1;

    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);

    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    padding: 34px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .25);
}

.obsl-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;

    width: 38px;
    height: 38px;

    border: 0;
    background: transparent;

    color: #555;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.obsl-kicker {
    margin-bottom: 7px;

    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.obsl-dialog h2 {
    margin: 0 40px 8px 0;
    font-size: 27px;
    line-height: 1.15;
}

.obsl-intro {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.45;
}

/* ---------------------------------------------------------
   Shortlisted offices
   --------------------------------------------------------- */

.obsl-items {
    display: grid;
    gap: 10px;
}

.obsl-items:empty {
    display: none;
}

.obsl-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px;

    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.obsl-item-image {
    width: 76px;
    height: 58px;
    flex: none;

    object-fit: cover;
    border-radius: 6px;
}

.obsl-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f3f3;
    color: #777;
    font-size: 9px;
}

.obsl-item-main {
    min-width: 0;
    flex: 1;
}

.obsl-item-title {
    color: #222;
    font-weight: 700;
    text-decoration: none;
}

.obsl-item-meta {
    margin-top: 3px;
    color: #777;
    font-size: 13px;
}

.obsl-remove {
    width: 34px;
    height: 34px;
    flex: none;

    border: 0;
    background: transparent;

    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.obsl-empty {
    display: grid;
    gap: 6px;

    padding: 30px 10px;

    color: #666;
    text-align: center;
}

.obsl-empty.obsl-is-hidden {
    display: none !important;
}

.obsl-empty-icon {
    color: #aaa;
    font-size: 35px;
}

.obsl-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    margin-top: 20px;
}

.obsl-primary,
.obsl-secondary {
    min-height: 44px;

    padding: 11px 16px;
    box-sizing: border-box;

    border-radius: 7px;

    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.obsl-primary {
    border: 0;
    background: #111;
    color: #fff;
}

.obsl-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.obsl-secondary {
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #222;
}

/* ---------------------------------------------------------
   Enquiry form
   --------------------------------------------------------- */

.obsl-form-summary {
    margin: 0 0 16px;
    padding: 12px 15px;

    border-radius: 8px;
    background: #f7f7f7;
}

.obsl-form-summary strong {
    display: block;
    margin-bottom: 6px;
}

.obsl-form-summary ul {
    margin: 0;
    padding-left: 20px;
}

.obsl-form-summary li {
    margin: 3px 0;
}

.obsl-loading {
    display: block;
    margin-top: 4px;
    color: #777;
}

.obsl-enquiry-form {
    margin: 0;
    padding: 0;
}

/* Each field is self-contained and does not rely on theme/CF7 <p> rules. */
.obsl-form-field {
    margin: 0 0 14px;
}

.obsl-form-field label {
    display: block;
    margin: 0 0 6px;

    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.obsl-form-field input,
.obsl-form-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 11px 13px;

    border: 1px solid #d8d8d8;
    border-radius: 2px;

    background: #fff;
    color: #222;

    font: inherit;
    font-size: 16px;
    line-height: 1.35;

    outline: none;
}

.obsl-form-field input {
    height: 48px;
}

.obsl-form-field textarea {
    min-height: 86px;
    height: 86px;
    resize: vertical;
}

.obsl-form-field input:focus,
.obsl-form-field textarea:focus {
    border-color: #888;
    box-shadow: 0 0 0 1px #888;
}

/* ---------------------------------------------------------
   Enquiry type
   --------------------------------------------------------- */

.obsl-enquiry-type {
    margin: 4px 0 14px;
    padding: 0;
    border: 0;
}

.obsl-enquiry-type legend {
    margin: 0 0 8px;
    padding: 0;

    color: #222;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.obsl-enquiry-type label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 0 18px 5px 0;

    color: #333;
    font-size: 16px;
    line-height: 1.3;

    cursor: pointer;
}

.obsl-enquiry-type input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 0;
}

/* ---------------------------------------------------------
   Terms / honeypot / submission
   --------------------------------------------------------- */

.obsl-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin: 4px 0 12px;

    color: #333;
    font-size: 15px;
    line-height: 1.35;

    cursor: pointer;
}

.obsl-terms input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 1px 0 0;
}

.obsl-terms a {
    text-decoration: underline;
}

.obsl-honeypot {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    opacity: 0 !important;
}

.obsl-form-status {
    min-height: 0;
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.4;
}

.obsl-form-status.is-error {
    color: #a00000;
}

.obsl-form-status.is-sending {
    color: #666;
}

.obsl-submit {
    display: block;
    width: 100%;
    min-height: 50px;

    padding: 12px 20px;

    border: 0;
    border-radius: 4px;

    background: #000;
    color: #fff;

    font: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.obsl-submit:disabled {
    opacity: .55;
    cursor: wait;
}

/* ---------------------------------------------------------
   Success message
   --------------------------------------------------------- */

.obsl-success {
    padding: 20px 0 4px;
    text-align: center;
}

.obsl-success-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;
    background: #111;
    color: #fff;

    font-size: 24px;
}

.obsl-success h3 {
    margin: 0 0 5px;
    font-size: 22px;
}

.obsl-success p {
    margin: 0 auto 18px;
    color: #666;
}

.obsl-success .obsl-secondary {
    min-width: 120px;
}

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

.obsl-toast {
    position: fixed;
    right: 24px;
    bottom: 82px;
    z-index: 100000;

    padding: 11px 15px;

    border-radius: 7px;
    background: #111;
    color: #fff;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

/* ---------------------------------------------------------
   Existing Elated theme heart
   IMPORTANT:
   We do NOT replace the icon, outline it, resize it or change
   its pseudo-element. The theme controls the normal state.
   When shortlisted, we only change the colour to black.
   --------------------------------------------------------- */

a.eltd-like.obsl-shortlisted,
a.eltd-like.obsl-shortlisted i.icon_heart,
a.eltd-like.obsl-shortlisted i.icon_heart:before {
    color: #111 !important;
}

/* No styling is applied to the unchecked state. */

/* ---------------------------------------------------------
   Listing heart action label
   --------------------------------------------------------- */

/*
 * The Elated theme remains responsible for the heart itself.
 * We only add a small text cue beside it so first-time visitors
 * understand what the heart does.
 */
a.eltd-like::after {
    content: "Add to shortlist";
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    color: #111;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

a.eltd-like.obsl-shortlisted::after {
    content: "Added to shortlist";
}

@media (max-width: 600px) {
    a.eltd-like::after {
        margin-left: 6px;
        font-size: 13px;
    }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {
    .obsl-launcher {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 13px 16px;
    }

    .obsl-modal {
        align-items: center;
        padding: 10px;
    }

    .obsl-dialog {
        width: 100%;
        max-width: 640px;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);

        padding: 24px 18px 18px;
        border-radius: 14px;
    }

    .obsl-close {
        top: 7px;
        right: 8px;
    }

    .obsl-dialog h2 {
        margin-right: 38px;
        font-size: 26px;
    }

    .obsl-intro {
        margin-bottom: 16px;
    }

    .obsl-actions {
        flex-direction: column-reverse;
        margin-top: 16px;
    }

    .obsl-primary,
    .obsl-secondary {
        width: 100%;
    }

    .obsl-item {
        gap: 10px;
        padding: 9px;
    }

    .obsl-item-image {
        width: 62px;
        height: 52px;
    }

    .obsl-item-meta {
        font-size: 12px;
    }

    .obsl-form-summary {
        margin-bottom: 12px;
        padding: 11px 13px;
    }

    .obsl-form-field {
        margin-bottom: 12px;
    }

    .obsl-form-field label {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .obsl-form-field input {
        height: 46px;
        padding: 10px 12px;
    }

    .obsl-form-field textarea {
        min-height: 76px;
        height: 76px;
    }

    .obsl-enquiry-type {
        margin: 2px 0 10px;
    }

    .obsl-enquiry-type legend {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .obsl-enquiry-type label {
        display: flex;
        margin: 0 0 5px;
        font-size: 16px;
    }

    .obsl-terms {
        margin: 4px 0 10px;
    }

    .obsl-submit {
        min-height: 48px;
    }
}
