/* Map size is set in the template (Tailwind classes). */

.leaflet-popup-content-wrapper {
    border-radius: 1rem;
}

.leaflet-popup-content {
    margin: 14px;
    max-height: 400px;
    overflow-y: auto;
}

.leaflet-popup-tip-container {
    margin-top: -5px;
}

.leaflet-control-locate a {
    font-size: 1.4em;
    color: #444;
    cursor: pointer;
    position: relative;
}

.leaflet-control-locate a::before {
    content: '';
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444444'%3E%3Cpath d='M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z'/%3E%3C/svg%3E") no-repeat center center;
}

.leaflet-control-locate.active a {
    color: #2074B6;
}

.leaflet-control-locate.active a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232074B6'%3E%3Cpath d='M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z'/%3E%3C/svg%3E");
}

.leaflet-control-locate.following a {
    color: #FC8428;
}

.leaflet-control-locate.following a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FC8428'%3E%3Cpath d='M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z'/%3E%3C/svg%3E");
}

/* Keep DaisyUI collapses inside the phone viewport. Without this, the
   checkbox/title grid sizes to its content and the tide card overflows. */
#feature-list > .collapse {
    grid-template-columns: minmax(0, 1fr);
}

#feature-list > .collapse,
#feature-list > .collapse > input[type="checkbox"],
#feature-list > .collapse > .collapse-title,
#feature-list > .collapse > .collapse-content {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
