/* Photo Drop — design tokens ported from coastal-therapy globals.css */
:root {
  --bg: #faf9f6;
  --fg: #1a1a1a;
  --surface: #ffffff;
  --surface-alt: #f3f1ed;
  --border-color: #e5e2dc;
  --muted: #555;
  --accent: #8b7355;        /* overridden per client/property at runtime */
  --accent-light: #c4a97d;
  --on-accent: #ffffff;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px; /* ≥16px inputs — no iOS zoom-on-focus */
  line-height: 1.55;
  min-height: 100dvh;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* DataOps Group brand header */
.brand {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 0;
}
.brand img { height: 42px; width: auto; display: block; }

.view {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 7rem;
}
.view-center {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 2rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.site-header { margin-bottom: 1.5rem; }
.expiry {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Spinner */
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Property switcher */
.property-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}
.property-tab {
  appearance: none;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.property-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Section chips */
.picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  appearance: none;
  border: 1.5px solid var(--border-color);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--accent-light); }
.chip-active, .chip.chip-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* Drop zone */
.dropzone-wrap { margin-top: 1.5rem; }
.active-banner {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  text-align: center;
}
.dropzone {
  display: block;
  border: 2px dashed var(--accent-light);
  border-radius: 12px;
  background: var(--surface);
  padding: 2.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.active-banner:not(.hidden) + .dropzone { border-radius: 0 0 12px 12px; border-top: none; }
.dropzone.dz-over { background: var(--surface-alt); border-color: var(--accent); }
.dropzone.dz-disabled { opacity: 0.45; cursor: not-allowed; }
.dz-icon { font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.dz-title { font-weight: 600; font-size: 1.05rem; }
.dz-sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.picker-hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--accent); text-align: center; }

/* Queue */
.queue { margin-top: 2rem; }
.queue-head { display: flex; align-items: baseline; justify-content: space-between; }
.queue-summary { font-size: 0.85rem; color: var(--muted); }
.queue-list { list-style: none; margin-top: 0.5rem; }
.q-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.5rem;
}
.q-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-meta { min-width: 0; }
.q-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-tag { font-size: 0.72rem; color: var(--muted); }
.q-bar {
  height: 4px;
  background: var(--surface-alt);
  border-radius: 2px;
  margin-top: 0.35rem;
  overflow: hidden;
}
.q-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s;
}
.q-status { font-size: 0.8rem; text-align: right; }
.q-status .ok { color: #3f7d4e; font-weight: 700; }
.q-status .err { color: #a33a2a; font-weight: 600; }
.q-retry {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0.2rem;
}

/* Error banner */
.error-banner {
  margin-top: 1rem;
  background: #fbeee9;
  border: 1px solid #e5b8ab;
  color: #7a2e1f;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

/* Sticky done bar */
.done-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, transparent);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.done-btn {
  pointer-events: auto;
  appearance: none;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  width: min(100%, 420px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  transition: opacity 0.15s;
}
.done-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
