:root {
  --orange: #e85d04;
  --orange-dark: #d00000;
  --orange-light: #f48c06;
  --white: #ffffff;
  --cream: #fff8f0;
  --text: #1a1a1a;
  --muted: #555;
  --border: #f0e6d8;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(232, 93, 4, 0.12);
  --font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Age Gate */
.age-gate {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.age-gate-accepted .age-gate { display: none !important; }
.age-gate-box {
  background: var(--white); padding: 40px; border-radius: var(--radius);
  text-align: center; max-width: 420px; box-shadow: var(--shadow);
}
.age-gate-box h2 { color: var(--orange); margin-bottom: 12px; }
.age-gate-btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.4rem; font-weight: 700; color: var(--text);
}
.logo span { color: var(--orange); }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-weight: 600; border: none; cursor: pointer; font-size: 15px;
  transition: all 0.2s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }

/* Main */
.main-content { padding: 16px 0 40px; min-height: 70vh; }

/* Section title */
.section-title {
  text-align: center; margin-bottom: 16px;
}
.section-title h1, .section-title h2 {
  font-size: 1.8rem; color: var(--text); margin-bottom: 8px;
}
.section-title .eyebrow {
  color: var(--orange); font-weight: 600; text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 1px;
}

/* City grid / cards */
.city-grid, .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.city-card, .post-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.city-card:hover, .post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.post-card .img-wrap {
  height: 180px; overflow: hidden; background: #f5f5f5;
}
.post-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-card .info { padding: 16px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.post-card p { font-size: 0.9rem; color: var(--muted); 
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* City page header */
.city-hero {
  background: linear-gradient(135deg, #fff8f0, #ffe8d6);
  padding: 20px 0; margin-bottom: 16px; border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
}
.city-hero h1 { font-size: 2rem; color: var(--orange); margin-bottom: 8px; }

/* Profile detail */
.profile-detail {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
  background: var(--cream); padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.profile-detail .photo { border-radius: var(--radius); overflow: hidden; }
.profile-detail .photo img { width: 100%; }
.contact-box {
  background: var(--white); padding: 20px; border-radius: 10px;
  border: 2px solid var(--orange); margin-top: 20px;
}
.contact-box a { font-size: 1.2rem; font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--cream); border-top: 2px solid var(--border);
  padding: 24px 0; text-align: center; color: var(--muted); font-size: 0.9rem;
}

/* Admin */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.admin-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px;
}
.form-group textarea { min-height: 100px; }
.checkbox-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); padding: 12px; border-radius: 8px; }
.checkbox-list label { display: block; margin-bottom: 6px; font-weight: 400; }

/* Reduce gaps */
.section { padding: 12px 0; }
.section + .section { padding-top: 4px; }
.city-grid, .post-grid { gap: 14px; }
.admin-card { margin-bottom: 14px; }

@media (max-width: 768px) {
  .profile-detail { grid-template-columns: 1fr; }
  .city-grid, .post-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
