/* Asur-AI Bostad – plattformens UI (Apple-likt, rent, fokus på enkelhet) */
:root {
    --brand: #7f1734;
    --brand-dark: #3b0718;
    --brand-soft: #fbf5f7;
    --ink: #241018;
    --muted: #7a5b66;
    --line: #ecdfe4;
    --ok: #1f7a4d;
    --bg: #faf7f8;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(59, 7, 24, 0.08);
}

* { box-sizing: border-box; }

body.app-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

/* Topbar */
.app-topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.app-topbar-inner { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.logo-mark { background: var(--brand); color: #fff; padding: 6px 9px; border-radius: 10px; font-size: 13px; letter-spacing: 0.5px; }
.app-nav { display: flex; align-items: center; gap: 18px; }
.app-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.app-nav a:hover { color: var(--brand); }
.inline-form { margin: 0; }
.nav-link-button { background: none; border: none; cursor: pointer; color: var(--muted); font: inherit; }
.nav-button { background: var(--brand); color: #fff !important; padding: 8px 16px; border-radius: 10px; }

.app-shell { max-width: 1160px; margin: 0 auto; padding: 28px 20px 80px; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-ai {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px; padding: 11px 20px; font-weight: 600; font-size: 15px;
    cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: transform .06s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--brand); }
.btn-block { width: 100%; }
.btn-primary:active, .btn-secondary:active { transform: scale(.98); }
.link-button { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.card h2 { margin-top: 0; font-size: 18px; }
.card-head-row { display: flex; align-items: center; justify-content: space-between; }

/* Headings */
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.panel-head h1 { margin: 0 0 4px; font-size: 28px; }
.panel-head p { margin: 0; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--brand); font-weight: 700; }
.back-link { color: var(--muted); text-decoration: none; font-size: 14px; }

/* Forms */
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, textarea, select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(127,23,52,.12); }
textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.save-indicator { font-size: 13px; color: var(--ok); }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecef; color: #9b1c33; }
.alert-ok { background: #eafaf1; color: var(--ok); }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding: 30px 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 4px; }
.auth-sub { color: var(--muted); margin-top: 0; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.auth-alt { text-align: center; color: var(--muted); margin-top: 18px; }

/* Pricing */
.pricing-hero { text-align: center; padding: 40px 0 10px; }
.pricing-hero h1 { font-size: 44px; margin: 8px 0; }
.pricing-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 17px; }
.price-card-wrap { display: flex; justify-content: center; padding: 28px 0; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; width: 100%; max-width: 460px; box-shadow: var(--shadow); text-align: center; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 10px 0; }
.price-number { font-size: 56px; font-weight: 800; color: var(--brand); }
.price-currency { font-size: 22px; color: var(--muted); }
.price-note { color: var(--muted); }
.price-includes { list-style: none; padding: 0; margin: 22px 0; text-align: left; display: grid; gap: 10px; }
.price-includes li { display: flex; align-items: center; gap: 10px; }
.check { color: var(--ok); font-weight: 800; }
.price-fineprint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.pricing-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 980px; margin: 30px auto; }
.point { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.point h3 { margin: 0 0 6px; color: var(--brand); }
.point p { margin: 0; color: var(--muted); }

/* Dashboard list */
.panel-list { display: flex; flex-direction: column; gap: 12px; }
.panel-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-row-main h3 { margin: 0 0 6px; }
.panel-row-meta { margin: 0; color: var(--muted); font-size: 14px; }
.panel-row-actions { display: flex; gap: 10px; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-draft { background: #f1ece0; color: #8a6d2f; }
.status-published { background: #eafaf1; color: var(--ok); }
.status-archived { background: #eee; color: #777; }
.status-sold { background: var(--brand); color: #fff; }
.paid-tag { color: var(--ok); font-weight: 700; }
.unpaid-tag { color: #b3402f; font-weight: 700; }

/* Empty */
.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); }

/* Editor */
.editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.editor-head h1 { margin: 6px 0 4px; }
.editor-status { color: var(--muted); margin: 0; }
.editor-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.editor-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.editor-col { min-width: 0; }

/* Image manager */
.image-counter { font-weight: 700; color: var(--brand); }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); margin: 14px 0; transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.image-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); cursor: grab; background: #f3eef0; }
.image-tile.dragging { opacity: .5; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-tile-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.tile-btn { border: none; background: rgba(255,255,255,.92); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: 13px; }
.tile-del:hover { background: #fdecef; }
.ai-badge { position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

/* AI panel */
.ai-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-ai { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line); justify-content: flex-start; }
.btn-ai:hover { background: #f6e8ed; }
.ai-output { margin-top: 16px; background: var(--brand-soft); border-radius: 12px; padding: 14px; font-size: 14px; white-space: pre-wrap; border: 1px solid var(--line); }
.ai-output svg { max-width: 100%; height: auto; }

/* Preview */
.preview-media { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: #f3eef0; margin-bottom: 12px; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; }
.preview-price { color: var(--brand); font-weight: 700; font-size: 20px; margin: 4px 0 0; }

/* Public listings */
.listings-head { text-align: center; margin-bottom: 24px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.listing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .1s; }
.listing-card:hover { transform: translateY(-3px); }
.listing-card-media { position: relative; aspect-ratio: 4/3; background: #f3eef0; }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.listing-card-placeholder.large { min-height: 360px; border-radius: var(--radius); border: 1px dashed var(--line); }
.badge-boost { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.listing-card-body { padding: 14px 16px; }
.listing-card-body h3 { margin: 0 0 4px; font-size: 16px; }
.listing-card-meta { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.listing-card-price { color: var(--brand); font-weight: 700; margin: 0; }

/* Listing detail */
.listing-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.gallery-main { width: 100%; border-radius: var(--radius); aspect-ratio: 16/11; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb:hover { border-color: var(--brand); }
.listing-detail-address { color: var(--muted); margin: 0 0 6px; }
.listing-detail-price { color: var(--brand); font-size: 26px; font-weight: 800; margin: 0 0 16px; }
.facts { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; color: var(--muted); }
.listing-description { white-space: pre-wrap; margin-bottom: 22px; }
.listing-actions { display: flex; gap: 12px; }

/* Stats */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-card.highlight { background: var(--brand); color: #fff; }
.stat-num { display: block; font-size: 28px; font-weight: 800; }
.stat-label { color: inherit; opacity: .75; font-size: 13px; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 10px; }
.bar { flex: 1; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-weight: 600; }
.data-table code { font-size: 12px; }

/* Admin tabs */
.admin-tabs { display: flex; gap: 8px; }
.admin-tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); }
.admin-tabs a.active { background: var(--brand); color: #fff; }

/* Checkout */
.checkout { display: flex; justify-content: center; padding: 30px 0; }
.checkout-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.checkout-card h1 { font-size: 52px; color: var(--brand); margin: 6px 0; }
.checkout-sub { color: var(--muted); }
.checkout-includes { list-style: none; padding: 0; text-align: left; display: grid; gap: 8px; margin: 22px 0; }
.checkout-note { color: var(--muted); font-size: 13px; }

/* Checkbox-rad (registrering) */
.checkbox-row { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); font-size: 14px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }

/* Juridik */
.legal-page { max-width: 860px; margin: 0 auto; }
.legal-page h1 { font-size: 34px; margin: 6px 0; }
.legal-meta { color: var(--muted); font-size: 14px; }
.legal-callout { background: var(--brand-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.legal-callout.small { font-size: 14px; margin-top: 24px; }
.legal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.legal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legal-list li { display: flex; gap: 10px; align-items: flex-start; }
.legal-list .cross { color: #b3402f; font-weight: 800; }
.legal-text h3 { margin: 18px 0 4px; color: var(--brand); }
.legal-text p { margin: 0 0 8px; }

/* Guider */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .1s; }
.guide-card:hover { transform: translateY(-3px); }
.guide-card h3 { margin: 0 0 8px; color: var(--brand); }
.guide-card p { margin: 0 0 12px; color: var(--muted); }
.guide-steps-count { font-weight: 700; color: var(--brand); font-size: 14px; }
.guide-article { max-width: 760px; margin: 0 auto; }
.guide-article h1 { font-size: 32px; margin: 8px 0; }
.guide-lead { color: var(--muted); font-size: 17px; }
.guide-steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.guide-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 56px; position: relative; box-shadow: var(--shadow); }
.guide-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 18px; width: 28px; height: 28px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.guide-steps h3 { margin: 0 0 4px; }
.guide-steps p { margin: 0; color: var(--muted); }

/* Aktörer */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.partner-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.partner-card h3 { margin: 0 0 4px; }
.partner-city { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.partner-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; margin: 8px 0 0; }

/* Sidfot */
.public-footer-disclaimer { max-width: 640px; margin: 8px auto; color: var(--muted); }
.public-footer-nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.public-footer-nav a { color: var(--brand); text-decoration: none; }

/* Betalningskrav / nedtagning */
.hold-banner { background: #fff4f0; border: 1px solid #f3c4b6; color: #8a2d18; border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.hold-banner strong { color: #8a2d18; }
.hold-deadline { display: block; width: 100%; font-size: 13px; color: #b3402f; }
.form-hint.warn { color: #8a2d18; background: #fff4f0; border: 1px solid #f3c4b6; border-radius: 10px; padding: 8px 10px; }

/* Betalningsmottagare på checkout */
.pay-target { border: 1px solid var(--line); background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; text-align: left; }
.pay-target-title { margin: 0 0 8px; font-weight: 600; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pay-row:last-of-type { border-bottom: 0; }
.pay-row span { color: var(--muted); }
.pay-instr { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* Admin – inline-formulär (plan-väljare i tabell) */
.inline-form { margin: 0; display: inline; }
.inline-form select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* Admin – kort-toolbar */
.card-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }

/* Min panel – statistik + onboarding */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 18px; text-align: center; }
.onboarding-head { display: flex; justify-content: space-between; align-items: center; }
.onboarding-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.onboarding-list li { display: flex; align-items: center; gap: 10px; }
.onboarding-list .ob-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); font-size: 13px; flex: 0 0 auto; }
.onboarding-list li.checked .ob-mark { background: #e6f4ea; color: #1c7c3c; }
.onboarding-list li.checked span:last-child { color: var(--muted); text-decoration: line-through; }

/* Guider – visuellt + checklistor */
.guide-card-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.guide-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand, #7f1734); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.guide-header { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 16px; }
.guide-icon { font-size: 40px; line-height: 1; flex: 0 0 auto; }
.guide-toolbar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.guide-progress { color: var(--muted); font-size: 14px; font-weight: 600; }
.ui-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ui-checklist li { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: background .15s, border-color .15s; }
.ui-checklist li.checked { background: #f3faf5; border-color: #bfe6cc; }
.ui-checklist label { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; align-items: flex-start; }
.ui-checklist input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.ui-checklist .check-body { display: flex; flex-direction: column; gap: 2px; }
.ui-checklist li.checked .check-body strong { text-decoration: line-through; color: var(--muted); }

@media print {
    .topbar, .public-footer, .no-print, .back-link, .dev-environment-banner { display: none !important; }
    .page-shell { padding: 0 !important; }
    .ui-checklist li { break-inside: avoid; }
}

/* Statistikband + kontakt (startsida) */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stat-item { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.stat-item strong { display: block; font-size: 30px; line-height: 1.1; color: var(--brand, #7f1734); }
.stat-item span { color: var(--muted); font-size: 14px; }
.contact-card { text-align: center; max-width: 520px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.contact-email { display: inline-block; font-size: 22px; font-weight: 700; margin: 4px 0 8px; }

/* Aktörsplaner (prissida) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.plan-card { position: relative; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 24px; display: flex; flex-direction: column; }
.plan-card.plan-featured { border-color: var(--brand, #7f1734); box-shadow: 0 10px 30px rgba(127,23,52,.12); }
.plan-flag { position: absolute; top: -12px; right: 18px; background: var(--brand, #7f1734); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-price { font-size: 18px; color: var(--muted); margin: 4px 0 12px; }
.plan-price strong { font-size: 38px; color: var(--ink); }
.plan-features { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lead-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 560px; margin: 0 auto; }

/* Aktörskort – plan/lead */
.partner-card { position: relative; display: flex; flex-direction: column; gap: 6px; }
.partner-card.partner-premium { border-color: var(--brand, #7f1734); box-shadow: 0 6px 20px rgba(127,23,52,.1); }
.partner-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.badge-plan { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-premium { background: var(--brand, #7f1734); color: #fff; }
.badge-plus { background: var(--brand-soft); color: var(--brand, #7f1734); }
.partner-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.partner-services { font-size: 14px; color: var(--muted); }
.partner-contact { margin-top: 8px; }
.partner-contact summary { display: inline-block; cursor: pointer; list-style: none; }
.partner-contact summary::-webkit-details-marker { display: none; }
.lead-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lead-form input, .lead-form textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }

/* Aktörsfilter & badge */
.partner-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.partner-filter .chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); background: #fff; text-decoration: none; }
.partner-filter .chip-active { background: var(--brand, #7f1734); color: #fff; border-color: var(--brand, #7f1734); }
.badge-verified { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #e6f4ea; color: #1c7c3c; font-size: 12px; font-weight: 600; vertical-align: middle; }

/* Så funkar det */
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.how-step { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.how-step-num { position: relative; flex: 0 0 auto; }
.how-step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); font-size: 24px; }
.how-step-badge { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand, #7f1734); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.how-step-body h3 { margin: 0 0 4px; }
.how-step-body p { margin: 0; color: var(--muted); }

/* Exempelannons-märkning */
.badge-example { position: absolute; top: 10px; left: 10px; background: #1f2937; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.example-note { background: #fff8e6; border: 1px solid #f0d98a; color: #6b5316; padding: 10px 14px; border-radius: 10px; margin: 0 0 12px; font-size: 14px; }

/* Annonsfilter */
.listing-filters { margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.listing-filters .filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.listing-filters .filter-row input[type="search"] { flex: 1 1 320px; }
.listing-filters input, .listing-filters select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.listing-filters .filter-row-options select, .listing-filters .filter-row-options input { flex: 1 1 130px; min-width: 110px; }
.filter-clear { align-self: center; color: var(--muted); font-size: 14px; }
.listing-count { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* Swish-betalning på checkout */
.swish-pay { text-align: center; }
.swish-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.swish-qr img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.swish-qr-hint { margin: 0; font-size: 13px; color: var(--muted); }

/* Inställningsformulär */
.settings-form .card { margin-bottom: 18px; }
.settings-form .form-grid { display: grid; gap: 14px; }
.settings-form label { display: block; font-size: 14px; color: var(--muted); }
.settings-form input, .settings-form textarea { width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); }

/* Admin – tabellåtgärder */
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions .inline-form { display: inline; margin: 0; }
.btn-xs { font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn-xs:hover { background: var(--brand-soft); }
.btn-xs.btn-danger { border-color: #e6b4a8; color: #b3402f; }
.btn-xs.btn-danger:hover { background: #fff0ec; }

@media (max-width: 860px) {
    .editor-grid, .listing-detail, .legal-cols { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .pricing-hero h1 { font-size: 34px; }
}
