/*
 * Fonts are loaded via includes/fonts.php (absolute URLs from assets/fonts/).
 * Upload either:
 *   litos-script-regular.otf  +  litos-script-bold.otf
 * or your original filenames:
 *   Litos Script regular.otf  +  Litos Script BOLD.otf
 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #111;

    font-family: "Litos Script Regular", Georgia, "Times New Roman", serif;
    font-weight: 400;
}

body.alma-map-loading .alma-map-chrome,
body.alma-map-loading #alma-map {
    visibility: hidden;
}

.alma-map-loader__inner {
    width: min(320px, 72vw);
    text-align: center;
}

.alma-map-loader__label {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.alma-map-loader__track {
    overflow: hidden;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.alma-map-loader__bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ec5ff, #e8c547);
    transition: width 0.25s ease;
}

.alma-map-loader.is-complete .alma-map-loader__bar {
    width: 100% !important;
}

#alma-map {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #111;
}

.alma-map-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    pointer-events: none;
}

.alma-site-title-wrap {
    position: fixed;
    top: 140px;
    left: 0;
    right: 0;
    z-index: 1100;

    display: flex;
    justify-content: center;

    padding: 0 72px;
    pointer-events: none;

    animation: alma-title-bob-y 7.854s ease-in-out infinite;
}

.alma-site-title-inner {
    animation: alma-title-bob-x 7.854s ease-in-out infinite;
    animation-delay: -1.5s;
}

.alma-site-title {
    margin: 0;
    padding: 0;

    background: none;
    color: #fff;

    font-family: "Litos Script Bold", "Litos Script Regular", Georgia, "Times New Roman", serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    animation: alma-title-bob-r 10.472s ease-in-out infinite;

    pointer-events: none;
}

.alma-site-subtitle {
    margin: 10px 0 0;
    padding: 0;

    color: rgba(255, 255, 255, 0.72);

    font-family: "Litos Script Regular", Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: center;

    pointer-events: none;
}

.alma-site-title + .alma-site-subtitle {
    margin-top: 8px;
}

@keyframes alma-title-bob-y {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes alma-title-bob-x {
    0%, 100% {
        transform: translate3d(2px, 0, 0);
    }

    50% {
        transform: translate3d(-2px, 0, 0);
    }
}

@keyframes alma-title-bob-r {
    0%, 100% {
        transform: rotate(-0.8deg);
    }

    50% {
        transform: rotate(0.8deg);
    }
}

.alma-map-error {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    color: white;
    font-weight: 400;
    text-align: center;
}

.leaflet-image-layer {
    user-select: none;
    -webkit-user-drag: none;
}

.leaflet-bottom.leaflet-right {
    right: 6px;
    bottom: 6px;
}

.leaflet-bottom.leaflet-right .leaflet-control {
    margin: 0;
}

.leaflet-control-zoom {
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: rgba(15, 15, 15, 0.88);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.leaflet-control-zoom a:hover {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
}

.alma-map-marker-wrap {
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
}

.alma-map-marker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.alma-map-marker__glyph {
    display: block;
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
    color: #e8c547;
    opacity: 0.55;
    transform: scale(1);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        color 0.15s ease;
}

.alma-map-marker__glyph--circle {
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.alma-map-marker--entry .alma-map-marker__glyph--circle {
    color: #e8c547;
}

.alma-map-marker--location .alma-map-marker__glyph--circle {
    color: #8ec5ff;
}

.alma-map-marker-wrap.is-filled .alma-map-marker__glyph--circle {
    border-width: 3px;
}

.alma-map-marker__label {
    flex: 0 1 auto;
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-family: "Litos Script Regular", Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.1;
    color: #fff;
    opacity: 0.55;

    transition: opacity 0.15s ease;
}

.alma-map-marker-wrap.is-filled .alma-map-marker__glyph {
    opacity: 1;
    transform: scale(1.12);
}

.alma-map-marker-wrap.is-filled .alma-map-marker__label {
    opacity: 1;
}

.alma-map-marker--entry .alma-map-marker__glyph {
    color: #e8c547;
}

.alma-map-marker--location .alma-map-marker__glyph {
    color: #8ec5ff;
}

.alma-map-marker--location .alma-map-marker__label {
    color: #d8ebff;
}

.alma-map-marker--parent .alma-map-marker__glyph {
    color: #c8c8c8;
}

.alma-map-marker--parent .alma-map-marker__label {
    color: #e8e8e8;
}

.alma-map-marker--style-accent .alma-map-marker__glyph {
    font-size: 32px;
}

.alma-map-marker--style-large .alma-map-marker__glyph {
    font-size: 36px;
}

.alma-map-marker--style-large .alma-map-marker__label {
    font-size: 24px;
    max-width: 200px;
}

.alma-map-marker--admin {
    cursor: grab;
    background: #e8c547;
}

.alma-map-marker--admin:active {
    cursor: grabbing;
}

.alma-map-popup {
    min-width: 200px;
    max-width: 320px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.alma-map-popup--image-focus {
    min-width: 280px;
    max-width: min(520px, 88vw);
}

.alma-map-popup__image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 3px;
}

.alma-map-popup--image-focus .alma-map-popup__image {
    margin-bottom: 12px;
}

.alma-map-popup__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 400;
}

.alma-map-popup__excerpt {
    margin: 0 0 12px;
    color: #444;
}

.alma-map-popup__button {
    display: inline-block;
    padding: 9px 16px;

    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2;

    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.alma-map-popup__button:hover,
.alma-map-popup__button:focus {
    background: #333;
    color: #fff !important;
}

@media (max-width: 768px) {

    .alma-site-title-wrap {
        top: 100px;
        padding: 0 56px;
    }

    .alma-site-title {
        font-size: 44px;
    }

    .alma-site-subtitle {
        font-size: 17px;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .alma-map-loader.is-hidden {
        transition: none;
    }

    .alma-map-loader__bar {
        transition: none;
    }

    .alma-site-title-wrap,
    .alma-site-title-inner,
    .alma-site-title {
        animation: none;
    }

    .alma-map-marker {
        transition: none;
    }

    .alma-map-marker-wrap.is-filled .alma-map-marker__glyph {
        transform: none;
    }
}
