.detail {
    padding: 16px;
}

.detail h3 {
    margin: 5px 5px;
}

.detail p a {
    color: var(--accent);
}

.detail p a:visited {
    color: var(--accent);
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.detail-back {
    display: none;
}

.detail-favorite-btn {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.detail-favorite-btn.active {
    color: #eab308;
}

.wind-rose {
    flex-shrink: 0;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.link-chip {
    padding: 6px 10px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.85em;
    text-decoration: none;
    white-space: nowrap;
}

.link-chip:hover {
    background: var(--bg-hover-accent);
}

button.link-chip {
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
    min-height: 0;
}

.share-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("../resources/link_icon.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("../resources/link_icon.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.maps-widget,
.yr-widget {
    display: inline-flex;
}

.maps-widget .link-chip.maps-btn,
.yr-widget .link-chip.yr-btn {
    border-radius: 4px 0 0 4px;
}

.maps-toggle,
.yr-toggle {
    padding: 6px 8px;
    border: 1px solid var(--accent);
    border-left: none;
    border-radius: 0 4px 4px 0;
    background: var(--bg-panel);
    color: var(--accent);
    cursor: pointer;
    font-size: 0.7em;
    box-sizing: border-box;
}

.maps-toggle:hover,
.yr-toggle:hover,
.yr-toggle.open {
    background: var(--bg-hover-accent);
}

.maps-menu {
    display: none;
    position: fixed;
    z-index: 1500;
    padding: 4px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.maps-menu.visible {
    display: block;
}

.maps-option {
    min-width: 130px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-primary);
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.maps-option:hover {
    background: var(--bg-hover);
}

.maps-option.active {
    font-weight: bold;
}

.meteogram-wrap {
    display: none;
    position: fixed;
    z-index: 1500;
    width: min(760px, 95vw);
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.meteogram-wrap.visible {
    display: block;
}

.meteogram-wrap img {
    display: block;
    width: 100%;
}

.meteogram-error {
    display: none;
    width: 260px;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.85em;
    box-sizing: border-box;
}

.meteogram-wrap.error .meteogram-error {
    display: block;
}

.meteogram-wrap.error img {
    display: none;
}