/* "Claim this business" — listing-header badge/link plus the claim page.
   Loaded only on single ertekelem_place pages and on the claim page itself.

   Two rules here are load-bearing because of the existing hero markup:
   1. .ek-business-overlay sets pointer-events:none, so every interactive element inside
      it must opt back in — without pointer-events:auto the claim link cannot be clicked
      and its hover tooltip never fires. (The existing rating link does the same.)
   2. .ek-business-hero sets overflow:hidden, so the tooltip opens upwards. */

/* ---------------------------------------------------- listing header: entry point */

.ek-claim-badge,
.ek-claim-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 2px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    pointer-events: auto;
}

.ek-claim-cta {
    border: 1px solid rgba(255, 255, 255, .9);
    background: #fff;
    color: #0b3475;
}

.ek-claim-cta:hover,
.ek-claim-cta:focus-visible {
    background: #eaf2ff;
    color: #0b3475;
}

.ek-claim-badge.is-claimed {
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.ek-claim-badge.is-claimed.is-owner:hover,
.ek-claim-badge.is-claimed.is-owner:focus-visible {
    background: rgba(255, 255, 255, .3);
    color: #fff;
}

.ek-claim-badge.is-pending {
    border: 1px solid rgba(255, 214, 102, .55);
    background: rgba(214, 158, 46, .28);
    color: #fff5d6;
}

.ek-claim-badge:focus-visible,
.ek-claim-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .75);
    outline-offset: 2px;
}

/* Tooltip: opens upwards to stay inside the hero's overflow:hidden box. */
.ek-claim-tip {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 10px);
    left: 0;
    width: max-content;
    max-width: min(320px, 78vw);
    padding: 10px 12px;
    border-radius: 10px;
    background: #0b1b34;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    text-shadow: none;
    box-shadow: 0 14px 34px rgba(3, 12, 27, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}

.ek-claim-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 18px;
    border: 7px solid transparent;
    border-top-color: #0b1b34;
}

.ek-claim-badge:hover .ek-claim-tip,
.ek-claim-badge:focus-visible .ek-claim-tip,
.ek-claim-cta:hover .ek-claim-tip,
.ek-claim-cta:focus-visible .ek-claim-tip {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------- the claim page */

.ek-claim-page {
    max-width: 820px;
    color: #12213b;
}

.ek-claim-kicker {
    margin: 0 0 6px;
    color: #1769e0;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ek-claim-intro-block h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 12px;
}

.ek-claim-lead {
    color: #4b5768;
    font-size: 1.06rem;
    margin: 0 0 8px;
}

.ek-claim-benefits,
.ek-claim-steps,
.ek-claim-action {
    margin-top: 34px;
}

.ek-claim-benefits h2,
.ek-claim-steps h2,
.ek-claim-action h2 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0 0 14px;
}

.ek-claim-benefits ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ek-claim-benefits li {
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    background: #fff;
    padding: 16px 18px;
}

.ek-claim-benefits strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.ek-claim-benefits span {
    color: #5b6779;
    font-size: .92rem;
    line-height: 1.5;
}

.ek-claim-steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ek-claim-step;
}

.ek-claim-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid #eef1f6;
}

.ek-claim-steps li:last-child {
    border-bottom: 0;
}

.ek-claim-step-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #1769e0;
    font-weight: 900;
}

.ek-claim-action {
    border: 1px solid #dfe5ee;
    border-radius: 16px;
    background: #f8fafd;
    padding: 22px;
}

.ek-claim-action h2 {
    margin-top: 0;
}

.ek-claim-gate-text {
    color: #4b5768;
    margin: 0 0 14px;
}

.ek-claim-gate-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ek-claim-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid #1769e0;
    border-radius: 999px;
    background: #1769e0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.ek-claim-button:hover {
    background: #0f55bb;
    color: #fff;
}

.ek-claim-button.is-secondary {
    background: #fff;
    color: #1769e0;
}

.ek-claim-button.is-secondary:hover {
    background: #eaf2ff;
    color: #0b3475;
}

.ek-claim-note {
    margin: 0;
    padding: 12px 14px;
    border-left: 4px solid #1769e0;
    border-radius: 10px;
    background: #eef5ff;
}

.ek-claim-note.is-error {
    border-left-color: #b42318;
    background: #fff1f1;
}

.ek-claim-note.is-success {
    border-left-color: #18864b;
    background: #eefaf3;
}

.ek-claim-note.is-pending {
    border-left-color: #dba617;
    background: #fdf6e3;
}

.ek-claim-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 4px solid #1769e0;
    border-radius: 10px;
    background: #eef5ff;
    font-weight: 650;
}

.ek-claim-notice.is-error {
    border-left-color: #b42318;
    background: #fff1f1;
}

.ek-claim-notice.is-success {
    border-left-color: #18864b;
    background: #eefaf3;
}

/* ------------------------------------------------------------------- the form */

.ek-claim-form {
    display: grid;
    gap: 13px;
}

.ek-claim-form label {
    display: grid;
    gap: 5px;
    font-size: .92rem;
    font-weight: 750;
}

.ek-claim-form input,
.ek-claim-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfd8e6;
    border-radius: 10px;
    background: #fff;
    color: #12213b;
    font-family: inherit;
    font-size: 1rem;
}

.ek-claim-form input:focus,
.ek-claim-form textarea:focus {
    border-color: #1769e0;
    outline: 3px solid rgba(23, 105, 224, .25);
    outline-offset: 1px;
}

.ek-claim-form textarea {
    min-height: 104px;
    resize: vertical;
}

.ek-claim-submit {
    justify-self: start;
    min-height: 48px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    background: #1769e0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.ek-claim-submit:hover {
    background: #0f55bb;
}

/* Hidden from people and screen readers; bots happily fill it in. */
.ek-claim-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .ek-claim-benefits ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .ek-claim-action {
        padding: 18px 15px;
    }

    .ek-claim-button,
    .ek-claim-submit {
        justify-content: center;
        width: 100%;
    }

    .ek-claim-gate-actions {
        flex-direction: column;
    }
}
