/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --navy:      #0f172a;
  --navy-2:    #1e293b;
  --navy-3:    #334155;
  --gold:      #f59e0b;
  --gold-dark: #d97706;
  --gold-light:#fef3c7;
  --gold-50:   #fffbeb;
  /* UI */
  --link:      #2563eb;
  --link-dark: #1d4ed8;
  --green:     #059669;
  --red:       #dc2626;
  --purple:    #7c3aed;
  --purple-dark:#6d28d9;
  /* Neutrals */
  --text:      #0f172a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg:        #f8fafc;
  --white:     #ffffff;
  /* Misc */
  --radius:    10px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: all .15s; text-decoration: none; }

/* Primary = amber gold */
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); text-decoration: none; color: var(--navy); }

/* Outline = navy */
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* Premium = purple */
.btn-premium { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid var(--purple); background: var(--purple); color: #fff; transition: all .15s; text-decoration: none; }
.btn-premium:hover { background: var(--purple-dark); border-color: var(--purple-dark); text-decoration: none; }
.btn-full { width: 100%; text-align: center; margin-top: 8px; display: block; }

/* ===== HEADER ===== */
.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-2); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--white); white-space: nowrap; }
.logo-icon { font-size: 1.4rem; }
.logo-city { color: var(--gold); margin-left: 4px; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { color: #cbd5e1; font-weight: 500; font-size: .92rem; transition: color .15s; }
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.main-nav .btn-outline { color: var(--gold); border-color: var(--gold); padding: 7px 18px; font-size: .88rem; }
.main-nav .btn-outline:hover { background: var(--gold); color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--white); }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0c1a30 100%); color: var(--white); padding: 80px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events:none; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; letter-spacing: -.02em; position: relative; }
.hero-highlight { color: var(--gold); }
.hero-sub { font-size: 1.1rem; opacity: .8; margin-bottom: 40px; position: relative; }
.search-bar { display: flex; gap: 10px; max-width: 700px; margin: 0 auto; flex-wrap: wrap; justify-content: center; position: relative; }
.search-bar select, .search-bar input { padding: 13px 16px; border-radius: 8px; border: 2px solid transparent; font-size: .98rem; outline: none; flex: 1; min-width: 160px; transition: border-color .15s; }
.search-bar select:focus, .search-bar input:focus { border-color: var(--gold); }
.search-bar select { max-width: 180px; cursor: pointer; }
.search-bar .btn { padding: 13px 30px; font-size: 1rem; }

/* City quick-pick chips */
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; position: relative; }
.city-chip { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: var(--gold); border-radius: 20px; padding: 5px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.city-chip:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ===== SECTION HELPERS ===== */
.section-title { font-size: 1.65rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }

/* ===== CATEGORIES ===== */
.categories { padding: 56px 0 40px; background: var(--white); border-bottom: 1px solid var(--border); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; margin-top: 28px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--text); transition: all .2s; }
.cat-card:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-50); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,158,11,.2); }
.cat-icon { font-size: 1.7rem; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--navy-2); color: var(--white); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat-number { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 6px; color: var(--gold); letter-spacing: -.02em; }
.stat-label { font-size: .85rem; opacity: .7; text-transform: uppercase; letter-spacing: .07em; }

/* ===== LISTINGS ===== */
.listings-section { padding: 52px 0 60px; }
.listings-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.result-count { color: var(--muted); font-size: .9rem; }
.featured-label, .regular-label { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 14px; }
.featured-label { color: var(--gold-dark); display: flex; align-items: center; gap: 6px; }
.featured-label::before { content:''; display:inline-block; width:24px; height:2px; background:var(--gold); border-radius:2px; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.listing-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s, border-color .2s; position: relative; }
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #cbd5e1; }
.listing-card.featured { border-color: var(--gold); background: var(--gold-50); box-shadow: 0 2px 12px rgba(245,158,11,.15); }
.listing-card.featured:hover { box-shadow: 0 8px 28px rgba(245,158,11,.25); }
.featured-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.listing-name { font-size: 1.08rem; font-weight: 800; margin-bottom: 4px; color: var(--navy); }
.listing-trade-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.listing-trade { font-size: .85rem; color: var(--link); font-weight: 600; }
.city-tag { font-size: .75rem; color: var(--muted); font-weight: 500; background: var(--bg); padding: 2px 8px; border-radius: 10px; border: 1px solid var(--border); }
.listing-desc { font-size: .88rem; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--text); }
.listing-meta a { color: var(--link); font-weight: 600; }
.listing-area { color: var(--muted); font-size: .82rem; margin-top: 8px; }

/* Star ratings */
.listing-stars-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.listing-stars { display: flex; gap: 1px; line-height: 1; }
.star { font-size: 1rem; }
.star.filled { color: var(--gold); }
.star.half   { color: var(--gold); opacity: .6; }
.star.empty  { color: #d1d5db; }
.listing-review-count { font-size: .78rem; color: var(--muted); }

.no-results { text-align: center; padding: 60px 0; color: var(--muted); font-size: 1.05rem; }

/* ===== MAP ===== */
.map-section { padding: 56px 0 0; background: var(--white); border-top: 1px solid var(--border); }
.map-header { text-align: center; margin-bottom: 28px; }
.map-header .section-sub { margin-bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.map-legend { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.map-legend.gold { background: var(--gold); border: 2px solid var(--gold-dark); }
.map-legend.blue { background: var(--link); border: 2px solid var(--link-dark); }
#haandvaerker-map { height: 460px; width: 100%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ===== JOB REQUEST ===== */
.jobrequest-section { padding: 56px 0; background: var(--bg); border-top: 1px solid var(--border); }
.jobrequest-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 40px 36px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit; outline: none; transition: border-color .15s; resize: vertical;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.1); }
.char-count { font-size: .75rem; color: var(--muted); font-weight: 400; float: right; }
.jobrequest-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ===== PRICING ===== */
.pricing-section { background: var(--navy); padding: 72px 0; text-align: center; }
.pricing-section .section-title { color: var(--white); }
.pricing-section .section-sub { color: #94a3b8; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 40px 0 24px; }
.pricing-card { border: 2px solid var(--navy-3); border-radius: 16px; padding: 36px 28px; position: relative; text-align: left; transition: all .2s; background: var(--navy-2); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured-card { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.15); background: #1c2640; }
.pricing-card.premium-card { border-color: var(--purple); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 800; padding: 4px 18px; border-radius: 20px; white-space: nowrap; }
.pricing-tier { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.basic-tier   { color: #94a3b8; }
.gold-tier    { color: var(--gold); }
.premium-tier { color: #c084fc; }
.pricing-price { font-size: 2.6rem; font-weight: 900; color: var(--white); margin-bottom: 24px; letter-spacing: -.02em; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: #94a3b8; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { padding: 7px 0; font-size: .9rem; border-bottom: 1px solid var(--navy-3); color: #cbd5e1; }
.pricing-features li.muted { color: #475569; }
.pricing-note { color: #64748b; font-size: .88rem; margin-top: 8px; }

/* Contact strip */
.contact-strip { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 40px; padding: 28px 36px; background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 14px; flex-wrap: wrap; max-width: 580px; margin-left: auto; margin-right: auto; margin-top: 36px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-icon { font-size: 1.6rem; }
.contact-label { font-size: .75rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.contact-item a { font-weight: 700; font-size: .98rem; color: var(--gold); }
.contact-item strong { font-size: 1.1rem; color: var(--white); font-weight: 800; letter-spacing: .04em; }
.contact-divider { width: 1px; height: 44px; background: var(--navy-3); }

/* ===== PAYMENT MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 1000; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: 18px; padding: 40px 36px; max-width: 460px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.modal-close:hover { background: var(--border); }
.modal-header { margin-bottom: 24px; }
.modal-plan-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.badge-basic   { background: #f1f5f9; color: #475569; }
.badge-gold    { background: var(--gold-light); color: #92400e; }
.badge-premium { background: #ede9fe; color: #5b21b6; }
.modal-header h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.modal-intro { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.mobilepay-box { background: #f5f7ff; border: 2px solid #c7d2fe; border-radius: 16px; padding: 28px 24px; text-align: center; margin-bottom: 20px; }
.mp-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #4338ca; margin-bottom: 16px; }
.mp-number { font-size: 2.2rem; font-weight: 900; color: var(--navy); letter-spacing: .06em; margin-bottom: 4px; }
.mp-amount { font-size: 1.6rem; font-weight: 800; color: #4338ca; margin-bottom: 16px; }
.mp-instruction { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.btn-mobilepay { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; background: #5a78ff; color: #fff; border-radius: 10px; font-weight: 800; font-size: 1rem; text-decoration: none; transition: background .15s; }
.btn-mobilepay:hover { background: #4338ca; text-decoration: none; color: #fff; }
.mp-fallback { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.confirm-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 16px 20px; font-size: .88rem; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
.confirm-box a { font-weight: 700; }
.back-link { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 0; }
.back-link:hover { color: var(--text); }
.done-box { text-align: center; padding: 24px 0; }
.done-icon { font-size: 3rem; margin-bottom: 12px; }
.done-box h4 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.done-box p { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }

/* ===== CHAT WIDGET ===== */
#chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--navy); border: none; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 20px rgba(245,158,11,.5); display: flex; align-items: center; justify-content: center; transition: all .2s; font-weight: 800; }
#chat-toggle:hover { background: var(--gold-dark); transform: scale(1.07); }
#chat-panel { width: 340px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; max-height: 520px; }
.chat-header { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { font-size: 1.4rem; }
.chat-header button { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 0; opacity: .7; transition: opacity .15s; }
.chat-header button:hover { opacity: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.55; max-width: 88%; }
.chat-bubble.bot  { background: #f1f5f9; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.typing { padding: 12px 16px; display: flex; gap: 5px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: dotBounce 1.2s infinite ease-in-out; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.chat-suggestions { padding: 8px 14px; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); background: var(--bg); }
.chat-suggestions button { background: var(--white); border: 1.5px solid var(--border); color: var(--navy); border-radius: 16px; padding: 5px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s; }
.chat-suggestions button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; outline: none; transition: border-color .15s; }
.chat-input-row input:focus { border-color: var(--gold); }
.chat-input-row .btn { padding: 9px 14px; font-size: 1rem; }

/* ===== FOOTER ===== */
.site-footer { background: #060d1a; color: #d1d5db; padding: 52px 0 0; border-top: 3px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer-brand { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer-brand p { font-weight: 400; font-size: .88rem; color: #64748b; margin-top: 8px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer-links a { color: #64748b; font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 16px 20px; text-align: center; font-size: .82rem; color: #475569; }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-2); padding: 16px 20px; border-bottom: 1px solid var(--navy-3); box-shadow: var(--shadow-md); gap: 16px; z-index: 99; }
  .nav-toggle { display: block; }
  .search-bar select { max-width: 100%; }
  #haandvaerker-map { height: 300px; }
  #chat-panel { width: calc(100vw - 48px); }
  #chat-widget { bottom: 16px; right: 16px; }
  .jobrequest-card { padding: 24px 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; gap: 20px; }
  .contact-divider { width: 40px; height: 1px; }
  .pricing-section { padding: 48px 0; }
}
