.ltrm-app,
.ltrm-app * {
    box-sizing: border-box;
}

.ltrm-app {
    width: 100%;
    margin: 28px 0;
    font-family: inherit;
    color: #102033;
}

.ltrm-card {
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 32, 51, 0.08);
    overflow: hidden;
}

.ltrm-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 22px 24px;
    background: linear-gradient(135deg, #f4faf7 0%, #ffffff 100%);
    border-bottom: 1px solid #e8eef3;
}

.ltrm-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ltrm-title {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    color: #102033;
}

.ltrm-intro {
    margin: 0;
    max-width: 760px;
    color: #526173;
    font-size: 1rem;
    line-height: 1.55;
}

.ltrm-help-panel {
    max-width: 820px;
}

.ltrm-help-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #0f7b55;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ltrm-help-title {
    display: block;
    margin: 0 0 7px;
    color: #102033;
    font-size: clamp(1.05rem, 1.6vw, 1.32rem);
    line-height: 1.25;
}

.ltrm-help-text {
    max-width: 760px;
    margin: 0;
    color: #526173;
    font-size: 0.96rem;
    line-height: 1.52;
}

.ltrm-help-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.ltrm-help-steps span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 123, 85, 0.08);
    color: #0d6648;
    font-size: 0.82rem;
    font-weight: 700;
}

.ltrm-distance-box {
    min-width: 160px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #0f7b55;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 12px 24px rgba(15, 123, 85, 0.2);
}

.ltrm-distance-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
}

.ltrm-distance {
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
}

.ltrm-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e8eef3;
}

.ltrm-search {
    display: flex;
    width: min(100%, 480px);
    gap: 8px;
}

.ltrm-search-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #ffffff;
    color: #102033;
    font-size: 0.95rem;
}

.ltrm-search-input:focus {
    outline: 2px solid rgba(15, 123, 85, 0.22);
    border-color: #0f7b55;
}

.ltrm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ltrm-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.ltrm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ltrm-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ltrm-btn-primary {
    background: #0f7b55;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 123, 85, 0.16);
}

.ltrm-btn-primary:hover:not(:disabled) {
    background: #0d6f4d;
}

.ltrm-btn-secondary {
    background: #eef5f2;
    color: #0d6648;
    box-shadow: inset 0 0 0 1px rgba(15, 123, 85, 0.12);
}

.ltrm-btn-secondary:hover:not(:disabled) {
    background: #dff0e8;
}

.ltrm-btn-danger {
    background: #fff1f1;
    color: #9f1d1d;
    box-shadow: inset 0 0 0 1px rgba(159, 29, 29, 0.12);
}

.ltrm-btn-danger:hover:not(:disabled) {
    background: #ffe3e3;
}


.ltrm-share-panel {
    padding: 18px 24px 20px;
    background: #fbfcfd;
    border-bottom: 1px solid #e8eef3;
}

.ltrm-share-panel[hidden] {
    display: none !important;
}

.ltrm-share-panel-copy {
    margin-bottom: 12px;
}

.ltrm-share-panel-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #102033;
    font-size: 1.02rem;
}

.ltrm-share-panel-copy p {
    margin: 0;
    color: #667587;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ltrm-share-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.ltrm-share-url {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #ffffff;
    color: #102033;
    font-size: 0.9rem;
}

.ltrm-share-url:focus {
    outline: 2px solid rgba(15, 123, 85, 0.22);
    border-color: #0f7b55;
}

.ltrm-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ltrm-share-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    background: #eef5f2;
    color: #0d6648;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(15, 123, 85, 0.12);
    transition: transform 0.15s ease, background 0.15s ease;
}

.ltrm-share-social:hover {
    background: #dff0e8;
    color: #0d6648;
    transform: translateY(-1px);
    text-decoration: none;
}

.ltrm-native-share-btn[hidden] {
    display: none !important;
}

.ltrm-map-wrap {
    position: relative;
    padding: 0;
}

.ltrm-map {
    width: 100%;
    min-height: 360px;
    background: #edf2f7;
    z-index: 1;
}

.ltrm-map-hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 400;
    max-width: calc(100% - 32px);
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    font-size: 0.86rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

.ltrm-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 24px;
    background: #fbfcfd;
    border-top: 1px solid #e8eef3;
}

.ltrm-info-box {
    padding: 16px;
    border: 1px solid #e3eaf0;
    border-radius: 16px;
    background: #ffffff;
}

.ltrm-info-label {
    display: block;
    margin-bottom: 5px;
    color: #667587;
    font-size: 0.82rem;
}

.ltrm-info-box strong {
    color: #102033;
    font-size: 1.05rem;
}

.ltrm-pace-panel {
    padding: 20px 24px 22px;
    border-top: 1px solid #e8eef3;
}

.ltrm-pace-panel h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.ltrm-pace-panel p {
    margin: 0 0 14px;
    color: #667587;
}

.ltrm-pace-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ltrm-pace-item {
    padding: 13px;
    border: 1px solid #e3eaf0;
    border-radius: 14px;
    background: #ffffff;
}

.ltrm-pace-item span {
    display: block;
    color: #667587;
    font-size: 0.78rem;
}

.ltrm-pace-item strong {
    display: block;
    margin-top: 4px;
    color: #102033;
    font-size: 1rem;
}

.ltrm-note {
    margin: 0;
    padding: 16px 24px 22px;
    color: #667587;
    font-size: 0.88rem;
    border-top: 1px solid #e8eef3;
}

.ltrm-status {
    min-height: 0;
    padding: 0 24px 18px;
    color: #526173;
    font-size: 0.9rem;
}

.ltrm-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px !important;
    height: 26px !important;
    margin-left: -13px !important;
    margin-top: -13px !important;
    border-radius: 50%;
    background: #0f7b55;
    color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
    font-size: 11px;
    font-weight: 800;
}

.ltrm-start-marker {
    background: #0f7b55;
}

.ltrm-end-marker {
    background: #102033;
}

.ltrm-app .leaflet-container {
    font-family: inherit;
}

.ltrm-app .leaflet-control-attribution {
    font-size: 10px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .ltrm-header,
    .ltrm-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ltrm-distance-box {
        width: 100%;
        text-align: left;
        min-width: 0;
    }

    .ltrm-search {
        width: 100%;
    }

    .ltrm-actions {
        justify-content: flex-start;
    }

    .ltrm-info-grid,
    .ltrm-pace-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ltrm-card {
        border-radius: 16px;
    }

    .ltrm-header,
    .ltrm-toolbar,
    .ltrm-info-grid,
    .ltrm-pace-panel,
    .ltrm-note,
    .ltrm-status {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ltrm-search,
    .ltrm-share-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ltrm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ltrm-btn,
    .ltrm-share-social {
        width: 100%;
    }

    .ltrm-info-grid,
    .ltrm-pace-list {
        grid-template-columns: 1fr;
    }

    .ltrm-map {
        min-height: 420px;
    }

    .ltrm-help-steps {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Standalone paceberegner */
.ltrm-pacecalc,
.ltrm-pacecalc * {
    box-sizing: border-box;
}

.ltrm-pacecalc {
    width: 100%;
    margin: 28px 0;
    font-family: inherit;
    color: #102033;
}

.ltrm-calc-card {
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 32, 51, 0.08);
    overflow: hidden;
}

.ltrm-calc-header {
    padding: 22px 24px;
    background: linear-gradient(135deg, #f4faf7 0%, #ffffff 100%);
    border-bottom: 1px solid #e8eef3;
}

.ltrm-calc-title {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    color: #102033;
}

.ltrm-calc-intro {
    margin: 0;
    max-width: 760px;
    color: #526173;
    font-size: 1rem;
    line-height: 1.55;
}

.ltrm-calc-form {
    padding: 22px 24px;
}

.ltrm-calc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ltrm-calc-field {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e3eaf0;
    border-radius: 16px;
    background: #fbfcfd;
}

.ltrm-calc-field[hidden] {
    display: none !important;
}

.ltrm-calc-field-full {
    grid-column: 1 / -1;
}

.ltrm-calc-field span,
.ltrm-calc-field legend {
    display: block;
    margin: 0 0 7px;
    color: #667587;
    font-size: 0.82rem;
    font-weight: 700;
}

.ltrm-calc-field legend {
    padding: 0;
}

.ltrm-calc-field input,
.ltrm-calc-field select {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #ffffff;
    color: #102033;
    font-size: 0.95rem;
}

.ltrm-calc-field input:focus,
.ltrm-calc-field select:focus {
    outline: 2px solid rgba(15, 123, 85, 0.22);
    border-color: #0f7b55;
}

.ltrm-calc-inline-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ltrm-calc-pace-group .ltrm-calc-inline-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ltrm-calc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ltrm-calc-presets button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 30px;
    padding: 6px 10px;
    background: rgba(15, 123, 85, 0.08);
    color: #0d6648;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.ltrm-calc-presets button:hover {
    background: rgba(15, 123, 85, 0.14);
}

.ltrm-calc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ltrm-calc-result {
    padding: 20px 24px 22px;
    border-top: 1px solid #e8eef3;
    background: #fbfcfd;
}

.ltrm-calc-result-label {
    display: block;
    margin-bottom: 5px;
    color: #667587;
    font-size: 0.82rem;
    font-weight: 700;
}

.ltrm-calc-result-value {
    display: block;
    color: #102033;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
}

.ltrm-calc-result-value.ltrm-calc-error {
    color: #9f1d1d;
}

.ltrm-calc-result-help {
    margin: 7px 0 0;
    color: #667587;
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .ltrm-calc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ltrm-calc-card {
        border-radius: 16px;
    }

    .ltrm-calc-header,
    .ltrm-calc-form,
    .ltrm-calc-result {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ltrm-calc-inline-fields,
    .ltrm-calc-pace-group .ltrm-calc-inline-fields {
        grid-template-columns: 1fr;
    }

    .ltrm-calc-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Standalone løbehastighed beregner */
.ltrm-speedcalc,
.ltrm-speedcalc * {
    box-sizing: border-box;
}

.ltrm-speedcalc {
    width: 100%;
    margin: 28px 0;
    font-family: inherit;
    color: #102033;
}

.ltrm-speed-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ltrm-speed-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 24px 22px;
    border-top: 1px solid #e8eef3;
    background: #fbfcfd;
}

.ltrm-speed-result-card {
    padding: 18px;
    border: 1px solid #e3eaf0;
    border-radius: 16px;
    background: #ffffff;
}

.ltrm-speed-result-card span {
    display: block;
    margin-bottom: 7px;
    color: #667587;
    font-size: 0.82rem;
    font-weight: 700;
}

.ltrm-speed-result-card strong {
    display: block;
    color: #102033;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.22;
}

.ltrm-calc-note {
    margin: 0;
    padding: 0 24px 22px;
    color: #667587;
    font-size: 0.88rem;
    line-height: 1.45;
    background: #fbfcfd;
}

@media (max-width: 900px) {
    .ltrm-speed-grid,
    .ltrm-speed-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ltrm-speed-results,
    .ltrm-calc-note {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Standalone kalorieberegner og VO2max-beregner */
.ltrm-caloriecalc,
.ltrm-caloriecalc *,
.ltrm-vo2calc,
.ltrm-vo2calc * {
    box-sizing: border-box;
}

.ltrm-caloriecalc,
.ltrm-vo2calc {
    width: 100%;
    margin: 28px 0;
    font-family: inherit;
    color: #102033;
}

.ltrm-calorie-grid,
.ltrm-vo2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ltrm-vo2-grid [data-vo2-role][hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .ltrm-calorie-grid,
    .ltrm-vo2-grid {
        grid-template-columns: 1fr;
    }
}

/* Avanceret paceberegner */
.ltrm-pace-advanced-options {
    padding: 0 24px 4px;
}

.ltrm-pace-advanced-options .ltrm-calc-field {
    margin-top: 14px;
}

.ltrm-pace-advanced[hidden] {
    display: none !important;
}

.ltrm-pace-advanced {
    border-top: 1px solid #e8eef3;
    background: #fbfcfd;
}

.ltrm-pace-advanced-section {
    padding: 22px 24px;
    border-bottom: 1px solid #e8eef3;
}

.ltrm-pace-advanced-head {
    margin-bottom: 14px;
}

.ltrm-pace-advanced-head h3 {
    margin: 0 0 5px;
    color: #102033;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.25;
}

.ltrm-pace-advanced-head p {
    margin: 0;
    color: #667587;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ltrm-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3eaf0;
    border-radius: 16px;
    background: #ffffff;
}

.ltrm-pace-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.92rem;
}

.ltrm-pace-table th,
.ltrm-pace-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f6;
    text-align: left;
    vertical-align: middle;
}

.ltrm-pace-table th {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: #f4f7fa;
}

.ltrm-pace-table tr:last-child td {
    border-bottom: 0;
}

.ltrm-zone-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ltrm-zone-card {
    padding: 14px;
    border: 1px solid #e3eaf0;
    border-radius: 16px;
    background: #ffffff;
}

.ltrm-zone-name {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 123, 85, 0.08);
    color: #0d6648;
    font-size: 0.72rem;
    font-weight: 800;
}

.ltrm-zone-card strong {
    display: block;
    margin-bottom: 5px;
    color: #102033;
    font-size: 0.94rem;
}

.ltrm-zone-card em {
    display: block;
    margin-bottom: 7px;
    color: #0f7b55;
    font-style: normal;
    font-weight: 800;
    font-size: 0.88rem;
}

.ltrm-zone-card p {
    margin: 0;
    color: #667587;
    font-size: 0.82rem;
    line-height: 1.4;
}

.ltrm-pace-advanced-note {
    padding-top: 18px;
}

@media (max-width: 1100px) {
    .ltrm-zone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ltrm-pace-advanced-options,
    .ltrm-pace-advanced-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ltrm-zone-grid {
        grid-template-columns: 1fr;
    }

    .ltrm-pace-table {
        min-width: 560px;
    }
}
