@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --bg:        #faf9f4;;
  --surface:   #ffffff;
  --border:    #e0dbd0;
  --text:      #1a1a1a;
  --muted:     #7a7367;
  --accent:    #1D318C;
  --accent-lt: #e8f2ef;
  --accent2:   #c0392b;
  --tag-bg:    #f0ebe0;
  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --radius:    12px;
  --nav-h:     68px;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
/* background: linear-gradient(
  135deg,
  #f1f694 20%,
  #27a9e5 80%
); */
background: linear-gradient(
135deg,
#FFFFFF 0%,
#FFF8D6 100%
);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Navbar ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  /* background: var(--surface); */
  /* background: #e9f5d4; */
/* border-bottom: 1px solid #E5E7EB; */
  /* border-bottom: 1px solid var(--border); */
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  border: none;
  /* box-shadow: 0 1px 8px rgba(0,0,0,0.05); */
}

nav .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.3px;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo .cross {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.2px;
}

/* nav a:hover, nav a.active {
  background: var(--accent-lt);
  color: var(--accent);
} */

nav a.admin-link {
  background: var(--accent);
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}
nav a.admin-link:hover { background: #174f3f; color: white; }

/* ─── Page Wrapper ───────────────────────────────────── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ─── Page Header ────────────────────────────────────── */
.page-header {
  margin-bottom: 3rem;
}
.page-header .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}
.page-header p {
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 520px;
  font-size: 0.95rem;
}

/* ─── Grid ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ─── Card ───────────────────────────────────────────── */
.card {
  /* background: var(--surface); */
  background: #f7f2da;
color: #052971;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.card-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffdb58);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--accent-lt);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.2px;
}

.card .subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.tag.available { background: var(--accent-lt); color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  width: 100%;
  justify-content: center;
}
.btn-primary:hover { background: #4691ed; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-lt); }

/* ─── Modal Overlay ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}
.modal .modal-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

/* ─── Form Fields ────────────────────────────────────── */
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.field input, .field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,92,74,0.12);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.modal-actions .btn { flex: 1; justify-content: center; }

.btn-cancel {
  background: var(--bg);
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-cancel:hover { background: var(--border); }

/* ─── Toast ──────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #002C63;;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 999;
  max-width: 320px;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Dashboard / Admin Tables ───────────────────────── */
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 0.5rem;
  color: yellow;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.booking-table thead {
  background: var(--accent);
  color: white;
}
.booking-table th {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.booking-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.booking-table tr:last-child td { border-bottom: none; }
.booking-table tr:hover td { background: var(--bg); }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.92rem; }

/* ─── Status Badge ───────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-green { background: var(--accent-lt); color: var(--accent); }
.badge-blue  { background: #e8f0fe; color: #1a56a8; }

/* ─── Home Hero ──────────────────────────────────────── */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '✦';
  position: absolute;
  top: -20px; right: 3rem;
  font-size: 8rem;
  color: var(--accent-lt);
  line-height: 1;
  pointer-events: none;
}
.hero .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.hero h1 { font-family: 'DM Serif Display', serif; font-size: 3rem; line-height: 1.1; letter-spacing: -1px; max-width: 520px; margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { color: var(--muted); max-width: 480px; margin-bottom: 2rem; font-size: 0.97rem; }

.hero-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.hero-links .link-primary { background: var(--accent); color: white; }
.hero-links .link-primary:hover { background: #174f3f; }
.hero-links .link-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.hero-links .link-secondary:hover { background: var(--border); }

/* ─── Stats Row ──────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; gap: 0.5rem; }
  nav a { font-size: 0.8rem; padding: 5px 8px; }
  .page-wrapper { padding: 2rem 1rem 4rem; }
  .hero { padding: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero::before { display: none; }
  .booking-table { font-size: 0.82rem; }
  .booking-table th, .booking-table td { padding: 0.7rem 0.75rem; }
}
.zlogo{
             height: 350px;
            width: 450px;
}
.book-btn {
  background-color: #1e4f9c;  
  color: white;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;          
  cursor: pointer;

  border-bottom: 4px solid #f4c430;
  transition: all 0.2s ease;
}

/* Click effect */
.book-btn:active {
  transform: translateY(2px);
  border-bottom: 2px solid #f4c430;
}
.menu-btn{
    display:block;
    background:none;
    border:none;
    font-size:32px;
    cursor:pointer;
    padding:8px;
    margin-right:15x; /* moves it left */
}

.mobile-menu{
    display:flex;
    gap:1rem;
}

@media(max-width:768px){

    .menu-btn{
        display:block;
    }

    .mobile-menu{
        display:none;
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:white;
        flex-direction:column;
        padding:1rem;
        box-shadow:0 5px 15px rgba(0,0,0,.1);
    }

    .mobile-menu.show{
        display:flex;
    }

    nav{
        position:relative;
        justify-content:space-between;
    }
}
@media(max-width:768px){

  .stats-row{
    grid-template-columns: 1fr;
  }

  .booking-table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }

  .section-title{
    font-size:1.1rem;
  }

  .logout-btn{
    width:100%;
    margin-top:10px;
  }
}
