.sim-world-map-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    font-family: inherit;
}

@media (max-width: 1024px) {
    .sim-world-map-wrapper {
        grid-template-columns: 1fr;
    }
    .sim-map-content { order: 2; }
    .sim-map-outer { order: 1; }
}

/* Content Panel (Left) */
.sim-map-content {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.sim-map-panel {
    display: none;
    animation: simFadeIn 0.25s ease;
}
.sim-map-panel.active { display: block; }

@keyframes simFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sim-panel-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--black-green, #1a3a2f);
}
.sim-panel-intro {
    color: #666;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Region List (World View) */
.sim-regions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sim-regions-list li {
    margin: 0;
    border-bottom: 1px solid #eee;
}
.sim-regions-list li:last-child { border-bottom: none; }

.sim-region-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.sim-region-item:hover { padding-left: 8px; }
.sim-region-item:hover .sim-region-name { color: var(--sim-red, #E53935); }

.sim-region-name {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--black-green, #1a3a2f);
    transition: color 0.15s ease;
}
.sim-chevron {
    width: 18px;
    height: 18px;
    color: #ccc;
    transition: transform 0.15s ease, color 0.15s ease;
}
.sim-region-item:hover .sim-chevron {
    transform: translateX(3px);
    color: var(--sim-red, #E53935);
}

/* Region View Header */
.sim-panel-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.sim-region-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--black-green, #1a3a2f);
}
.sim-region-blurb {
    color: #555;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Countries List (Region View) */
.sim-countries-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sim-countries-list li {
    margin: 0;
    border-bottom: 1px solid #eee;
}
.sim-countries-list li:last-child { border-bottom: none; }

.sim-country-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.sim-country-item:hover { padding-left: 8px; }
.sim-country-item:hover .sim-country-name { color: var(--sim-red, #E53935); }

.sim-country-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--black-green, #1a3a2f);
    transition: color 0.15s ease;
}
.sim-country-item .sim-chevron {
    width: 16px;
    height: 16px;
}
.sim-country-item:hover .sim-chevron {
    transform: translateX(3px);
    color: var(--sim-red, #E53935);
}

/* Country View */
.sim-country-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sim-country-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--black-green, #1a3a2f);
}

.sim-country-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.sim-country-blurb {
    font-size: 1rem;
    color: var(--black-green, #1a3a2f);
    line-height: 1.6;
}

.sim-country-extended {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}
.sim-country-extended p { margin: 0 0 0.75rem; }
.sim-country-extended p:last-child { margin-bottom: 0; }

.sim-country-prayer {
    background: var(--sand-50, #f9f7f4);
    padding: 1rem 1.25rem;
    border-radius: 8px;
}
.sim-country-prayer h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--black-green, #1a3a2f);
}
.sim-prayer-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    color: #555;
    font-size: 0.9rem;
}
.sim-prayer-list li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}
.sim-prayer-list li:last-child { margin-bottom: 0; }

/* Country Actions Row */
.sim-country-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}

.sim-country-cta { flex-shrink: 0; }
.sim-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--sim-red, #E53935);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sim-cta-button:hover {
    background: #C62828;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}
.sim-cta-button svg { width: 16px; height: 16px; }

/* Share Buttons */
.sim-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: var(--black-green, #1a3a2f);
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.sim-share-btn:hover {
    border-color: var(--sim-red, #E53935);
    color: var(--sim-red, #E53935);
}
.sim-share-btn svg {
    width: 16px;
    height: 16px;
}

.sim-share-country {
    padding: 10px;
    flex-shrink: 0;
}
.sim-share-country svg {
    width: 18px;
    height: 18px;
}

/* Map Panel (Right) */
.sim-map-outer {
    position: relative;
    border-radius: 12px;
    /*overflow: hidden;*/

}

.sim-map-container {
    width: 100%;
    height: 500px;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 58px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 12px;
}

.sim-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none; /* Prevent browser handling of touch gestures */
}
.sim-map-svg:active { cursor: grabbing; }

/* Clickable SVG Regions */
.sim-map-svg g[id] {
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.sim-map-svg g[id]:hover {
    opacity: 0.85;
}

/* Region highlight border when selected */
.sim-map-svg g[id].sim-region-active path,
.sim-map-svg g[id].sim-region-active polygon,
.sim-map-svg g[id].sim-region-active rect {
    fill: var(--black-green, #1a3a2f);
}

.sim-map-markers circle {
    cursor: pointer;
}

/* Navigation Bar */
.sim-map-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}
.sim-map-nav > * {
    pointer-events: auto;
}

.sim-map-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.sim-map-back:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sim-map-back svg { width: 18px; height: 18px; color: var(--black-green, #1a3a2f); }

/* Breadcrumb */
.sim-breadcrumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--black-green, #1a3a2f);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 5px 14px 4px;
}
.sim-crumb {
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}
.sim-crumb:hover { color: var(--sim-red, #E53935); }
.sim-crumb-sep { 
    color: #999;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
.sim-crumb-region, .sim-crumb-country, 
.sim-crumb-sep:nth-of-type(1), .sim-crumb-sep:nth-of-type(2) {
    display: none;
}
.sim-crumb-region.visible, .sim-crumb-country.visible { display: inline; }
.sim-crumb-sep.visible { display: inline; }

/* Placeholder */
.sim-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sim-map-container { height: 350px; }
}

@media (max-width: 600px) {
    .sim-world-map-wrapper { gap: 1rem; }
    .sim-map-container { height: 280px; }
    .sim-panel-title, .sim-region-title, .sim-country-title { font-size: 1.2rem; }
    .sim-region-item, .sim-country-item { padding: 12px 0; }
    .sim-map-nav { padding: 10px 12px; }
    .sim-breadcrumb { font-size: 0.8rem; }
    .sim-country-actions { flex-wrap: wrap; }
}

@media print {
    .sim-map-nav { display: none !important; }
}
