/*
Theme Name: Faaborg360
Theme URI: https://havtryk.dk
Description: Et komplet tema til Faaborg360 eventkalender
Author: Havtryk
Version: 1.18
Template: astra
Text Domain: faaborg360
*/

/* Exo-fonten enqueues via functions.php - ingen @import her (render-blocking). */

:root {
  --sand: #f0ebe3;
  --dark: #1a1a18;
  --accent: #c8a96e;
  --accent2: #4a7c6f;
  --white: #faf9f7;
  --muted: #6b6b63;
  --border: #ddd8cf;
}

/* ── GLOBAL ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Exo', sans-serif !important;
  background: var(--sand) !important;
  color: var(--dark) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo', sans-serif !important;
  color: var(--dark) !important;
  font-weight: 800 !important;
}

p, a, li, span, button, input, textarea, select {
  font-family: 'Exo', sans-serif !important;
}

/* ── HEADER / NAV ── */
#masthead,
.site-header,
.ast-primary-header-bar,
.main-header-bar {
  background: rgba(240,235,227,0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.site-title a,
.ast-site-title-wrap a {
  font-family: 'Exo', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.4rem !important;
  color: var(--dark) !important;
  letter-spacing: -0.5px !important;
  text-decoration: none !important;
}

/* NAV LINKS */
.main-navigation a,
.ast-main-header-bar-alignment a,
#site-navigation a,
.primary-menu a {
  font-family: 'Exo', sans-serif !important;
  color: var(--dark) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.main-navigation a:hover,
.ast-main-header-bar-alignment a:hover,
#site-navigation a:hover,
.primary-menu a:hover {
  color: var(--accent2) !important;
}

/* ── BUTTONS ── */
.ast-button,
.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link,
.wc-block-components-button,
a.button {
  font-family: 'Exo', sans-serif !important;
  background: var(--dark) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0.85rem 2rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s !important;
  display: inline-block !important;
}

.ast-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
a.button:hover {
  background: var(--accent2) !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
}

/* ── LINKS ── */
a {
  color: var(--accent2) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

a:hover { color: var(--dark) !important; }

/* ── CONTENT AREA ── */
.site-content,
#content,
.ast-container,
.entry-content {
  background: var(--sand) !important;
}

/* Remove default page title */
.ast-page-title-wrap,
.entry-header .entry-title,
.page .entry-header {
  display: none !important;
}

/* ── FORMS ── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
  font-family: 'Exo', sans-serif !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 2px !important;
  padding: 0.8rem 1rem !important;
  background: var(--white) !important;
  color: var(--dark) !important;
  width: 100% !important;
  transition: border-color 0.2s !important;
  outline: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent2) !important;
}

/* ── ASTRA FOOTER SKJUL ── */
#colophon,
.site-footer,
.ast-footer-wrap,
.ast-footer-copyright,
.footer-widget-area,
.ast-small-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* ── WIDGET ── */
.widget-title {
  font-family: 'Exo', sans-serif !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .ast-mobile-header-stack .ast-masthead-custom-menu-items,
  .ast-mobile-menu-trigger {
    color: var(--dark) !important;
  }
}

/* ── HERO SLIDER FULD BREDDE OVERRIDE ── */
/* Sørg for at content-wrapper ikke clipper slideren */
.fb360-page,
.entry-content,
.ast-container,
#content .ast-container,
.site-content .ast-container,
.ast-page-builder-template #content,
.page-content,
.entry-content > .fb360-slider-wrap {
  overflow: visible !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Astra's content container må ikke have max-width på forsiden */
body.home .entry-content,
body.front-page .entry-content,
body.page-template-front-page .entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Slider CSS - se functions.php hook */
/* ── FULLWIDTH SLIDER VIA WP_BODY_OPEN HOOK ──────────────────────────────── */
.fb360-fullwidth-slider {
  display: block;
  width: 100%;
  height: 75vh;
  max-height: 720px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  z-index: 99;
}
.fb360-fullwidth-slider .fb360-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}
.fb360-fullwidth-slider .fb360-slide:first-child {
  position: relative;
}


/* Forhindre horisontal scroll på resten af siden (ikke slideren) */
body { overflow-x: hidden !important; }

/* ── AUTH SIDER (Login / Opret profil) ── */
.fb360-auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.fb360-auth-wrap {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 2.5rem 2.5rem 2rem;
}
.fb360-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.fb360-auth-logo {
  font-family: 'Exo', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  color: var(--dark) !important;
  text-decoration: none !important;
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}
.fb360-auth-header h1 {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.4rem !important;
}
.fb360-auth-header p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.fb360-auth-error {
  background: #fdf0f0;
  border: 1.5px solid #e8c0c0;
  color: #8b2e2e;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.fb360-auth-error a { color: #8b2e2e !important; font-weight: 600; }
.fb360-auth-success {
  text-align: center;
  padding: 1.5rem;
  background: #f0f7f4;
  border: 1.5px solid #b8ddd2;
}
.fb360-success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #4a7c6f; color: #fff;
  font-size: 1.4rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1rem;
}
.fb360-auth-success h2 { font-size: 1.3rem !important; margin-bottom: 0.6rem !important; color: #1a1a18 !important; }
.fb360-auth-success p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.4rem; }
.fb360-auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}
.fb360-auth-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.fb360-auth-field label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}
.fb360-auth-field input {
  padding: 0.75rem 1rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  font-size: 0.95rem !important;
  background: var(--sand) !important;
  width: 100% !important;
}
.fb360-auth-field input:focus { border-color: var(--accent2) !important; }
.fb360-auth-remember {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb360-auth-remember input { width: auto !important; }
.fb360-auth-btn {
  width: 100%;
  padding: 0.95rem;
  background: var(--dark);
  color: var(--white) !important;
  border: none;
  font-family: 'Exo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 1.2rem;
}
.fb360-auth-btn:hover { background: var(--accent2) !important; }
.fb360-auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.fb360-auth-switch a { color: var(--accent2) !important; font-weight: 600; }

/* ── HEADER BRUGER MENU ── */
.fb360-header-user {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  margin-left: 1.5rem !important;
}

/* Disse matcher præcis Astras nav-links i udseende */
.fb360-header-login,
.fb360-header-register {
  font-family: 'Exo', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--dark) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  transition: color 0.2s !important;
}
.fb360-header-login:hover,
.fb360-header-register:hover {
  color: var(--accent2) !important;
  background: transparent !important;
}

.fb360-header-indsend {
  font-family: 'Exo', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--dark) !important;
  background: transparent !important;
  text-decoration: none !important;
  padding: 0 !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  transition: color 0.2s !important;
  border: none !important;
}
.fb360-header-indsend:hover { color: var(--accent2) !important; background: transparent !important; }

.fb360-header-avatar-wrap {
  position: relative !important;
}

.fb360-header-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 0 !important;
  background: #c8692a !important;
  color: var(--white) !important;
  font-family: 'Exo', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
  letter-spacing: 0 !important;
}
.fb360-header-avatar:hover { background: var(--dark) !important; }

.fb360-user-dropdown {
  display: none;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  background: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  min-width: 190px !important;
  z-index: 9999 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}
.fb360-user-dropdown.fb360-dropdown-open { display: block !important; }

.fb360-user-dropdown .fb360-user-name {
  display: block !important;
  padding: 0.75rem 1rem 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--border) !important;
}
.fb360-user-dropdown a {
  display: block !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--dark) !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
  border: none !important;
}
.fb360-user-dropdown a:hover { background: var(--sand) !important; }
.fb360-logout-link {
  border-top: 1px solid var(--border) !important;
  color: #8b2e2e !important;
  margin-top: 2px !important;
}
.fb360-logout-link:hover { color: #8b2e2e !important; background: #fdf0f0 !important; }

/* ── AUTH SIDER ASTRA OVERRIDE ── */
/* Fjern Astras standard page-padding og container på auth-sider */
body.page-template-page-register .entry-content,
body.page-template-page-login .entry-content,
body.page-template-page-indsend .entry-content {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
body.page-template-page-register .ast-container,
body.page-template-page-login .ast-container,
body.page-template-page-indsend .ast-container {
  max-width: none !important;
  padding: 0 !important;
}
body.page-template-page-register #primary,
body.page-template-page-login #primary,
body.page-template-page-indsend #primary {
  padding: 0 !important;
}
/* Skjul Astras automatiske page-title på disse sider */
body.page-template-page-register .entry-header,
body.page-template-page-login .entry-header,
body.page-template-page-indsend .entry-header {
  display: none !important;
}

/* ── SKJUL SIDETITEL OG BRØDKRUMME PÅ AUTH-SIDER ── */
body.page-id-107 .entry-header,
body.page-id-108 .entry-header,
body.page-id-109 .entry-header,
body.page-id-107 .ast-breadcrumbs-wrapper,
body.page-id-108 .ast-breadcrumbs-wrapper,
body.page-id-109 .ast-breadcrumbs-wrapper {
  display: none !important;
}

/* Generisk: skjul på alle sider med fb360 shortcode-formularer */
.fb360-auth-page .entry-title,
.fb360-auth-page .ast-breadcrumbs-wrapper,
.fb360-auth-page + .entry-title {
  display: none !important;
}

/* Skjul sidetitel og brødkrumme globalt på sider med auth-formularer */
body:has(.fb360-auth-page) .entry-header,
body:has(.fb360-auth-page) .ast-breadcrumbs-wrapper,
body:has(.fb360-auth-page) .entry-title {
  display: none !important;
}

body:has(.fb360-submit-section) .entry-header,
body:has(.fb360-submit-section) .ast-breadcrumbs-wrapper,
body:has(.fb360-submit-section) .entry-title {
  display: none !important;
}


/* ── SKJUL SIDETITEL OG BRØDKRUMME ── */
/* Astra bruger .entry-header til titel og .ast-breadcrumbs-wrapper til brødkrumme */
/* :has() virker ikke i alle browsere — vi bruger også wp_head hook i stedet */
body:has(.fb360-auth-page) .entry-header,
body:has(.fb360-auth-page) .ast-breadcrumbs-wrapper,
body:has(.fb360-auth-page) .ast-page-title-wrap,
body:has(.fb360-auth-page) .entry-title {
  display: none !important;
}
body:has(.fb360-submit-section) .entry-header,
body:has(.fb360-submit-section) .ast-breadcrumbs-wrapper,
body:has(.fb360-submit-section) .ast-page-title-wrap,
body:has(.fb360-submit-section) .entry-title {
  display: none !important;
}

/* Separator mellemrum */

/* Header separator | */
.fb360-header-sep {
  color: var(--border) !important;
  font-weight: 300 !important;
  font-size: 1rem !important;
  padding: 0 10px !important;
  display: inline !important;
  margin: 0 !important;
}

/* Header user container gap */
.fb360-header-user {
  gap: 0 !important;
  align-items: center !important;
}

/* Fix kategori dropdown bredde i indsend-formular */
.fb360-form select,
.fb360-form-group select {
  width: 100% !important;
  min-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Fix layout når WordPress admin-bar er synlig */
.admin-bar .fb360-slider-wrap {
  margin-top: 0 !important;
}
.admin-bar #fb360-header-user {
  top: 46px !important;
}
@media (max-width: 782px) {
  .admin-bar #fb360-header-user {
    top: 46px !important;
  }
}

/* Upload knap - firkantet med hover */
.fb360-upload-btn {
  display: inline-block !important;
  padding: 0.75rem 1.5rem !important;
  background: #1a1a18 !important;
  color: #faf9f7 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  font-family: 'Exo', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  margin-bottom: 1rem !important;
  transition: background 0.2s !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.fb360-upload-btn:hover { background: #c8692a !important; }

@media (max-width: 900px) {
}
@media (max-width: 600px) {
}

@media (max-width: 900px) {
}
@media (max-width: 600px) {
}


/* Fix kategori dropdown højde */
.fb360-form select,
.fb360-form-group select,
.entry-content select,
#fb360-indsend select {
  height: auto !important;
  min-height: 44px !important;
  line-height: normal !important;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
  overflow: visible !important;
  -webkit-appearance: auto !important;
  appearance: auto !important;
}

/* Indsend arrangement - hvid boks som login */
.fb360-indsend-page {
  padding: 3rem 1.5rem !important;
  align-items: flex-start !important;
}
.fb360-indsend-wrap {
  max-width: 620px !important;
  width: 100% !important;
  text-align: left !important;
}
.fb360-indsend-wrap .fb360-submit-header {
  text-align: left !important;
  margin-bottom: 1.5rem !important;
}
.fb360-indsend-wrap h2 {
  font-size: 1.6rem !important;
  margin-bottom: 0.4rem !important;
}
.fb360-indsend-wrap .fb360-form-grid {
  grid-template-columns: 1fr !important;
}
.fb360-indsend-wrap .fb360-form-group.full {
  grid-column: 1 !important;
}
.fb360-indsend-wrap .fb360-submit-btn {
  width: 100% !important;
}

/* Bekræftelsesbokse */
.fb360-confirm-group {
  background: #1a1a18;
  padding: 1.2rem 1.4rem !important;
  margin-top: 0.5rem;
}
.fb360-confirm-title {
  color: #faf9f7;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}
.fb360-confirm-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  color: #faf9f7 !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  margin-bottom: 0.6rem !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.fb360-confirm-label input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
  cursor: pointer !important;
  accent-color: #c8692a;
}

/* ── INDSEND FORMULAR RESET ── */
.fb360-indsend-wrap,
.fb360-indsend-wrap .fb360-form,
.fb360-indsend-wrap .fb360-form-grid {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
}
.fb360-indsend-wrap .fb360-form-group {
  grid-column: 1 !important;
  margin-bottom: 0.8rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.fb360-confirm-group {
  background: #1a1a18 !important;
  padding: 1.2rem 1.4rem !important;
  margin: 1rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.7rem !important;
}
.fb360-confirm-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  color: #faf9f7 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
}
.fb360-confirm-label input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin-top: 3px !important;
  flex-shrink: 0 !important;
  accent-color: #c8692a !important;
}

/* ── FOOTER ── */
.fb360-footer { font-family: 'Exo', sans-serif; }

/* SEO tekst */
.fb360-footer-seo {
  background: #f0ebe3;
  border-top: 1px solid #ddd8cf;
  padding: 2.5rem 2rem;
}
.fb360-footer-seo-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.fb360-footer-seo h2 {
  font-family: 'Exo', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1a1a18 !important;
  margin-bottom: 0.6rem !important;
}
.fb360-footer-seo p {
  font-size: 0.85rem !important;
  color: #6b6b63 !important;
  line-height: 1.8 !important;
  max-width: 900px !important;
}

/* Footer main */
.fb360-footer-main {
  background: #1a1a18;
  padding: 3rem 2rem;
}
.fb360-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.fb360-footer-logo {
  display: block;
  font-family: 'Exo', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #faf9f7;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}
.fb360-footer-about {
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.7 !important;
  max-width: 280px;
}
.fb360-footer-col-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 1rem;
}
.fb360-footer-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.fb360-footer-menu li { margin-bottom: 0.5rem; }
.fb360-footer-menu a {
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.fb360-footer-menu a:hover { color: #faf9f7 !important; }
.fb360-footer-contact {
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.6) !important;
  margin-bottom: 0.4rem !important;
}
.fb360-footer-contact a {
  color: #c8a96e !important;
  text-decoration: none !important;
}
.fb360-footer-contact a:hover { color: #faf9f7 !important; }
.fb360-footer-cta {
  display: inline-block !important;
  margin-top: 1rem !important;
  padding: 0.6rem 1.2rem !important;
  background: #c8692a !important;
  color: #faf9f7 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: background 0.2s !important;
}
.fb360-footer-cta:hover { background: #4a7c6f !important; }

/* Copyright */
.fb360-footer-bottom {
  background: #111110;
  padding: 1rem 2rem;
}
.fb360-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fb360-footer-bottom span {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.35) !important;
}
.fb360-footer-bottom a {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.35) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.fb360-footer-bottom a:hover { color: #c8a96e !important; }

@media (max-width: 768px) {
  .fb360-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .fb360-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Skjul Astras egen footer */
#colophon,
.site-footer,
.ast-footer-wrap,
.ast-footer-copyright {
  display: none !important;
}
/* ── GALLERI ── */
.fb360-gallery-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

/* Footer links - hvid i alle browsere */
footer .fb360-footer-menu a,
footer a,
.fb360-footer a {
  color: rgba(255,255,255,0.6) !important;
}
footer .fb360-footer-menu a:hover,
footer a:hover,
.fb360-footer a:hover {
  color: #faf9f7 !important;
}

/* Header user menu - iPad fix */
@media (max-width: 1024px) {
  #fb360-header-user {
    position: fixed !important;
    top: 12px !important;
    right: 16px !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 99999 !important;
    background: rgba(240,235,227,0.97) !important;
    padding: 4px 8px !important;
  }
}

/* Header padding fix på iPad */
@media (max-width: 1024px) {
  .main-header-bar,
  .ast-primary-header-bar,
  #masthead .ast-container,
  .main-header-bar .ast-container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .site-title a,
  .ast-site-title-wrap a {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
}

/* Header padding - aggressiv fix alle skærme */
.main-header-bar *,
.ast-primary-header-bar *,
#masthead * {
  box-sizing: border-box !important;
}
.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container,
.main-header-bar > .ast-container,
.ast-header-break-point .main-header-bar,
#masthead > .ast-container,
.site-header .ast-container {
  padding-left: 20px !important;
  padding-right: 20px !important;
  max-width: 100% !important;
  width: 100% !important;
}
.ast-logo-title-inline .site-title {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Header padding fix - iPad og mindre skærme */
.ast-primary-header-bar {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.ast-primary-header-bar .ast-primary-header-bar-wrap,
.ast-primary-header-bar .main-header-bar-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Fix header bredde og padding på iPad */
.ast-primary-header-bar,
.ast-primary-header-bar.main-header-bar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.ast-primary-header-bar .ast-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── GEM EVENT KNAP ── */
.fb360-event-card { position: relative; }
.fb360-save-btn {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #6b6b63;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}
.fb360-save-btn:hover { background: #fff; color: #c8692a; transform: scale(1.1); }
.fb360-save-btn.saved { background: #c8692a; color: #fff; }

/* ── MIN LISTE KNAP ── */
#fb360-minliste-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  background: #1a1a18;
  color: #faf9f7;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  font-family: 'Exo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#fb360-minliste-btn:hover { background: #c8692a; }
#fb360-minliste-count {
  background: #c8692a;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ── MIN LISTE PANEL ── */
#fb360-minliste-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9500;
}
#fb360-minliste-overlay.open { display: block; }
#fb360-minliste-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  max-width: 95vw;
  height: 100vh;
  background: #faf9f7;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
#fb360-minliste-panel.open { right: 0; }
#fb360-minliste-header {
  background: #1a1a18;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
#fb360-minliste-header h3 {
  color: #faf9f7 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
#fb360-minliste-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}
#fb360-minliste-close:hover { color: #fff; }
#fb360-minliste-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.fb360-liste-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem;
  border-bottom: 1px solid #e8e3db;
  background: #fff;
  margin-bottom: 0.5rem;
}
.fb360-liste-item-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.fb360-liste-item-thumb-placeholder {
  width: 70px;
  height: 50px;
  background: #ddd8cf;
  flex-shrink: 0;
}
.fb360-liste-item-info { flex: 1; }
.fb360-liste-item-title { font-weight: 700; font-size: 0.88rem; color: #1a1a18; margin-bottom: 2px; }
.fb360-liste-item-meta { font-size: 0.75rem; color: #6b6b63; }
.fb360-liste-item-remove {
  background: transparent;
  border: none;
  color: #9b9b92;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
}
.fb360-liste-item-remove:hover { color: #c8692a; }
#fb360-minliste-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9b9b92;
  font-size: 0.9rem;
}
#fb360-minliste-actions {
  padding: 1rem 1.2rem;
  border-top: 1px solid #e8e3db;
  flex-shrink: 0;
  background: #f0ebe3;
}
.fb360-liste-action-btn {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  background: #1a1a18;
  color: #faf9f7;
  border: none;
  font-family: 'Exo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}
.fb360-liste-action-btn:hover { background: #4a7c6f; }
.fb360-mail-btn { background: #4a7c6f !important; }
.fb360-mail-btn:hover { background: #1a1a18 !important; }
#fb360-mail-form { display: flex; gap: 0; margin-bottom: 0.6rem; }
#fb360-mail-input {
  flex: 1;
  padding: 0.75rem 0.8rem;
  border: 1.5px solid #ddd8cf;
  border-right: none;
  font-family: 'Exo', sans-serif;
  font-size: 0.88rem;
  outline: none;
  background: #faf9f7;
}
#fb360-mail-input:focus { border-color: #4a7c6f; }
#fb360-mail-form .fb360-mail-btn { width: auto; margin: 0; flex-shrink: 0; padding: 0 1rem; font-size: 0.75rem; }
#fb360-mail-status { font-size: 0.8rem; color: #4a7c6f; margin: 0 0 0.5rem; min-height: 1rem; }
.fb360-liste-clear-btn {
  background: transparent;
  border: 1px solid #ddd8cf;
  color: #9b9b92;
  font-family: 'Exo', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: all 0.2s;
}
.fb360-liste-clear-btn:hover { border-color: #c8692a; color: #c8692a; }

/* Print styles */
@media print {
  body * { visibility: hidden !important; }
  #fb360-print-area, #fb360-print-area * { visibility: visible !important; }
  #fb360-print-area { position: fixed; top: 0; left: 0; width: 100%; padding: 2rem; background: white; }
}

/* ── MIN LISTE ── */
.fb360-save-btn {
  position: absolute !important;
  top: 0.6rem !important;
  right: 0.6rem !important;
  z-index: 10 !important;
  background: rgba(255,255,255,0.9) !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 0 !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
  color: #1a1a18 !important;
  padding: 0 !important;
}
.fb360-save-btn:hover { background: #fff !important; transform: scale(1.1) !important; }
.fb360-save-btn.saved { color: #c8692a !important; }
.fb360-event-card { position: relative !important; }

@media print {
  body * { visibility: hidden; }
  #fb360-print-area, #fb360-print-area * { visibility: visible; }
  #fb360-print-area {
    display: block !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    font-family: 'Exo', sans-serif;
  }
}

/* Gem-knap placering - ikke over kategori */
.fb360-save-btn {
  top: auto !important;
  bottom: 0.6rem !important;
  right: 0.6rem !important;
  left: auto !important;
}

/* Gentagelsesdatoer i event */
.fb360-meta-value {
  display: block !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1a1a18 !important;
  line-height: 1.6 !important;
}

/* Kategori chips - firkantede */
.fb360-chip {
  border-radius: 0 !important;
}

/* Slider pile - firkantede */
.fb360-slider-btn {
  border-radius: 0 !important;
}

/* Underholdning kategori tile */
.fb360-tile-underholdning { background: linear-gradient(135deg, #7a4a6b, #5c3a52) !important; }

/* Kategori checkbokse i indsend-formular */
.fb360-cat-check-label:hover {
  border-color: #c8692a !important;
  background: #fff5f0 !important;
}
.fb360-cat-check-label:has(input:checked) {
  border-color: #c8692a !important;
  background: #c8692a !important;
  color: #fff !important;
}

/* Skjul uønskede sider i Astras burgermenu på mobil – behold kun Log ind og Opret profil */
.ast-mobile-header .main-navigation ul li:has(a[href*="det-sker"]),
.ast-mobile-header .main-navigation ul li:has(a[href*="forside"]),
.ast-mobile-header .main-navigation ul li:has(a[href*="gdpr"]),
.ast-mobile-header .main-navigation ul li:has(a[href*="indsend-arrangement"]),
.ast-mobile-header .main-navigation ul li:has(a[href*="kiosk"]),
.ast-header-break-point .main-navigation ul li:has(a[href*="det-sker"]),
.ast-header-break-point .main-navigation ul li:has(a[href*="forside"]),
.ast-header-break-point .main-navigation ul li:has(a[href*="gdpr"]),
.ast-header-break-point .main-navigation ul li:has(a[href*="indsend-arrangement"]),
.ast-header-break-point .main-navigation ul li:has(a[href*="kiosk"]) {
  display: none !important;
}

/* ── SPECIALKATEGORIER BANNER ─────────────────────────────────────────────── */
.fb360-special-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem;
}
.fb360-special-grid {
  display: grid;
  gap: 1.5rem;
}
.fb360-special-count-1 { grid-template-columns: 1fr; }
.fb360-special-count-2 { grid-template-columns: 1fr 1fr; }

.fb360-special-banner {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fb360-special-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  color: #fff;
  text-decoration: none;
}
.fb360-special-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.fb360-special-banner:hover .fb360-special-bg {
  transform: scale(1.04);
}
.fb360-special-bg-fallback {
  background: linear-gradient(135deg, #4a7c6f 0%, #c8692a 100%);
}
.fb360-special-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
}
.fb360-special-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 320px;
  padding: 2rem 2.5rem;
}
.fb360-special-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.fb360-special-title {
  font-family: 'Exo', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.fb360-special-tekst {
  font-family: 'Exo', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1rem;
  max-width: 480px;
  line-height: 1.5;
}
.fb360-special-cta {
  display: inline-block;
  font-family: 'Exo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  padding: 0.5rem 1.2rem;
  transition: background 0.2s, border-color 0.2s;
}
.fb360-special-banner:hover .fb360-special-cta {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ── SPECIAL-KATEGORI UNDERSIDE ───────────────────────────────────────────── */
.fb360-special-page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  overflow: hidden;
  margin-bottom: 0;
}
.fb360-special-page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.fb360-special-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}
.fb360-special-page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.fb360-special-page-hero-content h1 {
  font-family: 'Exo', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.fb360-special-page-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
}
.fb360-special-page-back {
  display: inline-block;
  font-family: 'Exo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a7c6f;
  text-decoration: none;
  margin-bottom: 1rem;
}
.fb360-special-page-back:hover { color: #c8692a; }

@media (max-width: 768px) {
  .fb360-special-section { padding: 1.5rem; }
  .fb360-special-count-2 { grid-template-columns: 1fr; }
  .fb360-special-content { height: 260px; padding: 1.5rem; }
  .fb360-special-title { font-size: 1.5rem; }
  .fb360-special-page-hero { padding: 2rem 1.5rem; min-height: 220px; }
  .fb360-special-page-hero-content h1 { font-size: 1.8rem; }
}
