/* Organizations: directory, detail, form */
.org-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.637rem;
    margin-bottom: 1.25rem;
}
.org-filter .form-control,
.org-filter .form-select {
    border-radius: 6px;
    padding: .55rem 0.722rem;
}
.org-filter .form-select {
    width: auto;
    min-width: 170px;
}
.input-icon {
    position: relative;
    min-width: 220px;
}
.input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ek-muted);
}
.input-icon .form-control {
    padding-left: 2.4rem;
}

.org-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    overflow: hidden;
    color: var(--ek-text);
    transition: box-shadow .2s, transform .2s;
}
.org-card:hover {
    box-shadow: none;
    transform: none;
}
.org-cover {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, #dbe8fb, #eef4fd);
}
.org-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center bottom; /* grow upward: the card clips it, the body stays clear */
    transition: transform .4s;
}
.org-card:hover .org-cover > img {
    transform: scale(1.05);
}
.org-logo {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--ek-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ek-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.org-cover .org-logo {
    position: absolute;
    left: 1rem;
    bottom: -24px;
    border: 3px solid #fff;
    box-shadow: none;
}
.org-body {
    padding: 1.7rem 0.85rem 0.85rem;
}
.org-body h3,
.my-org h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
.org-type {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    background: #eaf2ff;
    color: var(--ek-primary);
    padding: .15rem .6rem;
    border-radius: 6px;
}
.org-meta {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: var(--ek-muted);
    font-size: .8rem;
}
.org-meta i {
    margin-right: .25rem;
}
.my-org .org-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .4rem 0.85rem;
}
.org-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ek-primary);
}
.org-link.disabled {
    pointer-events: none;
    opacity: .4;
}

.my-org {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.85rem;
    margin-bottom: .75rem;
}
.my-org h3 a {
    color: var(--ek-text);
}

.org-hero {
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbe8fb, #eef4fd);
}
.org-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.org-head {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.062rem;
    padding: 0 1.275rem;
    margin-top: -44px;
}
.org-logo.lg {
    width: 104px;
    height: 104px;
    border-radius: 6px;
    border: 4px solid #fff;
    box-shadow: none;
    font-size: 2.4rem;
}
.org-head h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 .35rem;
}
.org-desc {
    color: #606060;
    line-height: 1.65;
}
.org-info {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}
.org-info li {
    display: flex;
    gap: 0.637rem;
    align-items: flex-start;
    word-break: break-word;
}
.org-info i {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #eaf2ff;
    color: var(--ek-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.org-info small {
    display: block;
    color: var(--ek-muted);
    font-size: .72rem;
}
.map-box {
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ek-border);
    z-index: 0;
}
.coords {
    font-size: .75rem;
    color: var(--ek-muted);
    margin-top: .5rem;
    font-variant-numeric: tabular-nums;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.admin-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--ek-border);
}
.admin-list i {
    color: var(--ek-primary);
}
.admin-add {
    display: flex;
    gap: .5rem;
    max-width: 460px;
}
.admin-add .form-control {
    border-radius: 6px;
}

@media (max-width: 575.98px) {
    .org-filter .form-select {
        flex: 1;
        min-width: 0;
    }
    .my-org {
        flex-wrap: wrap;
    }
}
