
:root {
  --bg: #eef4ff;
  --bg-soft: #f6f9ff;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --text: #10203a;
  --muted: #5f6f89;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #243b63;
  --danger: #dc2626;
  --success: #059669;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.14);
  --header-bg: rgba(7, 18, 42, 0.92);
}

body[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #111827;
  --card: rgba(15, 23, 42, 0.82);
  --card-strong: #0f172a;
  --text: #e5eefc;
  --muted: #9fb0cd;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #334155;
  --danger: #ef4444;
  --success: #10b981;
  --border: rgba(148, 163, 184, 0.14);
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.34);
  --shadow-strong: 0 30px 70px rgba(2, 6, 23, 0.52);
  --header-bg: rgba(2, 6, 23, 0.96);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.page-content { padding: 34px 0 62px; }
.full-span { grid-column: 1 / -1; }

.site-header {
  background: var(--header-bg);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.22);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.header-left, .header-right, nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 34px;
  color: var(--muted);
}
.admin-ribbon {
  padding: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.hero, .panel-header, .detail-header, .content-box, .form-box, .empty-box, .table-wrap, .stats-card, .dashboard-panel, .admin-surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.elevated-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.88));
}
body[data-theme="dark"] .elevated-box {
  background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(15,23,42,0.84));
}
.hero-grid,
.panel-header-flex,
.section-head,
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.hero h1, .panel-header h1, .detail-header h1, .form-box h1, .dashboard-welcome h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.03em;
}
.section-head h2, .detail-section-head h2 { margin: 0; font-size: 1.5rem; }
.meta { color: var(--muted); }
.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 13px; font-size: 14px; }
.btn-large { min-height: 52px; font-size: 16px; }
.btn-secondary { background: var(--secondary); box-shadow: 0 10px 24px rgba(36, 59, 99, 0.18); }
.btn-danger { background: var(--danger); box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
body[data-theme="dark"] .btn-outline { color: var(--text); }
.btn-block { width: 100%; }
.inline-form { display: inline; }

.grid.cards {
  display: grid;
  gap: 24px;
}
.cards-fixed-four { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.card {
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.scenic-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  position: relative;
}
.scenic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}
.scenic-card-fixed {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.place-card-link { display: block; }
.card-image {
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #bfdbfe, #ccfbf1);
}
.fixed-cover {
  height: 265px;
  flex-shrink: 0;
  position: relative;
}
.fixed-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}
.fixed-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.18) 46%, rgba(15,23,42,0.82) 100%);
}
.image-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.card-body {
  padding: 22px;
}
.card-body-fixed {
  position: relative;
  margin-top: -112px;
  padding: 0 22px 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}
.card-kicker {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}
.card-title-clamp {
  margin: 0 0 14px;
  color: white;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 70px;
}
.single-line-footer {
  margin-top: auto;
}
.single-line-footer .meta {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
}
.places-only-grid { margin-top: 4px; }

.gallery {
  display: grid;
  gap: 20px;
}
.gallery-fixed-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item, .gallery-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery-item img, .gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.22s ease;
}
.gallery-item:hover img, .gallery-card:hover img { transform: scale(1.04); }
.gallery-card form { padding: 14px; }
.gallery-card-body { padding: 14px; display: grid; gap: 10px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-thumb {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.small-text { font-size: 13px; }
code {
  background: rgba(15, 23, 42, 0.06);
  padding: 4px 8px;
  border-radius: 8px;
}
body[data-theme="dark"] code { background: rgba(255,255,255,0.08); }

.site-form { display: grid; gap: 16px; }
.site-form label,
.form-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.site-form input,
.site-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}
body[data-theme="dark"] .site-form input,
body[data-theme="dark"] .site-form textarea {
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
}
.site-form input:focus,
.site-form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.4);
}
.two-column-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.upload-box {
  background: linear-gradient(180deg, rgba(37,99,235,0.05), rgba(16,185,129,0.04));
  border: 1px dashed rgba(37,99,235,0.28);
  border-radius: 24px;
  padding: 20px;
}
.upload-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.upload-button {
  position: relative;
  overflow: hidden;
}
.upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.hidden-upload-inputs,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.selected-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.selected-file-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid var(--border);
}
.selected-file-item span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.alert-danger {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.14);
}
body[data-theme="dark"] .alert-danger { color: #fecaca; }

.auth-shell {
  min-height: calc(100vh - 230px);
  display: grid;
  align-items: center;
}
.auth-shell-pro {
  grid-template-columns: 0.98fr 1.02fr;
  gap: 28px;
}
.auth-hero-panel,
.auth-card-pro {
  min-height: 620px;
}
.auth-hero-panel {
  padding: 42px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at 18% 20%, rgba(96,165,250,0.32), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(16,185,129,0.20), transparent 24%),
    linear-gradient(135deg, #0b1220 0%, #111827 55%, #1e293b 100%);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-hero-panel::before,
.auth-hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
}
.auth-hero-panel::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  background: rgba(59,130,246,0.24);
}
.auth-hero-panel::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -120px;
  background: rgba(16,185,129,0.16);
}
.auth-hero-panel h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.auth-hero-panel .meta { color: rgba(255,255,255,0.74); max-width: 520px; }
.auth-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.auth-tip-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
  display: grid;
  gap: 8px;
}
.auth-tip-card span { color: rgba(255,255,255,0.85); word-break: break-word; }
.auth-illustration {
  position: relative;
  min-height: 290px;
  margin-top: 18px;
}
.illustration-orb {
  position: absolute;
  inset: 22px 40px 0;
  border-radius: 46px;
  background: rgba(255,255,255,0.04);
}
.illustration-browser {
  position: absolute;
  inset: 0 60px 26px;
  border-radius: 28px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 60px rgba(2,6,23,0.4);
  padding: 20px;
}
.browser-dots { display: flex; gap: 8px; margin-bottom: 18px; }
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.24);
}
.browser-panels {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  height: calc(100% - 30px);
}
.panel-menu, .panel-screen {
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.panel-menu {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.menu-line, .small-line, .chart-bar {
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}
.menu-line { height: 12px; }
.menu-line.short { width: 70%; }
.panel-screen {
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}
.stats-row, .mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.stat-pill, .mini-card {
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat-pill { height: 72px; }
.chart-box {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: end;
  gap: 12px;
}
.chart-bar { width: 22%; }
.chart-bar:nth-child(1){ height: 42%; }
.chart-bar:nth-child(2){ height: 68%; }
.chart-bar:nth-child(3){ height: 84%; }
.chart-bar:nth-child(4){ height: 55%; }
.mini-card { height: 84px; }
.auth-card-pro {
  display: grid;
  align-items: center;
}
.pro-login-box {
  margin: 0;
  padding: 38px;
  border-radius: 34px;
}
.login-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.login-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(16,185,129,0.12));
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}
.login-subcard {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(37,99,235,0.05), rgba(16,185,129,0.03));
  border: 1px solid var(--border);
}
.login-subcard strong { display: block; margin-bottom: 4px; }
.input-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  font-weight: 800;
}

.dashboard-shell {
  display: grid;
  gap: 24px;
}
.dashboard-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}
.dashboard-welcome {
  padding: 34px;
  min-height: 290px;
  background:
    radial-gradient(circle at 84% 16%, rgba(59,130,246,0.18), transparent 22%),
    linear-gradient(135deg, rgba(37,99,235,0.10), rgba(16,185,129,0.08));
  position: relative;
  overflow: hidden;
}
.dashboard-welcome::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 240px;
  height: 240px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(16,185,129,0.06));
  transform: rotate(18deg);
}
.welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dashboard-stats {
  display: grid;
  gap: 18px;
}
.stat-card-strong {
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}
.stat-card-strong span {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.stat-card-strong strong { font-size: 30px; }
.admin-surface {
  padding: 22px;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 8px;
}
.surface-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(37,99,235,0.05), rgba(16,185,129,0.03));
  border: 1px solid var(--border);
}
.surface-card strong { display: block; margin-bottom: 6px; }

.detail-page {
  display: grid;
  gap: 24px;
}
.detail-header.scenic-header {
  min-height: 300px;
  align-items: end;
  padding: 34px;
  color: white;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f766e 100%);
}
.detail-header.scenic-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.14), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(59,130,246,0.22), transparent 24%),
    radial-gradient(circle at 68% 72%, rgba(16,185,129,0.18), transparent 28%);
}
.detail-header.scenic-header > * { position: relative; z-index: 1; }
.detail-meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.detail-meta-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.info-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(37,99,235,0.05), rgba(16,185,129,0.03));
  border: 1px solid var(--border);
}
.info-card h3 { margin-top: 0; margin-bottom: 10px; }
.info-list { display: grid; gap: 12px; }
.info-item {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.gallery-note { margin-top: 10px; }

.compact-admin-box h1 { margin-bottom: 4px; }
.form-grid-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 22px;
}
.form-intro-card {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(16,185,129,0.06));
  border: 1px solid var(--border);
  min-height: 220px;
}
.form-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.check-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.check-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(16,185,129,0.12);
}
.form-preview-card {
  padding: 24px;
  border-radius: 28px;
  background: var(--card-strong);
  border: 1px solid var(--border);
}
.preview-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.preview-tile {
  height: 92px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(16,185,129,0.06));
  border: 1px solid var(--border);
}
.admin-gallery-fixed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-gallery-card { display: flex; flex-direction: column; }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.84);
  z-index: 100;
  padding: 24px;
}
.lightbox.active { display: flex; }
.lightbox-inner { max-width: min(960px, calc(100% - 120px)); text-align: center; }
.lightbox-inner img {
  max-height: 76vh;
  width: auto;
  margin: 0 auto 12px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.lightbox-inner p { color: rgba(255, 255, 255, 0.9); }
.lightbox-close, .lightbox-nav {
  border: none;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 28px;
}
.lightbox-nav { width: 54px; height: 54px; font-size: 28px; }

@media (max-width: 1200px) {
  .cards-fixed-four,
  .gallery-fixed-four,
  .admin-gallery-fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-top,
  .form-grid-hero { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .cards-fixed-four,
  .gallery-fixed-four,
  .admin-gallery-fixed,
  .surface-grid,
  .detail-info-grid,
  .selected-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column-form,
  .auth-shell-pro,
  .auth-tips-grid { grid-template-columns: 1fr; }
  .auth-hero-panel, .auth-card-pro { min-height: auto; }
  .nav-wrap,
  .detail-header,
  .section-head,
  .section-toolbar,
  .dashboard-actions,
  .welcome-actions,
  .upload-toolbar,
  .form-actions-row { flex-direction: column; align-items: flex-start; }
  .lightbox-inner { max-width: calc(100% - 20px); }
}

@media (max-width: 760px) {
  .cards-fixed-four,
  .gallery-fixed-four,
  .admin-gallery-fixed,
  .dashboard-stats,
  .selected-files,
  .surface-grid,
  .detail-info-grid { grid-template-columns: 1fr; }
  .fixed-cover { height: 235px; }
  .card-title-clamp { font-size: 30px; min-height: 62px; }
  .card-body-fixed { margin-top: -104px; }
  .container { width: min(100%, calc(100% - 20px)); }
  .hero, .panel-header, .detail-header, .content-box, .form-box, .empty-box, .table-wrap, .stats-card, .dashboard-panel, .admin-surface { padding: 22px; }
}

/* ===== v8 refined visual update ===== */
.site-header-clean {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding-top: 18px;
}
.nav-wrap-clean {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.logo-clean {
  color: var(--text);
  font-size: 24px;
}
.top-nav-clean {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-nav-clean a {
  color: var(--muted);
  font-weight: 700;
}
.top-nav-clean a:hover { color: var(--text); }
.theme-toggle-clean {
  background: var(--card-strong);
  color: var(--text);
  border: 1px solid var(--border);
}
body[data-theme="dark"] .theme-toggle-clean {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}
.page-content-clean { padding-top: 24px; }
.site-footer-clean {
  border-top: none;
  padding-top: 0;
}
.hero-strip-minimal {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}
.hero-mini-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.homepage-shell-clean h1,
.gallery-head-clean h2,
.admin-dashboard-hero h1,
.admin-form-hero h1,
.refined-login-box h2,
.detail-hero-content h1 {
  margin: 0;
  letter-spacing: -0.04em;
}
.homepage-shell-clean h1 { font-size: clamp(2rem, 4vw, 3rem); }
.showcase-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.showcase-card {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--card-strong);
  transition: transform .22s ease, box-shadow .22s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.showcase-media {
  position: relative;
  min-height: 360px;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.06) 8%, rgba(15,23,42,.18) 38%, rgba(15,23,42,.88) 100%);
}
.showcase-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
}
.showcase-content h2,
.showcase-content h1,
.showcase-content h3 {
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.showcase-content h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.showcase-content h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.showcase-content h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.showcase-content p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}
.showcase-date {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}
.detail-page-clean { display: grid; gap: 26px; }
.detail-hero-card {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}
.detail-hero-media { position: relative; min-height: 460px; }
.detail-hero-media img {
  width: 100%;
  min-height: 460px;
  height: 460px;
  object-fit: cover;
}
.detail-hero-content { bottom: 28px; left: 30px; right: 30px; }
.gallery-section-clean { padding: 28px; }
.gallery-head-clean {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.gallery-showcase-grid .showcase-media,
.gallery-showcase-grid .showcase-media img {
  min-height: 320px;
  height: 320px;
}
.gallery-showcase-content h3 { margin-bottom: 6px; }
.auth-shell-refined {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  align-items: stretch;
}
.refined-auth-visual {
  border-radius: 34px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #172033 52%, #1f2a3d 100%);
  box-shadow: var(--shadow-strong);
  color: #fff;
}
body[data-theme="light"] .refined-auth-visual {
  background: linear-gradient(145deg, #eff5ff 0%, #e6eefc 55%, #dde8fb 100%);
  color: #10203a;
}
body[data-theme="light"] .refined-auth-copy p { color: var(--muted); }
.refined-auth-copy h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.3rem);
  margin: 14px 0 12px;
  letter-spacing: -0.05em;
}
.refined-auth-copy p {
  max-width: 480px;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
}
.admin-stage {
  position: relative;
  min-height: 380px;
  margin-top: 36px;
}
.stage-glow {
  position: absolute;
  inset: 32px 8% 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
body[data-theme="light"] .stage-glow { background: rgba(37,99,235,.07); }
.stage-window {
  position: absolute;
  background: rgba(15,23,42,.88);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(2,6,23,.35);
}
body[data-theme="light"] .stage-window {
  background: rgba(255,255,255,.72);
  border-color: rgba(148,163,184,.2);
  box-shadow: 0 26px 60px rgba(15,23,42,.12);
}
.stage-window-main { inset: 18px 12% 24px 10%; padding: 18px; }
.stage-window-top { display: flex; gap: 8px; margin-bottom: 16px; }
.stage-window-top span {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2);
}
body[data-theme="light"] .stage-window-top span { background: rgba(37,99,235,.22); }
.stage-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  height: calc(100% - 28px);
}
.stage-sidebar,
.stage-screen,
.stage-dashboard-card,
.stage-mini,
.stage-chip {
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}
body[data-theme="light"] .stage-sidebar,
body[data-theme="light"] .stage-screen,
body[data-theme="light"] .stage-dashboard-card,
body[data-theme="light"] .stage-mini,
body[data-theme="light"] .stage-chip {
  background: rgba(37,99,235,.05);
  border-color: rgba(37,99,235,.08);
}
.stage-sidebar { padding: 16px; display: grid; gap: 12px; }
.stage-line { height: 11px; border-radius: 999px; background: rgba(255,255,255,.14); }
body[data-theme="light"] .stage-line { background: rgba(37,99,235,.18); }
.stage-line.long { width: 100%; }
.stage-line.short { width: 62%; }
.stage-screen { padding: 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.stage-chip-row,
.stage-mini-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.stage-chip { height: 48px; }
.stage-dashboard-card { min-height: 150px; }
.stage-mini { height: 70px; }
.floating-widget {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
body[data-theme="light"] .floating-widget {
  background: rgba(255,255,255,.82);
  border-color: rgba(148,163,184,.18);
}
.widget-image { top: 46px; right: 2%; }
.widget-chart { top: 190px; left: 1%; }
.widget-settings { right: 0; bottom: 52px; }
.refined-auth-form-area { display: grid; align-items: center; }
.refined-login-box {
  margin: 0;
  border-radius: 34px;
  padding: 38px;
}
.refined-login-head { margin-bottom: 10px; }
.login-help-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(16,185,129,.03));
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.clean-login-form { gap: 18px; }
.admin-dashboard-clean { display: grid; gap: 24px; }
.admin-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.admin-stats-minimal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.minimal-stat-card {
  display: grid;
  gap: 10px;
}
.minimal-stat-card strong {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: -0.04em;
}
.admin-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.admin-place-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.admin-place-cover {
  display: block;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}
.admin-place-cover img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.admin-cover-content h3 { margin-bottom: 6px; }
.admin-place-body {
  display: grid;
  gap: 14px;
}
.admin-place-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.admin-form-shell { display: grid; gap: 24px; }
.admin-form-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
}
.admin-form-mini-preview {
  display: grid;
  gap: 14px;
}
.preview-big,
.preview-small-grid > div {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(16,185,129,.08));
  border: 1px solid var(--border);
}
.preview-big { min-height: 150px; }
.preview-small-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.preview-small-grid > div { min-height: 70px; }
.admin-form-card { margin: 0; }
.refined-admin-form { gap: 18px; }
.admin-gallery-grid { margin-top: 0; }
.admin-gallery-card { overflow: hidden; }
.admin-gallery-form { padding: 16px; }

@media (max-width: 1100px) {
  .showcase-grid-two,
  .admin-list-grid,
  .admin-form-hero,
  .auth-shell-refined {
    grid-template-columns: 1fr;
  }
  .auth-shell-refined { min-height: auto; }
}
@media (max-width: 860px) {
  .showcase-grid-two,
  .gallery-showcase-grid,
  .admin-list-grid,
  .admin-stats-minimal,
  .two-column-form,
  .selected-files {
    grid-template-columns: 1fr;
  }
  .showcase-media,
  .showcase-media img,
  .detail-hero-media,
  .detail-hero-media img { min-height: 280px; height: 280px; }
  .showcase-content { left: 18px; right: 18px; bottom: 18px; }
  .showcase-content h2, .showcase-content h1 { font-size: 2rem; }
  .showcase-content p { font-size: 1rem; }
  .hero-strip-minimal,
  .gallery-head-clean,
  .admin-dashboard-hero {
    align-items: start;
    flex-direction: column;
  }
}


/* v9 custom refinements */
.hero-mini-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.auth-shell-refined {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(540px, 1fr);
  gap: 34px;
  align-items: stretch;
}
.refined-auth-form-area,
.refined-auth-visual {
  min-height: 700px;
}
.refined-auth-form-area {
  order: 1;
  display: flex;
  align-items: center;
}
.refined-auth-visual {
  order: 2;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.15), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.10), transparent 24%),
    linear-gradient(135deg, #101828 0%, #162033 50%, #1c2438 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-theme="light"] .refined-auth-visual {
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.08), transparent 24%),
    linear-gradient(135deg, #f7f9fd 0%, #edf2fb 52%, #e8eef8 100%);
}
.refined-auth-copy {
  position: absolute;
  inset: 26px 26px auto 26px;
  z-index: 2;
}
.refined-auth-copy .badge {
  margin-bottom: 16px;
}
.refined-auth-copy h1 {
  font-size: 52px;
  line-height: 1;
  margin: 0 0 14px;
}
.refined-auth-copy p {
  margin: 0;
  max-width: 320px;
  color: rgba(255,255,255,.78);
}
body[data-theme="light"] .refined-auth-copy p { color: var(--muted); }
.admin-stage {
  position: absolute;
  inset: 0;
  background: url('/public/images/admin-preview.png') center/cover no-repeat;
  opacity: .98;
}
.stage-glow,
.stage-window,
.floating-widget,
.stage-window-top,
.stage-grid,
.stage-sidebar,
.stage-screen,
.stage-chip-row,
.stage-dashboard-card,
.stage-mini-row,
.stage-mini,
.stage-chip,
.stage-line,
.widget-image,
.widget-chart,
.widget-settings { display:none !important; }
.refined-login-box {
  width: 100%;
  max-width: 520px;
  margin: 0;
  min-height: 700px;
  border-radius: 36px;
  padding: 58px 36px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.refined-login-head { margin-bottom: 20px; }
.refined-login-head h2 {
  margin: 8px 0 10px;
  font-size: 54px;
  line-height: .98;
  letter-spacing: -.04em;
}
.login-help-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.clean-login-form { gap: 18px; }
.clean-login-form label {
  font-size: 15px;
  font-weight: 700;
}
.clean-login-form input {
  min-height: 58px;
  border-radius: 18px;
  font-size: 17px;
}
.homepage-shell-clean { display: grid; gap: 26px; }
.hero-strip-minimal {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px;
}
.hero-strip-minimal h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  letter-spacing: -.04em;
}
.showcase-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.showcase-card {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.showcase-media {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.02) 8%, rgba(15,23,42,.15) 42%, rgba(15,23,42,.82) 100%);
}
.showcase-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}
.showcase-content h2,
.showcase-content h3,
.detail-hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.showcase-content p,
.detail-hero-content p {
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,.88);
}
.showcase-date {
  position: absolute;
  left: 28px;
  bottom: 18px;
  z-index: 3;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.showcase-content { bottom: 42px; }
.detail-page-clean {
  display: grid;
  gap: 24px;
}
.detail-hero-card {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}
.detail-hero-media {
  position: relative;
  min-height: 440px;
}
.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero-content { bottom: 48px; }
.gallery-head-clean {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.gallery-showcase-card {
  border-radius: 22px;
  overflow: hidden;
}
.gallery-showcase-media {
  height: 340px;
}
.gallery-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-showcase-card .showcase-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,.00) 10%, rgba(15,23,42,.08) 58%, rgba(15,23,42,.36) 100%);
}
.gallery-showcase-content {
  display: none;
}
.lightbox-inner {
  max-width: min(1200px, calc(100% - 110px));
}
.lightbox-inner img {
  max-height: 88vh;
  border-radius: 18px;
}
.lightbox-inner p {
  display: none;
}
.admin-form-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
}
.admin-form-mini-preview {
  min-height: 220px;
}
.preview-big {
  height: 140px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(16,185,129,.12));
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.preview-small-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.preview-small-grid div {
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.35);
}
body[data-theme="dark"] .preview-small-grid div {
  background: rgba(255,255,255,.04);
}
.admin-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-gallery-card .gallery-showcase-media { height: 260px; }
.admin-gallery-form {
  padding: 12px;
  background: var(--card);
}
@media (max-width: 1100px) {
  .auth-shell-refined,
  .showcase-grid-two,
  .gallery-showcase-grid,
  .admin-form-hero,
  .admin-gallery-grid {
    grid-template-columns: 1fr;
  }
  .refined-auth-form-area,
  .refined-auth-visual,
  .refined-login-box {
    min-height: auto;
  }
  .showcase-media { height: 300px; }
}
@media (max-width: 760px) {
  .gallery-showcase-grid,
  .admin-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase-content,
  .detail-hero-content {
    left: 18px; right: 18px; bottom: 34px;
  }
  .showcase-date { left: 18px; bottom: 14px; }
  .showcase-content h2,
  .showcase-content h3,
  .detail-hero-content h1 { font-size: 1.6rem; }
}

/* v10 overrides */
.page-admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.top-nav-clean {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.scenic-home-card {
  border-radius: 28px;
  overflow: hidden;
  min-height: 350px;
  box-shadow: var(--shadow);
}

.scenic-home-media {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.scenic-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scenic-home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.10) 0%, rgba(11,18,32,0.18) 38%, rgba(11,18,32,0.88) 100%);
}

.showcase-date-top {
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.58);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.scenic-home-content {
  position: absolute;
  right: 24px;
  left: 24px;
  bottom: 22px;
  z-index: 2;
}

.scenic-home-content h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.scenic-home-content p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
}

.detail-page-gallery-only {
  max-width: 100%;
}

.detail-gallery-shell {
  padding: 28px;
}

.detail-gallery-head {
  margin-bottom: 22px;
}

.detail-gallery-head h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.detail-gallery-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.detail-gallery-card:hover img {
  transform: scale(1.03);
}

.auth-shell-exact {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(460px, 1.08fr);
  gap: 38px;
  align-items: stretch;
  min-height: calc(100vh - 170px);
}

.auth-form-exact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-box-exact {
  max-width: 620px;
  width: 100%;
  padding: 44px 40px 36px;
  border-radius: 26px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18);
}

.exact-login-head h2 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.exact-login-head p {
  margin: 0 0 12px;
  font-size: 15px;
}

.compact-help-card {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
}

.exact-login-form {
  gap: 18px;
}

.exact-login-form input {
  min-height: 56px;
  border-radius: 14px;
}

.auth-copyright {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-visual-exact {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-illustration-wrap {
  width: 100%;
  height: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.auth-illustration-image {
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  display: block;
}

body[data-theme="light"] .auth-illustration-wrap {
  background: radial-gradient(circle at top right, rgba(59,130,246,0.12), transparent 45%),
              radial-gradient(circle at bottom left, rgba(37,99,235,0.08), transparent 35%);
  border-radius: 30px;
}

.softer-panel-card {
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.softer-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.auto-height-card {
  padding: 0;
  overflow: hidden;
}

.admin-place-card {
  display: flex;
  flex-direction: column;
  height: auto;
}

.admin-place-cover {
  position: relative;
  min-height: 220px;
}

.admin-place-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.admin-place-body {
  padding: 18px 18px 20px;
  display: grid;
  gap: 14px;
}

.admin-place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-form {
  display: grid;
  gap: 16px;
}

.site-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  color: var(--text);
  outline: none;
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.alert-danger {
  background: rgba(220,38,38,0.10);
  color: #b91c1c;
  border: 1px solid rgba(220,38,38,0.14);
}

body[data-theme="dark"] .alert-danger {
  color: #fecaca;
}

@media (max-width: 1100px) {
  .auth-shell-exact,
  .scenic-home-grid,
  .softer-admin-grid,
  .detail-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-shell-exact {
    gap: 28px;
  }
}

@media (max-width: 800px) {
  .auth-shell-exact,
  .scenic-home-grid,
  .detail-gallery-grid,
  .softer-admin-grid {
    grid-template-columns: 1fr;
  }
  .scenic-home-media {
    height: 300px;
  }
  .auth-illustration-wrap {
    min-height: 320px;
  }
  .login-box-exact {
    padding: 30px 22px;
  }
}


/* v11 admin/layout fixes */
body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
    linear-gradient(180deg, #eef3f9 0%, #f6f8fc 100%);
}
.container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header-clean {
  padding-top: 22px;
}
.nav-wrap-clean {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
}
.top-nav-clean {
  gap: 14px;
}
.admin-dashboard-clean,
.admin-dashboard-clean * {
  box-sizing: border-box;
}
.admin-dashboard-clean {
  width: 100%;
  min-width: 0;
  gap: 22px;
}
.admin-dashboard-hero {
  width: 100%;
  padding: 34px 28px;
  border-radius: 30px;
  align-items: center;
}
.admin-dashboard-hero > div:first-child {
  min-width: 0;
}
.admin-dashboard-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.02;
  margin: 0 0 12px;
}
.admin-dashboard-hero .meta {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.dashboard-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.admin-stats-minimal {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.minimal-stat-card {
  width: 100%;
  min-width: 0;
  padding: 26px 24px;
  border-radius: 28px;
  overflow: hidden;
}
.minimal-stat-card .hero-mini-label {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.2;
}
.minimal-stat-card strong {
  display: block;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1;
  word-break: break-word;
}
.softer-panel-card {
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.admin-list-grid {
  width: 100%;
  min-width: 0;
  align-items: start;
}
.admin-place-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.93));
}
.admin-place-body {
  min-width: 0;
}
.auth-shell-refined {
  min-height: calc(100vh - 190px);
  grid-template-columns: minmax(450px, 520px) minmax(560px, 1fr);
  gap: 38px;
  align-items: stretch;
}
.auth-form-area {
  min-width: 0;
}
.login-box-exact {
  padding: 40px 34px;
  border-radius: 30px;
}
.auth-visual-exact {
  min-width: 0;
}
.auth-illustration-wrap {
  min-height: 580px;
  border-radius: 34px;
  padding: 18px;
}
.auth-illustration-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}
@media (max-width: 1100px) {
  .auth-shell-refined {
    grid-template-columns: 1fr;
  }
  .admin-stats-minimal,
  .softer-admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* v12 fixes */
body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 26%),
    linear-gradient(180deg, #eef4ff 0%, #f6f9ff 100%);
}

.admin-form-mini-preview {
  min-height: 232px;
  padding: 6px 0;
}

.preview-big {
  height: 148px;
  border-radius: 28px;
  margin-bottom: 16px;
}

.preview-small-grid {
  gap: 14px;
}

.preview-small-grid div {
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(236,244,255,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.selected-file-item {
  border-radius: 22px;
}

/* v14 image variants + layout refinements */

:root {
  --radius-xl: 28px;
}

body[data-theme="light"] {
  --card: rgba(255,255,255,0.94);
}

.container {
  width: min(1280px, calc(100% - 24px));
}

.site-header-clean {
  padding-top: 14px;
}

.nav-wrap-clean {
  padding: 11px 18px;
  border-radius: 24px;
}

.logo-clean {
  font-size: 22px;
}

.top-nav-clean {
  gap: 10px;
}

.top-nav-clean a {
  font-size: 13px;
}

.page-content-clean {
  padding-top: 18px;
}

.admin-form-hero {
  border-radius: 30px;
  overflow: hidden;
  padding: 26px 28px;
  align-items: stretch;
}

.admin-form-hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.admin-form-hero h1 {
  margin: 0 0 12px;
}

.admin-form-hero .meta {
  max-width: 560px;
  line-height: 1.55;
}

.admin-form-mini-preview {
  align-self: stretch;
  min-width: 0;
  gap: 16px;
}

.preview-big {
  min-height: 184px;
  border-radius: 30px;
}

.preview-small-grid {
  gap: 16px;
}

.preview-small-grid > div {
  min-height: 102px;
  border-radius: 26px;
}

.upload-box {
  border-radius: 28px;
}

.selected-file-item {
  border-radius: 22px;
}

.detail-gallery-shell {
  border-radius: 30px;
}

.detail-gallery-card {
  border-radius: 24px;
}

.detail-gallery-card img {
  aspect-ratio: 3 / 4;
}

@media (max-width: 980px) {
  .admin-form-hero {
    grid-template-columns: 1fr;
  }
  .preview-big {
    min-height: 150px;
  }
}


.upload-loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.upload-loading-box{
  background:#fff;
  padding:30px;
  border-radius:16px;
  text-align:center;
  min-width:260px;
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.upload-loading-box p{
  margin-top:15px;
  font-size:16px;
  font-weight:600;
}

.upload-spinner{
  width:60px;
  height:60px;
  border:5px solid #ddd;
  border-top-color:#000;
  border-radius:50%;
  margin:auto;
  animation:uploadSpin 1s linear infinite;
}

@keyframes uploadSpin{
  to{
    transform: rotate(360deg);
  }
}


/* Upload Loading Overlay */

.upload-loading-overlay{
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  background: rgba(0,0,0,0.45);

  z-index: 999999;
}

.upload-loading-box{
  background: rgba(255,255,255,0.92);

  padding: 35px;
  border-radius: 22px;

  text-align: center;

  min-width: 280px;

  box-shadow: 0 10px 45px rgba(0,0,0,0.25);
}

.upload-loading-box p{
  margin-top: 18px;

  font-size: 16px;
  font-weight: 600;

  color: #111;
}

.upload-spinner{
  width: 68px;
  height: 68px;

  margin: auto;

  border-radius: 50%;

  border: 5px solid rgba(0,0,0,0.12);
  border-top-color: #111;

  animation: uploadSpin 0.9s linear infinite;
}

@keyframes uploadSpin{
  to{
    transform: rotate(360deg);
  }
}
