/* =====================================================================
   Bientôt — organizer mode on real data (organizer.js). Tokens only (dark mode follows).
   ===================================================================== */

.muted {
    color: var(--muted);
}

/* ---------- overview: the organization (tap to switch) ---------- */
.org-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0;
    margin: 4px 0 18px;
    border: 0;
    background: none;
    text-align: left;
    color: inherit;
    font: inherit;
}

.org-switch .org-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex: none;
    font-size: 18px;
}

.org-switch .large-title {
    margin: 0;
    line-height: 1.1;
}

.org-switch .title-sub .ic {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.org-notice {
    margin-bottom: 18px;
    align-items: flex-start;
}

.org-notice .ic {
    flex: none;
    margin-top: 2px;
}

.org-actions {
    margin-top: 18px;
}

img.org-logo-big,
.profile-avatar.org-logo-big {
    object-fit: cover;
}

/* ---------- event form ---------- */
.ef-cover-preview {
    height: 170px;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--fill);
}

.ef-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ef-cover-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
}

.ef-covers {
    margin-top: 12px;
}

.cover-opt.cover-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--surface);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ef-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ef-cats .chip {
    margin: 0;
}

.ef-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ef-pin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    font-size: 14px;
}

.ef-pin-set {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.ef-pin-set .ic {
    color: var(--accent);
}

.ef-pin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.ef-actions .btn + .btn {
    margin-top: 10px;
}

.slug-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.slug-row .form-input {
    flex: 1;
}

.eo-logo {
    cursor: pointer;
}

.eo-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.eo-logo-row .org-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    object-fit: cover;
    background: var(--fill);
}

/* ---------- attendees ---------- */
.att-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.att-more {
    margin-left: 2px;
    color: var(--muted);
}

.org-attendee-row .get-btn {
    flex: none;
}

/* ---------- place picker: the map moves, the pin stays in the middle; its tip is the spot ---------- */
.org-place {
    background: var(--fill);
}

.place-center-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 46px;
    transform: translate(-50%, -100%);      /* the tip (bottom centre) sits exactly on the map's centre */
    z-index: 500;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.place-center-pin svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* colours: the logo's own (brand.css) */

.place-top {
    position: absolute;
    top: calc(var(--native-top, 0px) + 10px);
    left: 12px;
    right: 12px;
    z-index: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}

.place-search {
    flex: 1;
}

.place-search .search-field {
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.place-results {
    position: absolute;
    top: calc(var(--native-top, 0px) + 64px);
    left: 12px;
    right: 12px;
    z-index: 650;
    max-height: 50%;
    overflow-y: auto;
}

.place-results:empty {
    display: none;
}

.place-results .group {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.place-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 600;
    padding: 14px 16px calc(var(--native-bottom, 0px) + 18px);
    background: var(--ground);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
}

.place-hint {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- the door: full-screen result (scanner.js) ---------- */
.scan-top-right {
    display: flex;
    gap: 4px;
}

.scan-top-right .icon-btn {
    color: #fff;
}

.scan-sub-error {
    color: #ffb4a8;
}

.scan-none {
    padding: 0 var(--gutter);
    margin-top: 14px;
}

.org-scanner-simulate:disabled {
    opacity: .45;
}

.scan-flash {
    position: absolute;
    inset: 0;
    z-index: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}

.scan-flash.show {
    display: flex;
    animation: scan-flash-in .18s ease-out;
}

.scan-flash.ok {
    background: #1f9d55;
}

.scan-flash.no {
    background: #c4242a;
}

@keyframes scan-flash-in {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: none; }
}

.scan-flash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 340px;
}

.scan-flash-icon {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    margin-bottom: 8px;
}

.scan-flash-icon .ic {
    width: 64px;
    height: 64px;
    stroke-width: 2.6;
}

.scan-flash-title {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    word-break: break-word;
}

.scan-flash-sub {
    font-size: 19px;
    font-weight: 600;
    opacity: .95;
    line-height: 1.35;
}

.scan-flash-meta {
    font-size: 15px;
    opacity: .8;
}

.scan-flash-retry {
    margin-top: 10px;
    min-width: 160px;
}

.scan-flash-hint {
    margin-top: 18px;
    font-size: 14px;
    opacity: .75;
}

@media (prefers-reduced-motion: reduce) {
    .scan-flash.show { animation: none; }
}

/* the map pin row: the buttons go under the "Pin set" line when the row is too narrow */
.ef-pin {
    flex-wrap: wrap;
    row-gap: 6px;
}
.ef-pin-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}
.ef-pin-actions .btn,
.ef-pin-actions .text-btn {
    white-space: nowrap;
}
.ef-pin-actions .text-btn {
    width: auto;
    padding: 6px 0;
}
