@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #06345E;         /* deep trust blue - header, headings */
  --parchment: #F2F5F8;   /* light neutral page background */
  --rust: #F2A900;        /* amber CTA / rating accent */
  --sage: #00A699;        /* teal - verified / positive tags */
  --charcoal: #1A2733;    /* body text */
  --white: #FFFFFF;
  --line: #DCE3EA;
  --blue-mid: #0B72D9;    /* interactive blue - links, secondary CTAs */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  background: var(--ink);
  color: var(--white);
  padding: 14px 0;
}
.nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav .brand { font-family: 'Inter', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.nav .brand span { color: var(--rust); }
.nav a.navlink {
  font-size: 0.88rem; font-weight: 600; color: var(--white); opacity: 0.92; margin-left: 22px;
  padding: 8px 14px; border-radius: 20px; transition: background 0.12s ease;
}
.nav a.navlink:hover { background: rgba(255,255,255,0.12); opacity: 1; }

/* ---------- Hero + overlapping search widget ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, #0A4A80 100%);
  color: var(--white);
  padding: 32px 0 66px;
}
.hero h1 { color: var(--white); font-size: 1.95rem; max-width: 640px; margin-bottom: 6px; }
.hero p.sub { color: #CFE3F5; font-size: 0.96rem; max-width: 560px; margin: 0; }

.search-form {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr auto;
  gap: 12px;
  margin-top: -40px;
  position: relative;
  box-shadow: 0 16px 40px rgba(6,52,94,0.28);
  border: 1px solid var(--line);
}
@media (max-width: 800px) {
  .search-form { grid-template-columns: 1fr; margin-top: 24px; }
}
.search-form label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.search-form input, .search-form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 0.92rem; background: var(--parchment); color: var(--charcoal);
}
.search-form input:focus, .search-form select:focus { outline: 2px solid var(--blue-mid); outline-offset: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rust); color: var(--ink); border: none; border-radius: 6px;
  padding: 12px 22px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; transition: filter 0.12s ease;
}
.btn:hover { filter: brightness(0.94); }
.btn.secondary { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn.danger { background: #C0392B; color: var(--white); }
.btn.ghost { background: transparent; color: var(--blue-mid); border: 1px solid var(--blue-mid); padding: 7px 14px; font-size: 0.82rem; font-weight: 600; }

/* ---------- Quick filter chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--ink);
}

/* ---------- Trust / value row ---------- */
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 8px 0 12px; }
@media (max-width: 700px) { .trust-row { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ico {
  width: 42px; height: 42px; border-radius: 8px; background: #E7F1FB; color: var(--blue-mid);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
}
.trust-item h4 { margin: 0 0 3px; font-size: 0.95rem; color: var(--ink); }
.trust-item p { margin: 0; font-size: 0.85rem; color: #556372; }

/* ---------- Popular destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
.dest-card {
  position: relative; border-radius: 10px; overflow: hidden; height: 150px; display: block;
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,52,94,0) 40%, rgba(6,52,94,0.75) 100%);
  display: flex; align-items: flex-end; padding: 12px;
}
.dest-card .overlay span { color: var(--white); font-weight: 700; font-size: 1rem; }

/* ---------- Listings grid ---------- */
.section { padding: 30px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(6,52,94,0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 10px 24px rgba(6,52,94,0.16); transform: translateY(-2px); }
.card img { width: 100%; height: 168px; object-fit: cover; display: block; }
.card .body { padding: 16px; }
.card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card .loc { font-size: 0.78rem; color: var(--blue-mid); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.card .desc { font-size: 0.87rem; color: #556372; margin: 10px 0; }
.card .price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.card .price-row .amt { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.card .price-row .amt small { font-size: 0.75rem; font-weight: 500; color: #7A8894; }

/* Rating-style badge, top-left corner of card image (OTA convention) */
.stamp {
  position: absolute; top: 12px; left: 12px;
  background: var(--sage); color: var(--white);
  border-radius: 6px; padding: 6px 10px;
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
  font-family: 'Inter', sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.stamp .amt { font-size: 0.82rem; font-weight: 800; }
.stamp .unit { font-size: 0.6rem; opacity: 0.9; }

.badge {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.02em;
}
.badge.approved { background: #E1F5EE; color: #085041; }
.badge.pending { background: #FDF1DA; color: #854F0B; }
.badge.rejected { background: #FCEBEB; color: #791F1F; }
.badge.confirmed { background: #E1F5EE; color: #085041; }
.badge.cancelled { background: #FCEBEB; color: #791F1F; }

/* ---------- Detail page ---------- */
.detail-hero img { width: 100%; height: 360px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-top: 32px; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.amenity-tags span { font-size: 0.78rem; font-weight: 600; background: #E7F1FB; color: var(--blue-mid); padding: 6px 12px; border-radius: 20px; }

.booking-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  position: sticky; top: 20px; box-shadow: 0 4px 16px rgba(6,52,94,0.08);
}
.booking-box .price { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.booking-box form label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin: 12px 0 5px; color: var(--ink); }
.booking-box form input { width: 100%; padding: 10px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--parchment); }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
th { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #556372; background: var(--parchment); }
tr:last-child td { border-bottom: none; }

.actions { display: flex; gap: 8px; }
.actions form { display: inline; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--ink); }
.stat-card .label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #7A8894; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; max-width: 640px; }
.form-card label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin: 14px 0 5px; color: var(--ink); }
.form-card input, .form-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--parchment); font-family: 'Inter', sans-serif; }
.form-card textarea { min-height: 90px; resize: vertical; }
.error { color: #C0392B; font-size: 0.8rem; margin-top: 4px; }

.admin-nav { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 10px 16px; font-size: 0.88rem; font-weight: 600; color: var(--charcoal); border-bottom: 2px solid transparent; }
.admin-nav a.active { color: var(--blue-mid); border-bottom-color: var(--blue-mid); }

.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px; width: 320px; box-shadow: 0 8px 30px rgba(6,52,94,0.12); }

.footer { background: var(--ink); color: #A9C4DC; padding: 40px 0 24px; margin-top: 60px; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
@media (max-width: 700px) { .footer .cols { grid-template-columns: repeat(2, 1fr); } }
.footer h5 { color: var(--white); font-size: 0.82rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.footer a { display: block; font-size: 0.85rem; color: #A9C4DC; margin-bottom: 8px; }
.footer a:hover { color: var(--white); }
.footer .bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; font-size: 0.8rem; color: #7FA0C0; text-align: center; }

.empty { text-align: center; padding: 60px 20px; color: #556372; }
.empty .display { color: var(--ink); }