/* ==========================================================
   อาสาพัฒนาท้องถิ่น — develop.citizenmap.online
   Theme: Orange 70% / Green 30%
   Scope: All classes prefixed with .dv- to avoid collisions.
   ========================================================== */

:root {
    --dv-orange-50:  #fff5ec;
    --dv-orange-100: #ffe4cc;
    --dv-orange-300: #ffb27a;
    --dv-orange-500: #ff7a1a;
    --dv-orange-600: #ee6a0a;
    --dv-orange-700: #c75407;

    --dv-green-50:  #ecfaf1;
    --dv-green-300: #6ddc9a;
    --dv-green-500: #1fb364;
    --dv-green-600: #169152;
    --dv-green-700: #0f7641;

    --dv-ink:        #1a1a1a;
    --dv-ink-soft:   #4a4a4a;
    --dv-muted:      #6b7280;
    --dv-line:       #ececec;
    --dv-bg:         #fffaf5;
    --dv-bg-alt:     #fff;
    --dv-card:       #ffffff;

    --dv-shadow-sm:  0 2px 6px rgba(204, 92, 0, 0.06);
    --dv-shadow-md:  0 12px 30px rgba(204, 92, 0, 0.10);
    --dv-shadow-lg:  0 24px 60px rgba(204, 92, 0, 0.16);

    --dv-radius-sm:  10px;
    --dv-radius-md:  16px;
    --dv-radius-lg:  24px;

    --dv-font:       'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--dv-font);
    color: var(--dv-ink);
    background: var(--dv-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.dv-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================
   HEADER
   ========================================================== */
.dv-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 245, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dv-line);
}

.dv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

.dv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dv-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--dv-shadow-sm);
    flex-shrink: 0;
}
.dv-brand-mark svg { width: 100%; height: 100%; display: block; }

.dv-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.dv-brand-name { font-weight: 700; font-size: 18px; color: var(--dv-ink); }
.dv-brand-slogan { font-size: 11px; color: var(--dv-orange-600); font-weight: 500; margin-top: 2px; }

.dv-nav { display: flex; align-items: center; gap: 4px; }
.dv-nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
    color: var(--dv-ink-soft);
    transition: background .15s, color .15s;
    font-size: 15px;
}
.dv-nav-link:hover { background: var(--dv-orange-50); color: var(--dv-orange-700); }
.dv-nav-link.is-active {
    background: var(--dv-orange-500);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 122, 26, .35);
}

.dv-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.dv-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dv-ink);
    border-radius: 2px;
    transition: transform .2s;
}

/* ==========================================================
   HERO
   ========================================================== */
.dv-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--dv-orange-50) 0%, #fff 60%, var(--dv-green-50) 100%);
}

.dv-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dv-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
}
.dv-blob--1 {
    width: 320px; height: 320px;
    background: var(--dv-orange-300);
    top: -60px; left: -80px;
}
.dv-blob--2 {
    width: 260px; height: 260px;
    background: var(--dv-green-300);
    bottom: -80px; right: -60px;
    opacity: .4;
}
.dv-blob--3 {
    width: 200px; height: 200px;
    background: var(--dv-orange-500);
    top: 40%; right: 20%;
    opacity: .15;
}

.dv-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

.dv-eyebrow {
    display: inline-block;
    background: var(--dv-orange-100);
    color: var(--dv-orange-700);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: .02em;
}

.dv-hero-title {
    font-size: 56px;
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.dv-accent {
    background: linear-gradient(120deg, var(--dv-orange-500) 0%, var(--dv-orange-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dv-hero-sub {
    font-size: 18px;
    color: var(--dv-ink-soft);
    max-width: 560px;
    margin: 0 0 24px;
}

.dv-hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.dv-tag {
    background: #fff;
    border: 1px solid var(--dv-orange-100);
    color: var(--dv-orange-700);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--dv-shadow-sm);
}

.dv-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.dv-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dv-stat {
    background: #fff;
    border-radius: var(--dv-radius-md);
    padding: 24px 28px;
    box-shadow: var(--dv-shadow-md);
    border-left: 5px solid var(--dv-orange-500);
}
.dv-stat--green { border-left-color: var(--dv-green-500); }
.dv-stat-num {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--dv-orange-600);
    margin-bottom: 4px;
}
.dv-stat--green .dv-stat-num { color: var(--dv-green-600); }
.dv-stat-label { color: var(--dv-muted); font-size: 14px; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.dv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    transition: transform .15s, box-shadow .15s, background .15s;
    text-align: center;
}
.dv-btn--primary {
    background: var(--dv-orange-500);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 122, 26, .35);
}
.dv-btn--primary:hover {
    background: var(--dv-orange-600);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 122, 26, .42);
}
.dv-btn--ghost {
    background: #fff;
    color: var(--dv-ink);
    border: 1.5px solid var(--dv-line);
}
.dv-btn--ghost:hover { border-color: var(--dv-orange-500); color: var(--dv-orange-700); }
.dv-btn--block { width: 100%; margin-top: 16px; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.dv-section { padding: 80px 0; }
.dv-section--alt { background: var(--dv-bg-alt); }
.dv-section--compact { padding-top: 0; padding-bottom: 40px; }
.dv-section--pins { padding-top: 24px; padding-bottom: 48px; }

.dv-section-head { text-align: center; margin-bottom: 48px; }
.dv-section-head h2 {
    font-size: 36px;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.dv-section-head p { color: var(--dv-muted); font-size: 16px; margin: 0; }

.dv-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    gap: 24px;
    flex-wrap: wrap;
}
.dv-section-head--row > div { flex: 1; min-width: 240px; }

/* ==========================================================
   CONCEPT
   ========================================================== */
.dv-concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.dv-concept-card {
    background: #fff;
    border-radius: var(--dv-radius-md);
    padding: 32px 28px;
    box-shadow: var(--dv-shadow-sm);
    border: 1px solid var(--dv-line);
    transition: transform .2s, box-shadow .2s;
}
.dv-concept-card:hover { transform: translateY(-4px); box-shadow: var(--dv-shadow-md); }
.dv-concept-card h3 { font-size: 20px; margin: 16px 0 8px; }
.dv-concept-card p { color: var(--dv-ink-soft); margin: 0; font-size: 15px; }

.dv-concept-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dv-concept-icon svg { width: 28px; height: 28px; }
.dv-icon-orange { background: var(--dv-orange-50); color: var(--dv-orange-600); }
.dv-icon-green  { background: var(--dv-green-50);  color: var(--dv-green-600); }

/* ==========================================================
   FILTER
   ========================================================== */
.dv-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--dv-line);
    box-shadow: var(--dv-shadow-sm);
}
.dv-filter label { font-size: 14px; color: var(--dv-muted); font-weight: 500; }
.dv-filter select {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--dv-ink);
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    min-width: 180px;
}
.dv-filter-clear {
    background: var(--dv-orange-500);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================
   EVENT GRID
   ========================================================== */
.dv-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dv-event-card {
    position: relative;
    background: #fff;
    border-radius: var(--dv-radius-md);
    overflow: hidden;
    border: 1px solid var(--dv-line);
    box-shadow: var(--dv-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.dv-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dv-shadow-lg);
    border-color: var(--dv-orange-300);
}

.dv-event-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dv-orange-50);
}
.dv-event-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.dv-event-card:hover .dv-event-cover img { transform: scale(1.05); }

.dv-event-cover-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dv-orange-300);
}
.dv-event-cover-placeholder svg { width: 56px; height: 56px; }

.dv-event-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.95);
    color: var(--dv-orange-700);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.dv-event-status--ยกเลิก { color: #b91c1c; }
.dv-event-status--สิ้นสุด { color: var(--dv-muted); }
.dv-event-status--กำลังมา { color: var(--dv-green-700); }

.dv-event-body { padding: 20px 22px 22px; }
.dv-event-area {
    display: inline-block;
    background: var(--dv-green-50);
    color: var(--dv-green-700);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.dv-event-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.35;
    color: var(--dv-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dv-event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dv-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dv-muted);
    font-size: 13px;
}
.dv-event-meta-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--dv-orange-500); }

.dv-event-arrow {
    position: absolute;
    bottom: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--dv-orange-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .2s, transform .2s;
}
.dv-event-card:hover .dv-event-arrow { opacity: 1; transform: translateX(0); }

/* ==========================================================
   EMPTY STATE
   ========================================================== */
.dv-empty {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border-radius: var(--dv-radius-md);
    border: 1px dashed var(--dv-line);
}
.dv-empty--page { padding: 96px 24px; }
.dv-empty-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--dv-orange-50);
    color: var(--dv-orange-500);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dv-empty-icon svg { width: 36px; height: 36px; }
.dv-empty h1, .dv-empty h3 { margin: 0 0 8px; }
.dv-empty p { color: var(--dv-muted); margin: 0 0 20px; }

/* ==========================================================
   EVENT DETAIL
   ========================================================== */
.dv-event-hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--dv-orange-100);
}
.dv-event-hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.dv-event-hero-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--dv-orange-300), var(--dv-orange-600));
}
.dv-event-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
}
.dv-event-hero-text {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding-bottom: 48px;
    color: #fff;
}
.dv-event-hero-text h1 {
    font-size: 44px;
    margin: 12px 0 16px;
    line-height: 1.2;
    max-width: 820px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.dv-back-link {
    display: inline-block;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background .15s;
}
.dv-back-link:hover { background: rgba(255,255,255,.25); }

.dv-event-area--light {
    background: rgba(255,255,255,.2);
    color: #fff;
    margin-left: 8px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.dv-event-meta--light .dv-event-meta-item { color: rgba(255,255,255,.95); }
.dv-event-meta--light .dv-event-meta-item svg { color: var(--dv-orange-300); }
.dv-event-meta--light { flex-direction: row; gap: 24px; flex-wrap: wrap; }

.dv-event-body-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 80px;
}

.dv-event-section { margin-bottom: 40px; }
.dv-event-section h2 {
    font-size: 24px;
    margin: 0 0 16px;
    font-weight: 600;
    position: relative;
    padding-left: 18px;
}
.dv-event-section h2::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 5px;
    border-radius: 3px;
    background: var(--dv-orange-500);
}

.dv-event-description {
    font-size: 16px;
    color: var(--dv-ink-soft);
    line-height: 1.75;
}
.dv-muted { color: var(--dv-muted); font-style: italic; }

.dv-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.dv-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--dv-radius-sm);
    background: var(--dv-orange-50);
    transition: transform .2s;
}
.dv-gallery-item:hover { transform: scale(1.02); }
.dv-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.dv-gallery-item:hover img { transform: scale(1.08); }

.dv-event-aside { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 16px; }

.dv-info-card, .dv-share-card {
    background: #fff;
    border-radius: var(--dv-radius-md);
    padding: 24px;
    border: 1px solid var(--dv-line);
    box-shadow: var(--dv-shadow-sm);
}
.dv-info-card h3, .dv-share-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dv-orange-700);
}

.dv-info-list { margin: 0; }
.dv-info-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--dv-line);
}
.dv-info-row:last-child { border-bottom: 0; }
.dv-info-key { font-size: 12px; color: var(--dv-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.dv-info-val { font-size: 15px; font-weight: 500; }

.dv-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.dv-share-card p { margin: 0 0 12px; font-size: 13px; color: var(--dv-muted); }
.dv-share-input {
    display: flex;
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius-sm);
    overflow: hidden;
}
.dv-share-input input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--dv-muted);
    outline: none;
    min-width: 0;
}
.dv-share-input button {
    background: var(--dv-orange-500);
    color: #fff;
    border: 0;
    padding: 0 16px;
    font-weight: 500;
    font-size: 13px;
}
.dv-share-input button:hover { background: var(--dv-orange-600); }

/* ==========================================================
   COMING SOON
   ========================================================== */
.dv-coming { display: flex; justify-content: center; padding: 40px 24px; }
.dv-coming-card {
    background: #fff;
    border-radius: var(--dv-radius-lg);
    padding: 64px 48px;
    text-align: center;
    box-shadow: var(--dv-shadow-md);
    max-width: 560px;
    width: 100%;
    border-top: 6px solid var(--dv-orange-500);
}
.dv-coming-badge {
    display: inline-block;
    background: var(--dv-orange-50);
    color: var(--dv-orange-700);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.dv-coming-card h1 { font-size: 32px; margin: 0 0 12px; }
.dv-coming-card p { color: var(--dv-muted); margin: 0 0 32px; }

.dv-coming-progress {
    height: 8px;
    background: var(--dv-orange-50);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 32px;
    max-width: 320px;
    position: relative;
}
.dv-coming-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--dv-orange-500), var(--dv-green-500));
    border-radius: 999px;
    animation: dv-progress 2.4s ease-in-out infinite;
    will-change: transform;
}
@keyframes dv-progress {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.dv-footer {
    background: var(--dv-ink);
    color: rgba(255,255,255,.85);
    padding: 40px 0;
    margin-top: 40px;
}
.dv-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.dv-footer-brand strong { color: var(--dv-orange-300); display: block; font-size: 17px; margin-bottom: 4px; }
.dv-footer-brand p { margin: 0; font-size: 13px; opacity: .7; }
.dv-footer-meta { font-size: 13px; opacity: .7; display: flex; gap: 8px; }
.dv-dot { opacity: .4; }

/* ==========================================================
   COMMUNITY PINS — clickable counts on community-data card
   ========================================================== */
.dv-card-badge--link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s, transform .15s;
}
.dv-card-badge--link:hover {
    background: var(--dv-orange-500);
    color: #fff;
    transform: translateX(2px);
}
.dv-card-badge-arrow {
    font-weight: 600;
    font-size: 13px;
    opacity: .8;
}

.dv-data-item--link { padding: 0; }
.dv-data-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: var(--dv-radius-sm);
    transition: background .15s;
    color: inherit;
}
.dv-data-item-link:hover {
    background: var(--dv-orange-50);
}
.dv-data-item-link:hover .dv-data-count {
    background: var(--dv-orange-100);
    color: var(--dv-orange-700);
}

/* ==========================================================
   COMMUNITY PINS DETAIL PAGE
   ========================================================== */

/* — Slim toolbar — */
.dv-pins-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--dv-line);
    position: sticky;
    top: 64px;          /* below header */
    z-index: 30;
}
.dv-pins-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    flex-wrap: wrap;
}

/* Left: back + breadcrumb */
.dv-pins-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dv-pins-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--dv-orange-50);
    color: var(--dv-orange-600);
    flex-shrink: 0;
    transition: background .15s, color .15s, transform .15s;
}
.dv-pins-back:hover {
    background: var(--dv-orange-500);
    color: #fff;
    transform: translateX(-2px);
}
.dv-pins-back svg { width: 18px; height: 18px; }

.dv-pins-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    min-width: 0;
}
.dv-pins-nav-root {
    color: var(--dv-muted);
    white-space: nowrap;
    transition: color .15s;
}
.dv-pins-nav-root:hover { color: var(--dv-orange-600); }
.dv-pins-nav-sep {
    width: 16px;
    height: 16px;
    color: var(--dv-muted);
    flex-shrink: 0;
    opacity: .5;
}
.dv-pins-nav-current {
    font-weight: 600;
    color: var(--dv-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: stat chips */
.dv-pins-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dv-pins-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: var(--dv-orange-50);
    color: var(--dv-orange-700);
    border: 1px solid var(--dv-orange-100);
}
.dv-pins-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.dv-pins-chip strong {
    font-weight: 700;
}
.dv-pins-chip--muted {
    background: var(--dv-bg-alt);
    color: var(--dv-muted);
    border-color: var(--dv-line);
}

.dv-pins-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.dv-pins-map-col { position: sticky; top: 96px; }
.dv-pins-map {
    width: 100%;
    height: 560px;
    border-radius: var(--dv-radius-md);
    overflow: hidden;
    border: 1px solid var(--dv-line);
    box-shadow: var(--dv-shadow-sm);
    background: var(--dv-orange-50);
}

.dv-pins-list-col {
    background: #fff;
    border-radius: var(--dv-radius-md);
    border: 1px solid var(--dv-line);
    box-shadow: var(--dv-shadow-sm);
    max-height: 560px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.dv-pins-list-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--dv-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dv-orange-50);
}
.dv-pins-list-title {
    font-weight: 600;
    color: var(--dv-orange-700);
    font-size: 14px;
}
.dv-pins-list-count {
    font-size: 12px;
    color: var(--dv-muted);
}
.dv-pins-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.dv-pins-list-loading {
    padding: 32px 16px;
    text-align: center;
    color: var(--dv-muted);
    font-size: 13px;
    font-style: italic;
}
.dv-pin-row {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dv-line);
    cursor: pointer;
    transition: background .12s;
}
.dv-pin-row:hover { background: var(--dv-orange-50); }
.dv-pin-row:last-child { border-bottom: 0; }
.dv-pin-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--dv-radius-sm);
    overflow: hidden;
    background: var(--dv-orange-50);
}
.dv-pin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dv-pin-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    font-size: 22px;
    color: var(--dv-orange-500);
}
.dv-pin-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dv-pin-row-title {
    font-weight: 500;
    color: var(--dv-ink);
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dv-pin-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 12px;
    color: var(--dv-muted);
}
.dv-pin-row-loc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

/* Satisfaction badges */
.dv-sat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
}
.dv-sat--1 { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.dv-sat--2 { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.dv-sat--3 { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.dv-sat--4 { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.dv-sat--5 { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* Modal */
.dv-pin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.dv-pin-modal[hidden] { display: none; }
.dv-pin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.dv-pin-modal-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--dv-radius-lg);
    box-shadow: var(--dv-shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    animation: dvPinPop .25s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes dvPinPop {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.dv-pin-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    color: var(--dv-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--dv-shadow-sm);
    transition: background .15s;
}
.dv-pin-modal-close:hover { background: #fff; }
.dv-pin-modal-close svg { width: 18px; height: 18px; }

.dv-pin-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    padding: 6px;
    background: var(--dv-orange-50);
}
.dv-pin-modal-img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--dv-radius-sm);
    background: #fff;
}
.dv-pin-modal-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .25s;
}
.dv-pin-modal-img:hover img { transform: scale(1.05); }

.dv-pin-modal-body { padding: 22px 24px 26px; }
.dv-pin-modal-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--dv-orange-600);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.dv-pin-modal-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dv-ink);
}
.dv-pin-modal-sat { margin-bottom: 12px; }
.dv-pin-modal-sat:empty { display: none; }
.dv-pin-modal-desc {
    color: var(--dv-ink-soft);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    white-space: pre-wrap;
}
.dv-pin-modal-meta {
    margin: 0;
    border-top: 1px solid var(--dv-line);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dv-pin-modal-meta-row { display: flex; flex-direction: column; gap: 2px; }
.dv-pin-modal-meta-row dt {
    font-size: 11px;
    color: var(--dv-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}
.dv-pin-modal-meta-row dd {
    margin: 0;
    font-size: 14px;
    color: var(--dv-ink);
    font-weight: 500;
}

/* Satisfaction Badges */
.dv-sat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    margin-bottom: 4px;
}
.dv-sat-badge span { font-size: 14px; }

.dv-sat--1 { background: #fef2f2; color: #dc2626; border-color: #fee2e2; } /* 😡 Very Dissatisfied */
.dv-sat--2 { background: #fff7ed; color: #ea580c; border-color: #ffedd5; } /* 😟 Dissatisfied */
.dv-sat--3 { background: #f8fafc; color: #64748b; border-color: #f1f5f9; } /* 😐 Neutral */
.dv-sat--4 { background: #f0fdf4; color: #16a34a; border-color: #dcfce7; } /* 😊 Satisfied */
.dv-sat--5 { background: #ecfdf5; color: #059669; border-color: #d1fae5; } /* 😍 Very Satisfied */

/* Election Details in Modal */
.dv-pin-modal-election {
    margin: 12px 0 16px;
    padding: 12px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 12px;
}
.dv-pin-election-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}
.dv-pin-election-item {
    font-size: 13px;
    color: var(--dv-ink);
}
.dv-pin-election-item strong {
    color: var(--dv-muted);
    font-weight: 500;
    margin-right: 4px;
}

body.dv-modal-open { overflow: hidden; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    .dv-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .dv-hero-title { font-size: 42px; }
    .dv-hero-stats { flex-direction: row; }
    .dv-stat { flex: 1; }

    .dv-concept-grid { grid-template-columns: 1fr; }
    .dv-event-grid   { grid-template-columns: repeat(2, 1fr); }

    .dv-event-body-grid { grid-template-columns: 1fr; gap: 32px; }
    .dv-event-aside { position: static; }
    .dv-event-hero { height: 380px; }
    .dv-event-hero-text h1 { font-size: 32px; }

    .dv-pins-grid { grid-template-columns: 1fr; gap: 16px; }
    .dv-pins-map-col { position: static; }
    .dv-pins-map { height: 380px; }
    .dv-pins-list-col { max-height: 460px; }
}

@media (max-width: 640px) {
    .dv-container { padding: 0 16px; }

    .dv-menu-toggle { display: flex; }
    .dv-header { position: relative; }
    .dv-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        border-bottom: 1px solid var(--dv-line);
        box-shadow: var(--dv-shadow-md);
        z-index: 100;
    }
    .dv-nav-link { width: 100%; text-align: left; }
    body.dv-nav-open .dv-nav { 
        display: flex;
    }

    .dv-hero { padding: 56px 0 40px; }
    .dv-hero-title { font-size: 32px; }
    .dv-hero-sub { font-size: 16px; }
    .dv-hero-stats { flex-direction: column; }

    .dv-section { padding: 56px 0; }
    .dv-section-head h2 { font-size: 26px; }
    .dv-section-head--row { flex-direction: column; align-items: stretch; }

    .dv-event-grid { grid-template-columns: 1fr; }
    .dv-gallery    { grid-template-columns: repeat(2, 1fr); }

    .dv-event-hero { height: 320px; }
    .dv-event-hero-text { padding-bottom: 32px; }
    .dv-event-hero-text h1 { font-size: 26px; }
    .dv-event-meta--light { flex-direction: column; gap: 8px; }

    .dv-coming-card { padding: 40px 24px; }
    .dv-coming-card h1 { font-size: 24px; }

    .dv-brand-slogan { display: none; }
    .dv-footer-inner { flex-direction: column; text-align: center; }

    .dv-pins-hero { padding: 24px 0 22px; }
    .dv-pins-breadcrumb { font-size: 20px; }
    .dv-pins-map { height: 320px; }
    .dv-pin-modal { padding: 12px; }
    .dv-pin-modal-card { max-height: 92vh; }
    .dv-pin-modal-body { padding: 18px 20px 22px; }
    .dv-pin-modal-title { font-size: 17px; }
}
