/* vognleje.css
   Ryddet, samlet og uden dubletter
*/

/* ======================
   Vars & Base
   ====================== */
:root{
  --bg:#ffffff;
  --muted:#666;
  --accent:#0b63ff;
  --card:#f8f9fb;
  --maxw:1100px;
  --radius:12px;
  --gap:16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; color:#111; }
a{ color:inherit; text-decoration:none; }
.alignCenter{ text-align:center; }
.card .meta{ white-space:pre-line; word-break:break-word; }

/* ======================
   Baggrund
   ====================== */
html::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(to bottom, #ffe9cc 0px, #ffffff 80px, rgba(255,255,255,0) 160px),
    linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.85)),
    url("/logo/greenbg.jpg");
  background-size:100% 200px, 100% 100%, cover;
  background-repeat:no-repeat;
}
body{ background:transparent; }

/* ======================
   Wrapper / Header / Hero / Footer
   ====================== */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo img{ height:150px; }

.hero{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:20px;
  border:1px solid #e6e9ef;
  border-radius:12px;
  background:linear-gradient(rgba(255,255,255,0.95));
  margin-bottom:24px;
}
.hero h1{ color:var(--muted); margin:0; font-size:28px; }
.hero p{ color:var(--muted); margin-top:8px; text-align:center; }

footer{
  margin:36px auto;
  padding-bottom:69px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
  width:100%;
}

/* ======================
   Knapper (global)
   ====================== */
.user-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border-radius:9px;
  font-weight:800;
  font-size:16px;
  letter-spacing:.4px;
  text-transform:uppercase;
  min-height:48px;
  line-height:1.2;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  background:#fff;
  color:var(--accent);
  border:1px solid var(--accent);
  margin-left:12px;
}
.user-btn:hover{
  background:var(--accent);
  color:#fff;
  box-shadow:0 6px 18px rgba(11,99,255,.22);
}
.user-btn:active{ transform:translateY(0) scale(.98); }

/* Primær blå knap (genbrug på site) */
.search-btn{
  background:var(--accent);
  color:#fff;
  border:0;
  padding:12px 16px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  min-height:44px;
}
.search-btn[aria-disabled="true"]{
  opacity:.55;
  pointer-events:none;
  cursor:not-allowed;
  box-shadow:none;
}

/* ======================
   Search Area (index.php)
   ====================== */
.search-area{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:12px 0 28px;
}

/* TOP: Søg + periode + knap */
.search-top{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:12px;
  padding:18px 18px 36px 18px;
  border:1px solid #e6e9ef;
  background:linear-gradient(rgba(255,255,255,0.95));
  border-radius:12px;
  box-shadow:0 6px 18px rgba(11,99,255,0.04);
  align-items:end;
}
.search-top-col{ min-width:0; }

.field-label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 2px;
}

.search-input{
  width:100%;
  border:1px solid #e6e9ef;
  background:#fff;
  border-radius:10px;
  padding:12px;
  font-size:16px;
  outline:none;
}

/* Desktop default: dato/tid i én række */
.date-range{
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:nowrap;
}
.date-input{
  width:160px;
  border:1px solid #e6e9ef;
  background:#fff;
  border-radius:10px;
  padding:12px 10px;
  font-size:14px;
  outline:none;
}

.search-top-actions{
  display:flex;
  justify-content:flex-end;
}

/* Filtre */
.filters{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap:12px;
  justify-content:stretch;
  margin-top:14px;
}
.filters select,
.filters input{
  width:100%;
  min-width:unset;
  padding:10px;
  border-radius:10px;
  border:1px solid #e6e9ef;
  background:var(--card);
}
.select{
  padding:10px;
  border-radius:10px;
  border:1px solid #e6e9ef;
  background:var(--card);
  min-width:120px;
}

/* ======================
   Resultater: meta, liste & kort (index.php)
   ====================== */
.results-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 0;
  color:var(--muted);
  font-size:14px;
}

.list{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}

.card{
  position:relative;
  display:flex;
  gap:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid #eef2f7;
  background:#fff;
  align-items:stretch;
  overflow:hidden;
}

.card-monthly-disabled-overlay{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  max-width:min(210px, calc(100% - 20px));
  padding:7px 10px;
  border-radius:999px;
  background:rgba(185, 28, 28, .94);
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  box-shadow:0 8px 18px rgba(127, 29, 29, .25);
  pointer-events:none;
}

.thumb{
  position:relative;
  width:160px;
  height:130px;
  border-radius:8px;
  overflow:hidden;
  flex-shrink:0;
  background:#f5f7fa;
}
.thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
  border-radius:8px;
}

.info{ flex:1; min-width:0; }
.title{ font-weight:700; margin-bottom:6px; }
.meta{ color:var(--muted); font-size:13px; margin-bottom:8px; }
.price{ font-size:18px; font-weight:700; color:#111; }

.cta{ margin-left:12px; }
.view-btn{
  background:transparent;
  border:1px solid #d7e2ff;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}

/* ======================
   Paginering (index.php)
   ====================== */
.pager{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin:24px 0;
  flex-wrap:wrap;
}
.pager .btn{
  border:1px solid #d7e2ff;
  background:#fff;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}
.pager .btn[disabled]{ opacity:.5; cursor:not-allowed; }
.pager .info{ color:var(--muted); font-size:14px; margin:0 4px; }
.pager .num{
  border:1px solid #d7e2ff;
  background:#fff;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  min-width:40px;
  text-align:center;
}
.pager .num.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  cursor:default;
}
.pager .dots{ color:var(--muted); padding:8px; min-width:24px; text-align:center; }
.pager .page-select{ display:none; }

/* ======================
   Bil / annonce side (bil.php)
   ====================== */
.page{
  max-width:900px;
  margin:0 auto 40px;
  padding:0 20px;
}

.back-link{
  display:inline-block;
  margin:16px 0;
  color:var(--accent);
  font-weight:700;
}

/* Badges */
.badgeRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 6px;
}
.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2f4f7;
  border:1px solid #e5e7eb;
}
.badge.ok{ background:#ecfdf5; border-color:#d1fae5; }
.badge.no{ background:#fef2f2; border-color:#fee2e2; }

/* Pris / meta (bil) */
.page .price{
  font-size:24px;
  font-weight:800;
  margin-top:10px;
}
.page .meta{
  color:var(--muted);
  font-size:14px;
  margin-top:8px;
  white-space:pre-line;
}

/* Overskrifter over bokse (ens udtryk) */
.section-title{
  margin:0 0 10px 0;
  font-size:22px;
}

/* CTA område (divider-linjer) */
.rent-cta{
  display:flex;
  justify-content:center;
  padding:18px 0;
  margin:10px 0 0;
  position:relative;
  width:100%;
}
.rent-cta::before,
.rent-cta::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    #e6e9ef 15%,
    #e6e9ef 85%,
    transparent
  );
}
.rent-cta::before{ top:0; }
.rent-cta::after{ bottom:0; }

.rent-cta .search-btn{
  font-size:18px;
  padding:16px 28px;
  min-height:56px;
  border-radius:12px;
  letter-spacing:.4px;
  box-shadow:0 10px 25px rgba(11,99,255,.28);
}

/* Galleri / hovedbillede */
.main-image{
  width:100%;
  max-height:400px;
  object-fit:contain;
  border-radius:10px;
  margin:14px 0 14px;
  cursor:pointer;
  user-select:none;
  background:#fff;
  box-shadow:0 3px 12px rgb(0 0 0 / 0.07);
}

.gallery{
  display:flex;
  gap:12px;
  margin-bottom:24px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:var(--accent) transparent;
}
.gallery::-webkit-scrollbar{ height:6px; }
.gallery::-webkit-scrollbar-thumb{ background-color:var(--accent); border-radius:3px; }

.gallery img{
  flex-shrink:0;
  width:120px;
  height:80px;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
  border:2px solid transparent;
  transition:border-color .2s ease;
  background:#fff;
}
.gallery img.selected{ border-color:var(--accent); }

/* ====== Bil-side: grid layout (rækker/kolonner) ====== */
.details{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  margin:18px 0 30px;
  align-items:start;
}

/* ROW 1 højre: centrer Lej-knap ift “Bil detaljer” */
.details .right-top{ 
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* Bil detaljer liste (som du ønsker – ingen boks) */
.detail-list{
  list-style:none;
  padding:0;
  margin:0;
  font-size:15px;
  color:#444;
}
.detail-list li{
  padding:6px 0;
  border-bottom:1px solid #eee;
}

/* Cards (kun indhold – overskriften står over) */
  
.desc-card{
  background:#fff;
  padding:16px;
  border-radius:12px;
  box-shadow:0 3px 12px rgb(0 0 0 / 0.07);
  margin-top:15px;
}

.desc-body{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  max-width:100%;
}

.light-card{
  background: rgb(185 185 185 / 35%);
}

/* Udlejer-boks */
.seller-info{
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 3px 12px rgb(0 0 0 / 0.07);
  font-size:14px;
  width:100%;
}
.seller-info.has-seller-photo{
  display:block;
}
.seller-photo-wrap{
  width:100%;
  aspect-ratio:4 / 3;
  max-height:260px;
  margin-top:14px;
  border-radius:16px;
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
}
.seller-photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.seller-text{
  min-width:0;
}
.seller-text p{
  margin-bottom:0;
}
.seller-info h3{
  margin:0 0 12px 0;
  font-weight:800;
}
@media(max-width:520px){
  .seller-photo-wrap{
    max-height:220px;
    margin-top:12px;
    border-radius:14px;
  }
}

/* Map */
iframe.map{
  width:100%;
  height:300px;
  border:0;
  border-radius:12px;
  margin-top:12px;
  box-shadow:0 2px 8px rgb(0 0 0 / 0.1);
  background:#fff;
}

/* Privacy-consent placeholder til kort */
.map-consent{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  width:100%;
  height:300px;
  border:0;
  border-radius:12px;
  margin-top:12px;
  box-shadow:0 2px 8px rgb(0 0 0 / 0.1);
  background:#fff;
  padding:14px;
  text-align:center;
}
.map-note{ font-size:14px; color:#666; max-width:520px; }
.map-btn{
  background:#fff;
  border:1px solid #d7e2ff;
  border-radius:8px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
}
.map-btn:hover{ background:#f6f9ff; }

/* Lightbox */
#lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
  z-index:1000;
  cursor:default;
  padding:10px;
}
#lightbox img{
  max-width:100%;
  max-height:90vh;
  border-radius:10px;
  user-select:none;
  pointer-events:none;
  box-shadow:0 0 20px rgba(0,0,0,0.8);
}
#lightbox button{
  position:absolute;
  background:rgba(0,0,0,0.5);
  border:none;
  color:#fff;
  font-size:50px;
  cursor:pointer;
  user-select:none;
  padding:10px 20px;
  border-radius:10px;
  transition:background-color .3s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}
#lightbox button:hover{ background-color:var(--accent); }
#lightbox-close{
  top:15px;
  right:15px;
  font-size:60px;
  padding:5px 15px;
  border-radius:50%;
  line-height:1;
  font-weight:800;
}
#lightbox-prev{
  top:50%;
  left:10px;
  transform:translateY(-50%);
  font-weight:800;
  padding:10px 15px;
}
#lightbox-next{
  top:50%;
  right:10px;
  transform:translateY(-50%);
  font-weight:800;
  padding:10px 15px;
}

/* ======================
   Responsive
   ====================== */

/* Tablet/mobil: søge-top bliver 1 kolonne + date-range bliver grid */
@media (max-width:900px){
  .search-top{
    grid-template-columns: 1fr;
    align-items:stretch;
  }
  .search-top-actions{ justify-content:stretch; }
  .search-btn{ width:100%; }

  .date-range{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
    align-items:end;
  }
  .date-input,
  .date-range .select{
    width:100%;
    min-width:0;
  }
}

/* 1 kolonne dato/tid på meget smalle skærme */
@media (max-width:420px){
  .date-range{ grid-template-columns:1fr; }
}

/* Cards: 1 kolonne */
@media (max-width:800px){
  .list{ grid-template-columns:1fr; }
  .thumb{ width:120px; height:100px; }
}

/* Mobil generelt */
@media (max-width:600px){
  .hero{ padding:24px 16px; }

  .filters{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .logo img{
    height:110px;
    max-width:75vw;
    object-fit:contain;
  }

  header{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:22px;
  }
  header .logo{
    justify-content:center;
  }
  header nav{
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:8px;
    width:100%;
    flex-wrap:nowrap;
  }

  .user-btn{
    font-size:clamp(12px, 3.3vw, 14px);
    padding:8px 10px;
    min-height:40px;
    border-radius:8px;
    letter-spacing:.1px;
    line-height:1.2;
    box-shadow:none;
    transform:none !important;
    margin-left:0;
    width:auto;
    white-space:nowrap;
  }
  header nav .user-btn:first-child{
    min-width:72px;
  }

  /* Sticky pager på mobil */
  .pager{
    position:sticky;
    bottom:0;
    background:#fff;
    padding:10px 8px;
    box-shadow:0 -6px 18px rgba(0,0,0,0.06);
    gap:8px;
    z-index:50;
  }
  .pager .num,
  .pager .dots{ display:none !important; }
  .pager .btn{ padding:10px 12px; }
  .pager .page-select{
    display:inline-block !important;
    border:1px solid #d7e2ff;
    background:#fff;
    padding:8px 10px;
    border-radius:8px;
    font-weight:600;
  }

  /* Bil-side: 1 kolonne grid */
  .page{ padding:0 10px; }
  .details{
    grid-template-columns: 1fr;
    gap:18px;
  }

  .gallery img{ width:100px; height:70px; }
  iframe.map,.map-consent{ height:220px; }

  /* CTA på mobil: fuld bredde */
  .rent-cta .search-btn{
    width:100%;
    font-size:16px;
    padding:14px 16px;
    min-height:52px;
  }

  #lightbox button{ font-size:40px; padding:8px 16px; }
  #lightbox-close{ font-size:48px; padding:5px 12px; }
  #lightbox-prev,#lightbox-next{ font-size:38px; padding:8px 12px; }
}

/* Ekstra: kort som “mobilkort” */
@media (max-width:480px){
  .card{ flex-direction:column; }
  .thumb{ width:100%; height:190px; }
  .thumb img{ border-radius:10px; }
}

/* Tiny */
@media (max-width:360px){
  .user-btn{
    font-size:12px;
    padding:7px 10px;
    min-height:36px;
  }
  .logo img{ height:96px; }
}
.meta-period {
  white-space: pre-line;
}

.booking-card{
  max-width:700px;
  margin:40px auto;
  padding:30px;
}

///
.logo{
  text-decoration:none;
  color:inherit;
}

.flash-message{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
}
.flash-message.success{
  background:#eaf7ef;
  border:1px solid #b7e2c3;
  color:#14532d;
}
.flash-message.error{
  background:#fdecec;
  border:1px solid #f3b6b6;
  color:#7f1d1d;
}

.report-btn{
	width: 25%;
    margin-top: 100px;
    border: 1px solid #d1d5db;
    background: #ffdada;
    color: red;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 100;
    cursor: pointer;
}
.report-btn:hover{
  background:#f9fafb;
}

body.modal-open{
  overflow:hidden;
}
.report-modal[hidden]{
  display:none;
}
.report-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(17,24,39,.65);
}
.report-modal-card{
  position:relative;
  width:min(560px, 100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  background:#ffffff;
  border-radius:18px;
  padding:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
.report-modal-card h2{
  margin:0 0 10px;
}
.report-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#f3f4f6;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.report-form{
  display:grid;
  gap:12px;
  margin-top:16px;
}
.report-form label{
  font-weight:800;
}
.report-form textarea{
  width:100%;
  min-height:150px;
  resize:vertical;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:12px;
  font:inherit;
}
.report-honeypot{
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.report-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

@media (max-width: 640px){
  .report-modal{
    align-items:flex-end;
    padding:10px;
  }
  .report-modal-card{
    border-radius:18px 18px 12px 12px;
    padding:20px;
  }
  .report-actions .btn,
  .report-actions button{
    width:100%;
  }
}

/* ======================
   V70: iPad/Safari søgefelter
   ====================== */
.search-top-col-dates{
  width:100%;
  min-width:0;
}
.date-range{
  width:100%;
  min-width:0;
}
.date-range > div{
  min-width:0;
}
.date-input{
  width:100%;
  max-width:100%;
  min-height:46px;
  line-height:1.2;
  -webkit-appearance:none;
  appearance:none;
}
.date-input::-webkit-date-and-time-value{
  text-align:left;
}
@media (min-width:901px){
  .search-top{
    grid-template-columns:minmax(260px, 1fr) minmax(350px, .82fr) auto;
  }
  .search-top-col-dates{
    min-width:350px;
  }
  .date-range{
    display:grid;
    grid-template-columns:repeat(2, minmax(160px, 1fr));
    gap:10px;
  }
  .date-input{
    min-width:0;
  }
}
@media (max-width:900px){
  .search-top{
    padding-bottom:18px;
  }
  .date-range{
    grid-template-columns:repeat(2, minmax(180px, 1fr));
  }
}
@media (max-width:820px){
  .date-range{
    grid-template-columns:1fr;
  }
}

/* Skjult formularfælle.
   Hvad: Honeypot-feltet skal være teknisk til stede, men aldrig visuelt synligt.
   Hvorfor: Hvis feltet ses af mennesker, bliver det både grimt og forvirrende.
   Fordi: Bots der udfylder skjulte felter er et stærkt signal, mens rigtige brugere ikke skal møde feltet. */
.vl-form-trap,
.vl-form-trap label,
.vl-form-trap input{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  min-width:1px!important;
  max-width:1px!important;
  height:1px!important;
  min-height:1px!important;
  max-height:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}

.vl-turnstile-wrap{
  margin:6px 0 2px;
  min-height:0;
}

.vl-turnstile-note{
  margin:2px 0 0;
  color:#777;
  font-size:11px;
  line-height:1.3;
}

@media (max-width: 720px){
  .card-monthly-disabled-overlay{
    top:8px;
    right:8px;
    font-size:11px;
    padding:6px 9px;
    max-width:calc(100% - 16px);
  }
}

/* V137P18: Ens checkbox/radio-størrelse på Apple/Safari.
   Hvad: Gør acceptfelter og panel-checkboxes store nok på iOS/macOS Safari.
   Hvorfor: Safari kan ellers rendere native checkboxes ekstremt små i flex/grid labels.
   Fordi: Betingelser, servicebekræftelse og forsidevisning skal kunne trykkes sikkert på alle enheder. */
input[type="checkbox"],
input[type="radio"]{
  -webkit-appearance:auto;
  appearance:auto;
  width:22px;
  height:22px;
  min-width:22px;
  min-height:22px;
  flex:0 0 auto;
  accent-color:#0b63ff;
}
