@import 'flickity.css';
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


* {
    box-sizing: border-box;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



*:focus:not(:focus-visible) {
    outline: none;
}

*:focus:focus-visible {
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 3px;
    border-radius: var(--border-radius);
}

.editing *:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none !important;
}


html, body {
    font-family: 'Inter', Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

body {
   position: relative;
   overflow-x: hidden;
}

body.no-header {
    padding-left: 0 !important;
}

:root {
    --sidebar-width: 0;
    --sidebar-padding: 2em;
    --view-padding: 1em;
    --border-radius: 0.5em;
    --primary-color: #E8830C;
    --editing-background-color: rgba(224, 223, 219, 0.5);
}

@media (min-width: 1100px) {
    :root {
        --sidebar-width: 15em;
        --view-padding: 2em;
    }
}

body {
    padding-left: var(--sidebar-width);
}

* > *:first-child { margin-top: 0 !important; }
* > *:last-child { margin-bottom: 0 !important; }

a {
    color:inherit;
    text-decoration: underline;
}

header {
    background-color: #F7F5F2;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    @media (min-width: 1100px) {
        header {
            padding: var(--sidebar-padding);
            height: 100vh;
            width: 15em;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 99999999;
            display: block;
            
        }
    }

    header.onboarding {
        
    }

header .logo {
    display: block;
    width: 10em;
    aspect-ratio: 10/2.25;
    overflow: hidden;
    white-space: nowrap;
}

    header .logo svg {
        width: 100%;
        height: 100%;
    }

    @media (min-width: 1100px) {
        header .logo {
            
        }
    }

    header .association-name {
        color: var(--primary-color);
        font-weight: 500;
        font-size: 0.85em;
        margin-top: 0.5em;
    }

header nav.main-menu {
    display: flex;
    flex-direction: column;
}

header nav.main-menu a {
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.5em 0.5em 0.5em 2.5em;
    margin-left: -0.5em;
    position: relative;
    width: calc(100% + 0.5em);
    border-radius: var(--border-radius);
    transition: all 0.2s ease-out;
}

    @media (min-width: 1100px) {
        header nav.main-menu {
            /* position: absolute;
            top: 50%;
            left: var(--sidebar-padding);
            transform: translateY(-50%);
            width: calc(100% - calc(var(--sidebar-padding) * 2) + 0.5em); */
            margin-top: 6em;
        }
    }

    header nav.main-menu a:hover {
        background-color: #d8d7d4;
    }


header nav.main-menu a i {
    margin-right: 0.5em;
    font-size: 1.4em;
    position: absolute;
    left: 0.5em;
    top: 50%;
    transform: translateY(-50%);
}

header nav.user-menu {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

    @media (min-width: 1100px) {
        header nav.user-menu {
            position: absolute;
            bottom: var(--sidebar-padding);
            left: var(--sidebar-padding);
        }
    }

header nav.user-menu a {
    text-decoration: none;
}

h1 {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2em;
    font-weight: 500;
    color: #666;
}

    h1 + .lead {
        margin-top: -1rem;
    }

.flex {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    gap: 1em;
}

.flex.justify-between {
    justify-content: space-between;
}

.map-container {
    position: relative;
}

.geolocate-button {
    position: absolute;
    top: 1em;
    left: 1em;
    z-index: 1000;
    padding: 0.5em 1em;
    font-size: 0.8em;
    line-height: 1;
    background-color: #fff;
    border-radius: 0.5em;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.location-picker,
#googlemap {
    width: 100%;
    height: 300px;
    border-radius: 0.5em;
    margin-bottom: 1em;
}

.cat-details {
    display: flex;
    flex-flow: row wrap;
    gap: 2em;
}

    .cat-details .cat-pictures {
        flex: 1;
        max-width: 20em;
    }

    .cat-details .cat-pictures img {
        border-radius: var(--border-radius);
    }

    .cat-details .cat-info {
        flex: 1;
    }

    @media (min-width: 1100px) {
        .cat-details .cat-info {
            order: 1;
        }

        .cat-details .cat-pictures {
            order: 2;
        }
    }

    .cat-info {

    }

        .cat-info .cat-info-item {
            padding: 0.5em 0;
            border-bottom: 1px solid #e0dfdb;
        }


.location-picker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-pictures img {
    width: auto;
    height: 20em;
    object-fit: contain;
}

.cat-info-item {
    display: flex;
    flex-flow: row wrap;
}

.cat-info-label {
    font-weight: bold;
    width: 11.5em;
    padding-right: 1.5em;
}

.cat-info-value {
    flex: 1;
}


.view {
        padding: var(--view-padding);
}

    .view.centered > * {
        margin-left: auto;
        margin-right: auto;
    }   

    .view.centered-vertical {
        min-height: calc(100vh - calc(var(--view-padding) * 2));
        display: flex;
        flex-flow: column wrap;
        justify-content: center;
        align-items: center;
    }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.button {
    background-color: #e0dfdb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    text-decoration: none;
    border: 1px solid #e0dfdb;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1em;
    line-height: 1.5 !important;
    transition: all 0.2s ease-out;
}

    .button:hover,
    .button:focus,
    .button:active {
        background-color: #fff;
    }

    .button i {
        transform: scale(1.4);
        margin-right: 0.25em;
    }

    .button.highlight {
        background-color: var(--primary-color);
        color: #fff;
        box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
    }

    .button.highlight:hover,
    .button.highlight:focus,
    .button.highlight:active {
        background-color: #ba680b;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
        transform: scale(0.975);
    }

.app-search-form {
    position: relative;
    width: 100%;
    max-width: 20em;
}

    .app-search-form input {
        width: 100%;
        padding: 0.5em 3em 0.5em 1em;
        background-color: #e0dfdb;
        border: 1px solid #e0dfdb;
        border-radius: var(--border-radius);
        appearance: none;
        -webkit-appearance: none;
        font: inherit;
        line-height: 1.5;
        outline: none;
        transition: all 0.2s ease-out;
    }

    .app-search-form input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
    }

    .app-search-form button {
        position: absolute;
        appearance: none;
        -webkit-appearance: none;
        right: 2px;
        top: 0;
        height: 100%;
        background-color: transparent;
        border: 0;
        font: inherit;
        font-size: 1.25em;
        color: #777;
        outline: none;
        cursor: pointer;
        transition: all 0.2s ease-out;
        padding: 0 0.5em;
    }

    .app-search-form input:focus ~ button,
    .app-search-form button:focus {
        color: #111;
    }


.filter-options {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
    display: none;
    overflow: hidden;
    transition: all 0.2s ease-out;
}

    .filter-options.active {
        display: flex;
    }

.app-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-left: -0.5em;
    width: calc(100% + 0.5em);
}

.app-table thead {
    border-bottom: 2px solid #e0dfdb;
}
    .app-table th {
        font-weight: 700;
        padding: 0.5em;
    }

.app-table td {
    padding: 0.5em;
}

.app-table td a {
    text-decoration: none;
}

.app-table tr:nth-child(even) {
    background-color: #f8f8f8;
}


.color-tags {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5em;
}

.color-tag {
    display: flex;
    flex-flow: row no-wrap;
    align-items: center;
    gap: 0.5em;
    background-color: rgba(224, 223, 219, 0.5);
    padding: 0.25em 0.5em;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

    .color-tag-clickable .color-tag {
        cursor: pointer;
    }

    .color-tag-clickable input {
        opacity: 0;
        position: absolute;
        pointer-events: none;
    }

    .color-tag-clickable input:checked + .color-tag {
        background-color: #e0dfdb;
        border-color: var(--primary-color);
    }

.color-dot {
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 0.25em;
}

.number-badge {
    font-size: 0.8em;
    line-height: 0.8;
    background-color: var(--primary-color);
    color: #fff;
    min-width: 2em;
    padding: 0 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2em;
    border-radius: 99px;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
}

.app-tabview {
    display: flex;
    flex-flow: row wrap;
    padding-right: 1em;
    position: relative;
    border-bottom: 1px solid #e0dfdb;
    margin-left: -0.5em;
    width: calc(100% + 0.5em);
    padding: 0 0.5em;
    gap: 1.5em;
    margin-bottom: 2em;
}

.app-tabview > .tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background-color: transparent;
    font: inherit;
    outline: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2em;
    position: relative;
    margin-bottom: 0.5em !important;
    color: #777;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    gap: 0.5em;
}

.app-tabview > .tab:focus,
.app-tabview > .tab:hover {
    color: var(--primary-color);
}

.app-tabview > .tab.active {
    color: var(--primary-color);
}

.app-tabview > .tab.active::after {
    content: '';
    position: absolute;
    display: block;
    background-color: var(--primary-color);
    height: 2px;
    left: -0.5rem;
    width: calc(100% + 1rem);
    bottom: calc(-0.5em - 2px);
}

.app-tabview .app-tabview-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5em;
    color: #777;
}

.app-tabview-content {
    display: none;
}

.app-tabview-content.active {
    display: block;
}

.editable {
    cursor: pointer;
    position: relative;
}

.editable i.la-edit {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-60%) translateX(-1.5em);
    opacity: 0;
}

.editable:hover i.la-edit {
    opacity: 1;
}

.editable.is-editing {
    display: none;
}

.editing {
    display: none;
}

.editable.is-editing ~ .editing {
    display: flex;
    position: relative;
}

.editable.is-editing ~ .editing:before {
    content: '';
    position: absolute;
    left: -0.5em;
    top: -0.25em;
    width: calc(100% + 0.5em);
    height: calc(100% + 0.5em);
    background-color: var(--editing-background-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.inline-input {
    width: 100%;
    padding: 0;
    border: 0;
    background-color: transparent;
    font: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

    select.inline-input {
        padding-right: 1.5em;
        background-image: url(../img/dropdown.svg);
        background-repeat: no-repeat;
        background-position: right 0.75em center;
        background-size: 0.5em auto;
    }


.messages {
    position: fixed;
    bottom: 1em;
    right: 1em;
    width: calc(100% - 2em);
    max-width: 20em;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

    .messages .message {
        background-color: #fff;
        padding: 1em;
        border-radius: var(--border-radius);
        box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
        margin-bottom: 1em;
        font-weight: 700;
        cursor: pointer;
        transform: translateX(120%);
        transition: all 0.2s ease-out;
        width: fit-content;
        max-width: 100%;
        margin: 0 0 0 auto !important;
    }

    .messages .message.show {
        transform: translateX(0);
    }

    .messages .message.type-success {
        background-color: #55DA93;
        color: #fff;
    }

    .messages .message.type-error {
        background-color: #f8d7da;
        color: #721c24;
    }

    .messages .message.type-info {
        background-color: #d1ecf1;
        color: #0c5460;
    }



.stepped-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 3em;
    position: relative;
}

.stepped-form .step {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-out;
    transform: translateX(10em);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 30em;
}

    .stepped-form .step.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .stepped-form .step.past {
        transform: translateX(-10em);
    }

    .stepped-form .form-group {
        display: block
    }

    .stepped-form .form-group label {
        font-weight: 500;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group select {
        width: 100%;
        padding: 1em;
        background-color: #e0dfdb;
        border: 1px solid #e0dfdb;
        border-radius: var(--border-radius);
        appearance: none;
        -webkit-appearance: none;
        font: inherit;
        outline: none;
        transition: all 0.2s ease-out;
    }

    .form-group input.error {

    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
    }

    .stepped-form p.hint {
        font-size: 0.8em;
        line-height: 1.2;
        color: #666;
        margin-top: 0 !important;
        margin-bottom: 1em;
    }

    .stepped-form .form-group p.hint + input {
        margin-top: 0 !important;
    }

    .stepped-form .form-group label + input {
        margin-top: 0.5em !important;
    }

    .stepped-form .button,
    .stepped-form input[type="submit"],
    .form-group input[type="submit"] {
        cursor: pointer;
        border: 0;
        appearance: none;
        -webkit-appearance: none;
        font: inherit;
        display: flex;
        align-items: center;
        gap: 0.5em;
        margin-top: 2em;
        padding: 1em;
        text-decoration: none;
        border-radius: var(--border-radius);
        font-weight: 500;
        font-size: 1em;
        line-height: 1;
        transition: all 0.2s ease-out;
        background-color: var(--primary-color);
        color: #fff;
        width: fit-content;
    }

    .stepped-form .button.association-type {
        background-color: #f8f8f8;
        border: 1px solid #ccc;
        color: #777;
        padding: 2em;
    }

    .stepped-form .button.association-type:hover,
    .stepped-form .button.association-type:focus,
    .stepped-form .button.association-type:active {
        background-color: #fff !important;
        border: 1px solid #e0dfdb !important;
        padding: 2em !important;
        box-shadow: none !important;
        transform: scale(1) !important;
    }

    .stepped-form .button:hover,
    .stepped-form .button:focus,
    .stepped-form .button:active,
    .form-group input[type="submit"]:active,
    .form-group input[type="submit"]:hover,
    .form-group input[type="submit"]:focus {
        background-color: #ba680b;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
        transform: scale(0.975);
    }

    .stepped-form * + * {
        margin-top: 1em !important;
    }

    .stepped-form .form-group .flex {
        display: flex;
        flex-flow: row wrap;
        gap: 1em;
    }

    .stepped-form .form-group .flex > * {
        flex: 1;
        margin-top: 0 !important;
    }

.login-form {

}

    .login-form .login-form-cat {
        width: 13em;
        aspect-ratio: 4/3;
        object-fit: cover;
        object-position: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: -2em;
    }

    .login-form a {
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 700;
    }

.login-form form {
    width: 100%;
    max-width: 25em;
    margin: 0 auto;
}

    .login-form .form-group {
        margin-bottom: 1em;
    }

    .login-form input[type="submit"] {
        margin-top: 2em;
    }

@media (max-width: 600px) {
    .mobile-hide {
        display: none;
    }
}

.highlight {
    color: var(--primary-color);
}