/* Oxygen shortcode wrapper replaced the full-width code block. */
#shortcode-8-13381 { width: 100%; }
.ct-shortcode:has(.holiday-map-wrapper) { width: 100%; }

#holiday-world-map,
#holiday-world-map *,
.holiday-map-popup,
.holiday-map-pin-number,
.easypost-info-badge,
.easypost-info-tooltip,
.easypost-blog-badge {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
.holiday-map-wrapper {
    position: relative !important;
    width: 100% !important;
}
#holiday-world-map {
    width: 100% !important;
    height: 600px !important;
    min-height: 400px !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    background-color: #f4f4f4;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
}

/* Timeline controls */
.map-timeline-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.map-timeline-controls label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    white-space: nowrap;
}
.map-timeline-controls .year-range-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
    min-width: 220px;
}
.map-timeline-controls .year-slider {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.map-timeline-controls .year-slider-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
}
.map-timeline-controls input[type="range"] {
    flex: 1;
    accent-color: #d71920;
    height: 6px;
}
.map-timeline-controls .year-display {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    min-width: 110px;
    text-align: center;
}
.map-timeline-controls .map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
}
.map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.map-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.leaflet-marker-icon.holiday-map-pin-wrapper {
    background: transparent !important;
    border: none !important;
}
.holiday-map-pin-wrapper {
    width: 38px !important;
    height: 48px !important;
    position: relative;
}
.holiday-map-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    left: 3px;
    top: 0;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
    box-sizing: border-box;
}
.holiday-map-pin-number {
    position: absolute;
    width: 32px !important;
    height: 32px !important;
    left: 0;
    top: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.holiday-map-popup {
    width: 240px;
    box-sizing: border-box;
}
.holiday-map-popup-list {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}
.holiday-map-popup-list li {
    border-top: 1px solid #e5e5e5;
    padding: 6px 0;
}
.holiday-map-popup-list a {
    display: block;
    color: #2271b1;
    text-decoration: none;
}
.holiday-map-popup-long-name {
    display: block;
    font-size: 11px;
    color: #666666;
    margin-top: 2px;
}

/* Ensure post container allows floating badges */
.oxy-easypost,
.oxy-post {
    position: relative !important;
    overflow: visible !important;
}
.easypost-info-badge-wrapper {
    position: absolute;
    top: 62px;
    right: 32px;
    z-index: 99;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.easypost-info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(30, 30, 30, 0.9);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.easypost-info-badge:hover {
    background-color: #000000;
    transform: scale(1.05);
}
.easypost-info-badge svg {
    width: 15px;
    height: 15px;
    fill: #f5b000;
    flex-shrink: 0;
}

.easypost-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    z-index: 100;
}
.easypost-blog-badge:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
    color: #ffffff !important;
}

.easypost-info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    max-height: 220px;
    overflow-y: auto;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 100;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.easypost-info-tooltip::-webkit-scrollbar {
    width: 5px;
}
.easypost-info-tooltip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.easypost-info-tooltip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.easypost-info-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 16px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1a1a1a transparent;
}
.easypost-info-badge-wrapper:hover .easypost-info-tooltip,
.easypost-info-badge-wrapper.is-active .easypost-info-tooltip {
    visibility: visible;
    opacity: 1;
}

body #holiday-scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    z-index: 2147483647 !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #d71920 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
}
body #holiday-scroll-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
body #holiday-scroll-to-top svg {
    width: 26px !important;
    height: 26px !important;
    fill: #ffffff !important;
    display: block !important;
    margin: 0 auto !important;
}

@media screen and (max-width: 768px) {
    #holiday-world-map {
        height: 450px !important;
    }
    .map-timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }
    body #holiday-scroll-to-top {
        right: auto !important;
        left: 50% !important;
        bottom: 30px !important;
        transform: translateX(-50%) !important;
        width: 48px !important;
        height: 48px !important;
    }
}

