/* =========================================
   Grønlandiskolen — Filter Wizard
   Inspireret af skoletjenesten.dk
   ========================================= */

:root {
    --gl-green:       #2E7D5B;
    --gl-green-light: #E8F5EE;
    --gl-green-dark:  #1B5E42;
    --gl-ice:         #F0F6F9;
    --gl-text:        #1A1A2E;
    --gl-muted:       #6B7280;
    --gl-radius:      12px;
    --gl-shadow:      0 4px 24px rgba(0,0,0,0.08);
}

/* --- Wizard wrapper --- */
.gl-wizard {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 16px;
    font-family: inherit;
}

.gl-wizard__progress {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}

.gl-wizard__progress-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #D1D5DB;
    transition: background 0.3s;
}

.gl-wizard__progress-dot.is-active {
    background: var(--gl-green);
}

.gl-wizard__progress-dot.is-done {
    background: var(--gl-green-dark);
}

/* --- Step --- */
.gl-step {
    display: none;
    animation: gl-fadein 0.35s ease;
}

.gl-step.is-visible {
    display: block;
}

@keyframes gl-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gl-step__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gl-green);
    margin-bottom: 8px;
}

.gl-step__question {
    font-size: 28px;
    font-weight: 700;
    color: var(--gl-text);
    margin: 0 0 32px;
    line-height: 1.25;
}

/* --- Valgkort --- */
.gl-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.gl-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 2px solid #E5E7EB;
    border-radius: var(--gl-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--gl-text);
}

/* Lange labels uden naturlige mellemrum skal kunne brydes pænt (rigtig
   orddeling) i stedet for at skubbe ud over knappens kant eller knække
   midt i ordet */
.gl-option > span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.gl-option:hover {
    border-color: var(--gl-green);
    background: var(--gl-green-light);
    transform: translateY(-2px);
}

.gl-option.is-selected {
    border-color: var(--gl-green);
    background: var(--gl-green-light);
    box-shadow: 0 0 0 3px rgba(46,125,91,0.15);
}

.gl-option__icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

/* --- Spring-over-knap ("Alle typer" / "Alle temaer") --- */
.gl-skip-btn {
    display: block;
    margin: -6px auto 28px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: var(--gl-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s;
}

.gl-skip-btn:hover {
    color: var(--gl-green);
}

/* --- Navigationsknapper --- */
.gl-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.gl-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.gl-btn--back {
    background: transparent;
    color: var(--gl-muted);
    padding-left: 0;
}

.gl-btn--back:hover { color: var(--gl-text); }

.gl-btn--next {
    display: none;
}

.gl-btn--next:hover {
    background: var(--gl-green-dark);
    transform: translateY(-1px);
}

.gl-btn--next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* --- Resultat-sektion --- */
.gl-results-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--gl-text);
    margin-bottom: 6px;
}

.gl-results-sub {
    color: var(--gl-muted);
    margin-bottom: 28px;
    font-size: 15px;
}

.gl-reset-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 22px;
    border: 2px solid var(--gl-green);
    border-radius: 8px;
    color: var(--gl-green);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.gl-reset-btn:hover {
    background: var(--gl-green);
    color: #fff;
}

/* --- HivePress listing cards override inden for wizard --- */
.gl-results .hp-listings {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gl-results .hp-listing {
    border-radius: var(--gl-radius);
    box-shadow: var(--gl-shadow);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gl-results .hp-listing:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
