/* ═══════════════════════════════════════
   POPUP OVERLAY
═══════════════════════════════════════ */
.cc-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.45);
    padding: clamp(18px, 4vh, 32px) 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    transition: opacity .25s ease;
}

.cc-popup-overlay.cc-popup-overlay--actief  { display: flex; align-items: center; justify-content: center; }
.cc-popup-overlay.cc-popup-overlay--zichtbaar { opacity: 1; }

.cc-popup {
    background: var(--cc-wit);
    border-radius: var(--cc-radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: min(90vh, 740px);
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    transform: translateY(16px) scale(.98);
    transition: transform .25s ease;
    outline: none;
    overflow: hidden;
}
.cc-popup-overlay--zichtbaar .cc-popup { transform: translateY(0) scale(1); }

.cc-popup__sluiten {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, transform .18s;
}
.cc-popup__sluiten:hover { background: rgba(0,0,0,.6); transform: scale(1.08); }

.cc-popup__foto-wrap {
    position: relative;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--cc-radius-lg) var(--cc-radius-lg) 0 0;
    background: var(--cc-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.cc-popup__foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.cc-popup__foto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 65%);
    z-index: 1;
}

.cc-popup__foto-info {
    position: absolute;
    bottom: 24px;
    left: 22px;
    right: 56px;
    z-index: 2;
}

.cc-popup__naam {
    font-family: var(--cc-font-hoofd);
    font-size: 1.45rem;
    color: #fff !important;
    margin: 0 0 3px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.cc-popup__land {
    font-size: .82rem;
    color: rgba(255,255,255,.82);
    font-weight: 500;
}

.cc-popup__ster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,.9);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--cc-tekst);
    z-index: 2;
    display: none;
}

.cc-popup__aanbevolen {
    position: absolute;
    top: 48px;
    left: 12px;
    background: var(--cc-groen);
    color: #fff;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .7rem;
    font-weight: 700;
    z-index: 2;
    display: none;
}

.cc-popup__body { padding: 20px 22px 24px; flex: 1; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }

.cc-popup__meta-rij {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 8px;
    font-size: .87rem;
    color: var(--cc-tekst);
}
.cc-popup__meta-rij.cc-verborgen { display: none; }
.cc-popup__meta-icoon { flex-shrink: 0; line-height: 1.5; }
.cc-popup__meta-rij a { color: var(--cc-groen); text-decoration: none; word-break: break-all; }
.cc-popup__meta-rij a:hover { text-decoration: underline; }

.cc-popup__sectie {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--cc-border);
}
.cc-popup__sectie.cc-verborgen { display: none; }

.cc-popup__sectie-titel {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--cc-grijs);
    margin-bottom: 8px;
}

#cc-popup-kaart-wrap .cc-popup__sectie-titel,
#cc-popup-weer-wrap .cc-popup__sectie-titel,
#cc-popup-gallery-wrap .cc-popup__sectie-titel {
    margin-bottom: 10px;
}

#cc-popup-kaart,
#cc-popup-weer-inhoud,
#cc-popup-gallery {
    border-radius: 14px;
}

#cc-popup-kaart-wrap #cc-popup-kaart {
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}


#cc-popup-weer-wrap .cc-weer-inhoud {
    background: linear-gradient(180deg, #fcfaf6 0%, #f5f2ea 100%);
    border: 1px solid rgba(45, 106, 79, .10);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

#cc-popup-weer-wrap .cc-weer-nu {
    align-items: center;
    gap: 12px;
}

#cc-popup-weer-wrap .cc-weer-nu__temp {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(232, 245, 238, .96);
    color: var(--cc-groen);
    box-shadow: inset 0 0 0 1px rgba(45, 106, 79, .08);
}

#cc-popup-weer-wrap .cc-weer-nu__label {
    color: var(--cc-tekst-2);
    font-weight: 500;
}

#cc-popup-weer-wrap .cc-weer-nu__details {
    color: var(--cc-tekst-2);
}

#cc-popup-weer-wrap .cc-weer-dagen {
    border-top: 1px solid rgba(45, 106, 79, .10);
    gap: 8px;
}

#cc-popup-weer-wrap .cc-weer-dag {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(45, 106, 79, .08);
    box-shadow: 0 4px 14px rgba(15,23,42,.03);
}

#cc-popup-weer-wrap .cc-max {
    color: var(--cc-groen);
}

#cc-popup-weer-wrap .cc-min {
    color: #7b8794;
}

#cc-popup-weer-wrap .cc-weer-dag__neersl {
    color: #5b8db8;
}

#cc-popup-gallery-wrap {
    margin-top: 20px;
}

.cc-popup__vz { display: flex; flex-wrap: wrap; gap: 6px; }

.cc-popup-vz-item {
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    font-size: .78rem;
    font-weight: 500;
    padding: 3px 10px;
    color: var(--cc-tekst-2);
}

/* Verblijven naast elkaar in de popup */
#cc-popup-verblijven {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 420px) {
    #cc-popup-verblijven { grid-template-columns: 1fr; }
}

.cc-popup-verblijf {
    background: var(--cc-bg);
    border-radius: var(--cc-radius-sm);
    padding: 10px 12px;
    margin-bottom: 0;
}
.cc-popup-verblijf__nr { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--cc-groen); margin-bottom: 3px; }
.cc-popup-verblijf__datum { font-size: .86rem; font-weight: 500; }
.cc-popup-verblijf__nachten { color: var(--cc-grijs); font-size: .78rem; }
.cc-popup-verblijf__ster { color: #f59e0b; font-size: .88rem; margin-top: 2px; }
.cc-popup-verblijf__meta { font-size: .78rem; color: var(--cc-grijs); margin-top: 2px; }
.cc-popup-verblijf__opmerkingen { font-size: .8rem; color: var(--cc-grijs); font-style: italic; margin-top: 4px; line-height: 1.5; }

.cc-popup__acties {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--cc-border);
    flex-wrap: wrap;
}

/* Share icoon linksboven in popup foto */
.cc-popup__share-foto-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #213041 !important;
    font-size: .95rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
    transition: background .15s !important;
    z-index: 10 !important;
}
.cc-popup__share-foto-btn:hover { background: #fff !important; transform: none !important; }

/* Share knop op uitgelichte tegel — linksboven */
.cc-kaart__share-btn--uitgelicht {
    position: absolute;
    top: 10px;
    left: 52px;
    right: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .15s ease, background .15s ease;
    backdrop-filter: blur(4px);
    color: #2d6a4f;
}
.cc-kaart__share-btn--uitgelicht:hover {
    transform: scale(1.12);
    background: #fff;
}
.cc-kaart__share-btn--uitgelicht svg {
    width: 16px;
    height: 16px;
}

.cc-popup__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #213041 !important;
    border: 1px solid #d8d0c4;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 42px;
    min-width: 118px;
    font-family: var(--cc-font-body);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17,24,39,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none;
}
.cc-popup__share-btn:hover {
    transform: translateY(-1px);
    border-color: #b8cdbf;
    box-shadow: 0 10px 22px rgba(17,24,39,.08);
    background: #fff;
    color: #213041 !important;
}

.cc-popup__bewerk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #213041 !important;
    border: 1px solid #d8d0c4;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 42px;
    min-width: 118px;
    font-family: var(--cc-font-body);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17,24,39,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cc-popup__bewerk-btn:hover {
    transform: translateY(-1px);
    border-color: #b8cdbf;
    box-shadow: 0 10px 22px rgba(17,24,39,.08);
    background: #fff;
}

.cc-popup__route-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #213041 !important;
    border: 1px solid #d8d0c4;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 42px;
    min-width: 118px;
    font-family: var(--cc-font-body);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17,24,39,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none;
    appearance: none;
}
.cc-popup__route-btn:hover,
.cc-popup__route-btn:focus-visible {
    transform: translateY(-1px);
    border-color: #b8cdbf;
    box-shadow: 0 10px 22px rgba(17,24,39,.08);
    background: #fff;
    outline: none;
}

/* Route-cirkel bovenop de popup-foto, naast de share-cirkel */
.cc-popup__route-foto-btn {
    position: absolute !important;
    top: 12px !important;
    left: 52px !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #1a6b3c !important;
    font-size: .95rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
    transition: background .15s !important;
    z-index: 10 !important;
}
.cc-popup__route-foto-btn:hover { background: #fff !important; transform: none !important; }

/* .cc-popup__delete-btn styling merged into unified button group */

.cc-popup__sectie--compact + .cc-popup__sectie {
    margin-top: 14px;
}

/* Blur effect */
body.cc-popup-open { overflow: hidden; }
body.cc-popup-open .cc-blur-wrap { filter: blur(3px); pointer-events: none; }

