/* ========== Global (front + admin) ========== */
:root { --bg:#fff; --ink:#0f172a; --muted:#6b7280; --card:#fff; --border:#e5e7eb; }
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--ink); font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.btn { display:inline-block; padding:.65rem .95rem; border-radius:8px; text-decoration:none; border:1px solid var(--ink); background:var(--ink); color:#fff; font-weight:600; font-size:.95rem; }
.btn.ghost { background:transparent; color:var(--ink); }
.btn.danger { border-color:#dc2626; background:#dc2626; }
.btn.secondary { background:#111827; }
.badge { display:inline-block; font-size:.75rem; padding:.2rem .45rem; border:1px solid var(--border); border-radius:6px; color:#065f46; background:#d1fae5; }

/* ========== Front page grid ========== */
.hero h1 { margin:.2rem 0 0; }
.grid.hotels { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:18px; }
@media (max-width:1200px){ .grid.hotels{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:900px){  .grid.hotels{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){  .grid.hotels{ grid-template-columns:1fr;} }

.card { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:10px; background:var(--card); height:520px; overflow:hidden; }
.card .thumb { display:block; position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:#f2f2f2; }
.card .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.card-body { display:flex; flex-direction:column; padding:12px; gap:8px; min-height:0; }
.card h2 { margin:0; font-weight:600; font-size:1.05rem; line-height:1.3; }
.card p.muted { margin:0; color:var(--muted); font-size:.95rem; line-height:1.45;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; }
.card .actions { margin-top:auto; }
.pagination { display:flex; gap:12px; align-items:center; justify-content:center; padding:16px 0; }

/* ========== Admin list ========== */
.admin header { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-bottom:14px; }
.admin table { width:100%; border-collapse:collapse; }
.admin th, .admin td { border:1px solid var(--border); padding:8px; text-align:left; vertical-align:top; }
.admin th { background:#f8fafc; }
.admin .muted { color:var(--muted); font-size:.9rem; }
.admin .thumb { width:80px; height:60px; object-fit:cover; border-radius:6px; }
.admin .actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.admin input[type="text"] { padding:.5rem .6rem; border:1px solid var(--border); border-radius:8px; }
.admin form.inline { display:inline; }
.admin label.chk { display:inline-flex; align-items:center; gap:6px; font-size:.9rem; }
/* ===== Base ===== */
:root {
  --bg:#ffffff; --card:#ffffff; --border:#e5e7eb;
  --ink:#0f172a; --ink-dim:#6b7280;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);
     font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}

/* ===== Layout ===== */
.container{max-width:1200px;margin:0 auto;padding:16px}
.hero h1{margin:.2rem 0 0}
.muted{color:var(--ink-dim)}
.btn{display:inline-block;padding:.65rem .95rem;border-radius:8px;text-decoration:none;
     background:#111827;color:#fff;font-weight:600;font-size:.95rem;border:1px solid #111827}
.btn.ghost{background:transparent;color:#111827}
.btn.danger{background:transparent;color:#dc2626;border-color:#dc2626}

/* ===== Grid & Cards (front page) ===== */
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media (max-width:1200px){.grid-4{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid-4{grid-template-columns:1fr}}

.card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);
      border-radius:10px;overflow:hidden;height:520px}
.thumb{display:block;position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f2f2f2}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{display:flex;flex-direction:column;padding:12px;gap:8px;min-height:0}
.card h2{margin:0;font-weight:600;font-size:1.05rem;line-height:1.3}
.card p.muted{margin:0;font-size:.95rem;line-height:1.45;display:-webkit-box;
              -webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
.actions{margin-top:auto}

/* ===== Admin table (simple, shared styles) ===== */
.table{width:100%;border-collapse:collapse}
.table th,.table td{border:1px solid var(--border);padding:8px;text-align:left;vertical-align:top}
.table th{background:#f8fafc}
.thumb-sm{width:80px;height:60px;object-fit:cover;border-radius:6px}
.flex{display:flex;gap:8px;align-items:center}
.controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.searchbar{padding:.5rem .6rem;border:1px solid var(--border);border-radius:8px}
.pagination{display:flex;gap:12px;align-items:center;justify-content:center;padding:16px 0}
/* Cards */
.card{
  display:flex;
  flex-direction:column;
  height:520px;              /* your equal height */
  overflow:hidden;
}

.card-body{
  display:flex;
  flex-direction:column;
  flex:1;                    /* fills remaining space under the image */
  min-height:0;
  padding:12px;
  gap:8px;
}

/* This pushes the button block to the bottom of the card */
.actions{ margin-top:auto; }

/* Optional: make the CTA span full width */
.actions .btn{ width:100%; }
/* Front-page CTA button (card footer) */
.card .actions .btn{
  padding: .5rem .75rem;     /* slightly less than before */
  background: #333333;
  color: #ffffff;
  border: 1px solid #333333;
  width: 100%;
}

/* Hover/focus states for good measure */
.card .actions .btn:hover,
.card .actions .btn:focus{
  background: #262626;
  border-color: #262626;
  outline: none;
}

/* Disabled look stays obvious */
.card .actions .btn[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
}
/* ===== Accessibility ===== */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:static; width:auto; height:auto; padding:.5rem .75rem;
  background:#111827; color:#fff; border-radius:6px; display:inline-block; margin:8px;
}

/* ===== Header ===== */
.site-header{ border-bottom:1px solid var(--border); background:var(--bg); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0; }

.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
.brand-logo{ height:80px; width:auto; display:block; }
.brand-name{ font-weight:700; letter-spacing:.2px; }

.site-nav .nav-link{
  margin-left:12px; padding:.4rem .6rem; text-decoration:none; color:var(--ink);
}
.site-nav .nav-link:hover{ text-decoration:underline; }

/* ===== Footer ===== */
.site-footer{ border-top:1px solid var(--border); margin-top:24px; padding:24px 0; color:var(--ink-dim); }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer-nav .nav-link{ color:var(--ink-dim); margin-left:12px; text-decoration:none; }
.footer-nav .nav-link:hover{ text-decoration:underline; }
/* Bigger header logo */
.brand-logo{
  height: 100px;   /* try 40–56px; adjust to taste */
  width: auto;    /* keeps aspect ratio */
}

@media (max-width: 680px){
  .brand-logo{ height: 400px; } /* optional: slightly smaller on small screens */
}
/* Base logo size (applies everywhere) */
.brand-logo{
  height: 138px;   /* pick 40–80px to taste */
  width: auto;
}
/* --- tighten header → hero → grid spacing --- */

/* header block: reduce vertical padding a touch */
.header-inner{
  padding: 6px 0;            /* was ~10px */
}
.site-header{ margin-bottom: 6px; }  /* small gap below header */

/* hero section: trim container padding + text margins */
.hero{ padding: 0; }                 /* kill any section padding */
.hero .container{
  padding-top: 8px;                  /* was 16px via .container */
  padding-bottom: 10px;
}
.hero h1{
  margin: 0 0 6px;                   /* was larger; keep it crisp */
  line-height: 1.2;
}
.hero p{
  margin: 0;                         /* remove default paragraph margin */
}

/* first grid block: small top gap so it doesn’t collide with hero */
#main.container.grid-4{
  margin-top: 8px;                   /* gentle breathing room */
}

/* optional: slightly tighter card grid gaps */
.grid-4{ gap: 16px; }                /* was 18px */
