/* =============================================================================
   AP-VEHICLE-EDIT.CSS — Advertentie bewerken (slice A)
   Valkuilen-reset bovenaan; px overal; knoppen expliciet met !important tegen de
   WooCommerce-knopregel. Accent = #1B4DE4.
   ============================================================================= */

/* ---- Reset / neutralisatie ---- */
.ap-bewerken, .ap-bewerken *{ box-sizing:border-box; }
.ap-bewerken{ line-height:1.4; }
.ap-bewerken p, .ap-bewerken h1, .ap-bewerken h2{ margin:0; }
.ap-bewerken ul, .ap-bewerken li{ margin:0; padding:0; list-style:none; }
.ap-bewerken input, .ap-bewerken select, .ap-bewerken textarea, .ap-bewerken button{ font-family:inherit; line-height:normal; }
.ap-bewerken [hidden]{ display:none !important; }
.ap-be-verborgen{ display:none !important; }

.ap-content:has(.ap-bewerken){
    background:#F5F7FB radial-gradient(900px 320px at 18% -8%, rgba(27,77,228,.045), transparent 70%) no-repeat !important;
    max-width:none !important;
}

.ap-bewerken{ display:flex; flex-direction:column; gap:14px; width:100%; padding:20px 32px 44px; }

/* Bekijk advertentie (rechtsboven) */
.ap-be-top{ display:flex; justify-content:flex-end; }
.ap-bewerken .ap-be-bekijk{
    display:inline-flex; align-items:center; gap:7px;
    height:34px; padding:0 13px; border-radius:9px;
    background:#fff !important; border:1px solid #DDE3ED !important; color:#42536B !important;
    font-size:12.5px; font-weight:550; text-decoration:none; line-height:1;
    transition:background .15s, border-color .15s, color .15s;
}
.ap-be-bekijk i{ font-size:14px; }
.ap-bewerken .ap-be-bekijk:hover{ background:#F5F8FE !important; border-color:#1B4DE4 !important; color:#1B4DE4 !important; }

/* ---- Layout ---- */
.ap-inhoud{ position:relative; }
.ap-be-kolommen{ display:flex; gap:18px; align-items:flex-start; }
.ap-be-secties{ flex:2 1 520px; min-width:0; display:flex; flex-direction:column; gap:14px; }
.ap-preview{ flex:1 1 320px; min-width:0; position:sticky; top:76px; display:flex; flex-direction:column; gap:14px; }

/* ---- Sectiekaart ---- */
.ap-be-sectie{
    border-radius:14px; border:1px solid #E7EBF2;
    background:linear-gradient(180deg,#FFFFFF 0%,#FDFEFF 100%);
    box-shadow:0 1px 1px rgba(16,35,64,.03), 0 8px 24px -20px rgba(16,35,64,.45);
    overflow:hidden;
}
.ap-be-kop{ display:flex; align-items:flex-start; gap:10px; padding:14px 18px 12px; border-bottom:1px solid #EEF1F7; }
.ap-be-kop > i{ font-size:16px; color:#93A2B8; margin-top:1px; }
.ap-be-koptekst{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ap-be-titel{ font-size:13.5px; font-weight:600; letter-spacing:-.015em; color:#0C1F3F; }
.ap-be-sub{ font-size:11.5px; color:#8B99AE; }
.ap-be-gewtijd{ flex:0 0 auto; font-size:11.5px; color:#8B99AE; white-space:nowrap; }

/* ---- Velden ---- */
.ap-veldraster{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:14px; padding:16px 18px; }
.ap-be-veld{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.ap-be-veld--vol{ grid-column:1 / -1; }
.ap-be-vlabel{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:550; color:#42536B; }
.ap-be-pill{
    display:inline-flex; align-items:center; height:17px; padding:0 6px; border-radius:4px;
    background:#EEF3FE; color:#1B4DE4; font-size:9.5px; font-weight:600; letter-spacing:.04em;
}
.ap-bewerken .ap-be-veld input,
.ap-bewerken .ap-be-veld select,
.ap-bewerken .ap-be-veld textarea{
    width:100%; height:38px; border-radius:10px;
    background:#fff !important; border:1px solid #DDE3ED !important; color:#0C1F3F;
    font-size:13px; padding:0 12px; outline:0;
}
.ap-bewerken .ap-be-veld textarea{ height:auto; padding:10px 12px; font-size:12.5px; line-height:1.55; resize:none; }
.ap-bewerken .ap-be-veld input:focus,
.ap-bewerken .ap-be-veld select:focus,
.ap-bewerken .ap-be-veld textarea:focus{ border-color:#1B4DE4 !important; }
.ap-be-plaatinput{ letter-spacing:.05em; font-weight:600 !important; }
/* gewijzigd */
.ap-be-veld.is-gewijzigd input,
.ap-be-veld.is-gewijzigd select,
.ap-be-veld.is-gewijzigd textarea{ border-color:#1B4DE4 !important; }

/* ---- Prijs-sectie ---- */
.ap-be-prijsinhoud{ display:flex; flex-direction:column; gap:14px; padding:16px 18px; }
.ap-be-aanbodrij{ display:flex; flex-direction:column; gap:7px; }
.ap-be-segment{ display:inline-flex; gap:0; padding:3px; border-radius:10px; background:#EEF1F7; width:fit-content; }
.ap-bewerken .ap-be-segment button{
    display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 13px; border-radius:7px;
    background:transparent !important; border:0 !important; font-size:12px; color:#6B7A93 !important; cursor:pointer; line-height:1;
}
.ap-be-segment button i{ font-size:13px; color:#B3BFD1; }
.ap-bewerken .ap-be-segment button.is-actief{ background:#fff !important; color:#0C1F3F !important; font-weight:600; box-shadow:0 1px 2px rgba(16,35,64,.10); }
.ap-be-segment button.is-actief[data-aanbod="bieding"] i{ color:#8A6100; }
.ap-be-segment button.is-actief[data-aanbod="direct"] i{ color:#1B7A4B; }

.ap-be-prijsveld{ display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; border-radius:10px; background:#fff; border:1px solid #DDE3ED; }
.ap-be-prijsveld.is-uit{ background:#F5F7FB; }
.ap-be-euro{ font-size:14px; color:#8B99AE; }
.ap-bewerken .ap-be-prijsveld input{ flex:1 1 auto; min-width:0; height:auto !important; border:0 !important; background:transparent !important; padding:0 !important; font-size:14px; font-weight:600; }
.ap-be-veld.is-gewijzigd .ap-be-prijsveld{ border-color:#1B4DE4; }

.ap-be-schakelrij{ display:flex; align-items:center; gap:10px; cursor:pointer; }
.ap-be-schakel{ flex:0 0 auto; position:relative; width:30px; height:18px; border-radius:999px; background:#D7DEEA; transition:background .15s; }
.ap-be-schakel .ap-be-knop{ position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(16,35,64,.3); transition:left .15s; }
.ap-be-schakel.is-aan{ background:#1B4DE4; }
.ap-be-schakel.is-aan .ap-be-knop{ left:14px; }
.ap-be-schakel.is-oranje{ background:#E0A800; }
.ap-be-schakel.is-oranje .ap-be-knop{ left:14px; }
.ap-be-schakeltekst{ font-size:12px; color:#42536B; }

.ap-be-biedmelding{ display:flex; gap:9px; padding:12px 14px; border-radius:11px; background:#FFF9EC; border:1px solid #F2DFB0; }
.ap-be-biedmelding > i{ flex:0 0 auto; font-size:16px; color:#8A6100; margin-top:1px; }
.ap-be-bmtitel{ display:block; font-size:12px; font-weight:600; color:#7A5B14; }
.ap-be-bmsub{ display:block; margin-top:2px; font-size:11.5px; color:#7A5B14; line-height:1.5; }

/* ---- Foto's + toelichting ---- */
.ap-be-fotoraster{ display:grid; grid-template-columns:repeat(auto-fill, minmax(128px,1fr)); gap:10px; padding:16px 18px 12px; }
.ap-be-foto{ position:relative; aspect-ratio:4/3; border-radius:10px; border:1px solid #E7EBF2; background:linear-gradient(155deg,#EDF1F8,#DFE6F1); background-size:cover; background-position:center; }
.ap-be-hoofdlabel{ position:absolute; top:8px; left:8px; display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:5px; background:rgba(11,36,71,.72); color:#fff; font-size:10px; font-weight:600; }
.ap-bewerken .ap-be-fotodel{
    position:absolute; top:6px; right:6px;
    width:24px; height:24px; display:grid !important; place-items:center !important; padding:0 !important;
    border-radius:7px; border:0 !important; background:rgba(11,36,71,.72) !important; color:#fff !important; cursor:pointer;
    transition:background .12s;
}
.ap-be-fotodel i{ font-size:13px; }
.ap-bewerken .ap-be-fotodel:hover{ background:#B0403A !important; }
.ap-bewerken .ap-be-fototoevoeg{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    aspect-ratio:4/3; border-radius:10px; border:1px dashed #C9D4E6 !important; background:#FBFCFE !important;
    color:#7A889E !important; font-size:11.5px; font-weight:550; cursor:pointer;
}
.ap-be-fototoevoeg i{ font-size:18px; }
.ap-bewerken .ap-be-fototoevoeg:hover{ background:#F2F6FE !important; border-color:#1B4DE4 !important; color:#1B4DE4 !important; }
.ap-be-toel{ display:flex; flex-direction:column; gap:6px; padding:4px 18px 16px; }
.ap-be-toelhulp{ font-size:11px; color:#8B99AE; line-height:1.5; }

/* ---- Zichtbaarheid ---- */
.ap-be-zichtrij{ display:flex; align-items:flex-start; gap:11px; padding:16px 18px; cursor:pointer; }
.ap-be-zichttekst{ display:flex; flex-direction:column; gap:2px; }
.ap-be-zichttitel{ font-size:12.5px; font-weight:550; color:#42536B; }
.ap-be-zichtuitleg{ font-size:11.5px; color:#8B99AE; line-height:1.5; }

/* ---- Acties ---- */
.ap-actiestrook{ display:flex; align-items:stretch; }
.ap-bewerken .ap-be-actie{
    flex:1 1 0; min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:7px;
    font-size:12.5px; font-weight:550; color:#42536B !important; background:#fff !important; border:0 !important;
    box-shadow:0 0 0 1px #F1F4F9; cursor:pointer; transition:background .12s, color .12s;
}
.ap-be-actie i{ font-size:15px; }
.ap-bewerken .ap-be-actie:hover{ background:#F5F8FE !important; color:#1B4DE4 !important; }
.ap-bewerken .ap-be-actie--verwijder{ color:#B0403A !important; }
.ap-bewerken .ap-be-actie--verwijder:hover{ background:#B0403A !important; color:#fff !important; }
.ap-be-verwijderconfirm{ display:flex; align-items:center; gap:11px; padding:13px 18px; background:#FDF6F5; border-top:1px solid #EFD3D0; }
.ap-be-verwijderconfirm > i{ flex:0 0 auto; font-size:17px; color:#B0403A; }
.ap-be-vctekst{ flex:1 1 auto; font-size:11.5px; color:#8A3A35; line-height:1.5; }
.ap-be-vcknoppen{ flex:0 0 auto; display:flex; gap:8px; }
.ap-bewerken .ap-be-vcannuleer{ height:34px; padding:0 13px; border-radius:8px; background:#fff !important; border:1px solid #DDE3ED !important; color:#42536B !important; font-size:12px; font-weight:550; cursor:pointer; }
.ap-bewerken .ap-be-vcbevestig{ height:34px; padding:0 13px; border-radius:8px; background:#B0403A !important; border:0 !important; color:#fff !important; font-size:12px; font-weight:600; cursor:pointer; }

/* ---- Preview ---- */
.ap-be-prevkaart{
    border-radius:14px; border:1px solid #E7EBF2;
    background:linear-gradient(180deg,#FFFFFF 0%,#FDFEFF 100%);
    box-shadow:0 1px 1px rgba(16,35,64,.03), 0 8px 24px -20px rgba(16,35,64,.45);
    overflow:hidden;
}
.ap-be-prevkop{ display:flex; align-items:center; gap:8px; padding:13px 16px; border-bottom:1px solid #EEF1F7; }
.ap-be-prevstatus, .ap-be-prevtype{ display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 10px; border-radius:999px; font-size:11px; font-weight:600; }
.ap-be-dot{ width:5px; height:5px; border-radius:50%; }
.ap-be-prevstatus--actief{ background:#E9F8EF; color:#1B7A4B; } .ap-be-prevstatus--actief .ap-be-dot{ background:#2FA96B; }
.ap-be-prevstatus--gepauzeerd{ background:#FFF6E5; color:#8A6100; } .ap-be-prevstatus--gepauzeerd .ap-be-dot{ background:#E0A800; }
.ap-be-prevstatus--verkocht{ background:#FBE9E7; color:#B0403A; } .ap-be-prevstatus--verkocht .ap-be-dot{ background:#D06058; }
.ap-be-prevtype{ margin-left:auto; }
.ap-be-prevtype i{ font-size:13px; }
.ap-be-prevtype--bieding{ background:#FFF6E5; border:1px solid #F2DFB0; color:#8A6100; }
.ap-be-prevtype--direct{ background:#E9F8EF; border:1px solid #CDEEDC; color:#1B7A4B; }
.ap-be-prevfoto{ aspect-ratio:16/10; background:linear-gradient(155deg,#EDF1F8,#DFE6F1); background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; }
.ap-be-prevfoto > i{ font-size:30px; color:#B3BFD1; }
.ap-be-prevtekst{ padding:13px 16px 4px; display:flex; flex-direction:column; gap:4px; }
.ap-be-prevtitel{ font-size:14.5px; font-weight:600; letter-spacing:-.016em; color:#0C1F3F; }
.ap-be-prevuitv{ font-size:12px; color:#7A889E; }
.ap-be-prevspecs{ font-size:11.5px; color:#42536B; }
.ap-be-prevprijs{ display:flex; flex-direction:column; gap:1px; margin-top:6px; }
.ap-be-prevkicker{ font-size:10px; font-weight:600; letter-spacing:.07em; color:#A6B2C4; }
.ap-be-prevprijsval{ font-size:18px; font-weight:600; color:#0C1F3F; }
.ap-be-prevbtw{ font-size:11px; color:#8B99AE; }
.ap-be-prevlijst{ margin-top:8px; }
.ap-be-prevrij{ display:flex; align-items:center; gap:10px; padding:9px 16px; box-shadow:0 0 0 1px #F5F7FB; }
.ap-be-prevrlabel{ flex:1 1 auto; font-size:11.5px; color:#8B99AE; }
.ap-be-prevrwaarde{ flex:0 0 auto; font-size:11.5px; font-weight:550; color:#0C1F3F; }
.ap-be-prevrij.is-gewijzigd{ background:#F5F8FE; box-shadow:inset 2px 0 0 #1B4DE4, 0 0 0 1px #F5F7FB; }
.ap-be-prevrij.is-gewijzigd .ap-be-prevrwaarde{ color:#1B4DE4; }
.ap-be-previnfo{ display:flex; gap:10px; padding:13px 15px; border-radius:13px; background:#F5F8FE; border:1px solid #E1E9FA; }
.ap-be-previnfo i{ flex:0 0 auto; font-size:16px; color:#1B4DE4; margin-top:1px; }
.ap-be-previnfo span{ font-size:11.5px; color:#6B7A93; line-height:1.5; }

/* ---- Opslagbalk ---- */
.ap-opslagbalk{
    position:sticky; bottom:14px; z-index:7;
    display:flex; align-items:center; gap:12px; margin-top:14px;
    padding:12px 16px; border-radius:14px; border:1px solid #E7EBF2;
    background:rgba(255,255,255,.94); backdrop-filter:blur(12px);
    box-shadow:0 2px 6px rgba(16,35,64,.06), 0 18px 40px -24px rgba(16,35,64,.6);
}
.ap-opslagbalk.is-dirty{ border-color:#1B4DE4; }
.ap-opslagbalk > i{ flex:0 0 auto; font-size:17px; color:#B3BFD1; }
.ap-be-savetekst{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.ap-be-savetitel{ font-size:12.5px; font-weight:600; color:#0C1F3F; }
.ap-be-savesub{ font-size:11.5px; color:#8B99AE; }
.ap-bewerken .ap-be-undo{
    flex:0 0 auto; height:38px; padding:0 14px; border-radius:9px;
    background:#fff !important; border:1px solid #DDE3ED !important; color:#42536B !important;
    font-size:12.5px; font-weight:550; cursor:pointer;
}
.ap-bewerken .ap-be-undo:disabled{ opacity:.5; color:#A6B2C4 !important; cursor:default; }
.ap-bewerken .ap-be-opslaan{
    flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 17px; border-radius:9px;
    background:#1B4DE4 !important; border:0 !important; color:#fff !important;
    font-size:13px; font-weight:600; cursor:pointer; transition:background .15s;
}
.ap-be-opslaan i{ font-size:15px; }
.ap-bewerken .ap-be-opslaan:hover{ background:#143BB0 !important; }
.ap-bewerken .ap-be-opslaan.is-clean{
    background:#F2F5FA !important; border:1px solid #E2E7F0 !important; color:#A6B2C4 !important; cursor:default;
}

/* ---- Foutmelding ---- */
.ap-be-foutmelding{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:60px 20px; text-align:center; }
.ap-be-foutmelding i{ font-size:34px; color:#B3BFD1; }
.ap-be-foutmelding p{ font-size:13px; color:#7A889E; }
.ap-bewerken .ap-be-terug{ height:36px; padding:0 16px; display:inline-flex; align-items:center; border-radius:9px; background:#1B4DE4 !important; color:#fff !important; font-size:12.5px; font-weight:550; text-decoration:none; }

/* header-breadcrumb (voor het geval) */
.ap-global-header .ap-topbar__crumb{ display:flex; align-items:center; gap:7px; }
.ap-global-header .ap-topbar__crumb a{ font-size:12.5px !important; color:#7B8CA6 !important; text-decoration:none; }
.ap-global-header .ap-topbar__crumb a:hover{ color:#1B4DE4 !important; }
.ap-global-header .ap-topbar__crumb i{ font-size:10px !important; color:#B3BFD1 !important; }
.ap-global-header .ap-topbar__crumb span{ font-size:14.5px !important; font-weight:600 !important; letter-spacing:-.015em; color:#0C1F3F !important; }

/* =========================================================================
   MOBIEL (≤ 720px)
   ========================================================================= */
@media (max-width:720px){
    .ap-bewerken{ padding-left:20px; padding-right:20px; }
    main .ap-preview{ display:none !important; }
    main .ap-veldraster{ grid-template-columns:1fr !important; }
    main .ap-actiestrook{ flex-direction:column !important; align-items:stretch !important; }
    main .ap-be-gewtijd{ display:none !important; }
    main .ap-inhoud{ padding-bottom:120px !important; }
    main .ap-inhoud .ap-opslagbalk{
        position:fixed !important; left:0 !important; right:0 !important; bottom:0 !important;
        border-radius:0 !important; margin-top:0 !important; padding:12px 16px 20px !important;
    }
    .ap-bewerken .ap-be-veld input,
    .ap-bewerken .ap-be-veld select{ height:46px; }
}
