:root{
  --blue:#0757b8;
  --blue-dark:#073b7a;
  --turquoise:#12bfc0;
  --orange:#ff9416;
  --bg:#f6fbff;
  --card:#ffffff;
  --text:#1d2633;
  --muted:#6b7a90;
  --border:#dce7f3;
  --danger:#d94b4b;
  --success:#22a06b;
  --shadow:0 12px 30px rgba(7,59,122,.10);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:linear-gradient(135deg,#f7fcff,#eefcff);
  color:var(--text);
}

a{color:inherit}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 22px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
  color:var(--blue-dark);
  font-size:22px;
}

.brand img{
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:10px;
}

.menu-toggle{
  display:none;
  border:0;
  background:var(--blue);
  color:white;
  padding:9px 12px;
  border-radius:10px;
  font-size:20px;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.main-nav a,
.main-nav button{
  border:0;
  text-decoration:none;
  background:#ecf7ff;
  color:var(--blue-dark);
  padding:9px 12px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}

.main-nav a:hover,
.main-nav button:hover{
  background:var(--blue);
  color:white;
}

.hero{
  min-height:calc(100vh - 73px);
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:30px;
  padding:56px 7vw;
}

.hero-card,
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:26px;
}

.hero h1{
  font-size:clamp(36px,6vw,68px);
  margin:0 0 14px;
  color:var(--blue-dark);
}

.hero p{
  font-size:19px;
  color:var(--muted);
  line-height:1.55;
}

.logo-big{
  max-width:100%;
  display:block;
  margin:auto;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:28px 18px 60px;
}

.page-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.page-title h1{
  margin:0;
  color:var(--blue-dark);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}

.stat{
  border-left:5px solid var(--turquoise);
}

.stat strong{
  display:block;
  font-size:28px;
  color:var(--blue);
  margin-top:8px;
}

.form{
  display:grid;
  gap:12px;
}

label{
  display:grid;
  gap:6px;
  font-weight:700;
  color:var(--blue-dark);
}

input, textarea, select{
  width:100%;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:16px;
  background:white;
}

textarea{min-height:110px;resize:vertical}

.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  padding:11px 16px;
  background:var(--blue);
  color:white;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
}

.btn.secondary{background:var(--turquoise)}
.btn.orange{background:var(--orange)}
.btn.light{background:#ecf7ff;color:var(--blue-dark)}
.btn.danger{background:var(--danger)}

.notice{
  padding:12px 14px;
  border-radius:14px;
  background:#ecf7ff;
  color:var(--blue-dark);
  margin:12px 0;
  display:none;
}

.notice.show{display:block}
.notice.error{background:#fff0f0;color:#8a1f1f}
.notice.success{background:#effff7;color:#126b48}

.list{
  display:grid;
  gap:12px;
}

.item{
  background:white;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 20px rgba(7,59,122,.06);
}

.item h3{margin:0 0 6px;color:var(--blue-dark)}
.item p{margin:4px 0;color:var(--muted)}
.item .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

.trip-cover{
  min-height:160px;
  border-radius:22px;
  background:linear-gradient(135deg,var(--blue),var(--turquoise));
  color:white;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.trip-cover h1{margin:0;font-size:36px;color:white}
.trip-cover p{margin:8px 0 0;color:#e9ffff}

.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;background:white;border-radius:16px;overflow:hidden}
th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left}
th{background:#ecf7ff;color:var(--blue-dark)}

.album-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.album-grid img{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--border);
}

.footer{
  text-align:center;
  color:var(--muted);
  padding:30px 15px;
}

@media(max-width:850px){
  .hero{grid-template-columns:1fr;padding:34px 18px}
  .grid,.grid.two,.album-grid{grid-template-columns:1fr}
  .menu-toggle{display:block}
  .main-nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    padding-top:10px;
  }
  .main-nav.open{display:flex}
  .site-header{flex-wrap:wrap}
  .main-nav a,.main-nav button{text-align:center;border-radius:12px}
}


/* TripMaat v2 media cards */
.media-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
  box-shadow:0 8px 20px rgba(7,59,122,.06);
}
.media-card img,
.media-card video{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
  background:#eef6ff;
}
.media-open{
  display:block;
  text-decoration:none;
  margin-bottom:12px;
}
.album-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:850px){
  .album-grid{grid-template-columns:1fr}
}


/*
TripMaat v3 albumviewer CSS
Voeg dit onderaan style.css toe.
*/

.no-scroll{ overflow:hidden; }

.album-real-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.album-tile{
  border:0;
  background:#fff;
  padding:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(7,59,122,.10);
  cursor:pointer;
  text-align:left;
  border:1px solid var(--border);
}

.album-tile img,
.album-thumb-video video{
  width:100%;
  height:170px;
  object-fit:cover;
  display:block;
  background:#eef6ff;
}

.album-thumb-video{ position:relative; }

.album-thumb-video span{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:42px;
  background:rgba(0,0,0,.20);
  text-shadow:0 3px 12px rgba(0,0,0,.45);
}

.album-tile-title{
  display:block;
  padding:10px 12px;
  color:var(--blue-dark);
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.album-viewer{
  display:none;
  position:fixed;
  inset:0;
  z-index:999;
  background:rgba(3,18,38,.92);
  color:white;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.album-viewer.open{ display:flex; }

.album-stage{
  width:min(1100px, 92vw);
  max-height:92vh;
  display:grid;
  grid-template-columns:1fr 320px;
  grid-template-rows:auto 1fr auto;
  gap:14px;
  align-items:start;
}

.album-counter{
  grid-column:1 / -1;
  justify-self:center;
  background:rgba(255,255,255,.14);
  padding:7px 14px;
  border-radius:999px;
  font-weight:800;
}

.album-media-stage{
  min-height:360px;
  max-height:68vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border-radius:22px;
  overflow:hidden;
}

.album-media-stage img,
.album-media-stage video{
  max-width:100%;
  max-height:68vh;
  object-fit:contain;
  display:block;
}

.album-caption{
  grid-column:1;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:14px;
  border-radius:18px;
}

.album-caption h3{ margin:0 0 6px; }
.album-caption p{ margin:0; color:#d9edff; line-height:1.5; }

.album-edit-panel{
  grid-column:2;
  grid-row:2 / span 2;
  background:#fff;
  color:var(--text);
  padding:16px;
  border-radius:18px;
  max-height:78vh;
  overflow:auto;
}

.album-close{
  position:absolute;
  top:16px;
  right:18px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.15);
  color:white;
  font-size:34px;
  line-height:1;
  cursor:pointer;
}

.album-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:72px;
  border:0;
  border-radius:18px;
  background:rgba(255,255,255,.15);
  color:white;
  font-size:56px;
  line-height:1;
  cursor:pointer;
}

.album-arrow:hover,
.album-close:hover{ background:rgba(255,255,255,.28); }

.album-prev{ left:18px; }
.album-next{ right:18px; }

@media(max-width:950px){
  .album-real-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .album-viewer{ padding:12px; }
  .album-stage{
    width:100%;
    max-height:94vh;
    grid-template-columns:1fr;
    overflow:auto;
  }
  .album-edit-panel{
    grid-column:1;
    grid-row:auto;
    max-height:none;
  }
  .album-media-stage{ min-height:260px; }
  .album-arrow{
    width:42px;
    height:56px;
    font-size:42px;
    background:rgba(255,255,255,.22);
  }
  .album-prev{ left:6px; }
  .album-next{ right:6px; }
}

@media(max-width:520px){
  .album-real-grid{ grid-template-columns:1fr; }
  .album-tile img,
  .album-thumb-video video{ height:220px; }
}


/* =========================
   ALBUM FOTO'S NIET TE GROOT
   ========================= */

.album-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.album-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.album-card-cover {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #eef5ff;
}

.album-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Album bekijken grid */
.album-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.album-view-item {
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.album-view-preview {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #eef5ff;
  position: relative;
}

.album-view-preview img,
.album-view-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info onder foto */
.album-view-info {
  padding: 10px 12px;
}

.album-view-info strong {
  display: block;
  font-size: 15px;
  color: #123;
}

.album-view-info span {
  display: block;
  font-size: 13px;
  color: #667;
  margin-top: 4px;
}

/* Album beheren */
.album-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.album-edit-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.album-edit-preview {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #eef5ff;
  position: relative;
}

.album-edit-preview img,
.album-edit-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Viewer groot, maar niet buiten scherm */
.album-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.album-viewer.open {
  display: flex;
}

.viewer-stage {
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer-media {
  max-width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-media img,
.viewer-media video {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

/* Hero niet te hoog */
.travel-hero {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
}

.travel-hero-inner {
  min-height: 230px;
  padding: 28px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

@media (max-width: 700px) {
  .album-card-cover,
  .album-edit-preview {
    height: 160px;
  }

  .album-view-preview {
    height: 150px;
  }

  .album-view-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .album-view-info {
    padding: 8px;
  }

  .album-view-info strong {
    font-size: 13px;
  }

  .album-view-info span {
    font-size: 12px;
  }

  .travel-hero-inner {
    min-height: 180px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
  }

  .viewer-media img,
  .viewer-media video {
    max-height: 68vh;
  }
}

/* =====================================================
   NOODFIX ALBUM - FOTO'S KLEIN HOUDEN
   Zet dit helemaal onderaan style.css
   ===================================================== */

body[data-page="reisalbum-overview"] main img,
body[data-page="reisalbum-detail"] main img,
body[data-page="reisalbum-edit"] main img,
body[data-page="reisalbum-overview"] main video,
body[data-page="reisalbum-detail"] main video,
body[data-page="reisalbum-edit"] main video {
  width: 100% !important;
  max-width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Albumoverzicht */
body[data-page="reisalbum-overview"] #albumOverview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

body[data-page="reisalbum-overview"] .album-card {
  max-width: 320px !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Album bekijken */
body[data-page="reisalbum-detail"] #albumGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="reisalbum-detail"] .album-view-item {
  max-width: 240px !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Album beheren */
body[data-page="reisalbum-edit"] #editMediaList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

body[data-page="reisalbum-edit"] .album-edit-card {
  max-width: 320px !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Containers rond foto's */
body[data-page="reisalbum-overview"] .album-card-cover,
body[data-page="reisalbum-detail"] .album-view-preview,
body[data-page="reisalbum-edit"] .album-edit-preview {
  width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
  overflow: hidden !important;
}

/* Viewer mag wél groter, maar binnen scherm */
body[data-page="reisalbum-detail"] #viewerMedia img,
body[data-page="reisalbum-detail"] #viewerMedia video {
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
  max-height: 70vh !important;
  object-fit: contain !important;
}

/* Mobiel kleiner */
@media (max-width: 700px) {
  body[data-page="reisalbum-detail"] #albumGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  body[data-page="reisalbum-overview"] main img,
  body[data-page="reisalbum-detail"] main img,
  body[data-page="reisalbum-edit"] main img,
  body[data-page="reisalbum-overview"] main video,
  body[data-page="reisalbum-detail"] main video,
  body[data-page="reisalbum-edit"] main video,
  body[data-page="reisalbum-overview"] .album-card-cover,
  body[data-page="reisalbum-detail"] .album-view-preview,
  body[data-page="reisalbum-edit"] .album-edit-preview {
    height: 120px !important;
    max-height: 120px !important;
  }
}