/* ═══════════════════════════════════════════════
   Project Map Pro — styles
   ═══════════════════════════════════════════════ */

/* ── Wrapper ── */
.pmp-wrap { max-width: 1100px; margin: 0 auto; font-family: inherit; }

.pmp-heading {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a2e4a;
}

/* ── Map skeleton loading ── */
.pmp-map-skeleton {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #eef4fb 25%, #dce8f5 50%, #eef4fb 75%);
    background-size: 200% 100%;
    animation: pmp-shimmer 1.6s infinite;
    border-radius: 10px;
    color: #6b8aac;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
@keyframes pmp-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Stats bar ── */
.pmp-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 28px;
    padding: 16px 24px;
    background: linear-gradient(135deg,#1a3a5c,#2d6fa0);
    border-radius: 12px;
    color: #fff;
}
.pmp-stat { text-align: center; }
.pmp-stat__num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}
.pmp-stat__label {
    font-size: 12px;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Map container ── */
.pmp-map-container {
    position: relative;
    max-width: 520px;
    margin: 0 auto 36px;
}

#pmp-map-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.12));
}

.pmp-outline { transition: fill .3s; }

/* Bubble hover */
.pmp-bubble-group { transition: opacity .2s; }
.pmp-bubble-group:hover { opacity: 1 !important; }

/* ── Tooltip ── */
.pmp-tooltip {
    position: absolute;
    background: #1a2e4a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    z-index: 100;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.pmp-tooltip__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pmp-tooltip__count {
    display: block;
    opacity: .85;
    margin-bottom: 6px;
}
.pmp-tooltip__link {
    color: #7ec8f8;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.pmp-tooltip__link:hover { color: #fff; }

/* ── Legend ── */
.pmp-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
.pmp-legend__bar {
    width: 120px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right,#c8def7,#1a5fa0);
}
.pmp-legend__item--sm { font-size: 11px; }
.pmp-legend__item--lg { font-size: 11px; }

/* ── Province table ── */
.pmp-table-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 0 0 16px;
}

.pmp-province-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width:900px) { .pmp-province-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:640px) { .pmp-province-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:400px) { .pmp-province-grid { grid-template-columns: 1fr; } }

.pmp-province-card { border-radius: 8px; overflow: hidden; }
.pmp-province-card__link {
    text-decoration: none;
    display: block;
}
.pmp-province-card__inner {
    background: #f4f8fd;
    border: 1px solid #dce8f5;
    border-radius: 8px;
    padding: 10px 12px;
    transition: background .2s, box-shadow .2s;
}
.pmp-province-card__link:hover .pmp-province-card__inner {
    background: #e8f2fc;
    box-shadow: 0 2px 8px rgba(74,144,217,.18);
}
.pmp-province-card__name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1a3a5c;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pmp-province-card__count {
    display: block;
    font-size: 12px;
    color: #2d6fa0;
    font-weight: 700;
    margin-bottom: 6px;
}
.pmp-province-card__bar {
    height: 4px;
    background: #dce8f5;
    border-radius: 2px;
    overflow: hidden;
}
.pmp-province-card__fill {
    height: 100%;
    background: linear-gradient(to right,#4a90d9,#1a5fa0);
    border-radius: 2px;
    transition: width .6s ease;
}

/* ═══════════════════════════════════════════════
   Trang tỉnh thành (taxonomy-ppp_province)
   ═══════════════════════════════════════════════ */

.pmp-province-page { background: #fff; }

/* Hero */
.pmp-province-hero {
    background: linear-gradient(135deg,#1a3a5c 0%,#2d6fa0 100%);
    color: #fff;
    padding: 48px 20px 40px;
}
.pmp-province-hero__inner {
    max-width: 960px;
    margin: 0 auto;
}

.pmp-breadcrumb {
    font-size: 13px;
    opacity: .75;
    margin-bottom: 16px;
}
.pmp-breadcrumb a { color: #7ec8f8; text-decoration: none; }
.pmp-breadcrumb a:hover { text-decoration: underline; }
.pmp-breadcrumb span { margin: 0 6px; }

.pmp-province-hero__title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
}
.pmp-province-hero__title span { color: #7ec8f8; }

.pmp-province-hero__desc {
    font-size: 16px;
    opacity: .9;
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.pmp-province-hero__stats {
    display: flex;
    gap: 32px;
}
.pmp-ph-stat strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}
.pmp-ph-stat span {
    font-size: 13px;
    opacity: .75;
}

/* Main layout */
.pmp-province-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    max-width: 1060px;
    margin: 36px auto;
    padding: 0 20px;
    align-items: start;
}
@media (max-width:860px) { .pmp-province-main { grid-template-columns: 1fr; } }

/* Project grid */
.pmp-province-grid-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width:640px) { .pmp-province-grid-projects { grid-template-columns: 1fr; } }

/* Project card */
.pmp-pj-card {
    border: 1px solid #e5edf6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s, transform .25s;
}
.pmp-pj-card:hover {
    box-shadow: 0 6px 20px rgba(74,144,217,.15);
    transform: translateY(-2px);
}
.pmp-pj-card__img { display: block; aspect-ratio:16/9; overflow:hidden; }
.pmp-pj-card__img img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.pmp-pj-card:hover .pmp-pj-card__img img { transform:scale(1.04); }

.pmp-pj-card__body { padding: 14px 16px 16px; }
.pmp-pj-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}
.pmp-pj-card__title a { color: #1a2e4a; text-decoration: none; }
.pmp-pj-card__title a:hover { color: #2d6fa0; }

.pmp-pj-card__meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 12.5px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pmp-pj-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: #2d6fa0;
    text-decoration: none;
}
.pmp-pj-card__cta:hover { color: #1a3a5c; }

/* Pagination */
.pmp-pager { margin-top: 28px; }
.pmp-pager .nav-links { display:flex; gap:6px; flex-wrap:wrap; }
.pmp-pager .page-numbers {
    padding: 6px 12px;
    border: 1px solid #dce8f5;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
.pmp-pager .page-numbers.current,
.pmp-pager .page-numbers:hover { background: #2d6fa0; color: #fff; border-color: #2d6fa0; }

/* Sidebar */
.pmp-province-sidebar { position: sticky; top: 20px; }

.pmp-sidebar-box {
    background: #f4f8fd;
    border: 1px solid #dce8f5;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.pmp-sidebar-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a3a5c;
    border-bottom: 2px solid #2d6fa0;
    padding-bottom: 8px;
}

.pmp-related-provinces {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pmp-related-provinces a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1a3a5c;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background .15s;
}
.pmp-related-provinces a:hover { background: #dce8f5; }
.pmp-related-provinces span {
    font-size: 11px;
    font-weight: 700;
    color: #2d6fa0;
    background: #e8f2fc;
    padding: 2px 7px;
    border-radius: 10px;
}

.pmp-no-results { text-align:center; padding:40px 0; color:#888; }
