/* ═══════════════════════════════════════════════════════════════
   Casa del Sol – Admin Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue:       #1A3A5C;
  --blue-light: #2C5F8A;
  --blue-dark:  #0F2438;
  --gold:       #C9A84C;
  --gold-dark:  #A0832A;
  --sand:       #F5F0E8;
  --sand-dark:  #E8DFCE;
  --text:       #2C2C2C;
  --text-muted: #6B6B6B;
  --white:      #FFFFFF;
  --bg:         #F0F4F8;
  --sidebar-w:  240px;
  --topbar-h:   60px;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --font:       'Inter', system-ui, sans-serif;
  --font-head:  'Playfair Display', Georgia, serif;

  /* Status kleuren */
  --available:  #4CAF50;
  --booked:     #E53935;
  --option:     #FB8C00;
  --blocked:    #9E9E9E;
  --selected:   #1A3A5C;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
input, select, textarea, button {
  font-family: var(--font);
  font-size: 0.9rem;
}

/* ── Login pagina – volledig scherm met hero foto ─────────────── */
.login-page {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Achtergrondlaag met foto (zelfde techniek als homepage hero) */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.login-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.82);
  transform: scale(1.04);
}
.login-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,25,45,0.75) 0%,
    rgba(15,36,56,0.60) 50%,
    rgba(10,25,45,0.75) 100%
  );
}

/* Centreerlayout */
.login-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 20px;
  width: 100%;
  max-width: 440px;
}

/* Logo / merk boven de kaart */
.login-brand {
  text-align: center;
  color: var(--white);
}
.login-brand-logo {
  font-size: 2.6rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.login-brand-name {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.login-brand-name em { color: var(--gold); font-style: italic; }
.login-brand-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Glassmorphism login-kaart */
.login-card {
  width: 100%;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.login-header { text-align: center; margin-bottom: 32px; }
.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.login-header h1 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--white);
}
.login-header p { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.80);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > i {
  position: absolute;
  left: 14px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255,255,255,0.10);
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.input-wrap input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.20);
}
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  padding: 4px;
}
.toggle-pw:hover { color: var(--gold); }

.form-feedback {
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.form-feedback.error {
  padding: 10px 14px;
  background: rgba(198,40,40,0.25);
  color: #FFCDD2;
  border: 1px solid rgba(198,40,40,0.45);
}
.form-feedback.success {
  padding: 10px 14px;
  background: rgba(46,125,50,0.25);
  color: #C8E6C9;
  border: 1px solid rgba(46,125,50,0.45);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: var(--blue-dark);
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.btn-login:hover:not(:disabled) {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}
.btn-login:disabled { opacity: 0.55; cursor: not-allowed; }

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.50);
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold); }

/* ── Dashboard layout ─────────────────────────────────────────── */
.dashboard-page {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--blue-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

/* Sidebar header met hero-foto als achtergrond */
.sidebar-logo {
  position: relative;
  font-family: var(--font-head);
  font-size: 1.15rem;
  padding: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  min-height: 110px;
  display: flex;
  align-items: flex-end;
}
.sidebar-logo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sidebar-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(2px) brightness(0.55);
  transform: scale(1.08);
}
.sidebar-logo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,45,0.85) 0%, rgba(10,25,45,0.30) 100%);
}
.sidebar-logo-text {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  line-height: 1.3;
}
.sidebar-logo-text small {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}
.sidebar-logo em { color: var(--gold); font-style: italic; }

.sidebar-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nav-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 8px 8px 4px;
  margin-top: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-link.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.sidebar-link i { width: 16px; text-align: center; }
.sidebar-logout { color: rgba(255,100,100,0.7); margin-top: auto; }
.sidebar-logout:hover { background: rgba(255,100,100,0.1); color: #FF6B6B; }

.badge {
  margin-left: auto;
  background: var(--booked);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

/* Topbar */
.dashboard-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  padding: 4px;
}
.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.topbar-user i { color: var(--blue-light); font-size: 1.1rem; }

/* Content */
.dashboard-content { padding: 28px; flex: 1; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 1.5rem; color: var(--blue-dark); margin-bottom: 4px; }
.page-header p  { font-size: 0.88rem; color: var(--text-muted); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sand-dark);
}
.card-header h3 { font-size: 0.95rem; color: var(--blue-dark); }
.card > *:not(.card-header):not(.adm-cal-grid):not(.admin-gallery-grid) { padding: 20px; }

/* ── Stats overzicht ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #E3F2FD; color: #1565C0; }
.stat-icon.green  { background: #E8F5E9; color: #2E7D32; }
.stat-icon.orange { background: #FFF3E0; color: #E65100; }
.stat-icon.purple { background: #F3E5F5; color: #6A1B9A; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--blue-dark); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Recente aanvragen preview */
.recent-req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--sand-dark);
  transition: background var(--transition);
}
.recent-req-item:last-child { border-bottom: none; }
.recent-req-item:hover { background: var(--sand); }
.req-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.req-info { flex: 1; min-width: 0; }
.req-name  { font-size: 0.88rem; font-weight: 500; }
.req-meta  { font-size: 0.78rem; color: var(--text-muted); }
.req-status-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-new      { background: #E3F2FD; color: #1565C0; }
.badge-read     { background: #F5F5F5; color: #616161; }
.badge-replied  { background: #E8F5E9; color: #2E7D32; }
.badge-archived { background: #FFF3E0; color: #E65100; }

/* ── Admin kalender ───────────────────────────────────────────── */
.avail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.avail-cal-card .card-header { justify-content: space-between; }
.avail-cal-card .card-header h3 { font-size: 1rem; }

.adm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 12px;
  gap: 4px;
}
.adm-cal-day-name {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  text-transform: uppercase;
}
.adm-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  user-select: none;
  position: relative;
}
.adm-cal-day:hover { filter: brightness(0.9); }
.adm-cal-day.empty   { cursor: default; }
.adm-cal-day.past    { opacity: 0.3; cursor: not-allowed; }
.adm-cal-day.today   { border-color: var(--gold) !important; font-weight: 700; }

.adm-cal-day.available { background: #E8F5E9; color: #2E7D32; }
.adm-cal-day.booked    { background: #FFEBEE; color: #C62828; }
.adm-cal-day.option    { background: #FFF3E0; color: #E65100; }
.adm-cal-day.blocked   { background: #F5F5F5; color: #9E9E9E; text-decoration: line-through; }
.adm-cal-day.none      { background: transparent; color: var(--text); }
.adm-cal-day.selected  { background: var(--blue-dark) !important; color: var(--white) !important; }

.cal-selection-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #E3F2FD;
  border-top: 1px solid var(--sand-dark);
  font-size: 0.83rem;
  color: #1565C0;
}
.cal-selection-info i { color: #1565C0; }
.btn-text-danger {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--booked);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
}

/* Actie-paneel */
.avail-actions { display: flex; flex-direction: column; gap: 16px; }
.avail-actions .card > *:not(.card-header) { padding: 16px; }

.status-selector { display: flex; flex-direction: column; gap: 8px; }
.status-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-dark);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
}
.status-opt input[type="radio"] { display: none; }
.status-opt span { display: flex; align-items: center; gap: 8px; }
.status-opt:has(input:checked) { border-color: currentColor; font-weight: 500; }
.available-opt { color: #2E7D32; }
.available-opt:has(input:checked) { background: #E8F5E9; }
.booked-opt    { color: #C62828; }
.booked-opt:has(input:checked)    { background: #FFEBEE; }
.option-opt    { color: #E65100; }
.option-opt:has(input:checked)    { background: #FFF3E0; }
.blocked-opt   { color: #616161; }
.blocked-opt:has(input:checked)   { background: #F5F5F5; }

.legend-list { display: flex; flex-direction: column; gap: 8px; }
.legend-row  { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.dot.available { background: var(--available); }
.dot.booked    { background: var(--booked); }
.dot.option    { background: var(--option); }
.dot.blocked   { background: var(--blocked); }
.dot.selected  { background: var(--selected); }

/* Toast notificatie */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #2E7D32; }
.toast.error   { background: #C62828; }

/* ── Aanvragen ─────────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-pill {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.83rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.requests-list { display: flex; flex-direction: column; gap: 12px; }

.request-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.request-card:hover { box-shadow: var(--shadow); }
.request-card.new { border-left: 3px solid #1565C0; }

.req-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: background var(--transition);
}
.req-card-header:hover { background: var(--sand); }
.req-card-header.open  { border-bottom-color: var(--sand-dark); }
.req-avatar2 {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; flex-shrink: 0;
}
.req-card-info { flex: 1; min-width: 0; }
.req-card-name  { font-weight: 600; font-size: 0.92rem; }
.req-card-sub   { font-size: 0.78rem; color: var(--text-muted); }
.req-card-meta  { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.req-card-body { padding: 16px 18px; display: none; }
.req-card-body.open { display: block; }

.req-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.req-detail-item label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); display: block; margin-bottom: 2px; }
.req-detail-item span  { font-size: 0.88rem; }
.req-message { background: var(--sand); border-radius: var(--radius-sm); padding: 12px; font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 16px; }

.req-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Knoppen (admin) ──────────────────────────────────────────── */
.btn-admin {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary   { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }
.btn-secondary { background: var(--sand); color: var(--text); border: 1px solid var(--sand-dark); }
.btn-secondary:hover { background: var(--sand-dark); }
.btn-danger    { background: #FFEBEE; color: #C62828; }
.btn-danger:hover { background: #FFCDD2; }
.btn-success   { background: #E8F5E9; color: #2E7D32; }
.btn-success:hover { background: #C8E6C9; }
.btn-warning   { background: #FFF3E0; color: #E65100; }
.btn-warning:hover { background: #FFE0B2; }
.btn-text  { background: none; border: none; color: var(--blue-light); font-size: 0.82rem; cursor: pointer; font-family: var(--font); transition: color var(--transition); padding: 0; }
.btn-text:hover { color: var(--blue-dark); }
.btn-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-dark);
  background: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

/* ── Galerij beheer ───────────────────────────────────────────── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.upload-zone {
  border: 2px dashed var(--sand-dark);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  min-height: 180px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue-light);
  background: #F0F7FF;
  color: var(--blue);
}
.upload-zone i { font-size: 2.5rem; color: var(--blue-light); }
.upload-zone p { font-size: 0.88rem; }
.upload-hint { font-size: 0.78rem !important; color: var(--text-muted); }
.upload-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: none;
}

.upload-meta { display: flex; flex-direction: column; gap: 12px; }
.upload-meta .form-group { margin: 0; }
.upload-meta label { font-size: 0.8rem; font-weight: 500; color: var(--text); display: block; margin-bottom: 5px; }
.upload-meta input,
.upload-meta select,
.upload-meta textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.upload-meta input:focus,
.upload-meta select:focus,
.upload-meta textarea:focus { border-color: var(--blue-light); }

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.admin-photo-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--sand-dark);
  background: var(--sand);
  transition: box-shadow var(--transition);
}
.admin-photo-card:hover { box-shadow: var(--shadow); }
.admin-photo-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.admin-photo-info {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-photo-name {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-photo-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: color var(--transition);
}
.admin-photo-del:hover { color: var(--booked); }

/* Admin form inputs (gedeeld) */
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select, textarea {
  font-family: var(--font);
}
.card input[type="date"],
.card input[type="text"],
.card select,
.card textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.card input:focus, .card select:focus, .card textarea:focus {
  border-color: var(--blue-light);
}
.card .form-group { margin-bottom: 14px; }
.card .form-group label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 5px; color: var(--text); }

/* Instellingen */
#tab-settings .card { padding: 24px; }
#pw-form { display: flex; flex-direction: column; gap: 14px; }
#pw-form .form-group { margin: 0; }
#pw-form input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}
#pw-form input:focus { border-color: var(--blue-light); }

/* Loading state */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; color: var(--sand-dark); display: block; }
.empty-state p { font-size: 0.9rem; }

/* ── Prijzen editor ───────────────────────────────────────────── */
.price-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.price-editor-season {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  border: 1.5px solid var(--sand-dark);
}
.price-season-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.price-season-label.low  { background: #E3F2FD; color: #1565C0; }
.price-season-label.mid  { background: #FFF8E1; color: #F57F17; }
.price-season-label.high { background: #FCE4EC; color: #C62828; }
.input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.input-prefix {
  padding: 9px 12px;
  background: var(--sand);
  border-right: 1.5px solid var(--sand-dark);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.input-prefix-wrap input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
  box-shadow: none !important;
}
.input-prefix-wrap input:focus { outline: none; }

/* ── De Villa editor ─────────────────────────────────────────── */
.villa-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.villa-spec-row {
  background: var(--bg);
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  padding: 12px;
}
.villa-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.villa-card-edit {
  background: var(--bg);
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  padding: 14px;
  position: relative;
}
.villa-card-nr {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tab-villa .card textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  resize: vertical;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  outline: none;
}
#tab-villa .card textarea:focus { border-color: var(--blue-light); }
@media (max-width: 900px) {
  .villa-specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .villa-specs-grid { grid-template-columns: 1fr 1fr; }
  .villa-cards-grid { grid-template-columns: 1fr; }
}

/* ── Website inhoud editor ────────────────────────────────────── */
.content-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.content-editor-grid .card { margin: 0; }
.content-editor-grid .card-header h3 { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.content-editor-grid .card-header h3 i { color: var(--gold); }

/* ── Gastomgeving tab ─────────────────────────────────────────── */
.gp-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.gp-block-list { margin-bottom: 8px; }

.gp-block-item {
  border-bottom: 1px solid var(--sand-dark);
  padding: 12px 0;
}
.gp-block-item:last-child { border-bottom: none; }

.gp-block-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.gp-block-preview { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.4; }
.gp-block-actions { display: flex; gap: 4px; }

.gp-add-form {
  border-top: 1px solid var(--sand-dark);
  padding-top: 14px;
  margin-top: 4px;
}
.gp-add-form input,
.gp-add-form textarea,
.gp-block-edit input,
.gp-block-edit textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 7px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  margin-bottom: 10px;
  resize: vertical;
}
.gp-add-form input:focus,
.gp-add-form textarea:focus,
.gp-block-edit input:focus,
.gp-block-edit textarea:focus { outline: none; border-color: var(--blue-light); }
.gp-add-actions { display: flex; gap: 8px; }

.gp-block-edit { padding-top: 10px; }

/* ── Configuratie tab ─────────────────────────────────────────── */
.config-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand-dark);
}
.config-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.config-toggle-info strong { font-size: 0.95rem; color: var(--text); }
.config-toggle-info span   { font-size: 0.82rem; color: var(--text-muted); }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--sand-dark);
  border-radius: 26px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue-light); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.config-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #FFF8E1;
  border-left: 3px solid #F9A825;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #5D4037;
  line-height: 1.5;
}
.config-note a { color: var(--blue-light); font-weight: 600; }

/* ── Gastgebruikers / data-table ─────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--sand-dark);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--sand-dark);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--sand); }

/* ── Audit log ────────────────────────────────────────────────── */
.audit-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.audit-filter-select,
.audit-filter-input {
  padding: 6px 10px;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
}
.audit-filter-input { width: 180px; }
.audit-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.audit-log-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--sand-dark);
  white-space: nowrap;
}
.audit-log-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sand-dark);
  vertical-align: middle;
}
.audit-log-table tr:last-child td { border-bottom: none; }
.audit-log-table tr:hover td { background: var(--sand); }
.audit-actor-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.audit-actor-badge.admin { background: #E3F2FD; color: #1565C0; }
.audit-actor-badge.guest { background: #E8F5E9; color: #2E7D32; }
.audit-action-code {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--blue-dark);
}
.audit-ts {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.audit-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .avail-layout { grid-template-columns: 1fr; }
  .admin-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .price-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .dashboard-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
}

@media (max-width: 640px) {
  .dashboard-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .admin-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .req-detail-grid { grid-template-columns: 1fr; }
}
