/* --- FILTER CHIPS --- */
.filter-chip {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
}
.filter-chip:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}
.filter-chip.active {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}
.filter-chip.active:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* --- DATE FILTER BUTTONS --- */
.date-quick-btn,
#apply-date-filter {
  border-color: #6c757d !important;
  color: #6c757d !important;
}
.date-quick-btn:hover,
#apply-date-filter:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}
.date-quick-btn.active,
#apply-date-filter.active {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}

/* --- INTEREST TAGS --- */
.interest-chip {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  background-color: #e9ecef;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #495057;
}

/* --- DATE RANGE BANNER --- */
.date-range-banner {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 4px 10px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}
.date-range-banner:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- EVENT CARD VISIBILITY HELPERS --- */
.event-card-hidden,
.entry.event.event-card-hidden,
.col-12.col-lg-6.col-xl-4.col-xxl-3.col-xxxl-2.event-card-hidden,
.chrome-hidden,
.force-hidden,
.col-12.col-lg-6.col-xl-4.col-xxl-3.col-xxxl-2.force-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  transform: scale(0) !important;
  pointer-events: none !important;
  z-index: -1 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
}

/* --- DATE RANGE TEXT --- */
.date-range-content {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #495057;
  font-weight: 500;
}
.date-range-content i {
  font-size: 0.7rem;
  margin-right: 3px;
}

/* --- FALLBACK ICONS (EMOJI) --- */
.date-range-content i:before {
  content: "📅";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.date-range-content .fas:before { content: ""; }

.btn .fa-lock:before { content: "🔒"; }
.btn .fa-face-smile-beam:before { content: "😊"; }
.btn .fa-home:before { content: "🏠"; }
.btn .fa-calendar-alt:before { content: "📅"; }
.btn .fa-times:before { content: "❌"; }

/* --- CALENDAR BADGE --- */
.calendar-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-15px);
}
.calendar-badge .month {
  font-size: 0.7rem;
  font-weight: 700;
  color: #dc3545;
}
.calendar-badge .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}
.calendar-badge .day-of-week,
.calendar-badge .year {
  font-size: 0.6rem;
  color: #666;
}

/* --- IMAGE LAZYLOAD EFFECT --- */
img[loading="lazy"] {
  transition: filter .5s ease, opacity .5s ease;
  filter: blur(20px);
  opacity: .6;
}
img[loading="lazy"].loaded {
  filter: blur(0);
  opacity: 1;
}

/* --- MOBILE MENU --- */
#mobile-menu {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border-radius: 10px;
  position: absolute;
  top: 100%;
  right: 10px;
  left: 10px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* ============================================================================
   🖼 HERO – FAST HØJDE + INGEN OVERLAP MED FILTERS
   ============================================================================ */

/* Sørg for at header ikke ligger ovenpå hero (Canvas har ofte fixed header) */
#header.full-header {
  position: relative !important;
  z-index: 999 !important;
}

/* Hero container */
#hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f8f9fa !important;
  line-height: 0 !important;
}

/* Wrapper omkring billede */
.hero-image-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;

  /* Eksplicit højde: ingen “mystisk” auto / overlap */
  height: clamp(260px, 60vh, 520px) !important;
}

/* Selve billedet */
.hero-image-wrapper img.hero-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;          /* fylder wrapperens højde */
  object-fit: cover !important;
  object-position: center center !important;
}

/* Tekst-overlay i bunden */
.hero-text {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  z-index: 10 !important;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.05) 100%
  ) !important;
  padding: 2.5rem 0 1.5rem 0 !important;
}

/* Lille ekstra luft mellem hero og content (fjerner visuel overlap) */
#hero + #content .content-wrap {
  margin-top: 1.5rem !important;
}

/* Responsiv justering af hero-højde */
@media (max-width: 992px) {
  .hero-image-wrapper {
    height: clamp(220px, 50vh, 420px) !important;
  }
}
@media (max-width: 768px) {
  .hero-image-wrapper {
    height: clamp(200px, 45vh, 380px) !important;
  }
}
@media (max-width: 480px) {
  .hero-image-wrapper {
    height: clamp(180px, 40vh, 340px) !important;
  }
}

/* ============================================================================
   🖼 HERO – Stabil højde og layoutflow (kompatibel med lazyload)
   ============================================================================ */
#hero {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  line-height: 0;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-wrapper img.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.3s ease-in-out;
}

/* Højder efter viewport */
@media (max-width: 992px) {
  .hero-image-wrapper img.hero-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 768px) {
  .hero-image-wrapper img.hero-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .hero-image-wrapper img.hero-img { aspect-ratio: 3 / 4; }
}

/* Tekst-overlay */
.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0 1.5rem 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.05) 100%
  );
  color: white;
  z-index: 10;
}

.lazyload-img {
  transition: filter .5s ease, opacity .5s ease;
  filter: blur(20px);
  opacity: .6;
}
.lazyload-img[src^="https"] {
  filter: blur(0);
  opacity: 1;
}

/* --- LOKALFRIVILLIG MODAL FIXES --- */
.lf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999 !important; /* ✅ hæver over alt andet (fx kalenderbadge) */
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lf-modal.is-visible {
  display: flex;
  opacity: 1;
}

/* --- MODAL CONTENT --- */
.lf-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
  position: relative;
  z-index: 10000;
}

/* --- IMAGE FIX --- */
.lf-modal-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  filter: none !important;   /* ✅ fjern blur */
  opacity: 1 !important;     /* ✅ gør billedet synligt */
  transition: none !important;
}

/* --- TEKST --- */
.lf-modal-body {
  padding: 1.8rem;
  text-align: center;
  color: #222;
}
.lf-modal-body h3 {
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.lf-modal-body p {
  margin-bottom: 1.5rem;
  color: #555;
}

/* --- INPUT + BUTTON --- */
#volunteer-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}
#volunteer-form input[type="email"] {
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}
#volunteer-form button {
  background-color: #007bff;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.8rem;
  transition: background 0.2s ease;
}
#volunteer-form button:hover {
  background-color: #0056b3;
}

/* --- CLOSE BUTTON --- */
.lf-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  border: none;
  background: transparent;
  color: #fff;
  z-index: 10;
  cursor: pointer;
}

/* --- ANIMATION --- */
@keyframes modalFadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================================
   🧩 FORM FIXES – ENS STYLING FOR EMAIL/PASSWORD FELTER I MODALS
   ============================================================================ */

/* Gælder for alle formularer i modal */
.lf-modal-body form input[type="email"],
.lf-modal-body form input[type="password"],
.lf-modal-body form input[type="text"],
.lf-modal-body form input[type="tel"] {
  display: block;
  width: 100%;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

/* Fokus-effekt */
.lf-modal-body form input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

/* Samme placeholder-stil for alle felter */
.lf-modal-body form input::placeholder {
  color: #adb5bd;
  opacity: 1;
}

/* Justér evt. Bootstrap input-group icons */
.lf-modal-body .input-group-text {
  background: transparent;
  border: none;
  color: #6c757d;
  font-size: 1.1rem;
}

/* Sikrer at knapper har ens afrunding */
.lf-modal-body button[type="submit"] {
  background-color: #007bff;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.8rem;
  transition: background 0.2s ease;
}
.lf-modal-body button[type="submit"]:hover {
  background-color: #0056b3;
}

#login-toast {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc3545; /* Rød til fejl */
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}
#login-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-5px);
}

/* --- Husk mig checkbox --- */
.remember-me {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  height: 0;
  width: 0;
}

.remember-me .checkmark {
  height: 18px;
  width: 18px;
  border: 2px solid #adb5bd;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.25s ease;
}

.remember-me input:checked ~ .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.remember-me .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.remember-me input:checked ~ .checkmark::after {
  display: block;
}

.remember-me .checkmark::after {
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-me .label-text {
  margin-left: 2px;
}

.btn-tshirt {
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-tshirt.active,
.btn-tshirt:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

/* ---- Avatar trigger ---- */
/* ---- Dropdown container ---- */
.avatar-menu {
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    padding: 8px 0;
    border-radius: 12px;
    display: none;
    z-index: 999;
    
    /* Hele nøglen til ikke at ødelægge layout */
    max-width: 240px;
    width: max-content;    /* bliver kun så stor som indholdet */
    overflow: hidden;      /* men bliver aldrig bredere end max-width */
    
    box-sizing: border-box;
}

/* ---- User info ---- */
.avatar-userinfo {
    line-height: 1.2;
    max-width: 100%;       /* tving alt til at holde sig inde */
}

/* Truncate brugernavn */
.avatar-userinfo .user-name {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Truncate "Seneste login" hvis ekstremt langt */
.avatar-userinfo .text-muted {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Dropdown items ---- */
.dropdown-item-sm {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap; /* holder menuen pæn */
}

.dropdown-item-sm:hover {
    background: #f0f2f5;
}

/* ---- Avatar trigger ---- */
.avatar-trigger:hover {
    background: rgba(0,0,0,0.05);
}

/* ---- Avatar image ---- */
.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---- Responsive tweaks (små skærme) ---- */
@media (max-width: 420px) {
    .avatar-menu {
        right: 10px;           /* lidt margen på helt små skærme */
        max-width: 200px;      /* squeeze lidt mere */
    }
}

input[type="date"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Fix intl-tel-input højde og alignment */
.iti {
  width: 100%;
}

.iti .iti__flag-container {
  height: 100%;
}

.iti input.form-control {
  padding-left: 88px !important; /* match dk-flag width */
  height: calc(2.5rem + 2px) !important; /* samme som .form-control .rounded-3 */
  line-height: 1.5 !important;
}

/* Sørg for at hele containeren får samme spacing */
.iti--separate-dial-code .iti__selected-flag {
  height: 100% !important;
  display: flex;
  align-items: center;
}

/* Fix for at undgå "hop" når dropdown åbner */
.iti__country-list {
  z-index: 9999 !important;
}

.btn-interest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #d0d5db;
    border-radius: 9999px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

/* --- Hover (kun når IKKE aktiv) --- */
.btn-interest:hover:not(.active) {
    background-color: #f1f3f5;
    border-color: #b6bcc5;
    color: #333 !important;   /* ← vigtig fix */
}

/* --- Aktiv chip --- */
.btn-interest.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(13,110,253,0.3);
}

/* --- Hover på aktiv (må gerne være hvid tekst) --- */
.btn-interest.active:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff !important;
}

/* Skjul vores checkbox */
.btn-interest input[type="checkbox"] {
    display: none;
}

/* Global spacing for profile pages */
.profile-page-wrapper {
    padding-top: 30px;   /* luft over card */
    padding-bottom: 30px; /* luft under card */
}
#content {
    margin-top: -10px; /* trækker cardet lidt op */
}

/* --- LF Big Checkbox --- */
.lf-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

.lf-check input[type="checkbox"] {
  display: none;
}

.lf-check-box {
  width: 26px;
  height: 26px;
  border: 2.5px solid #999;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all .2s ease;
  background: #fff;
}

.lf-check:hover .lf-check-box {
  border-color: #555;
}

.lf-check input:checked + .lf-check-box {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.lf-check input:checked + .lf-check-box::after {
  content: "✓";
  color: white;
  font-size: 18px;
  font-weight: bold;
  position: absolute;
  top: 1px;
  left: 6px;
}

/* --- Wrapper til checkbox-sektion --- */
.lf-check-wrapper {
    border: 2px solid #e5e7eb;              /* Lys, moderne grå */
    background: #fafafa;                    /* Let highlight */
    padding: 16px 18px;
    border-radius: 12px;                    /* Matcher dine andre elementer */
    margin-top: 8px;
    margin-bottom: 12px;
}

/* Giver hover-effekt som på andre cards */
.lf-check-wrapper:hover {
    border-color: #d0d3d8;
    background: #f5f5f5;
    transition: .2s ease;
}

/* --- T-shirt chips skal se ud som interesse-chips --- */
.btn-tshirt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border: 2px solid #d0d5db !important;
    border-radius: 9999px !important;
    background-color: #fff !important;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    user-select: none;
}

/* Hover (når IKKE aktiv) */
.btn-tshirt:hover:not(.active) {
    background-color: #f1f3f5 !important;
    border-color: #b6bcc5 !important;
    color: #333 !important;
}

/* Aktiv chip */
.btn-tshirt.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(13,110,253,0.3) !important;
}

/* Hover på aktiv */
.btn-tshirt.active:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    color: #fff !important;
}

/* Container */
.lf-photo-upload {
    position: relative;
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    background: #fafafa;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hover highlight */
.lf-photo-upload:hover {
    background: #f3f4f6;
    border-color: #d0d3d8;
}

/* File input hidden */
.lf-photo-upload input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Venstre side */
.lf-photo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Ikon */
.lf-photo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #d8dadd;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #6b7280;
    flex-shrink: 0;
}

/* Tekstblok */
.lf-photo-text-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Hovedtekst */
.lf-photo-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
}

/* Undertekst */
.lf-photo-sub {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Filnavn */
.lf-photo-filename {
    font-size: 0.85rem;
    color: #475569;
}

/* Preview */
.lf-photo-preview {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #ddd;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Aktiv state */
.lf-photo-upload.has-preview {
    border-color: #0d6efd;
    background: #f0f7ff;
}
/* --- Fix intl-tel-input der skubber feltet 2-3px op --- */
.iti {
    display: flex !important;
    align-items: center !important;
    height: calc(2.5rem + 2px) !important; /* samme som .form-control */
    padding: 0 !important;
}

.iti input.form-control {
    height: 100% !important;        /* arver wrapperens højde */
    line-height: 1.5 !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.iti__flag-container {
    height: 100% !important;        /* align flag med input */
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}
.form-control {
    height: calc(2.5rem + 2px);
    display: flex;
    align-items: center;
}

.follow-org-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  color: #333;
}

.follow-org-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

/* Default heart (ikke fulgt endnu) */
.follow-org-btn i {
  font-size: 1rem;
  color: #666;       /* diskret grå */
}

/* Når man følger */
.follow-org-btn.following {
  /* ingen rød farve her! */
  background: #f8f9fa;      /* samme som default */
  border-color: #dee2e6;
  color: #333;
}

/* Kun hjertet ændres! */
.follow-org-btn.following i {
  color: #e63946;      /* rød */
  font-weight: 900;     /* solid heart */
}

#modal-privacy-text {
  width: 95%;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px; /* så tekst ikke ligger under scrollbar */
}
#modal-privacy-text h1,
#modal-privacy-text h2,
#modal-privacy-text h3 {
  font-size: 1.1rem !important;
  margin: 0.8em 0 0.3em;
  font-weight: 600;
}

#modal-privacy-text p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0.4em 0;
}

#modal-privacy-text {
  width: 95%;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}
#modal-privacy-text * {
  font-family: inherit;
  color: #333;
}
/* Container spacing */
.lf-modal-body button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* Wrapper til knapperne */
.modal-buttons {
  display: flex;
  gap: 12px;        /* afstand mellem dem */
  margin-top: 18px;
}

/* Ens bredde */
.modal-buttons button {
  flex: 1;          /* 50/50 automatisk */
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ACCEPT (grøn) */
.btn-accept {
  background-color: #28a745;
  color: #fff;
}
.btn-accept:hover {
  background-color: #23963e;
}

/* CANCEL (lys grå) */
.btn-cancel {
  background-color: #e9ecef;
  color: #444;
}
.btn-cancel:hover {
  background-color: #d8dce0;
}
#modal-privacy-text p,
#modal-privacy-text em,
#modal-privacy-text strong,
#modal-privacy-text a {
  text-align: left !important;
  display: block; /* sikrer ingen inline-centreing */
}
.lf-modal-image img {
  height: 120px;           /* eller 80px, 100px … alt efter smag */
  width: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0; /* hvis du vil matche modalens runde hjørner */
}

.task-table-wrapper {
  max-height: 160px;          /* Justér efter smag */
  overflow-y: auto;
  margin-top: 10px; 
  position: relative;

  /* Gør scrollbar pæn */
  scrollbar-width: thin;
  scrollbar-color: #cdd5df transparent;
}

/* Fadet top/bund for at vise der er mere indhold */
.task-table-wrapper::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9));
}
.task-table-wrapper::before {
  content: "";
  position: sticky;
  top: 0;
  height: 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  display: block;
  pointer-events: none;
  z-index: 4;
}

/* Sticky header */
.task-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
  box-shadow: 0 2px 2px rgba(0,0,0,0.05);
}

/* Gør rækkerne mere læsbare */
.task-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.task-card .card-body {
  max-height: 260px;               /* Match task-table-wrapper */
  overflow-y: auto;
  padding-right: 12px;
  position: relative;

  scrollbar-width: thin;
  scrollbar-color: #cdd5df transparent;
}

/* Fade i bunden som indikerer mere tekst */
.task-card .card-body::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  z-index: 3;
}

.lf-modal-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.lf-modal-buttons .or-sep {
  font-size: 0.85rem;
  color: #666;
  padding: 0 4px;
}

.lf-modal-buttons button {
  flex: 1;
  padding: 10px 0;
  font-size: 0.9rem;
}
.lf-modal-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 12px;
}

/* Separator "eller" */
.lf-modal-buttons .or-sep {
    font-size: 0.85rem;
    color: #777;
}

/* Opret bruger – super lys knap */
.btn-alt-light {
    background-color: #f7faff !important;   /* næsten hvid */
    border: 1px solid #d6e4ff !important;   /* lys blå kant */
    color: #0b5ed7 !important;              /* blå tekst */
    font-weight: 600;
    padding: 12px 0;
    border-radius: 8px;
    transition: 0.2s ease;
}

/* Hover */
.btn-alt-light:hover {
    background-color: #e6f0ff !important;
    border-color: #bcd2ff !important;
}

/* Log ind – primary */
.lf-modal-buttons .btn-primary {
    flex: 1;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
}

#extra-info {
  background: #fff4d8;
  border-left: 4px solid #ffaa2c;
  padding: 14px 18px;
  margin: 20px 0 10px;
  border-radius: 6px;
  color: #5b3b00;
  font-weight: 600;
  display: none;
}

/* Wrapper: giver perspektiv */
.shiftbtn-flip {
    display: inline-block;
    perspective: 800px;
}

@keyframes shift-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 12px rgba(40, 167, 69, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(40, 167, 69, 0);
    }
}

.shift-pulse {
    animation: shift-pulse 0.35s ease-out;
}

/* ============================
   EVENT ACTION BAR (HØJREJUST)
   ============================ */
.lf-event-action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin: 10px 0 25px;
}


/* Placering */
.event-top-actions {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    gap: 8px;
}

/* Knapper */
.lf-action-btn,
.lf-follow-btn {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #d4d7dd;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all .18s ease;
}

/* Ikoner */
.lf-action-btn i,
.lf-follow-btn i {
    font-size: 1rem;
    color: #666;
}

/* Hover */
.lf-action-btn:hover,
.lf-follow-btn:hover {
    background: #f3f6ff;
    border-color: #b7c3ff;
    box-shadow: 0 4px 12px rgba(13,110,253,0.22);
    transform: translateY(-1px);
    color: #0d6efd;
}

.lf-action-btn:hover i,
.lf-follow-btn:hover i {
    color: #0d6efd;
}

/* Follow state */
.lf-follow-btn.following {
    background: #eef4ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.lf-follow-btn.following i {
    color: #e63946;
    font-weight: 900;
}

.faq-accordion { margin-top:20px; }
.faq-item { border:1px solid #ddd; border-radius:10px; margin-bottom:10px; overflow:hidden; }
.faq-question {
    width:100%; background:#fff; border:0; padding:12px 14px;
    font-weight:600; display:flex; justify-content:space-between; cursor:pointer;
}
.faq-answer {
    max-height:0; overflow:hidden; padding:0 14px;
    transition:max-height .25s ease, padding .25s ease;
    font-size:.95rem;
}
.faq-item.open .faq-answer {
    max-height:400px; padding:10px 14px 14px;
}
.faq-question {
    justify-content: space-between;   /* holder + i højre side */
    text-align: left;                  /* venstrestil tekst */
}

.faq-question span.icon {
    flex-shrink: 0;                    /* + må ikke flytte sig */
}

.faq-answer {
    text-align: left;                  /* venstrestil svar */
}

.messageboard-accordion .msg-item {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.messageboard-accordion .msg-item:hover {
    background: #f1f1f1;
}

.msg-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.msg-preview,
.msg-full {
    color: #444;
    line-height: 1.45;
    margin-bottom: 8px;
}

.msg-toggle {
    color: #0067c0;
    font-size: 0.9rem;
    font-weight: 600;
}
.messageboard-accordion .msg-item {
    text-align: left;
}

.msg-title,
.msg-preview,
.msg-full,
.msg-toggle {
    text-align: left;
}
.msg-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #e6e6e6;
    font-size: 0.85rem;
    color: #777;
    display: flex;
    justify-content: space-between;
}

.msg-author {
    font-weight: 500;
}

.msg-ts {
    opacity: 0.8;
}
/* Standard bredde (mobil/tablet) — behold som den er */
.lf-modal-content {
    max-width: 90%;
}

/* Desktop — gør modalen ca. dobbelt så bred */
@media (min-width: 900px) {
    .lf-modal-content {
        max-width: 820px;  /* justér hvis du vil have den endnu bredere */
    }
}

.lf-btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.lf-btn-primary:hover {
    background-color: #0b5ed7;
}

 /* --- CALENDAR BADGE (Replikation af EventCard-stil) --- */
.calendar-container {
  display: inline-block;
  position: relative;
}

.calendar-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-transform: uppercase;
  font-family: system-ui, sans-serif;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.calendar-badge .month {
  width: 100%;
  background: #dc3545;        /* Rød topbar */
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 0;
}

.calendar-badge .day {
  font-size: 1.8rem;
  font-weight: 800;
  color: #000;
  margin: 4px 0;
  line-height: 1;
}

.calendar-badge .day-of-week {
  font-size: 0.65rem;
  font-weight: 600;
  color: #444;
  line-height: 1;
}

.calendar-badge .year {
  font-size: 0.65rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 4px;
}

/* Mindre variation til mobil */
@media (max-width: 768px) {
  .calendar-badge {
    width: 60px;
    border-radius: 8px;
  }
  .calendar-badge .day { font-size: 1.5rem; }
}

/* --- EVENT TAGS (forstørret og med bedre visuel vægt) --- */
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.event-tags .badge {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;         /* større tekst */
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid #dee2e6;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}
.event-tags .badge:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

/* --- OPGAVEKORT GRID --- */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.task-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.task-card .card-body {
  padding: 1.2rem 1.4rem;
}
.task-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.task-card p {
  font-size: 0.9rem;
  color: #555;
  min-height: 50px;
}

/* --- "Tabel"-sektion i bunden --- */
.task-meta {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #333;
  border-top: 1px solid #eee;
  padding: 0.6rem 1.2rem;
  align-items: center;
}
.task-meta span {
  white-space: nowrap;
}
.task-meta .btn {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
}
/* --- TASK CARD --- */
.task-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.task-card .card-body {
  padding: 1.3rem 1.4rem;
}
.task-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.task-card p {
  font-size: 0.9rem;
  color: #555;
}

/* --- TABLE STYLING --- */
.task-table-wrapper {
  border-top: 1px solid #eee;
  background: #f8f9fa;
  overflow-x: auto;
}
.task-table {
  border-collapse: collapse;
  font-size: 0.9rem;
}
.task-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: #444;
  background: #f1f3f5;
}
.task-table td {
  padding: 8px 12px;
  border-top: 1px solid #e9ecef;
  vertical-align: middle;
}
.task-table tr:hover td {
  background: #fff;
}
.task-table button {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
}

/* --- ANIMATION --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- TASK GRID LAYOUT --- */
.task-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

/* Cards fylder præcis 50% minus afstand */
.task-card {
  flex: 0 0 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* De skal ikke blive 100% bredde på sidste række */
.task-grid::after {
  content: "";
  flex: 0 0 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
}

/* På mobil fylder de hele bredden */
@media (max-width: 768px) {
  .task-card,
  .task-grid::after {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================
   FIX TASK CARD WIDTH / LAYOUT
   ============================ */

/* Brug KUN grid-layoutet */
.task-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
  gap: 20px !important;
  width: 100%;
}

/* Gør kortene fleksible og forhindrer smal layout */
.task-card {
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
}

/* Fjern det kunstige "ghost element" */
.task-grid::after {
  display: none !important;
}

/* Mobil: ét kort pr række */
@media (max-width: 768px) {
  .task-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Wrappen omkring logo + tekst */
.arrangor-card {
    display: flex;
    align-items: center;   /* ← dette centrerer foto + tekst vertikalt */
    gap: 18px;                 /* afstand mellem logo og tekst */
    padding: 14px 18px;        /* træk logoet ind i kortet */
}

/* Logo + cirkel */
.arrangor-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f3f3;
    border: 1px solid #e1e1e1;
}

.arrangor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tekstblok */
.arrangor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Titel */
.arrangor-title {
    font-size: 0.95rem;    /* lidt mindre end navnet */
    font-weight: 600;      /* ikke lige så tung */
    color: #6c757d;        /* Bootstrap-muted stil */
    margin: 0 0 2px 0;     /* lille luft under titel */
    letter-spacing: 0.3px; /* mere “kategori”-agtig */
    text-transform: uppercase;
}

/* Arrangørens navn */
.arrangor-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Adresse (mindre, diskret) */
.arrangor-address {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* Wrapper */
.kontakt-card {
    display: flex;
    align-items: center;   /* ← dette centrerer foto + tekst vertikalt */
    gap: 18px;
    padding: 14px 18px;
}

/* Foto */
.kontakt-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f3f3;
    border: 1px solid #e1e1e1;
}

.kontakt-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tekst-wrapper */
.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Titel - samme stil som Arrangør */
.kontakt-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Navn */
.kontakt-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Links */
.kontakt-links a {
    display: block;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    margin-bottom: 2px;
}

.kontakt-links a:hover {
    text-decoration: underline;
}

/* Farver for mail/telefon */
.kontakt-mail {
    color: #0d6efd !important;
}

.kontakt-phone {
    color: #333 !important;
}

.related-item {
    align-items: center;
}

.related-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.related-text .related-title {
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    display: block;
    margin-bottom: 2px;
}

.related-text .related-title:hover {
    text-decoration: underline;
}

.related-location {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
}