:root {
  color-scheme: light;
  --bg: #f8f8f4;
  --surface: #ffffff;
  --surface-soft: #f0f3ef;
  --ink: #1d211f;
  --muted: #626863;
  --line: #e1e5e0;
  --brand: #2f5d50;
  --brand-hover: #24493f;
  --brand-soft: #dce9e3;
  --accent: #b7794a;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --success: #2e6b45;
  --shadow: 0 18px 50px rgba(28, 42, 36, 0.12);
  --shadow-soft: 0 8px 24px rgba(28, 42, 36, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button,
a,
input,
select,
textarea { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

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

img,
video { display: block; max-width: 100%; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #0b7669;
  outline-offset: 3px;
}

.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;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.icon-button:hover { background: rgba(47, 93, 80, 0.09); }
.icon-button:active { transform: scale(.94); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.button:hover { background: var(--brand-hover); box-shadow: var(--shadow-soft); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.button--tonal { background: var(--brand-soft); color: var(--brand-hover); }
.button--tonal:hover { background: #cddfd7; }
.button--outline { background: transparent; color: var(--brand); border-color: #a9b9b2; }
.button--outline:hover { background: rgba(47, 93, 80, .07); box-shadow: none; }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: rgba(29, 33, 31, .06); box-shadow: none; }
.button--danger { background: var(--danger); }
.button--danger:hover { background: #93000a; }
.button--small { min-height: 38px; padding: 8px 14px; border-radius: 11px; font-size: 14px; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #b8c1bc;
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  transition: border 160ms var(--ease), box-shadow 160ms var(--ease);
}

.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #7b8781; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 93, 80, .16); }
.input::placeholder, .textarea::placeholder { color: #7d837f; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: white;
  background: linear-gradient(180deg, rgba(12, 18, 15, .6), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .12em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 46% 54%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}

.site-header .brand { min-height: 68px; }
.brand-logo-shell {
  width: 150px;
  height: 71px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 1px rgba(255, 248, 236, .28)) drop-shadow(0 6px 18px rgba(25, 18, 13, .28));
}

.brand-logo { width: 100%; height: 100%; object-fit: contain; }

.site-header__nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.site-header__link { position: relative; padding: 10px 0; }
.site-header__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 2px; background: white; transition: right 180ms var(--ease); }
.site-header__link:hover::after { right: 0; }

.hero {
  position: relative;
  min-height: min(760px, 74vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #243a32;
}

.hero__media,
.hero__media img,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img { object-fit: cover; }
.hero__fallback { background: linear-gradient(135deg, #2d5044, #76917f); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 14, .1) 20%, rgba(10, 17, 14, .72) 100%); }

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 58px;
  color: white;
}

.hero__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .22em; opacity: .85; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(38px, 7vw, 72px); line-height: 1.12; letter-spacing: -.04em; font-weight: 620; }
.hero__lead { max-width: 630px; margin: 16px 0 0; font-size: clamp(16px, 2vw, 19px); opacity: .9; }
.hero .button { background: white; color: var(--brand-hover); }
.hero .button:hover { background: #f1f5f2; }

.gallery-section { padding: 64px 16px 96px; }
.gallery-heading { width: min(1280px, 100%); margin: 0 auto 26px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.gallery-heading__eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.gallery-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.25; letter-spacing: -.025em; }
.gallery-count { color: var(--muted); font-size: 14px; white-space: nowrap; }

.filter-shell {
  position: sticky;
  z-index: 15;
  top: 0;
  margin: 0 -16px 26px;
  padding: 9px 16px;
  background: rgba(248, 248, 244, .91);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.filter-shell.is-stuck { border-bottom-color: var(--line); }
.filter-bar { width: min(1280px, 100%); margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }

.chip {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid #b8c1bc;
  border-radius: 999px;
  background: transparent;
  color: #3c4742;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.chip:hover { background: rgba(47, 93, 80, .07); }
.chip[aria-selected="true"] { background: var(--brand); color: white; border-color: var(--brand); }

.gallery-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  columns: 2;
  column-gap: 8px;
}

.media-card {
  position: relative;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  display: block;
  break-inside: avoid;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #e9eee9;
  cursor: zoom-in;
  isolation: isolate;
}

.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(6, 13, 10, .38)); opacity: 0; transition: opacity 220ms var(--ease); }
.media-card:hover::after, .media-card:focus-visible::after { opacity: 1; }
.media-card img { width: 100%; height: auto; object-fit: cover; transition: transform 280ms var(--ease), opacity 200ms var(--ease); }
.media-card:hover img { transform: scale(1.02); }
.media-card img[data-loading="true"] { opacity: 0; }

.media-card__video {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(20, 26, 23, .76);
  color: white;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.media-card__video .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.gallery-message { width: min(1280px, 100%); min-height: 180px; margin: 0 auto; display: grid; place-items: center; color: var(--muted); text-align: center; }
.gallery-message .button { margin-top: 12px; }

.skeleton-card { min-height: 220px; background: linear-gradient(100deg, #e7ebe7 20%, #f3f5f2 40%, #e7ebe7 60%); background-size: 240% 100%; animation: shimmer 1.5s infinite linear; }
.skeleton-card:nth-child(3n + 2) { min-height: 290px; }
.skeleton-card:nth-child(3n + 3) { min-height: 180px; }
@keyframes shimmer { to { background-position-x: -240%; } }

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 56px;
  background: rgba(8, 12, 10, .96);
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 240ms;
}

.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { position: relative; z-index: 2; padding: 10px 12px 0 18px; display: flex; align-items: center; justify-content: space-between; }
.lightbox__counter { font-size: 14px; letter-spacing: .05em; opacity: .8; }
.lightbox .icon-button:hover { background: rgba(255,255,255,.12); }
.lightbox__stage { position: relative; min-height: 0; display: grid; place-items: center; touch-action: pan-y pinch-zoom; overflow: hidden; }
.lightbox__content { width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__content img, .lightbox__content video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__content video { width: min(1120px, 100%); }
.lightbox__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: white; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(12px); transition: background 160ms var(--ease); }
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__caption { margin: 0; padding: 10px 20px; overflow: hidden; text-overflow: ellipsis; text-align: center; white-space: nowrap; font-size: 14px; opacity: .78; }

.site-footer { padding: 38px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
.site-footer strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 15px; letter-spacing: .12em; }

.booking-section { padding: 0 16px 96px; }
.booking-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: grid;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.booking-brand {
  min-height: 210px;
  padding: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e3ebe5, #f3efe7);
}

.booking-brand img { width: min(290px, 84%); height: auto; object-fit: contain; }
.booking-content { padding: 30px 26px 32px; }
.booking-eyebrow { margin: 0 0 5px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .13em; }
.booking-content h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.25; letter-spacing: -.025em; }
.booking-label { margin: 24px 0 2px; color: var(--muted); font-size: 14px; }
.booking-number {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(26px, 6.6vw, 36px);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: .035em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.booking-number:hover { color: var(--brand); }
.booking-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.booking-actions .button { min-width: 138px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
.auth-visual { position: relative; display: none; overflow: hidden; background: linear-gradient(145deg, #1f463b, #758f7f); }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); }
.auth-visual::before { width: 55vw; height: 55vw; top: -26vw; right: -25vw; }
.auth-visual::after { width: 38vw; height: 38vw; bottom: -20vw; left: -13vw; }
.auth-visual__brand { position: relative; z-index: 1; align-self: end; padding: 64px; color: white; }
.auth-visual__brand p { max-width: 460px; margin: 18px 0 0; font-size: 18px; opacity: .8; }
.auth-main { min-width: 0; padding: 24px; display: grid; align-items: center; }
.auth-card { width: min(420px, 100%); margin: auto; }
.auth-logo { display: inline-flex; align-items: center; }
.auth-brand-logo { width: 174px; height: auto; }
.auth-visual-logo { width: min(300px, 72%); height: auto; filter: invert(1); }
.auth-title { margin: 44px 0 6px; font-size: 32px; line-height: 1.25; letter-spacing: -.025em; }
.auth-subtitle { margin: 0 0 30px; color: var(--muted); }
.auth-form { display: grid; gap: 19px; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 52px; }
.password-wrap .icon-button { position: absolute; top: 2px; right: 2px; }
.auth-form .button { margin-top: 6px; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: #690005; font-size: 14px; }
.auth-foot { margin: 32px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.admin-page { min-height: 100vh; background: #f7f8f6; }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 244px; padding: 24px 16px; display: none; flex-direction: column; background: #f0f3ef; border-right: 1px solid var(--line); }
.admin-brand { height: 56px; padding: 0 10px; display: flex; align-items: center; }
.admin-brand-logo { width: 172px; height: auto; }
.admin-nav { display: grid; gap: 6px; margin-top: 28px; }
.admin-nav__item { width: 100%; min-height: 48px; padding: 0 15px; border: 0; border-radius: 14px; display: flex; align-items: center; gap: 13px; background: transparent; color: #44504a; font-weight: 600; cursor: pointer; text-align: left; }
.admin-nav__item:hover { background: rgba(47, 93, 80, .07); }
.admin-nav__item[aria-current="page"] { background: var(--brand-soft); color: var(--brand-hover); }
.admin-nav__item .icon { width: 21px; }
.admin-account { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.admin-account__name { margin: 0 0 10px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; white-space: nowrap; }

.admin-header { position: sticky; z-index: 24; top: 0; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: rgba(247,248,246,.91); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.admin-header h1 { margin: 0; font-size: 21px; letter-spacing: -.015em; }
.admin-main { min-width: 0; padding: 22px 16px 104px; }
.admin-view { display: none; animation: view-in 200ms var(--ease); }
.admin-view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
.view-heading { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.view-heading h2 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.025em; }
.view-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.stat-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.stat-card__value { margin-top: 18px; font-size: 32px; line-height: 1; font-weight: 650; letter-spacing: -.025em; }
.dashboard-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.dashboard-panel h3 { margin: 0 0 17px; font-size: 18px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.recent-grid img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--surface-soft); }

.toolbar { margin-bottom: 18px; display: grid; gap: 10px; }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.search-field .input { padding-left: 45px; }
.toolbar__filters { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.toolbar__filters .select { min-width: 138px; }

.admin-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-media-card { position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.admin-media-card.is-selected { border-color: var(--brand); box-shadow: none; }
.admin-media-card__preview { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-soft); }
.admin-media-card__preview { width: 100%; padding: 0; border: 0; display: block; color: inherit; cursor: pointer; }
.admin-media-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-media-card__select { position: absolute; z-index: 3; top: 9px; left: 9px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid white; border-radius: 9px; background: rgba(18,24,21,.5); color: white; box-shadow: 0 2px 9px rgba(0,0,0,.2); }
.admin-media-card.is-selected .admin-media-card__select { background: var(--brand); }
.admin-media-card__type { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(18,24,21,.7); color: white; font-size: 11px; }
.admin-media-card__body { padding: 11px 12px 12px; }
.admin-media-card__title { margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; white-space: nowrap; }
.admin-media-card__meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.admin-media-card__actions { margin-top: 10px; display: flex; gap: 6px; }
.admin-media-card__actions .button { flex: 1; padding-inline: 7px; font-size: 12px; }
.danger-text { color: var(--danger); }
.upload-item__thumb:not(img) { display: grid; place-items: center; color: var(--brand); }

.selection-bar { position: sticky; z-index: 18; top: 74px; margin-bottom: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; overflow-x: auto; border-radius: 16px; background: #203f36; color: white; box-shadow: var(--shadow-soft); }
.selection-bar__count { min-width: max-content; margin-right: auto; padding: 0 8px; font-weight: 600; }
.selection-bar .select { min-width: 136px; min-height: 40px; border: 0; }
.selection-bar .button { min-width: max-content; }

.admin-empty { min-height: 260px; padding: 40px 20px; display: grid; place-items: center; border: 1px dashed #b8c1bc; border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
.admin-empty .icon { width: 36px; height: 36px; margin: 0 auto 12px; }
.admin-empty p { margin: 0 0 15px; }

.category-list { display: grid; gap: 10px; }
.category-row { min-height: 68px; padding: 11px 13px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.drag-handle { color: #78817c; cursor: grab; }
.category-row__name { overflow: hidden; text-overflow: ellipsis; font-weight: 600; white-space: nowrap; }
.category-row__meta { color: var(--muted); font-size: 12px; }
.category-row__actions { display: flex; gap: 3px; }
.category-row[aria-grabbed="true"] { opacity: .55; }
.category-row.is-drag-target { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

.bottom-nav { position: fixed; z-index: 28; left: 0; right: 0; bottom: 0; min-height: 72px; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(250,251,249,.96); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
.bottom-nav__item { min-width: 0; padding: 5px 2px; border: 0; border-radius: 13px; display: grid; justify-items: center; gap: 1px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.bottom-nav__item .icon { width: 22px; }
.bottom-nav__item[aria-current="page"] { color: var(--brand); font-weight: 700; }
.bottom-nav__item[aria-current="page"] .icon { filter: drop-shadow(0 5px 7px rgba(47,93,80,.22)); }
.upload-fab { position: fixed; z-index: 27; right: 18px; bottom: 86px; width: 56px; height: 56px; padding: 0; border-radius: 18px; box-shadow: 0 8px 22px rgba(31,74,61,.3); }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; padding: 16px; display: grid; align-items: end; background: rgba(16,24,20,.53); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 200ms; }
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal { width: min(560px, 100%); max-height: min(90vh, 760px); margin: 0 auto; padding: 22px; overflow-y: auto; border-radius: 24px 24px 18px 18px; background: var(--surface); box-shadow: var(--shadow); transform: translateY(20px); transition: transform 240ms var(--ease); }
.modal-backdrop.is-open .modal { transform: none; }
.modal__header { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal__header h2 { margin: 0; font-size: 23px; line-height: 1.3; }
.modal__body { display: grid; gap: 17px; }
.modal__actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }

.drop-zone { min-height: 170px; padding: 26px 18px; display: grid; place-items: center; border: 2px dashed #9faea6; border-radius: 18px; background: #fbfcfa; color: var(--muted); text-align: center; cursor: pointer; transition: background 160ms var(--ease), border 160ms var(--ease); }
.drop-zone:hover, .drop-zone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone .icon { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--brand); }
.drop-zone strong { display: block; color: var(--ink); }
.drop-zone small { display: block; margin-top: 4px; }
.upload-queue { display: grid; gap: 9px; }
.upload-item { padding: 11px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; border-radius: 13px; background: var(--surface-soft); }
.upload-item__thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #dfe5e0; }
.upload-item__name { margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 600; white-space: nowrap; }
.upload-item__status { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #d9dfda; }
.progress__bar { width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width 160ms linear; }
.file-error { color: var(--danger); }

.detail-preview { max-height: 320px; margin: 0 auto; border-radius: 16px; object-fit: contain; background: #eef1ed; }
.detail-video { width: 100%; max-height: 320px; border-radius: 16px; background: #111; }
.confirm-copy { margin: 0; color: var(--muted); }

.snackbar { position: fixed; z-index: 120; left: 50%; bottom: 92px; width: min(420px, calc(100% - 32px)); min-height: 52px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 14px; border-radius: 14px; background: #26302b; color: white; box-shadow: var(--shadow); transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform 240ms var(--ease), opacity 240ms var(--ease); }
.snackbar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.snackbar__message { flex: 1; font-size: 14px; }
.snackbar .button { color: #a8d8c5; }

.loading-overlay { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; background: rgba(248,248,244,.68); backdrop-filter: blur(4px); }
.spinner { width: 38px; height: 38px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 680px) {
  .site-header { height: 124px; padding: 0 32px; }
  .hero__content { padding-bottom: 72px; }
  .gallery-section { padding: 80px 24px 110px; }
  .booking-section { padding: 0 24px 110px; }
  .booking-card { grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr); }
  .booking-brand { min-height: 360px; padding: 48px; }
  .booking-content { padding: 52px; align-self: center; }
  .filter-shell { margin-inline: -24px; padding-inline: 24px; }
  .gallery-grid { columns: 3; column-gap: 14px; }
  .media-card { margin-bottom: 14px; border-radius: 18px; }
  .auth-main { padding: 48px; }
  .toolbar { grid-template-columns: minmax(260px, 1fr) auto; align-items: center; }
  .admin-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .recent-grid { grid-template-columns: repeat(6, 1fr); }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 24px; }
}

@media (min-width: 1024px) {
  .site-header__nav { display: flex; }
  .hero { min-height: min(820px, 78vh); }
  .brand-logo-shell { width: 218px; height: 103px; }
  .gallery-grid { columns: 4; column-gap: 18px; }
  .media-card { margin-bottom: 18px; }
  .auth-page { grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr); }
  .auth-visual { display: grid; }
  .admin-sidebar { display: flex; }
  .admin-shell { padding-left: 244px; }
  .admin-header { height: 72px; padding: 0 32px; }
  .admin-main { padding: 30px 32px 56px; }
  .admin-main__inner { max-width: 1450px; margin: 0 auto; }
  .admin-header h1 { font-size: 23px; }
  .view-heading h2 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat-card { min-height: 154px; padding: 23px; }
  .admin-media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .bottom-nav, .upload-fab { display: none; }
  .selection-bar { top: 84px; }
  .snackbar { bottom: 28px; }
}

@media (min-width: 1380px) {
  .admin-media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 679px) {
  .site-header__nav .site-header__link:not(:last-child) { display: none; }
  .site-header__nav { gap: 0; }
  .site-header__link { min-height: 44px; display: inline-flex; align-items: center; }
  .toolbar__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .toolbar__filters .select { width: 100%; min-width: 0; }
  .toolbar__filters .select:last-child { grid-column: 1 / -1; }
  .lightbox__nav { display: none; }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-header__actions .button span { display: none; }
  .modal__actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
