/* =========================================================
   Auth Modal – Register / Login / Verify on property page
   ========================================================= */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: var(--ehl-white);
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ehl-text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.auth-modal-close:hover {
    color: var(--ehl-text);
    background: var(--ehl-border);
}

.auth-modal-body {
    padding: 32px 28px 28px;
}

.auth-modal-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ehl-text);
    margin-bottom: 6px;
}

.auth-modal-body .card-desc {
    font-size: 0.88rem;
    color: var(--ehl-text-sec);
    line-height: 1.5;
    margin-bottom: 22px;
}

.auth-modal-body .form-field {
    margin-bottom: 16px;
}

.auth-modal-body .form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ehl-text);
    margin-bottom: 5px;
}

.auth-modal-body .form-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ehl-border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--ehl-text);
    outline: none;
    transition: border-color 0.2s;
}

.auth-modal-body .form-field input:focus {
    border-color: var(--ehl-blue);
    box-shadow: 0 0 0 3px rgba(32, 158, 187, 0.1);
}

.auth-modal-body .form-field input::placeholder {
    color: var(--ehl-text-light);
}

.auth-modal-body .field-hint {
    font-size: 0.78rem;
    color: var(--ehl-text-light);
    margin-top: 4px;
}

.auth-modal-body .code-input-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0 6px;
}

.auth-modal-body .code-input-wrapper input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.auth-modal-body .code-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ehl-text-light);
    margin-bottom: 16px;
}

.auth-modal-body .btn-member {
    width: 100%;
    padding: 12px 28px;
    background: var(--ehl-blue);
    color: var(--ehl-white);
    border: none;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}

.auth-modal-body .btn-member:hover {
    background: var(--ehl-blue-dark);
}

.auth-modal-body .btn-member:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-modal-body .member-msg {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.86rem;
    margin-bottom: 14px;
    line-height: 1.5;
    display: none;
}

.auth-modal-body .member-msg-error {
    background: #fdf0ef;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    display: block;
}

.auth-modal-body .member-msg-success {
    background: #eafaf1;
    color: #1a7a4c;
    border: 1px solid #b7ebd0;
    display: block;
}

.auth-modal-body .card-divider {
    text-align: center;
    font-size: 0.84rem;
    color: var(--ehl-text-light);
    margin-top: 18px;
}

.auth-modal-body .card-divider a {
    color: var(--ehl-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.auth-modal-body .card-divider a:hover {
    text-decoration: underline;
}

.auth-modal-body .resend-row {
    text-align: center;
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--ehl-text-light);
}

.auth-modal-body .resend-row button {
    display: inline;
    color: var(--ehl-blue);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.auth-modal-body .resend-row button:hover {
    text-decoration: underline;
}

.auth-modal-body .resend-row button:disabled {
    color: var(--ehl-text-light);
    cursor: not-allowed;
}

/* Sign-in as link-style button in gate overlays */
.content-gate-signin .btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--ehl-blue);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.content-gate-signin .btn-link:hover {
    text-decoration: underline;
}

/* Make gate placeholders clickable */
.gated-price-placeholder.js-auth-open,
button.gated-price-placeholder {
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.gated-price-placeholder.js-auth-open:hover,
button.gated-price-placeholder:hover {
    background: rgba(32, 158, 187, 0.2);
    border-color: var(--ehl-blue-dark);
}

button.gated-price-placeholder,
button.content-gate-cta {
    font-family: inherit;
}

/* --- Hero price: blurred price + clickable gate text to the right --- */
.detail-price--gated {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-price-blurred {
    display: inline-block;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    font-size: inherit;
    font-weight: inherit;
    color: var(--ehl-blue);
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.detail-price--gated .detail-price-gate-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ehl-blue-dark);
    line-height: 1.4;
    background: var(--ehl-white);
    border: 1px solid var(--ehl-blue);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.detail-price--gated .detail-price-gate-text:hover {
    color: var(--ehl-blue);
    background: rgba(32, 158, 187, 0.08);
    border-color: var(--ehl-blue-dark);
}

.detail-price--gated .detail-price-gate-text svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .auth-modal-body .code-input-wrapper input {
        width: 42px;
        height: 48px;
        font-size: 1.2rem;
    }
}
