/* ============================================================================
   Vehicly Mobile Polish — page-specific overrides for native-app feel.
   Only applies when html[data-vehicly-mobile="1"]. Targets specific pages by
   body[data-page="..."] so the desktop layout is untouched.
   ============================================================================ */

/* =========================================================================
 * /zoeken — paste-first input, full-screen feel
 * ======================================================================= */
html[data-vehicly-mobile="1"] body[data-page="zoeken"] {
    /* Page itself is the search; keep generous breathing space */
}
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .hero-section,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .vh-hero {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
}
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .hero-input,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] #urlInput {
    font-size: 16px !important;      /* prevents iOS zoom on focus */
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--vh-border, #e7e5e4);
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .hero-input:focus,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] #urlInput:focus {
    border-color: var(--vh-primary, #F2C94C);
    box-shadow: 0 4px 16px rgba(242,201,76,.18);
}
/* Bigger primary CTA below the input */
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .hero-btn,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] #urlSubmit {
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
}
/* Suggested marketplace chips (if present) → app-style scroll row */
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .marketplace-chips,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .hero-marketplaces {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 12px 8px;
    margin: 0 -12px;
}
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .marketplace-chips::-webkit-scrollbar,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .hero-marketplaces::-webkit-scrollbar { display: none; }

/* Hide marketing strips on mobile zoeken — focus on input */
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .feature-strip,
html[data-vehicly-mobile="1"] body[data-page="zoeken"] .trust-strip {
    display: none !important;
}

/* =========================================================================
 * /vergelijk — stacked rows + sticky header
 * ======================================================================= */
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-main {
    padding: 8px 0 24px;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-header {
    position: sticky;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 4;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    padding: 10px 12px;
    margin: 0;
    border-bottom: 1px solid var(--vh-border, #e7e5e4);
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-back {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--vh-text, #1c1917);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-header h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-header-sub {
    font-size: .8rem;
    margin: 2px 0 0;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-table {
    padding: 8px;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-table-inner {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--vh-border, #e7e5e4);
    background: var(--vh-surface, #fff);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-row {
    padding: 10px 12px;
    font-size: .85rem;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-actions {
    position: sticky;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    z-index: 3;
    background: transparent;
    padding: 10px 12px 0;
    display: flex;
    gap: 8px;
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-action-btn {
    flex: 1;
    min-height: 44px;
    background: var(--vh-surface, #fff);
    border: 1px solid var(--vh-border, #e7e5e4);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-empty,
html[data-vehicly-mobile="1"] body[data-page="vergelijk"] .vgl-error {
    margin: 24px 16px;
    padding: 32px 20px;
    text-align: center;
    border-radius: 16px;
    background: var(--vh-surface, #fff);
    border: 1px solid var(--vh-border, #e7e5e4);
}

/* =========================================================================
 * /prijzen — vertical plan stack, billing-toggle as pill, full-width CTAs
 * ======================================================================= */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .sub-hero {
    padding: 10px 14px 4px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .sub-hero-title {
    font-size: 1.55rem;
    line-height: 1.2;
    text-align: center;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .sub-hero-sub {
    font-size: .92rem;
    text-align: center;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .sub-hero-eyebrow {
    justify-content: center;
}

/* Billing switch — segmented control */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .billing-switch {
    display: inline-grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 14px auto 4px;
    padding: 4px;
    background: rgba(0,0,0,.05);
    border-radius: 100px;
    width: 100%;
    max-width: 320px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .billing-switch-dot {
    display: none !important;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .billing-switch-btn {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 100px;
    background: transparent;
    border: none;
    font-size: .85rem;
    font-weight: 600;
    color: var(--vh-text-secondary, #57534e);
    transition: background .15s ease, color .15s ease;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .billing-switch-btn.active {
    background: var(--vh-surface, #fff);
    color: var(--vh-text, #1c1917);
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Value-strip — compress on mobile */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .sub-value-strip {
    padding: 12px 0 6px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .value-strip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .value-strip-item {
    padding: 10px 12px;
    background: var(--vh-surface, #fff);
    border: 1px solid var(--vh-border, #e7e5e4);
    border-radius: 12px;
    gap: 10px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .value-strip-content strong {
    font-size: .92rem;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .value-strip-content span {
    font-size: .8rem;
}

/* Pricing grid → vertical stack, full-width plan cards */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .pricing-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 12px 8px;
    max-width: 720px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .pricing-grid > .price-card {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: 16px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .price-card.is-recommended {
    box-shadow: 0 6px 18px rgba(242,201,76,.18);
}
/* Current-plan ✓ marker top-right (i.p.v. top-left waar 'ie de plan-naam dekt) */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .price-card.is-current::before {
    left: auto !important;
    right: 0.9rem;
    top: 0.9rem;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .plan-recommended-label {
    font-size: .68rem;
    padding: 3px 8px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .plan-name {
    font-size: 1.1rem;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .plan-anchor-main {
    font-size: 1.55rem;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .plan-anchor-sub {
    font-size: .82rem;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .plan-btn {
    min-height: 48px;
    width: 100%;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

/* Credit packs — vertical stack */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credits-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 12px 12px 16px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack {
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "badge total"
      "qty   total"
      "anchor note";
    gap: 4px;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack-badge { grid-area: badge; }
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack-qty   { grid-area: qty; font-size: 1.05rem; font-weight: 700; }
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack-anchor{ grid-area: anchor; font-size: .82rem; color: var(--vh-text-secondary,#57534e); }
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack-total { grid-area: total; align-self: center; justify-self: end; font-size: .92rem; font-weight: 700; }
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack-note  { grid-area: note; font-size: .72rem; color: var(--vh-text-tertiary,#78716c); }

/* =========================================================================
 * /index — hide marketing-heavy sections in mobile-shell mode, keep core
 * (Hero + paste input + "Bekijk voorbeeldrapport"). Mobile users want to act.
 * ======================================================================= */
html[data-vehicly-mobile="1"] body[data-page="index"] .vh-testimonials-section,
html[data-vehicly-mobile="1"] body[data-page="index"] .vh-press-strip,
html[data-vehicly-mobile="1"] body[data-page="index"] .vh-faq-section {
    /* Keep visible — these are valuable mobile content, just tighten spacing */
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Tap-feedback on plan-cards / credit-packs */
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .price-card,
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack {
    transition: transform .12s ease-out;
}
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .price-card:active,
html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack:active {
    transform: scale(0.985);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    html[data-vehicly-mobile="1"] body[data-page="prijzen"] .price-card,
    html[data-vehicly-mobile="1"] body[data-page="prijzen"] .credit-pack,
    html[data-vehicly-mobile="1"] body[data-page="prijzen"] .billing-switch-btn {
        transition: none !important;
    }
}
