/* =======================================================
   DELR.DK CUSTOM CSS SYSTEM
   Bootstrap-compatible color system with hero sections and labels
   ======================================================= */

/* =======================================================
   CSS Custom Properties (CSS Variables)
   Following Bootstrap 5.3+ convention
   ======================================================= */

:root {
  /* Primary Brand Colors - Easy to change */
  --bs-primary: #1A73E8;
  --bs-secondary: #FFB300;
  --bs-success: #34A853;
  --bs-danger: #EA4335;
  --bs-warning: #FBBC05;
  --bs-info: #17A2B8;
  --bs-light: #F8F9FA;
  --bs-dark: #202124;

  /* Extended Typography Colors */
  --bs-body-color: #202124;
  --bs-body-color-rgb: 32, 33, 36;
  --bs-secondary-color: #5f6368;
  --bs-secondary-color-rgb: 95, 99, 104;
  --bs-tertiary-color: #80868b;
  --bs-tertiary-color-rgb: 128, 134, 139;

  /* Extended Border Colors */
  --bs-border-color: #e8eaed;
  --bs-border-color-translucent: rgba(232, 234, 237, 0.175);

  /* Glass Effects */
  --bs-primary-glass: rgba(26, 115, 232, 0.1);
  --bs-secondary-glass: rgba(255, 179, 0, 0.1);
  --bs-success-glass: rgba(52, 168, 83, 0.1);
  --bs-danger-glass: rgba(234, 67, 53, 0.1);

  /* Shadow Effects */
  --bs-primary-shadow: rgba(26, 115, 232, 0.15);
  --bs-secondary-shadow: rgba(255, 179, 0, 0.15);
  --bs-success-shadow: rgba(52, 168, 83, 0.15);
  --bs-danger-shadow: rgba(234, 67, 53, 0.15);

  /* Hover Colors */
  --bs-primary-hover: #1557b0;
  --bs-secondary-hover: #ffa000;
  --bs-success-hover: #2d5e3e;
  --bs-danger-hover: #d93025;

  /* Border Radius System */
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-pill: 50rem;
}

/* =======================================================
   HERO SECTION SYSTEM
   Bootstrap-compatible hero sections with consistent styling
   ======================================================= */

/* Base Hero Section - Default (Primary Blue) */
.hero-section {
  background: var(--bs-primary);
  padding: 4rem 0;
  color: white;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-border-radius-xl);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 50%;
  height: 100%;
  background: var(--bs-secondary-glass);
  transform: skewX(-15deg);
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Hero Section - Secondary (Amber/Orange) */
.hero-section-secondary {
  background: var(--bs-secondary);
  color: var(--bs-dark);
}

.hero-section-secondary::before {
  background: var(--bs-danger-glass);
}

/* Hero Section - Success (Green) */
.hero-section-success {
  background: var(--bs-success);
  color: white;
}

.hero-section-success::before {
  background: var(--bs-primary-glass);
}

/* Hero Section - Danger (Red) */
.hero-section-danger {
  background: var(--bs-danger);
  color: white;
}

.hero-section-danger::before {
  background: var(--bs-secondary-glass);
}

/* CTA Button System for Heroes */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--bs-danger);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--bs-border-radius-pill);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid var(--bs-danger);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: var(--bs-danger-hover);
  color: white;
}

.btn-cta-secondary {
  background: transparent;
  color: currentColor;
  padding: 0.875rem 2rem;
  border-radius: var(--bs-border-radius-pill);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid currentColor;
}

.btn-cta-secondary:hover {
  background: currentColor;
  color: white;
  transform: translateY(-2px);
}

.hero-section .btn-cta-secondary:hover {
  background: var(--bs-primary);
  color: white;
}

.hero-section-secondary .btn-cta-secondary:hover {
  background: var(--bs-secondary);
  color: white;
}

.hero-section-success .btn-cta-secondary:hover {
  background: var(--bs-success);
  color: white;
}

.hero-section-danger .btn-cta-secondary:hover {
  background: var(--bs-danger);
  color: white;
}

/* =======================================================
   LABEL SYSTEM
   Bootstrap-compatible label/badge system
   ======================================================= */

/* Base Label Styling */
.label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--bs-border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Label Variants - Following Bootstrap Color System */
.label-primary {
  background: var(--bs-primary);
}

.label-secondary {
  background: var(--bs-secondary);
  color: var(--bs-dark);
}

.label-success {
  background: var(--bs-success);
}

.label-danger {
  background: var(--bs-danger);
}

.label-warning {
  background: var(--bs-warning);
  color: var(--bs-dark);
}

.label-info {
  background: var(--bs-info);
}

.label-light {
  background: var(--bs-light);
  color: var(--bs-dark);
}

.label-dark {
  background: var(--bs-dark);
}

/* Alternative Label Positions */
.label-top-right {
  left: auto;
  right: 10px;
}

.label-bottom-left {
  top: auto;
  bottom: 10px;
}

.label-bottom-right {
  top: auto;
  bottom: 10px;
  left: auto;
  right: 10px;
}

/* =======================================================
   RESPONSIVE DESIGN
   Mobile-first responsive adjustments
   ======================================================= */

/* Tablet */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    text-align: center;
  }

  .label {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero-section {
    padding: 1.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
}

/* =======================================================
   GALLERY / LIGHTBOX
   Image gallery with carousel-icon overlay
   ======================================================= */

.gallery,
.collection-image {
  z-index: 2;
  pointer-events: auto;
  width: 100%;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.gallery img,
.collection-image img {
  object-fit: cover;
  width: 100%;
  display: block;
}

.gallery figcaption,
.collection-image figcaption {
  z-index: 2;
  pointer-events: none;
  color: var(--bs-secondary-color);
  padding-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.3;
  position: relative;
}

.gallery:hover,
.collection-image:hover {
  text-decoration: none;
}

.gallery:hover .carousel-icon,
.collection-image:hover .carousel-icon {
  opacity: 1;
}

.carousel-icon {
  color: #333;
  aspect-ratio: 1 / 1;
  opacity: 0.7;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0.15rem;
  padding: 0.2rem;
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.25s;
  display: block;
  position: absolute;
  top: 9px;
  right: 9px;
}

.carousel-icon .icon {
  justify-content: center;
  align-items: center;
  display: flex;
}

.carousel-icon .icon svg {
  fill: currentcolor;
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.modal .carousel-icon {
  display: none;
}

#article-img-carousel .modal-body {
  background: transparent;
  padding: 0;
}

#article-img-carousel .modal-content {
  box-shadow: none;
  background: transparent;
  border: none;
}

body.modal-open {
  padding-right: 0 !important;
  overflow: auto !important;
}

.modal-backdrop.show {
  opacity: 0.85 !important;
}

#article-img-carousel .carousel-caption {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 0.75rem;
  padding-bottom: 0;
}

/* =======================================================
   UTILITY CLASSES
   Additional helper classes
   ======================================================= */

/* Enhanced Border Radius Utilities */
.rounded-xl {
  border-radius: var(--bs-border-radius-xl) !important;
}

.rounded-xxl {
  border-radius: var(--bs-border-radius-xxl) !important;
}

/* Glass Effect Utilities */
.bg-primary-glass {
  background-color: var(--bs-primary-glass) !important;
}

.bg-secondary-glass {
  background-color: var(--bs-secondary-glass) !important;
}

.bg-success-glass {
  background-color: var(--bs-success-glass) !important;
}

.bg-danger-glass {
  background-color: var(--bs-danger-glass) !important;
}

/* Shadow Utilities */
.shadow-primary {
  box-shadow: 0 0.125rem 0.25rem var(--bs-primary-shadow) !important;
}

.shadow-secondary {
  box-shadow: 0 0.125rem 0.25rem var(--bs-secondary-shadow) !important;
}

.shadow-success {
  box-shadow: 0 0.125rem 0.25rem var(--bs-success-shadow) !important;
}

.shadow-danger {
  box-shadow: 0 0.125rem 0.25rem var(--bs-danger-shadow) !important;
}

/* =======================================================
   PRINT STYLES
   Optimized for printing
   ======================================================= */

@media print {
  .hero-section {
    background: transparent !important;
    color: var(--bs-dark) !important;
    box-shadow: none;
    border: 1px solid var(--bs-border-color);
  }

  .hero-section::before {
    display: none;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    display: none;
  }

  .label {
    background: var(--bs-light) !important;
    color: var(--bs-dark) !important;
    border: 1px solid var(--bs-border-color);
  }
}

/* =======================================================
   ACCESSIBILITY ENHANCEMENTS
   High contrast and reduced motion support
   ======================================================= */

@media (prefers-contrast: high) {
  :root {
    --bs-border-color: #000000;
  }

  .label {
    border: 1px solid rgba(0, 0, 0, 0.3);
  }

  .hero-section {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta-primary,
  .btn-cta-secondary,
  .hero-section::before {
    transition: none;
  }

  .btn-cta-primary:hover,
  .btn-cta-secondary:hover {
    transform: none;
  }
}

/* =======================================================
   DARK MODE SUPPORT (Optional)
   Can be enabled with data-bs-theme="dark" on html element
   ======================================================= */

[data-bs-theme="dark"] {
  --bs-body-color: #ffffff;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-secondary-color: #b3b3b3;
  --bs-secondary-color-rgb: 179, 179, 179;
  --bs-tertiary-color: #8c8c8c;
  --bs-tertiary-color-rgb: 140, 140, 140;
  --bs-border-color: #404040;
  --bs-border-color-translucent: rgba(64, 64, 64, 0.175);
  --bs-light: #343a40;
  --bs-dark: #f8f9fa;
}

/* =======================================================
   RUNDTOMRINGE DESIGN SYSTEM (vm-*)
   Shared, global, un-scoped. Source of truth for the
   RundtOmRinge / KitchenZink look used by the front page
   and the Classified module.
   Tokens: blue #1A73E8 / hover #1557b0, text #202124,
   muted #5f6368, border #e8eaed, light bg #f8f9fa.
   ======================================================= */

.vm-frontpage { color: #202124; }

/* ---- Hero ---- */
.vm-hero {
  background: linear-gradient(135deg, #1A73E8, #1557b0);
  color: #fff;
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.vm-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -15%;
  width: 45%; height: 100%;
  background: rgba(255, 179, 0, .14);
  transform: skewX(-15deg);
}
.vm-hero-inner { position: relative; z-index: 1; }
.vm-hero-eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-weight: 700; color: #FFE08A; }
.vm-hero h1 { font-size: 2.4rem; font-weight: 800; margin: .5rem 0; line-height: 1.1; }
.vm-hero p { font-size: 1.1rem; opacity: .95; max-width: 620px; margin-bottom: 1.5rem; }
.vm-hero .vm-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 576px) { .vm-hero { padding: 2rem 1.25rem; } .vm-hero h1 { font-size: 1.8rem; } }

/* ---- Search bar (hero) ---- */
.vm-search { background: #fff; border-radius: 50rem; padding: .4rem .4rem .4rem 1.1rem; display: flex; align-items: center; gap: .5rem; max-width: 620px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.vm-search i { color: #80868b; }
.vm-search input { border: 0; outline: 0; flex: 1; font-size: 1rem; color: #202124; background: transparent; }
.vm-search-btn { background: #1A73E8; color: #fff; border: 0; border-radius: 50rem; font-weight: 600; padding: .55rem 1.4rem; }

/* ---- Front page module overview ---- */
.vm-modules { margin-bottom: .5rem; }
.vm-module-cell { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border: 1px solid #e8eaed; border-radius: 14px; background: #fff; transition: all .25s ease; color: #202124; text-decoration: none; height: 100%; }
.vm-module-cell:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.08); border-color: #d6dadf; }
.vm-module-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.vm-module-txt { display: flex; flex-direction: column; min-width: 0; }
.vm-module-label { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.vm-module-line { font-size: .76rem; color: #5f6368; line-height: 1.25; }

/* ---- Sections ---- */
.vm-section { padding: 1.75rem 0; }
.vm-section-tight { padding: .5rem 0 1rem; }
.vm-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.1rem; gap: 1rem; }
.vm-eyebrow { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-weight: 700; color: #1A73E8; }
.vm-section-title { font-size: 1.6rem; font-weight: 700; margin: .15rem 0 .4rem; color: #202124; }
.vm-underline { width: 60px; height: 3px; border-radius: 2px; background: #1A73E8; }
.vm-see-all { font-weight: 600; font-size: .9rem; white-space: nowrap; color: #1A73E8; text-decoration: none; }
.vm-see-all:hover { color: #1557b0; }

/* ---- Generic card ---- */
.vm-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e8eaed; border-radius: 16px; overflow: hidden; transition: all .3s ease; color: #202124; text-decoration: none; }
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.vm-card-pad { padding: 1.1rem; }
.vm-card-img { position: relative; height: 150px; background: #F8F9FA; overflow: hidden; }
.vm-card-img-tall { height: 180px; }
.vm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vm-card:hover .vm-card-img img { transform: scale(1.05); }
/* Classified: fast 16:9-ramme, hele billedet vises uden beskæring (uanset billedets eget format) */
.vm-card-img-contain { aspect-ratio: 16 / 9; height: auto; background: #fff; }
.vm-card-img-contain img { object-fit: contain; }
.vm-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: #9aa0a6; font-size: 2.5rem; }
.vm-card-body { padding: .9rem; display: flex; flex-direction: column; flex: 1; }
.vm-card-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vm-title-sm { font-size: .95rem; }
.vm-card-text { font-size: .88rem; color: #5f6368; line-height: 1.5; margin: 0 0 .65rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vm-card-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #5f6368; margin-bottom: .2rem; }
.vm-card-loc { font-size: .8rem; color: #5f6368; margin-bottom: .5rem; }
.vm-card-meta { font-size: .8rem; color: #80868b; margin-top: auto; display: flex; align-items: center; gap: .3rem; }
.vm-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .6rem; border-top: 1px solid #e8eaed; }
.vm-price { font-weight: 700; font-size: 1rem; color: #202124; }
.vm-see { font-size: .8rem; font-weight: 600; color: #1A73E8; }

/* ---- Labels / pills ---- */
.vm-card-label { position: absolute; top: 10px; left: 10px; padding: .25rem .7rem; border-radius: 20px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: #455A64; }
.vm-subtype { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; }
.vm-card-img .vm-subtype { position: absolute; top: 10px; right: 10px; }
.vm-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 2rem; font-size: .85rem; font-weight: 700; color: #fff; }
.vm-pill-blue { background: #1A73E8; }
.vm-pill-amber { background: #FFB300; color: #202124; }
.vm-pill-green { background: #34A853; }
.vm-pill-purple { background: #7B2FBE; }
.vm-pill-grey { background: #80868b; }

/* ---- Område-modul ---- */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.vm-prose { font-size: 1rem; line-height: 1.65; color: #3c4043; }
.vm-prose p { margin-bottom: 1rem; }
.vm-card-row { flex-direction: row; align-items: stretch; }
.vm-card-row .vm-card-body { justify-content: center; }
.vm-card-logo { flex: 0 0 96px; width: 96px; background: #fff; display: flex; align-items: center; justify-content: center; padding: .6rem; border-right: 1px solid #e8eaed; }
.vm-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.vm-card-logo .vm-card-noimg { font-size: 1.8rem; background: #F8F9FA; }

.vm-status { position: absolute; top: 10px; left: 10px; padding: .2rem .65rem; border-radius: 20px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #fff; }
.vm-status-inline { position: static; display: inline-block; }
.vm-status-grey { background: #80868b; }
.vm-status-teal { background: #00ACC1; }
.vm-status-blue { background: #1A73E8; }
.vm-status-amber { background: #FFB300; color: #202124; }
.vm-status-green { background: #34A853; }
.vm-status-red { background: #EA4335; }

/* ---- Progress ---- */
.vm-progress-row { display: flex; justify-content: space-between; font-size: .78rem; color: #5f6368; margin-bottom: .25rem; }
.vm-progress { height: 7px; background: #eef0f2; border-radius: 4px; overflow: hidden; margin-bottom: .6rem; }
.vm-progress-bar { height: 100%; background: #1A73E8; border-radius: 4px; }

/* ---- Date tile (events) ---- */
.vm-date-tile { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 12px; width: 52px; text-align: center; padding: .35rem 0; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.vm-date-tile .d { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1; color: #D81B60; }
.vm-date-tile .m { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; color: #5f6368; }

/* ---- Ride ---- */
.vm-ride-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.vm-muted { color: #80868b; }
.vm-route { font-weight: 700; font-size: .98rem; line-height: 1.3; margin-bottom: .5rem; }
.vm-arrow { color: #80868b; margin: 0 .2rem; }
.vm-ride-foot { border-top: 1px solid #e8eaed; }

/* ---- Activity ---- */
.vm-activity-card { flex-direction: row; align-items: stretch; gap: .8rem; }
.vm-activity-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: #EA4335; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.vm-activity-body { display: flex; flex-direction: column; min-width: 0; }
.vm-activity-owner { font-size: .82rem; color: #1A73E8; font-weight: 600; margin-bottom: .3rem; }

/* ---- Newsletter ---- */
.vm-newsletter { background: #202124; color: #fff; border-radius: 20px; padding: 2.5rem 2rem; text-align: center; margin: 2rem 0 1rem; position: relative; overflow: hidden; }
.vm-newsletter::before { content: ''; position: absolute; top: 0; left: -15%; width: 40%; height: 100%; background: rgba(26,115,232,.16); transform: skewX(15deg); }
.vm-newsletter h2 { font-weight: 700; font-size: 1.5rem; position: relative; z-index: 1; }
.vm-newsletter p { opacity: .85; position: relative; z-index: 1; }
.vm-newsletter-form { display: flex; gap: .6rem; max-width: 460px; margin: 1.25rem auto 0; position: relative; z-index: 1; }
.vm-newsletter-form input { flex: 1; border: 0; border-radius: 50rem; padding: .7rem 1.25rem; font-size: .95rem; }
.vm-newsletter-form button { background: #FFB300; color: #202124; border: 0; border-radius: 50rem; font-weight: 700; padding: .7rem 1.5rem; }

/* ---- Buttons ---- */
.vm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 50rem; font-weight: 600; padding: .55rem 1.4rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: all .25s ease; font-size: .95rem; line-height: 1.2; }
.vm-btn:disabled { opacity: .6; cursor: not-allowed; }
.vm-btn-primary { background: #1A73E8; color: #fff; border-color: #1A73E8; }
.vm-btn-primary:hover { background: #1557b0; border-color: #1557b0; color: #fff; transform: translateY(-2px); }
.vm-btn-outline { background: transparent; color: #1A73E8; border-color: #1A73E8; }
.vm-btn-outline:hover { background: #e8f0fe; color: #1557b0; }
.vm-btn-ghost { background: transparent; color: #5f6368; border-color: #e8eaed; }
.vm-btn-ghost:hover { background: #f8f9fa; border-color: #dadce0; color: #202124; }
.vm-btn-amber { background: #FFB300; color: #202124; border-color: #FFB300; }
.vm-btn-amber:hover { background: #ffa000; border-color: #ffa000; transform: translateY(-2px); }
.vm-btn-danger { background: transparent; color: #EA4335; border-color: #EA4335; }
.vm-btn-danger:hover { background: #EA4335; color: #fff; }
.vm-btn-success { background: #34A853; color: #fff; border-color: #34A853; }
.vm-btn-success:hover { background: #2E8B43; border-color: #2E8B43; }
.vm-btn-light { background: transparent; color: #fff; border-color: #fff; }
.vm-btn-light:hover { background: #fff; color: #1A73E8; transform: translateY(-2px); }
.vm-btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.vm-btn-block { width: 100%; }

/* ---- Filter bar ---- */
.vm-filter-bar { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.vm-field { display: flex; flex-direction: column; gap: .35rem; }
.vm-field label { font-weight: 600; font-size: .82rem; color: #202124; }
.vm-field input, .vm-field select, .vm-input, .vm-textarea, .vm-select {
  width: 100%; padding: .6rem .9rem; border: 1px solid #e8eaed; border-radius: 10px; font-size: .95rem; color: #202124; background: #fff; transition: all .2s ease;
}
.vm-field input:focus, .vm-field select:focus, .vm-input:focus, .vm-textarea:focus, .vm-select:focus {
  outline: none; border-color: #1A73E8; box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.vm-textarea { min-height: 120px; resize: vertical; }

/* ---- Forms ---- */
.vm-form { max-width: 820px; margin: 0 auto; }
.vm-form-card { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1.5rem; }
.vm-form-header { margin-bottom: 1.25rem; }
.vm-form-header h2 { font-weight: 700; font-size: 1.5rem; color: #202124; margin: 0; }
.vm-form-header p { color: #5f6368; margin: .25rem 0 0; }
.vm-form-group { margin-bottom: 1.1rem; }
.vm-label { display: block; font-weight: 600; font-size: .88rem; color: #202124; margin-bottom: .4rem; }
.vm-invalid { color: #EA4335; font-size: .8rem; margin-top: .3rem; }
.vm-input.input-invalid, .vm-textarea.input-invalid, .vm-select.input-invalid { border-color: #EA4335; }
.vm-form-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e8eaed; }

/* ---- Multi-step / choice grids ---- */
.vm-step { max-width: 820px; margin: 0 auto; }
.vm-step-head { text-align: center; margin-bottom: 1.5rem; }
.vm-step-title { font-weight: 800; font-size: 1.6rem; color: #202124; margin: 0 0 .35rem; }
.vm-step-desc { color: #5f6368; font-size: 1rem; margin: 0; }
.vm-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.vm-choice-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1.5rem 1rem; border: 2px solid #e8eaed; border-radius: 16px; background: #fff; cursor: pointer; transition: all .25s ease; color: #202124; }
.vm-choice-card:hover { border-color: #1A73E8; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.vm-choice-card.selected { border-color: #1A73E8; background: #e8f0fe; }
.vm-choice-card i { font-size: 1.8rem; color: #1A73E8; }
.vm-choice-card .vm-choice-label { font-weight: 700; font-size: 1rem; }
.vm-choice-card .vm-choice-sub { font-size: .82rem; color: #5f6368; }

/* ---- Image upload (edit) ---- */
.vm-photo-upload { border: 2px dashed #c3cad1; border-radius: 16px; padding: 2rem; text-align: center; background: #f8f9fa; cursor: pointer; transition: all .25s ease; color: #5f6368; }
.vm-photo-upload:hover { border-color: #1A73E8; background: #e8f0fe; color: #1A73E8; }
.vm-photo-upload i { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.vm-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.vm-image-item { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #e8eaed; aspect-ratio: 4 / 3; background: #fff; }
.vm-image-item img { width: 100%; height: 100%; object-fit: contain; }
.vm-image-overlay-top { position: absolute; top: 6px; right: 6px; display: flex; gap: .3rem; }
.vm-image-overlay-bottom { position: absolute; bottom: 6px; left: 6px; display: flex; gap: .3rem; }
.vm-move-btn, .vm-img-del { border: 0; border-radius: 8px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: .85rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.vm-move-btn { background: rgba(26,115,232,.92); }
.vm-move-btn:disabled { background: rgba(128,134,139,.7); cursor: not-allowed; }
.vm-img-del { background: rgba(234,67,53,.92); }

/* ---- Detail (single classified) ---- */
.vm-detail { color: #202124; }
.vm-detail-header { background: linear-gradient(135deg, #1A73E8, #1557b0); color: #fff; border-radius: 16px; padding: 1.75rem 2rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.vm-detail-header::before { content: ''; position: absolute; top: 0; right: -15%; width: 40%; height: 100%; background: rgba(255,179,0,.14); transform: skewX(-15deg); }
.vm-detail-header-inner { position: relative; z-index: 1; }
.vm-detail-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .9rem; background: rgba(255,255,255,.2); border-radius: 2rem; font-size: .8rem; font-weight: 600; margin-bottom: .75rem; }
.vm-detail-title { font-size: 2rem; font-weight: 800; margin: .4rem 0 .3rem; line-height: 1.15; }
.vm-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; opacity: .95; }
.vm-detail-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.vm-gallery { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1rem; margin-bottom: 1.5rem; }
.vm-main-image { width: 100%; height: 460px; object-fit: cover; border-radius: 12px; background: #f8f9fa; cursor: pointer; }
.vm-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.vm-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: all .2s ease; }
.vm-thumb:hover, .vm-thumb.active { border-color: #1A73E8; }
/* Classified: vis hele billedet (contain) på hvid bg i 16:9/fast ramme — billedets eget format er underordnet */
.vm-img-contain { object-fit: contain; background: #fff; }
.vm-detail-body { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; line-height: 1.65; }
.vm-price-box { background: linear-gradient(135deg, #f8f9fa, #eef3fb); border: 1px solid #e8eaed; border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.vm-price-box .vm-price-amount { font-size: 1.8rem; font-weight: 800; color: #1A73E8; }
.vm-price-box .vm-price-unit { color: #5f6368; font-size: .9rem; font-weight: 600; }
/* Rental ("Udlejning") tag + per-period price rows */
.vm-price-tag { display: inline-flex; align-items: center; gap: .35rem; background: #1A73E8; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .2rem .7rem; border-radius: 20px; margin-bottom: .75rem; }
.vm-price-rows { display: flex; flex-direction: column; gap: .5rem; }
.vm-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed #d8dee6; }
.vm-price-row:last-child { padding-bottom: 0; border-bottom: 0; }
.vm-price-row-amount { font-size: 1.4rem; font-weight: 800; color: #1A73E8; }
.vm-price-row-unit { color: #5f6368; font-size: .95rem; font-weight: 600; }
.vm-price-note { margin-top: .75rem; color: #5f6368; font-size: .85rem; font-style: italic; }
.vm-seller { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.vm-seller h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.vm-contact { position: sticky; top: 1.5rem; }
@media (max-width: 768px) {
  .vm-main-image { height: 280px; }
  .vm-detail-title { font-size: 1.5rem; }
  .vm-contact { position: static; }
}

/* ---- Messaging ---- */
.vm-msg-list { display: flex; flex-direction: column; gap: .6rem; max-height: 380px; overflow-y: auto; padding: .25rem; }
.vm-msg { border-radius: 14px; padding: .7rem .9rem; max-width: 85%; }
.vm-msg-sent { background: #e8f0fe; border: 1px solid #d2e3fc; align-self: flex-end; }
.vm-msg-received { background: #f1f3f4; border: 1px solid #e8eaed; align-self: flex-start; }
.vm-msg-head { font-size: .72rem; color: #80868b; margin-bottom: .2rem; display: flex; justify-content: space-between; gap: 1rem; }
.vm-msg-body { font-size: .9rem; color: #202124; white-space: pre-wrap; }

/* ---- States ---- */
.vm-empty { text-align: center; padding: 3rem 1rem; background: #f8f9fa; border-radius: 16px; }
.vm-empty i { font-size: 3rem; color: #c3cad1; margin-bottom: 1rem; display: block; }
.vm-empty h3 { color: #5f6368; font-size: 1.25rem; margin-bottom: .5rem; }
.vm-empty p { color: #80868b; }
.vm-loading { text-align: center; padding: 3rem 1rem; }
.vm-spinner { border: 3px solid #eef0f2; border-top: 3px solid #1A73E8; border-radius: 50%; width: 40px; height: 40px; animation: vm-spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes vm-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---- vm table (admin list) ---- */
.vm-table-wrap { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; overflow: hidden; }
.vm-table { width: 100%; border-collapse: collapse; }
.vm-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: #5f6368; padding: .8rem 1rem; border-bottom: 1px solid #e8eaed; background: #f8f9fa; }
.vm-table td { padding: .8rem 1rem; border-bottom: 1px solid #f1f3f4; font-size: .92rem; vertical-align: middle; }
.vm-table tr:last-child td { border-bottom: 0; }
.vm-table tbody tr:hover { background: #f8fafe; }
.vm-icon-btn { background: none; border: 0; color: #5f6368; cursor: pointer; padding: .25rem .4rem; border-radius: 8px; transition: all .2s ease; }
.vm-icon-btn:hover { color: #1A73E8; background: #e8f0fe; }
.vm-icon-btn.danger:hover { color: #EA4335; background: #fdecea; }

/* ---- Pagination ---- */
.vm-pagination { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.vm-page { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e8eaed; background: #fff; border-radius: 10px; color: #202124; cursor: pointer; font-weight: 600; font-size: .9rem; }
.vm-page:hover:not(:disabled) { border-color: #1A73E8; color: #1A73E8; }
.vm-page.active { background: #1A73E8; border-color: #1A73E8; color: #fff; }
.vm-page:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Article / Event detail (layout-2 marketplace look) ---- */
.art { color: #202124; }
.art-wrap { max-width: 860px; margin: 0 auto; }
.art-cat { display: inline-block; padding: .25rem .8rem; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: #1A73E8; margin-bottom: .85rem; }
.art-title { font-size: 2.1rem; font-weight: 800; line-height: 1.2; color: #202124; margin: 0 0 .75rem; }
.art-highlight { display: inline-flex; align-items: center; background: rgba(26,115,232,.08); color: #1557b0; font-weight: 600; border-radius: 10px; padding: .5rem .9rem; font-size: .95rem; margin-bottom: 1rem; }
.art-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: #5f6368; font-size: .85rem; margin-bottom: .85rem; }
.art-meta i { margin-right: .35rem; color: #80868b; }
.art-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.art-tag { display: inline-flex; align-items: center; gap: .2rem; background: #f1f3f4; color: #5f6368; border-radius: 20px; font-size: .75rem; font-weight: 600; padding: .2rem .65rem; }
.art-figure { margin: 0 0 1.75rem; border-radius: 16px; overflow: hidden; background: #F8F9FA; }
.art-figure img { width: 100%; height: auto; display: block; }
.art-summary { font-size: 1.15rem; line-height: 1.7; color: #3c4043; font-weight: 500; margin-bottom: 1.5rem; }
.art-body { font-size: 1.02rem; line-height: 1.8; color: #3c4043; }
.art-body p { margin-bottom: 1.1rem; }
.art-body h2, .art-body h3 { font-weight: 700; color: #202124; margin: 1.75rem 0 .75rem; }
.art-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* Event detail extras */
.art-eventbox { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1.25rem 1.5rem; margin: 0 0 1.75rem; }
.art-daterow { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: #5f6368; margin-bottom: .5rem; }
.art-daterow:last-child { margin-bottom: 0; }
.art-daterow strong { color: #202124; }
.art-eventdates { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #f1f3f4; }
.art-eventdates-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #80868b; margin-bottom: .5rem; }
.art-eventdate { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #5f6368; margin-bottom: .35rem; }
.art-ticket { display: inline-flex; align-items: center; gap: .4rem; background: #34A853; color: #fff; border-radius: 50px; font-weight: 600; padding: .55rem 1.4rem; font-size: .9rem; text-decoration: none; margin-top: .85rem; }
.art-ticket:hover { background: #2E8B43; color: #fff; }

/* Area population chart (Danmarks Statistik) */
.vm-pop { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 1.1rem 1.4rem 1.25rem; }
.vm-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vm-pop-eyebrow { font-size: .8rem; font-weight: 700; color: #1A73E8; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .4rem; }
.vm-pop-source { font-size: .72rem; color: #9aa0a6; }
.vm-pop-trend { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; margin: .35rem 0 .25rem; }
.vm-pop-trend.up { color: #188038; }
.vm-pop-trend.down { color: #d93025; }
.vm-pop-chart { width: 100%; height: auto; display: block; margin-top: .25rem; }
.vm-pop-grid { stroke: #eceff1; stroke-width: 1; }
.vm-pop-axis { fill: #9aa0a6; font-size: 11px; font-family: inherit; }
.vm-pop-area { fill: rgba(26, 115, 232, .12); stroke: none; }
.vm-pop-line { fill: none; stroke: #1A73E8; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.vm-pop-dot { fill: #1A73E8; stroke: #fff; stroke-width: 2; }

@media (max-width: 575px) { .art-title { font-size: 1.6rem; } }