:root {
  --green: #007a3d;
  --red: #ce1126;
  --yellow: #fcd116;
  --dark: #1a1a1a;
  --gray: #666;
  --light-gray: #f4f5f7;
  --border: #e2e4e8;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--light-gray);
  color: var(--dark);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Top bar / brand strip ---------- */
.brand-strip {
  height: 5px;
  background: linear-gradient(90deg, var(--green) 33%, var(--red) 33% 66%, var(--yellow) 66%);
}

/* ---------- Navbar ---------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}
.navbar .logo span.flag { font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a { font-weight: 500; color: var(--gray); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  font-size: .95rem;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #036631; }
.btn-outline { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-small { padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(0,20,10,0.55), rgba(0,20,10,0.55)),
              url('images/hero-cameroon.svg') center/cover no-repeat;
  color: #fff;
  padding: 90px 32px 70px;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 12px; }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 640px; margin: 0 auto 28px; }

/* ---------- Filter panel ---------- */
.filter-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: -46px auto 40px;
  position: relative;
  z-index: 10;
  text-align: left;
}
.filter-panel label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.filter-panel input, .filter-panel select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .92rem;
}
.filter-panel .filter-action { display: flex; align-items: flex-end; }

/* ---------- Layout container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px 60px; }
.section-title { font-size: 1.5rem; margin: 30px 0 18px; display: flex; align-items: center; gap: 10px; }
.result-count { color: var(--gray); font-weight: 400; font-size: .95rem; }

/* ---------- Hotel grid & cards ---------- */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.hotel-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s;
}
.hotel-card:hover { transform: translateY(-4px); }
.hotel-card .thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  position: relative;
}
.hotel-card .wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
}
.hotel-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.hotel-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hotel-card .location { color: var(--gray); font-size: .85rem; margin-bottom: 8px; }
.hotel-card .price { font-weight: 700; color: var(--green); font-size: 1.1rem; margin: 8px 0; }
.hotel-card .price small { color: var(--gray); font-weight: 400; font-size: .78rem; }
.hotel-card .stars { color: var(--yellow); filter: brightness(0.85); }
.hotel-card .card-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 10px; }
.badge {
  display: inline-block;
  background: var(--light-gray);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .72rem;
  margin-right: 4px;
  color: var(--gray);
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--gray);
}
.modal-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0; }
.modal-gallery img { height: 140px; border-radius: 8px; flex-shrink: 0; }
#map-canvas, .map-canvas { width: 100%; height: 260px; border-radius: 8px; margin: 14px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: .8rem; font-weight: 600; color: var(--gray); display: block; margin-bottom: 4px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: .92rem;
}

.review-item { border-top: 1px solid var(--border); padding: 10px 0; }
.review-item .stars { font-size: .9rem; }
.review-item .meta { font-size: .78rem; color: var(--gray); }

/* ---------- Auth pages ---------- */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  width: 100%;
  max-width: 420px;
}
.auth-card h2 { margin-top: 0; }
.auth-card .field { margin-bottom: 16px; }
.auth-card label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--gray); }
.auth-card input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: .95rem;
}
.auth-card .switch { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--gray); }
.auth-card .switch a { color: var(--green); font-weight: 600; }
.form-message { font-size: .88rem; margin-top: 10px; padding: 8px 10px; border-radius: 6px; display: none; }
.form-message.error { background: #fde8e8; color: var(--red); display: block; }
.form-message.success { background: #e5f6ec; color: var(--green); display: block; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; }
.dash-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; height: fit-content; }
.dash-sidebar button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: .93rem; margin-bottom: 4px; color: var(--dark);
}
.dash-sidebar button.active, .dash-sidebar button:hover { background: var(--light-gray); color: var(--green); font-weight: 600; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; }
.data-table th { background: var(--light-gray); font-size: .78rem; text-transform: uppercase; color: var(--gray); }
.status-pill { padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.status-pending { background: #fff6e0; color: #a67c00; }
.status-confirmed { background: #e5f6ec; color: var(--green); }
.status-cancelled { background: #fde8e8; color: var(--red); }

.tab-toggle { display: flex; gap: 10px; margin-bottom: 18px; }
.tab-toggle button {
  padding: 9px 18px; border-radius: 6px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-weight: 600;
}
.tab-toggle button.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #ccc; padding: 40px 32px 20px; margin-top: 60px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 26px; }
.footer-grid h4 { color: #fff; margin-bottom: 10px; }
.footer-grid a { color: #aaa; display: block; margin-bottom: 6px; font-size: .9rem; }
.footer-bottom { text-align: center; color: #777; font-size: .82rem; margin-top: 26px; }

/* ---------- Misc pages ---------- */
.page-hero { background: var(--green); color: #fff; padding: 50px 32px; text-align: center; }
.card-simple { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

@media (max-width: 800px) {
  .dash-layout, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
