/* #region GENERAL */

:root {
    --paper: #fffff1;
    --header-background: #eeeee6;
    --blue: #355ca8;
    --line: #8ba4d0;

    --page-padding: clamp(12px, 2vw, 40px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--paper);
    color: var(--blue);

    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
p {
    margin: 0;
    overflow-wrap: anywhere;
}

/* #endregion */

/* #region HEADER */

.location-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;

    width: 100%;
    gap: clamp(16px, 4vw, 80px);
    padding: 16px clamp(12px, 2.5vw, 48px);

    background: var(--header-background);
    border-bottom: 1px solid var(--line);
}

.location-header > * {
    min-width: 0;
}

.location-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
}

.location-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.location-logo span {
    font-size: clamp(12px, 1vw, 18px);
    letter-spacing: 0.24em;
    white-space: nowrap;
}

.location-navigation {
    display: flex;
    align-items: center;
    justify-content: space-evenly;

    gap: clamp(10px, 2vw, 40px);
    padding-inline: clamp(12px, 2.5vw, 48px);

    border-inline: 2px solid var(--blue);

    flex-wrap: nowrap;
}

.location-navigation a {
    flex: 0 0 auto;
    padding-block: 8px;

    font-size: clamp(12px, 1vw, 18px);
    text-decoration: none;
    white-space: nowrap;
}

.location-navigation a:hover,
.location-navigation a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.location-webshop {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background-color: #f1f6ff;
    color: var(--header-blue);
    font-size: clamp(8px, 1.2vw, 16px);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-weight: 600;
}

.location-webshop:hover {
    background: #fffff1;
    box-shadow: none;
    filter: none;
    transform: none;
}

@media (max-width: 1000px) {
    .location-logo span {
            display: none;
        }

    .location-header {
            gap: 12px;
            padding-block: 12px;
        }

    .location-navigation {
            gap: 12px;
            padding-inline: 12px;
        }
}

@media (max-width: 600px) {
    .location-header {
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 8px;
            padding: 12px 8px;
        }

    .location-logo img {
            width: 30px;
            height: 30px;
        }

    .location-navigation {
            gap: 6px;
            padding-inline: 6px;
            border-inline-width: 1px;
    
            overflow-x: auto;
        }

    .location-navigation a {
            font-size: 11px;
        }

    .location-webshop {
            padding: 5px 6px;
            border-width: 1px;
            font-size: 10px;
        }
}

/* #endregion */

/* #region LOCATION PICKER */

.location-picker {
    width: 100%;
    max-width: 1800px;

    margin-inline: auto;
    padding:
        clamp(20px, 2vw, 36px)
        var(--page-padding)
        clamp(48px, 8vw, 140px);
}

.location-picker-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);

    font-size: clamp(36px, 4vw, 68px);
    font-weight: 400;
    line-height: 1.1;
}

@media (max-width: 700px) {
    .location-picker {
            padding-top: 12px;
            padding-bottom: 24px;
        }
}

/* #endregion */

/* #region OVERSKRIFTENS EMNE */

.location-picker-heading {
    color: var(--blue);
}

.location-picker-heading[data-type="events"] .location-heading-prefix {
    color: #ed941f;
}

.location-picker-heading[data-type="menu"] .location-heading-topic {
    color: #ed941f;
}

.location-picker-context {
    margin-top: 8px;

    font-size: clamp(16px, 1.3vw, 22px);
    line-height: 1.4;
}

.location-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin-top: clamp(64px, 8vw, 140px);
}

.location-card {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    min-height: clamp(240px, 22vw, 360px);
    gap: 48px;

    padding: 0 clamp(16px, 2.5vw, 48px) 48px;

    text-align: center;
}

.location-card + .location-card {
    border-left: 1px solid var(--line);
}

.location-card-details {
    width: 100%;
}

.location-city {
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 600;
    line-height: 1.1;
}

.location-address {
    margin-top: 4px;

    font-size: clamp(14px, 1.3vw, 22px);
    line-height: 1.35;
}

.location-choice {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 380px;
    min-height: 48px;

    padding: 10px 12px;

    border: 2px solid var(--blue);
    border-radius: 8px;

    font-size: clamp(18px, 1.8vw, 28px);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: background-color 0.2s ease;
}

.location-choice:hover {
    background: var(--header-background);
}

@media (max-width: 700px) {
    .location-picker-heading {
            padding-bottom: 10px;
            font-size: clamp(36px, 7vw, 48px);
            text-align: center;
        }

    .location-picker-context {
            margin: 0;
            padding: 8px 4px;
    
            border-bottom: 1px solid var(--line);
    
            font-size: 14px;
            text-align: center;
        }

    .location-picker-grid {
            grid-template-columns: minmax(0, 1fr);
            margin-top: 0;
        }

    .location-card {
            min-height: 0;
            gap: 20px;
            padding: 24px 12px;
        }

    .location-card + .location-card {
            border-left: 0;
            border-top: 1px solid var(--line);
        }

    .location-city {
            font-size: clamp(36px, 7vw, 48px);
        }

    .location-address {
            font-size: 14px;
        }

    .location-choice {
            width: min(100%, 320px);
            min-height: 44px;
            padding: 8px 12px;
    
            font-size: clamp(18px, 4.5vw, 22px);
        }
}

@media (prefers-reduced-motion: reduce) {
    .location-choice {
            transition: none;
        }
}

/* #endregion */
