/* Barhi — light (default) + dark themes, mobile-first */

:root {
  --bg: #f6fffd;
  --bg-alt: #f1ffab33;
  --surface: #ffffff;
  --text: #1a1f1e;
  --muted: #5c6563;
  --mint: #a3f3eb;
  --lime: #f1ffab;
  --gold: #fbd341;
  --orange: #fb9a40;
  --accent: #fb9a40;
  --accent-2: #a3f3eb;
  --border: #e2e8e4;
  --shadow: 0 10px 30px rgba(26, 31, 30, 0.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #362f4f;
  --bg-alt: #5b23ff22;
  --surface: #2d2644;
  --text: #f4f4f8;
  --muted: #c9c3df;
  --mint: #008bff;
  --lime: #e4ff30;
  --gold: #e4ff30;
  --orange: #5b23ff;
  --accent: #008bff;
  --accent-2: #e4ff30;
  --border: #4a4168;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, var(--mint), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--lime), transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

.wrap {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.nav a:hover,
.nav button:hover {
  background: color-mix(in srgb, var(--accent-2) 35%, transparent);
}

.nav .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a1205;
  font-weight: 700;
  border: none;
}

.nav .btn-ghost {
  border-color: var(--border);
  background: var(--surface);
}

main {
  padding: 28px 0 48px;
}

.hero {
  padding: 32px 0 8px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 52ch;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a1205;
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.danger {
  background: #ef4444;
  color: #fff;
}

.btn.small {
  padding: 6px 10px;
  font-size: 0.875rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  margin-bottom: 14px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.alert.ok {
  background: color-mix(in srgb, #22c55e 18%, var(--surface));
}

.alert.err {
  background: color-mix(in srgb, #ef4444 16%, var(--surface));
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.pill.pending {
  background: color-mix(in srgb, var(--gold) 40%, transparent);
}
.pill.approved {
  background: color-mix(in srgb, #22c55e 35%, transparent);
}
.pill.rejected {
  background: color-mix(in srgb, #ef4444 28%, transparent);
}

.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--border);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 28px 0 36px;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer .quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.footer .quick a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-shell {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .admin-shell {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-nav a.active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Mobile app shell (public UI)                                              */
/* -------------------------------------------------------------------------- */

.theme-icon-sun {
  display: none;
}

.app-body {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.app-body.drawer-open {
  overflow: hidden;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.app-topbar-inner {
  max-width: min(1600px, calc(100% - 20px));
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--mint) 55%, var(--text));
  flex: 1;
  text-align: center;
}

.app-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo {
  height: 34px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.app-breadcrumbs {
  max-width: min(1600px, calc(100% - 20px));
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mint) 45%, var(--muted));
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.app-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bc-sep {
  opacity: 0.45;
}

.bc-current {
  color: var(--muted);
}

.app-main {
  padding: 12px 0 24px;
}

.app-wrap {
  width: 100%;
  max-width: min(1400px, calc(100% - 24px));
  margin-inline: auto;
}

.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 17, 0.45);
  z-index: 80;
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(300px, 88vw);
  background: var(--surface);
  z-index: 90;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.app-drawer.is-open {
  transform: translateX(0);
}

.app-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.app-drawer-title {
  font-weight: 800;
}

.app-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 20px;
  gap: 4px;
}

.app-drawer-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.app-drawer-nav a:hover {
  background: color-mix(in srgb, var(--mint) 28%, transparent);
}

.drawer-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 20px));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 70;
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bn-item .bn-ic {
  color: color-mix(in srgb, var(--mint) 35%, var(--muted));
}

.bn-item.is-active {
  background: color-mix(in srgb, var(--mint) 32%, transparent);
  color: var(--text);
}

.bn-item.is-active .bn-ic {
  color: color-mix(in srgb, var(--mint) 70%, var(--text));
}

.bn-fab {
  position: relative;
  top: -18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--orange), #f97316);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(251, 154, 64, 0.45);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.bn-fab-inner {
  transform: translateY(-1px);
}

.app-footer-links {
  padding: 8px 0 100px;
}

.footer-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

.footer-quick a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.home-hero-stack {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 4px 0 22px;
  min-height: clamp(240px, 42vw, 420px);
  isolation: isolate;
}

.home-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide.is-active .hero-media {
  pointer-events: none;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-fallback {
  background-image: linear-gradient(120deg, rgba(10, 12, 12, 0.55), rgba(10, 12, 12, 0.15)), var(--fallback);
  background-size: cover;
  background-position: center;
}

.hero-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-hero-overlay {
  position: relative;
  z-index: 3;
  padding: clamp(22px, 4vw, 40px) clamp(16px, 3vw, 32px) clamp(20px, 3vw, 32px);
  color: #fff;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.home-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.15) 0%, rgba(8, 10, 12, 0.55) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
  width: 22px;
}

.home-hero {
  border-radius: 22px;
  overflow: hidden;
  margin: 4px 0 20px;
  min-height: 220px;
  background-image: linear-gradient(120deg, rgba(10, 12, 12, 0.65), rgba(10, 12, 12, 0.2)), var(--hero-img);
  background-size: cover;
  background-position: center;
}

.home-hero-inner {
  padding: 28px 18px 22px;
  color: #fff;
}

.home-hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.home-search input {
  border: none;
  flex: 1;
  min-width: 0;
  font: inherit;
  background: transparent;
}

.home-search-ic {
  color: #94a3b8;
  display: flex;
}

.home-search-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  color: #1a1205;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.home-section {
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.section-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--mint) 55%, var(--text));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.cat-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 84px;
  text-align: center;
  color: var(--text);
}

.cat-chip-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mint) 55%, #fff);
  color: color-mix(in srgb, var(--mint) 10%, #0f172a);
  box-shadow: var(--shadow);
}

.cat-chip-icon svg {
  width: 28px;
  height: 28px;
}

.cat-chip-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .feat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .feat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feat-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: inherit;
  display: block;
}

.feat-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--border);
}

.feat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 40%, var(--surface)), var(--lime));
}

.badge-top {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--gold);
  color: #1a1205;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.feat-body {
  padding: 10px 12px 12px;
}

.feat-cat {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--gold) 55%, var(--text));
}

.feat-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.feat-snippet {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.feat-empty {
  grid-column: 1 / -1;
}

.page-head {
  margin: 8px 0 18px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.page-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}

@media (min-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cat-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .cat-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cat-tile-home {
  min-height: 148px;
  justify-content: center;
}

.cat-tile {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cat-tile-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mint) 55%, #fff);
  color: color-mix(in srgb, var(--mint) 10%, #0f172a);
}

.cat-tile-icon svg {
  width: 32px;
  height: 32px;
}

.cat-tile-name {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.25;
}

.cat-tile-count {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.cat-tile-count-hot {
  color: var(--orange);
}

.place-page {
  margin-top: 4px;
}

.place-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: var(--border);
}

.place-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-hero-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 45%, var(--surface)), var(--lime));
}

.badge-on-hero {
  bottom: 14px;
  right: 14px;
}

.card-flat {
  border-radius: 18px;
}

.place-cat-pill {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1205;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.place-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.place-desc {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.place-meta {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.place-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-call {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 1rem;
}

.btn-share {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 16px;
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--mint) 65%, var(--border));
  color: color-mix(in srgb, var(--mint) 25%, var(--text));
  font-weight: 800;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.search-panel {
  margin-bottom: 16px;
}

/* Profile header (category logo or Barhi mark) */
.profile-card-head {
  text-align: center;
  margin: 4px 0 22px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint) 55%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-avatar img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.profile-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-places-count {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Place detail gallery */
.place-gallery {
  position: relative;
  margin-bottom: 16px;
}

.place-hero-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: var(--border);
}

.place-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.place-gallery-img.is-active {
  opacity: 1;
  z-index: 1;
}

.place-gallery-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
}

.place-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.place-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.place-thumb.is-active {
  border-color: color-mix(in srgb, var(--mint) 70%, var(--border));
}

.place-thumb img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  display: block;
}

/* —— Screen reader only —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Admin top bar: theme-aware logo —— */
.brand-admin-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.admin-bar-logo {
  height: 42px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  display: block;
}


/* —— Owner / staff login (dedicated screen) —— */
body.admin-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: #e8eef0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -20%, rgba(94, 140, 145, 0.35), transparent 55%),
    radial-gradient(ellipse 700px 400px at 100% 100%, rgba(91, 35, 255, 0.12), transparent 50%),
    linear-gradient(165deg, #0f1219 0%, #1a1f2e 45%, #12151c 100%);
}

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  box-sizing: border-box;
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: rgba(22, 28, 38, 0.85);
  border: 1px solid rgba(142, 184, 192, 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.admin-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.admin-login-logo {
  width: min(200px, 72vw);
  height: auto;
  object-fit: contain;
}

.admin-login-title {
  margin: 12px 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #f2f7f8;
}

.admin-login-lead {
  margin: 0 0 22px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(200, 214, 218, 0.88);
}

.admin-login-page .admin-login-card .alert {
  margin-bottom: 16px;
}

.admin-login-form .form-row {
  margin-bottom: 16px;
}

.admin-login-page .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(216, 228, 230, 0.95);
}

.admin-login-page .form-row input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(142, 184, 192, 0.28);
  background: rgba(10, 14, 20, 0.65);
  color: #f2f7f8;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-login-page .form-row input::placeholder {
  color: rgba(180, 190, 195, 0.55);
}

.admin-login-page .form-row input:focus {
  outline: none;
  border-color: rgba(94, 200, 190, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 200, 190, 0.2);
}

.admin-login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #5ec8be, #3d9a93);
  color: #0a0e12;
  border: none;
  box-shadow: 0 8px 24px rgba(62, 154, 147, 0.35);
}

.admin-login-submit:hover {
  filter: brightness(1.06);
}

.admin-login-submit:focus-visible {
  outline: 2px solid rgba(168, 213, 213, 0.9);
  outline-offset: 2px;
}

.admin-login-footer {
  margin: 22px 0 0;
  text-align: center;
}

.admin-login-link {
  font-size: 0.9rem;
  color: rgba(168, 213, 213, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-login-link:hover {
  color: #fff;
}
