.htg-wrap {
    margin: 28px 0;
    font-family: inherit;
}

.htg-card {
    background: #ffffff;
    border: 1px solid #e7e2d9;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(35, 32, 27, 0.05);
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.htg-card__header {
    margin-bottom: 18px;
}

.htg-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c46a2f;
    margin-bottom: 8px;
}

.htg-title {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
    color: #1f2a37;
}

.htg-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

.htg-destination-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf2 0%, #fff 100%);
    border: 1px solid #f0ddc6;
}

.htg-destination-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #c46a2f;
    margin-bottom: 6px;
}

.htg-destination-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2a37;
    line-height: 1.3;
}

.htg-destination-source {
    margin-top: 6px;
    font-size: 13px;
    color: #7b8794;
}

.htg-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.htg-alert--warn {
    background: #fff9ec;
    border: 1px solid #f0ddb0;
    color: #76530c;
}

.htg-alert--error {
    background: #fff4f4;
    border: 1px solid #efcaca;
    color: #8a1f1f;
}

.htg-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 220px;
    gap: 14px;
    align-items: end;
}

.htg-field {
    display: flex;
    flex-direction: column;
}

.htg-field--autocomplete {
    position: relative;
}

.htg-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.htg-label--ghost {
    opacity: 0;
    pointer-events: none;
}

.htg-input,
.htg-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #ddd4c8;
    border-radius: 14px;
    background: #fff;
    padding: 0 16px;
    font-size: 15px;
    color: #1f2937;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.htg-input::placeholder {
    color: #94a3b8;
}

.htg-input:focus,
.htg-select:focus {
    border-color: #d98648;
    box-shadow: 0 0 0 4px rgba(212, 125, 48, 0.12);
    background: #fffdfa;
}

.htg-button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    padding: 0 20px;
    background: linear-gradient(135deg, #d97732 0%, #c85d20 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 22px rgba(200, 93, 32, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.htg-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(200, 93, 32, 0.28);
}

.htg-button:active {
    transform: translateY(0);
}

.htg-button__icon {
    font-size: 15px;
    line-height: 1;
}

.htg-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #ffffff;
    border: 1px solid #e7ddcf;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 24, 32, 0.12);
    overflow: hidden;
}

.htg-suggestion-item {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    border-bottom: 1px solid #f3ece2;
    transition: background 0.15s ease;
}

.htg-suggestion-item:last-child {
    border-bottom: 0;
}

.htg-suggestion-item:hover {
    background: #fff8ef;
}

.htg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 32, 0.58);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.htg-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 32px));
    max-height: 92vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(16, 24, 40, 0.28);
    z-index: 9999;
    border: 1px solid #ede7dc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.htg-modal__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee7dd;
    background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
}

.htg-modal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c46a2f;
    margin-bottom: 4px;
}

.htg-modal__title {
    font-size: 20px;
    color: #1f2a37;
}

.htg-modal__close {
    width: 42px;
    height: 42px;
    border: 1px solid #eadfce;
    border-radius: 999px;
    background: #fff;
    color: #465367;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.htg-modal__close:hover {
    background: #fff8ef;
    border-color: #deb98f;
    transform: scale(1.02);
}

.htg-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.htg-modal__content {
    padding: 0;
    overflow: visible;
    line-height: 1.75;
    color: #1f2937;
    font-size: 15px;
}

.htg-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
}

.htg-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #eadfce;
    border-top-color: #d97732;
    border-radius: 999px;
    animation: htg-spin 0.8s linear infinite;
}

@keyframes htg-spin {
    to {
        transform: rotate(360deg);
    }
}

.htg-modal-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #f4efe7;
    color: #6b7280;
}

.htg-modal-destination {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff9ef;
    border: 1px solid #f1dfc5;
}

.htg-modal-destination strong {
    color: #1f2a37;
}

.htg-modal-body {
    color: #334155;
}

.htg-map-wrap {
    width: 100%;
    margin-bottom: 20px;
}

.htg-map-meta {
    line-height: 1.5;
    padding-bottom: 15px;
}

.htg-route-map {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
}

.htg-route-grid {
    display: grid;
    gap: 14px;
}

.htg-route-card {
    border: 1px solid #ebe3d7;
    background: #fffdfa;
    border-radius: 16px;
    padding: 16px;
}

.htg-route-card--highlight {
    background: linear-gradient(180deg, #fff7ee 0%, #fffdfa 100%);
    border-color: #f0d3b7;
}

.htg-route-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.htg-route-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f8efe4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 38px;
}

.htg-route-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2a37;
    line-height: 1.3;
}

.htg-route-card__body p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.75;
}

.htg-route-card__body p:last-child {
    margin-bottom: 0;
}

.htg-route-list {
    margin: 8px 0 0 0;
    padding-left: 18px;
    color: #475569;
}

.htg-route-list li {
    margin-bottom: 8px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .htg-card {
        margin-left: 15px;
        margin-right: 15px;
    }

    .htg-form__grid {
        grid-template-columns: 1fr;
    }

    .htg-title {
        font-size: 26px;
    }

    .htg-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .htg-modal {
        width: calc(100vw - 20px);
        max-height: 94vh;
        border-radius: 18px;
    }

    .htg-modal__header {
        padding: 16px 18px;
    }

    .htg-modal__body {
        padding: 16px;
    }

    .htg-route-map {
        height: 240px;
    }

    .htg-route-card {
        padding: 14px;
    }

    .htg-route-card__title {
        font-size: 17px;
    }
}
.htg-article-map-block {
    margin: 28px 0 0;
    padding: 18px;
    border: 1px solid #ebe3d7;
    background: #fffdfa;
    border-radius: 16px;
}

.htg-article-map-meta {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.htg-article-map {
    width: 100%;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .htg-article-map {
        height: 240px;
    }
}
.htg-retry-box {
    text-align: center;
    padding: 18px;
}

.htg-retry-message {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.5;
}

.htg-button--retry {
    min-width: 180px;
}

.htg-route-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.htg-route-card__head > ul,
.htg-route-card__head > ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.htg-route-card__head li {
    list-style: none;
}

.htg-route-card__head li::marker {
    content: "";
}

.htg-route-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f8efe4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 38px;
    color: #c46a2f;
    box-shadow: inset 0 0 0 1px #f0ddc6;
}
.htg-route-card:nth-of-type(1) .htg-route-card__icon::before {
    content: "🧭";
}

.htg-route-card:nth-of-type(2) .htg-route-card__icon::before {
    content: "🚗";
}

.htg-route-card:nth-of-type(3) .htg-route-card__icon::before {
    content: "📍";
}

.htg-route-card:nth-of-type(4) .htg-route-card__icon::before {
    content: "💡";
}
