/* Application button skin: keeps existing classes, events and control sizes. */
body :is(#storyTourRailBtn, #tourPlannerRailBtn) { position: relative; overflow: visible; }
.gis-new-badge {
    position: absolute; top: -7px; right: -7px; z-index: 3;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 29px; height: 16px; padding: 0 4px;
    background: #dc2626; color: #fff; border: 1px solid #fff;
    border-radius: 6px; box-shadow: 0 2px 5px #991b1b26;
    font: 700 9px/1 Almarai, sans-serif;
    white-space: nowrap; pointer-events: none;
}
@media (max-width: 768px) {
    .gis-new-badge { top: -4px; right: -3px; min-width: 26px; height: 15px; font-size: 8px; padding: 0 3px; }
}
@media (min-width: 769px) {
    .gis-nav-rail > .gis-rail-btn[data-pane="about"] { margin-top: auto; flex-shrink: 0; }
}
body :is(.btn, .gis-btn, .gis-search-btn, .gis-rail-btn, .gis-tag-btn, .gis-lb-btn, .gis-lb-nav, .gis-drawer-close-btn, .gis-layers-close-btn, .gis-popup-reset-btn, .story-stations button, .story-video-play) {
    -webkit-tap-highlight-color: transparent;
    font-family: Almarai, sans-serif;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
body :is(.btn, .gis-btn) {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0;
    border: 1px solid transparent;
    box-shadow: none;
    text-decoration: none;
}
body :is(.btn-primary, .gis-btn-primary, .gis-search-btn) {
    background: linear-gradient(145deg, #315cc9, #1e40af);
    border-color: #2347ac;
    color: #fff;
    box-shadow: inset 0 1px 0 #ffffff26, 0 3px 8px #1e40af1c;
}
body :is(.btn-primary, .gis-btn-primary, .gis-search-btn):hover:not(:disabled) {
    background: linear-gradient(145deg, #3d6bd8, #264dbb);
    border-color: #315cc9;
    box-shadow: inset 0 1px 0 #ffffff30, 0 4px 12px #1e40af28;
    transform: none;
}
body :is(.gis-btn-directions, .btn-success) {
    background: linear-gradient(145deg, #0b9b79, #087b61);
    border-color: #087b61;
    color: #fff;
    box-shadow: inset 0 1px 0 #ffffff26, 0 3px 8px #087b611c;
}
body :is(.gis-btn-directions, .btn-success):hover {
    background: linear-gradient(145deg, #10aa85, #09896c);
    transform: none;
}
body :is(.btn-outline-primary, .btn-secondary, .story-details) {
    background: #f1f5fc;
    border-color: #d7e1f2;
    color: #294d9c;
    box-shadow: inset 0 1px 0 #fff;
}
body :is(.btn-outline-primary, .btn-secondary, .story-details):hover:not(:disabled) {
    background: #e6eefb;
    border-color: #b6caee;
    color: #1e40af;
}
body .family-card-actions .btn { padding: 8px 14px !important; font-size: .78rem; }
body #videoAccordion .btn-link {
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    text-decoration: none !important;
    line-height: 1.7;
}
body #videoAccordion .btn-link:hover { color: #1e40af !important; }
body .gis-rail-btn {
    border-radius: 12px;
    color: #596b87;
    background: transparent;
    border: 1px solid transparent;
}
body .gis-rail-btn:hover { background: #edf3ff; color: #264dbb; transform: none; }
body .gis-rail-btn.active {
    background: linear-gradient(145deg, #315cc9, #1e40af);
    color: #fff;
    border-color: #2347ac;
    box-shadow: inset 0 1px 0 #ffffff26, 0 3px 10px #1e40af26;
}
body .gis-search-btn { border-radius: 10px; }
body .gis-tag-btn { border-radius: 9px; border: 1px solid #dce6f5; background: #f1f5fc; color: #294d9c; }
body .gis-tag-btn:hover { background: #e4edfd; color: #1e40af; }
body :is(.gis-drawer-close-btn, .gis-layers-close-btn, .gis-popup-reset-btn) { border-radius: 9px; }
body .gis-drawer-close-btn { background: #ffffff24; border: 1px solid #ffffff30; }
body .gis-drawer-close-btn:hover { background: #ffffff38; transform: none; }
body :is(.gis-lb-btn, .gis-lb-nav) { border-radius: 10px; }
body .story-controls :is(button, a) { border-radius: 12px; }
body :is(.story-stations button, .story-video-play) { border-radius: 11px; }
body .story-toolbar .story-stations button[aria-current=true] { background: #eaf1ff; border-color: #b4c8ed; color: #21449b; box-shadow: inset 0 0 0 1px #b4c8ed; }
body .leaflet-control-zoom { border: 1px solid #e2e8f0 !important; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px #0f172a12; }
body .leaflet-control-zoom a { background: #fffffff5; color: #475569; }
body .leaflet-control-zoom a:hover { background: #edf3ff; color: #1e40af; }
body :is(.btn, .gis-btn, .gis-search-btn, .gis-rail-btn, .gis-tag-btn, .gis-lb-btn, .gis-lb-nav, .gis-drawer-close-btn, .gis-layers-close-btn, .gis-popup-reset-btn, .story-stations button, .story-video-play):focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
    box-shadow: none;
}
body :is(.btn, .gis-btn, .gis-search-btn):active:not(:disabled) { filter: brightness(.94); }
body :is(.btn, .gis-btn, .gis-search-btn):disabled, body .btn.disabled {
    opacity: .45;
    box-shadow: none;
    cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
    body :is(.btn, .gis-btn, .gis-search-btn, .gis-rail-btn, .gis-tag-btn, .gis-lb-btn, .gis-lb-nav, .gis-drawer-close-btn, .gis-layers-close-btn, .gis-popup-reset-btn, .story-stations button, .story-video-play) { transition: none; }
}
