:root{
  --bg:#faf7f1;
  --panel:#ffffff;
  --border: rgba(0,0,0,.12);
  --text:#2b241c;
  --muted:#6f6153;
  --accent:#b6682b;
  --accent2:#d17933;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
}

a{ color:inherit; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.topbar{
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, #fff, #fff7ea);
  position:sticky;
  top:0;
  z-index:50;
}

.brand{
  padding:14px 16px 8px 16px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-title{
  font-weight:800;
  letter-spacing:.2px;
  font-size:1.15rem;
}
.brand-sub{
  color:var(--muted);
  font-size:.95rem;
}

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px 16px 14px 16px;
}
.topnav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.topnav a:hover{
  border-color: var(--border);
  background: rgba(0,0,0,.03);
}
.topnav .pill{
  border:1px solid var(--border);
  background:#fff;
}

.wrap{
  max-width: 1020px;
  margin: 18px auto;
  padding: 0 14px 30px 14px;
}

.hero{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}
.hero h1{ margin:0 0 10px 0; }
.hero-body .muted{ margin-bottom:10px; }

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  display:block;
  text-decoration:none;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}
.card:hover{ border-color: rgba(0,0,0,.2); }
.card-title{ font-weight:700; margin-bottom:6px; }
.card-text{ color:var(--muted); font-size:.95rem; line-height:1.35; }

.divider{ height:18px; }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.section-head h2, .section-head h1{ margin:0; }

.list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.list-item{
  display:block;
  text-decoration:none;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
}
.list-item:hover{ border-color: rgba(0,0,0,.2); }
.list-title{ font-weight:750; }
.list-meta{ color:var(--muted); font-size:.85rem; margin-top:2px; }
.list-excerpt{ margin-top:6px; color:var(--muted); }

.article{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}
.article h1{ margin:0 0 8px 0; }
.lead{ color:var(--muted); font-size:1.03rem; }

.prose{
  line-height:1.6;
}
.prose p{ margin: 10px 0; }
.prose hr{ border:none; border-top:1px solid var(--border); margin:14px 0; }

.small-link{
  color:var(--accent);
  text-decoration:none;
}
.small-link:hover{ text-decoration:underline; }

.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  background: var(--accent);
  color:white;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  font-weight:650;
}
.btn:hover{ background: var(--accent2); }
.btn-ghost{
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover{ background: rgba(0,0,0,.03); }

.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.panel-head h1, .panel-head h2{ margin:0 0 10px 0; }

.admin-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.admin-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.table{ display:flex; flex-direction:column; gap:6px; }
.tr{
  display:grid;
  grid-template-columns: 1.6fr .7fr .7fr .3fr;
  gap:10px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:12px;
}
.th{
  background: rgba(0,0,0,.03);
  font-weight:750;
}
@media (max-width: 800px){
  .tr{ grid-template-columns: 1fr; }
}

.form label{ display:block; margin-top:10px; font-weight:650; }
.form input, .form textarea{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(0,0,0,.25);
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
}
.row{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }

.auth-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  max-width: 420px;
}

.flash-wrap{ margin: 10px 0 14px 0; display:flex; flex-direction:column; gap:8px; }
.flash{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.flash-danger{ border-color: rgba(192, 57, 43, .35); }
.flash-warning{ border-color: rgba(243, 156, 18, .35); }
.flash-success{ border-color: rgba(39, 174, 96, .35); }

.footer{
  border-top:1px solid var(--border);
  padding:16px;
  text-align:center;
  color:var(--muted);
  background:#fff;
}
.muted{ color:var(--muted); }
.brand{
  padding:14px 16px 8px 16px;
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-logo-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.brand-logo{
  height:44px;
  width:auto;
  max-width:180px;
  object-fit:contain;
  border-radius:10px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

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

/* tighter logo spacing */
.nav-logo{
  display:inline-flex;
  align-items:center;
  padding:0;            /* was adding the extra space */
  margin:0;
  border-radius:8px;
}

/* slightly smaller image so it sits nicer */
.nav-logo-img{
  height:55px;          /* reduce if you want even tighter */
  width:auto;
  max-width:230px;
  object-fit:contain;
  display:block;
}

/* reduce overall nav spacing a touch */
.topnav{
  gap:8px;              /* was 10px */
  padding:8px 12px;     /* only if you have padding here already; otherwise add */
}

/* Optional: make the brand text sit nicely below nav */
.brand.under-nav{
  padding:10px 16px 0 16px;
  text-align:center;
}
body{
  position: relative;
}

/* Watermark background (logo, stretched, ~3% opacity) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image: var(--watermark-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;        /* "stretched" to fill */
  opacity: 0.05;                 /* 3% */
}

/* Make sure page content sits above the watermark */
.topbar, main, footer{
  position: relative;
  z-index: 1;
}
/* --- Book Flights iframe cropping (keeps partner tracking URL) --- */
.embed-crop{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.6);

  height: 78vh;           /* visible area */
  position: relative;
}

/* Hide the top part by shifting iframe upward */
.embed-crop-iframe{
  width: 100%;
  height: calc(78vh + 140px);  /* must be container height + crop amount */
  border: 0;
  display: block;

  transform: translateY(-14px); /* crop amount */
}
