/* =====================================================================
   Arsuz Kültür — owner.css
   Owner panel (panel/business) and the listing form (create / edit).
   Builds on site.css: page-hero, chip + tone-*, empty-state, form controls.

   .owner-section > .container.owner-narrow | .owner-wide
   .owner-card            white box (div, article, aside or fieldset)
   .owner-card-title      heading inside a card, optional .owner-step number
   .owner-field + .owner-hint / .owner-example / .owner-note
   .owner-more            <details> for optional fields
   .owner-photos > .owner-photo (+ .owner-photo-options > .owner-photo-option)
   .owner-listing         one listing on the dashboard (media + body)
   .owner-checklist       completeness list (li.is-done | li.is-missing)
   ===================================================================== */

.owner-section { padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.75rem, 6vw, 4.5rem); }
.owner-narrow { max-width: 52rem; }
.owner-wide { max-width: 64rem; }

/* ── Card ─────────────────────────────────────────────────────────── */
.owner-card {
    min-width: 0;
    margin: 0 0 1.25rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-lg);
    background: #fff;
    box-shadow: var(--ak-shadow-card, 0 6px 20px rgba(23, 59, 77, .06));
}
/* A legend normally sits on the border of its fieldset; floated, it becomes the first line inside the box. */
fieldset.owner-card > legend { float: left; width: 100%; margin: 0; padding: 0; }
fieldset.owner-card > legend + * { clear: both; }
.owner-card-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    color: var(--ak-dark);
    font-family: var(--ak-font-body, inherit);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}
.owner-card-title > .bi { color: var(--ak-primary); }
.owner-step {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--ak-primary);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}
.owner-subtitle { margin: 0 0 .6rem; font-family: var(--ak-font-body, inherit); font-size: 1rem; font-weight: 800; letter-spacing: 0; }

/* ── Form ─────────────────────────────────────────────────────────── */
.owner-required-note { margin: 0 0 1rem; color: var(--ak-text-light); font-size: .92rem; }
.owner-req { color: #a1211a; font-weight: 800; }
.owner-field { margin-bottom: 1.2rem; }
.owner-form .row > .owner-field { margin-bottom: 0; }
.owner-form .form-control, .owner-form .form-select { min-height: 48px; font-size: 1rem; }
.owner-form .form-label .bi { color: var(--ak-primary); }
.owner-hint { margin: .4rem 0 0; color: var(--ak-text-light); font-size: .88rem; line-height: 1.5; }
.owner-hint-list { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--ak-text-light); font-size: .88rem; line-height: 1.5; }
.owner-hint-list li + li { margin-top: .2rem; }
.owner-counter { font-variant-numeric: tabular-nums; }
.owner-example {
    margin: .6rem 0 0;
    padding: .65rem .85rem;
    border-left: 3px solid var(--ak-accent);
    border-radius: 0 .5rem .5rem 0;
    background: var(--ak-sand, #fbf5e6);
    color: var(--ak-text);
    font-size: .9rem;
    line-height: 1.55;
}
.owner-note {
    display: flex;
    gap: .5rem;
    margin: .7rem 0 0;
    padding: .6rem .8rem;
    border-radius: .6rem;
    background: var(--ak-tint, #eaf3f4);
    color: var(--ak-primary-dark);
    font-size: .88rem;
    line-height: 1.5;
}
.owner-note > .bi { flex: none; margin-top: .1rem; }
.owner-check { display: flex; align-items: center; gap: .6rem; min-height: 48px; margin: .5rem 0 0; padding-left: 0; }
.owner-check .form-check-input { flex: none; float: none; margin: 0; width: 1.4em; height: 1.4em; }
.owner-check .form-check-label { padding-left: 0; font-weight: 700; cursor: pointer; }
.owner-check .bi-whatsapp { color: #128c4b; }

.owner-more { margin-top: .25rem; border-top: 1px solid var(--ak-border); }
.owner-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    color: var(--ak-primary-dark);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.owner-more > summary::-webkit-details-marker { display: none; }
.owner-more > summary .bi { transition: transform .2s ease; }
.owner-more[open] > summary .bi { transform: rotate(180deg); }
.owner-more > .owner-hint { margin: 0 0 1rem; }
.owner-more > .row { padding-bottom: .25rem; }

.owner-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.owner-submit .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; }
.owner-submit-note { flex-basis: 100%; margin: 0; }
.owner-form.is-busy .owner-submit-button { opacity: .7; pointer-events: none; }

/* ── Photos ───────────────────────────────────────────────────────── */
.owner-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: .75rem;
    margin: 0 0 .5rem;
    padding: 0;
    list-style: none;
}
.owner-photo { position: relative; overflow: hidden; border: 1px solid var(--ak-border); border-radius: .8rem; background: #fff; }
.owner-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ak-tint, #eaf3f4); transition: opacity .2s ease, filter .2s ease; }
.owner-photo-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    margin: 0;
    padding: .25rem .7rem;
    border-top: 1px solid var(--ak-border);
    color: var(--ak-dark);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}
.owner-photo-option input { flex: none; width: 1.15rem; height: 1.15rem; accent-color: var(--ak-primary); }
.owner-photo-option input:checked ~ .owner-photo-off, .owner-photo-option input:not(:checked) ~ .owner-photo-on { display: none; }
.owner-photo-option:has(input:focus-visible) { outline: 3px solid var(--ak-primary); outline-offset: -3px; }
.owner-photo-option:has(input[type="radio"]:checked) { background: var(--ak-tint, #eaf3f4); color: var(--ak-primary-dark); }
.owner-photo-remove { color: #9a1f17; }
.owner-photo-remove input { accent-color: #9a1f17; }
.owner-photo:has(.owner-photo-remove input:checked) img { opacity: .3; filter: grayscale(1); }
.owner-photo:has(.owner-photo-remove input:checked) .owner-photo-remove { background: #fde8e6; }
.owner-photos + .owner-hint { margin: 0 0 1.1rem; }
.owner-photos-new { margin-top: .75rem; }
.owner-photo-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-top: 1px solid var(--ak-border);
    background: #fff;
    color: #9a1f17;
    font-size: .88rem;
    font-weight: 700;
}
.owner-photo-drop:hover { background: #fde8e6; }
.owner-photo-status { min-height: 1.4rem; margin-top: .5rem; color: var(--ak-primary-dark); font-size: .9rem; font-weight: 700; }
.owner-photo-status.is-warning { color: #8a1c15; }

/* ── Dashboard ────────────────────────────────────────────────────── */
.owner-listing { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.owner-listing-media img, .owner-listing-nophoto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: .8rem; object-fit: cover; }
.owner-listing-nophoto {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .2rem;
    border: 1px dashed var(--ak-tint-strong, #d7e7ea);
    background: var(--ak-tint, #eaf3f4);
    color: var(--ak-text-light);
    font-size: .85rem;
    font-weight: 700;
}
.owner-listing-nophoto .bi { font-size: 1.8rem; line-height: 1; color: var(--ak-primary); }
.owner-listing-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.owner-listing-title { margin: 0; font-family: var(--ak-font-body, inherit); font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.owner-listing-meta { margin: .3rem 0 .9rem; color: var(--ak-text-light); font-size: .9rem; }
.owner-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; }
.owner-actions .btn, .owner-more-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; }

.owner-checklist { padding-top: 1rem; border-top: 1px solid var(--ak-border); }
.owner-checklist-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; margin: 0 0 .5rem; font-family: var(--ak-font-body, inherit); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.owner-checklist-progress { color: var(--ak-text-light); font-size: .86rem; font-weight: 700; }
.owner-checklist ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.owner-checklist li { display: flex; align-items: center; gap: .55rem; min-height: 40px; padding: .2rem 0; font-size: .93rem; line-height: 1.4; }
.owner-checklist li > .bi { flex: none; font-size: 1.05rem; }
.owner-checklist li > span { flex: 1 1 auto; min-width: 0; }
.owner-checklist .is-done > .bi { color: #17603a; }
.owner-checklist .is-missing > .bi { color: #8a6d00; }
.owner-checklist li > a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .35rem; font-weight: 800; white-space: nowrap; }

.owner-more-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.75rem; }
.owner-more-actions .owner-hint { margin: 0; }
.owner-empty { margin-bottom: 1.75rem; }
.owner-empty .btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; }
.owner-empty .owner-empty-claim { margin-top: 1rem; font-size: .92rem; }

.owner-suggest { border-color: var(--ak-sand-strong, #f3e6c4); background: var(--ak-sand, #fbf5e6); box-shadow: none; }
.owner-claim-form .btn { min-height: 44px; margin: .8rem .4rem 0 0; }
.owner-claims .owner-card-title, .owner-tips .owner-card-title { margin-bottom: .5rem; }
.owner-claim-list { margin: .8rem 0 0; padding: 0; list-style: none; }
.owner-claim-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; min-height: 48px; padding: .5rem 0; border-top: 1px solid var(--ak-border); }
.owner-claim-name { flex: 1 1 12rem; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.owner-claim-date { color: var(--ak-text-light); font-size: .86rem; }

.owner-tips { border-color: var(--ak-tint-strong, #d7e7ea); background: var(--ak-tint, #eaf3f4); box-shadow: none; }
.owner-tips ul { margin: 0 0 .8rem; padding-left: 1.15rem; }
.owner-tips li { margin-bottom: .3rem; line-height: 1.5; }
.owner-tips .owner-hint { color: var(--ak-text); }

@media (max-width: 767.98px) {
    .owner-listing { grid-template-columns: 1fr; gap: 1rem; }
    .owner-listing-media img, .owner-listing-nophoto { aspect-ratio: 16 / 9; }
    .owner-actions .btn { flex: 1 1 auto; }
    .owner-submit .btn { flex: 1 1 100%; }
    .owner-checklist ul { grid-template-columns: 1fr; }
    .owner-checklist li, .owner-checklist li > a { min-height: 44px; }
}
