/* ═══════════════════════════════════════════════════════
   ONHYM Global Presence v3 – Interactive Operations
   ═══════════════════════════════════════════════════════ */

/* ─── Section ─────────────────────────────────────────── */
.ogp-section {
    max-width: 1340px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    font-family: 'Inter', sans-serif;
    color: #1a2e35;
}

/* ─── Header ──────────────────────────────────────────── */
.ogp-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.ogp-header-left { flex-shrink: 0; }
.ogp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--ogp-teal);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.ogp-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f2b33;
    line-height: 1.2;
    margin: 0; padding: 0;
}
.ogp-header-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ─── Selects ─────────────────────────────────────────── */
.ogp-select-wrap { position: relative; }
.ogp-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #1a2e35;
    background: #f7f9fa;
    border: 1.5px solid #e2e8ed;
    border-radius: 12px;
    padding: 13px 44px 13px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    min-width: 260px;
}
.ogp-select:hover { border-color: #b0c4cc; background: #f0f5f7; }
.ogp-select:focus { border-color: var(--ogp-teal); background: #fff; box-shadow: 0 0 0 3px rgba(26,92,107,.08); }
.ogp-select-caret {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none; color: #8fa3ad;
    display: flex; align-items: center;
}
.ogp-select-wrap:hover .ogp-select-caret { color: var(--ogp-teal); }

/* OK Button */
.ogp-ok-btn {
    background: var(--ogp-teal);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: .5px;
}
.ogp-ok-btn:hover { background: #145159; transform: translateY(-1px); }

/* ─── Content Layout ──────────────────────────────────── */
.ogp-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ─── Country List (Left) ─────────────────────────────── */
.ogp-country-list {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ogp-country-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f7f8;
    border: 1px solid #e0e4e8;
    border-left: 3px solid #e0e4e8;
    border-radius: 6px;
    padding: 20px 22px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #0f2b33;
    text-align: left;
}
.ogp-country-btn:hover {
    border-color: var(--ogp-teal);
    border-left-color: var(--ogp-gold);
    background: #fdf8e8;
}
.ogp-country-btn.active {
    background: linear-gradient(90deg, var(--ogp-gold) 0%, #f0d060 50%, #fef5c3 100%) !important;
    border-color: var(--ogp-gold) !important;
    border-left: 4px solid var(--ogp-gold) !important;
    border-radius: 40px !important;
}
.ogp-btn-arrow {
    display: flex;
    align-items: center;
    color: var(--ogp-teal);
    transition: transform 0.3s ease;
}
.ogp-country-btn:hover .ogp-btn-arrow,
.ogp-country-btn.active .ogp-btn-arrow { transform: translateX(4px); }

/* ─── Map Area (Right) ────────────────────────────────── */
.ogp-map-area {
    flex: 1;
    min-width: 0;
}
.ogp-map-wrap {
    position: relative;
    min-height: 380px;
}
.ogp-map-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.55;
}

/* ─── Map Markers ─────────────────────────────────────── */
.ogp-marker {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ogp-marker.active { opacity: 1; pointer-events: auto; }
.ogp-marker-dot {
    width: 16px; height: 16px;
    background: var(--ogp-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212,160,23,.3);
    animation: ogp-pulse 2s infinite;
    cursor: pointer;
}
@keyframes ogp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,160,23,.5); }
    70%  { box-shadow: 0 0 0 12px rgba(212,160,23,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); }
}
.ogp-marker-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--ogp-gold);
    padding: 10px 16px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    min-width: 140px;
}
.ogp-marker-label::after {
    content: '';
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--ogp-gold);
}
.ogp-marker-label strong { font-size: 15px; font-weight: 800; color: #0f2b33; }
.ogp-marker-label span   { font-size: 13px; font-weight: 600; color: #2d5a1e; }

/* ─── Operations Panel (Panel 1) ──────────────────────── */
.ogp-ops-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 320px;
    max-height: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.14), 0 1px 4px rgba(0,0,0,.08);
    z-index: 30;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.ogp-ops-panel.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.ogp-ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.ogp-ops-country {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ogp-ops-flag { font-size: 28px; line-height: 1; }
.ogp-ops-name { font-size: 18px; font-weight: 700; color: #0f2b33; }
.ogp-ops-close {
    background: none; border: none;
    font-size: 24px; color: #8fa3ad;
    cursor: pointer; padding: 0 4px;
    transition: color .2s;
}
.ogp-ops-close:hover { color: #0f2b33; }
.ogp-ops-title {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8fa3ad;
}
.ogp-ops-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
}
.ogp-ops-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    margin: 0;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ogp-teal) !important;
    border: none !important;
    border-bottom: 1px solid #ebebeb !important;
    background: #fff !important;
    width: 100%;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    box-shadow: none !important;
}
.ogp-ops-row:last-child { border-bottom: none !important; }
.ogp-ops-row:hover {
    background: #f4f8f9 !important;
}
.ogp-ops-row.active {
    background: linear-gradient(90deg, var(--ogp-gold) 0%, #f0d060 50%, #fef5c3 100%) !important;
    color: #0f2b33 !important;
    border-radius: 24px !important;
    border-bottom-color: transparent !important;
    padding: 13px 18px;
    margin: 2px 0;
}
.ogp-ops-row.active + .ogp-ops-row { border-top: none; }
.ogp-ops-row-arrow {
    font-size: 16px;
    font-weight: 700;
    color: var(--ogp-teal);
    transition: transform .2s, opacity .2s;
    opacity: .4;
    flex-shrink: 0;
    margin-left: 8px;
}
.ogp-ops-row:hover .ogp-ops-row-arrow { opacity: .7; }
.ogp-ops-row.active .ogp-ops-row-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: #0f2b33;
}

/* ─── Detail Panel (Panel 2) ──────────────────────────── */
.ogp-detail-panel {
    margin-top: 16px;
    background: #fff;
    border-radius: 14px;
    border-left: 5px solid var(--ogp-gold);
    box-shadow: 0 6px 30px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, margin .3s ease;
}
.ogp-detail-panel.visible {
    max-height: 500px;
    opacity: 1;
}
.ogp-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 0;
}
.ogp-detail-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ogp-teal);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}
.ogp-detail-close {
    background: none; border: none;
    font-size: 22px; color: #8fa3ad;
    cursor: pointer; padding: 0 4px;
    transition: color .2s;
    flex-shrink: 0;
}
.ogp-detail-close:hover { color: #0f2b33; }
.ogp-detail-body {
    padding: 16px 24px;
    font-size: 14px;
    line-height: 1.75;
    color: #4a6670;
    max-height: 220px;
    overflow-y: auto;
}
.ogp-detail-body p { margin: 0 0 12px; }
.ogp-detail-body p:last-child { margin-bottom: 0; }
.ogp-detail-cta {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ogp-gold);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.ogp-detail-cta:hover { color: #b8860b; padding-left: 30px; }

/* ─── Branch Details ──────────────────────────────────── */
.ogp-branch {
    margin-top: 24px;
}
.ogp-branch-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f2b33;
    margin: 0 0 14px;
}
.ogp-branch-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #4a6670;
}
.ogp-branch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ogp-teal);
}
.ogp-branch-item svg { flex-shrink: 0; }
.ogp-branch-item span { color: #4a6670; }
.ogp-branch-sep {
    color: #b0c4cc;
    font-size: 18px;
    font-weight: 300;
}

/* ─── Scrollbar ───────────────────────────────────────── */
.ogp-ops-list::-webkit-scrollbar,
.ogp-detail-body::-webkit-scrollbar { width: 5px; }
.ogp-ops-list::-webkit-scrollbar-thumb,
.ogp-detail-body::-webkit-scrollbar-thumb { background: #d0d8dc; border-radius: 10px; }
.ogp-ops-list::-webkit-scrollbar-track,
.ogp-detail-body::-webkit-scrollbar-track { background: transparent; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
    .ogp-section { padding: 40px 20px 60px; }
    .ogp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .ogp-header-filters { width: 100%; flex-direction: column; }
    .ogp-select { min-width: 0; width: 100%; }
    .ogp-content { flex-direction: column; }
    .ogp-country-list { flex: none; width: 100%; }
    .ogp-title { font-size: 28px; }

    /* Panels stack under map on mobile */
    .ogp-ops-panel {
        position: relative;
        top: auto; right: auto;
        width: 100%;
        margin-top: 16px;
        transform: none;
    }
    .ogp-ops-panel.visible { transform: none; }
}
