/* ─────────────────────────────────────────────────────────────
   Huishu Reisevorschlag Map – Frontend CSS
   All colors use WordPress theme CSS custom properties.
───────────────────────────────────────────────────────────── */


.huishu-reisevorschlag-map {
    position: relative;
    overflow: hidden;
    font-family: inherit;
}


.hrm-main {
    display: flex;
    min-height: 580px;
    position: relative;
}


.hrm-map-wrap {
    flex: 1 1 50%;
    position: relative;
    min-height: 580px;
}

.hrm-map {
    width: 100%;
    height: 100%;
    min-height: 580px;
    display: block;
}


.hrm-content {
    flex: 1 1 50%;
    background: var(--wp--preset--gradient--brown-gradient,
        linear-gradient(-45deg, rgba(116, 89, 71, 1) 0%, rgba(64, 45, 34, 1) 100%));
    color: var(--wp--preset--color--white, #fff);
    padding: 100px 48px 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hrm-content-header {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.hrm-meta {
    font-size: var(--wp--preset--font-size--small, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--white, #fff);
    opacity: 0.6;
    margin: 0 0 8px;
}

.hrm-post-title {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: var(--wp--preset--color--white, #fff);
    margin: 0;
    line-height: 1.25;
}


.hrm-slider {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.hrm-slider .splide__track {
    overflow: hidden;
    height: 100%;
}

.hrm-slider .splide__list {
    display: flex;
    height: 100%;
}

.hrm-slider .splide__slide {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}


.hrm-slide-title {
    font-size: var(--wp--preset--font-size--large, 1.4375rem);
    font-weight: 700;
    color: var(--wp--preset--color--white, #fff);
    margin: 0 0 16px;
    line-height: 1.3;
}

.hrm-slide-desc {
    font-size: var(--wp--preset--font-size--default, 1.125rem);
    line-height: var(--wp--custom--line-height--default, 1.5);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 28px;
}

.hrm-slide-desc p {
    margin: 0 0 12px;
}


.hrm-haltepunkte {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hrm-location-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 100px;
    color: var(--wp--preset--color--white, #fff);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 22px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.hrm-location-btn:hover,
.hrm-location-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--wp--preset--color--white, #fff);
    outline: none;
}

.hrm-location-btn:focus-visible {
    outline: 3px solid var(--wp--preset--color--light-blue, #87CEEB);
    outline-offset: 2px;
}


.hrm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp--preset--gradient--green-gradient,
        linear-gradient(-58deg, rgba(164, 193, 32, 1) 0%, rgba(107, 142, 14, 1) 100%));
    border: none;
    color: var(--wp--preset--color--white, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.hrm-arrow:hover {
    filter: brightness(0.88);
}

.hrm-arrow:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.hrm-arrow:focus-visible {
    outline: 3px solid var(--wp--preset--color--light-blue, #87CEEB);
    outline-offset: 3px;
}

.hrm-arrow--prev { left: 20px; }
.hrm-arrow--next { right: 20px; }


.hrm-progress-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--wp--preset--color--white, #fff);
    border-radius: 100px;
    padding: 14px 40px;
    box-shadow: 0 4px 24px rgba(64, 45, 34, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 42px;
    max-width: calc(100% - 40px);
}


.hrm-progress-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.hrm-progress-bar__icon svg {
    width: 44px;
    height: 44px;
    fill: var(--wp--preset--color--green);
    stroke: var(--wp--preset--gradient--green-gradient);
}


.hrm-steps {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 55px;
}

.hrm-step-item {
    display: flex;
    align-items: center;
    position: relative;
}


.hrm-step-item::before {
  content: '';
  position: absolute;
  width: 95px;
  top: 50%;
  transform: translateX(-50%);
  left: calc(50% + 10px);
  height: 2px;
  background: rgba(107, 142, 14, 0.2);
  z-index: -1;
  transition: background 0.3s ease;
}

.hrm-step-item.hrm-step-item--past::before,
.hrm-step-item.hrm-step-item--current::before {
    background: var(--wp--preset--color--green, #6B8E0E);
}


.hrm-step {
    position: relative;
    width: 33px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.hrm-step__pin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--wp--preset--color--medium-grey, #B9BAC0);
    transition: fill 0.2s ease;
}

.hrm-step:hover .hrm-step__pin {
    fill: var(--wp--preset--color--green, #6B8E0E);
}

.hrm-step--active .hrm-step__pin {
    fill: var(--wp--preset--color--green, #6B8E0E);
}

.hrm-step--active {
    transform: scale(1.25);
}


.hrm-step__num {
    position: relative;
    font-size: 18px;
    z-index: 1;
    color: var(--wp--preset--color--white, #fff);
    font-weight: 400;
    line-height: 1;
    margin-top: 7px;
    font-family: inherit;
}

.hrm-step:focus-visible {
    outline: 3px solid var(--wp--preset--color--light-blue, #87CEEB);
    outline-offset: 3px;
    border-radius: 2px;
}


.hrm-editor-placeholder {
    background: var(--wp--preset--color--light-grey, #F7F8FA);
    border: 2px dashed var(--wp--preset--color--medium-grey, #B9BAC0);
    border-radius: 4px;
    padding: 48px 32px;
    text-align: center;
    color: var(--wp--preset--color--brown, #402D22);
}

.hrm-editor-placeholder__icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: var(--wp--preset--color--green, #6B8E0E);
}

.hrm-editor-placeholder strong {
    display: block;
    font-size: 1.125rem;
}

.hrm-editor-placeholder__hint {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
}


@media ( max-width: 768px ) {
    .hrm-main {
        flex-direction: column;
    }

    .hrm-map-wrap,
    .hrm-map {
        min-height: 320px;
    }

    .hrm-content {
        padding: 32px 24px 64px;
    }

    .hrm-progress-bar {
        padding: 6px 10px;
        gap: 6px;
        overflow-x: auto;
        max-width: calc(100% - 16px);
    }

    .hrm-step {
        width: 16px;
        height: 22px;
    }

    .hrm-step__num {
        font-size: 6px;
        margin-top: 5px;
    }

    .hrm-arrow {
        width: 40px;
        height: 40px;
    }

    .hrm-arrow--prev { left: 8px; }
    .hrm-arrow--next { right: 8px; }

    .hrm-post-title {
        font-size: 1.375rem;
    }
}

@media ( max-width: 480px ) {
    .hrm-progress-bar__icon {
        display: none;
    }
}
