/* ==========================================================================
   admin.css — styles for the owner's editing panel only.
   ========================================================================== */

body.admin { background: var(--cream-2); }

/* --- Login ---------------------------------------------------------------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: var(--gut);
}
.login__card {
  width: min(420px, 100%); background: var(--white); padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: var(--shadow-md); text-align: center;
}
.login__card .brand__name { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.login__card .brand__sub { display: block; margin: .4rem 0 2rem; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.login__error { color: #a33; font-size: .88rem; margin-top: .9rem; min-height: 1.2em; }
.login__hint { margin-top: 1.75rem; font-size: .78rem; color: var(--ink-3); line-height: 1.5; }

/* --- Shell ---------------------------------------------------------------- */
.abar {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem clamp(16px, 4vw, 32px);
}
.abar__title { font-family: var(--font-display); font-size: 1.3rem; margin-right: auto; }
.abar__title small { display: block; font-family: var(--font-body); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: #9d8f84; margin-top: 2px; }
.abar .btn { padding: .6em 1.1em; font-size: .7rem; }
.abar .btn--ghost { color: var(--cream); border-color: rgba(255,255,255,.35); }
.abar .btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.tabs { display: flex; gap: .25rem; overflow-x: auto; padding: 0 clamp(16px, 4vw, 32px); background: var(--white); border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 1rem .95rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }

.apanel { padding: clamp(1.5rem, 4vw, 2.75rem) clamp(16px, 4vw, 32px) 6rem; max-width: 1000px; }
.apanel[hidden] { display: none; }
.apanel h2 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: .4rem; }
.apanel > p.muted { margin-bottom: 2rem; max-width: 62ch; font-size: .92rem; }

.acard { background: var(--white); box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1.25rem; }
.acard h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 1rem; }

/* --- Dropzone ------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--line); background: var(--white);
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; text-align: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); background: #fffdf9; }
.dropzone strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; display: block; }
.dropzone span { display: block; margin-top: .5rem; font-size: .88rem; color: var(--ink-3); }

/* --- Photo grid ----------------------------------------------------------- */
.photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-top: 1.5rem; }
.photo { background: var(--white); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.photo__img { aspect-ratio: 4/5; overflow: hidden; background: var(--sand); }
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo__body { padding: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.photo__body input { width: 100%; padding: .45rem .55rem; font: inherit; font-size: .82rem; border: 1px solid var(--line); background: var(--cream); }
.photo__tools { display: flex; gap: .3rem; }
.iconbtn {
  flex: 1; padding: .4rem; background: var(--cream-2); border: 1px solid var(--line);
  cursor: pointer; font-size: .82rem; line-height: 1; transition: background .15s ease;
}
.iconbtn:hover { background: var(--sand); }
.iconbtn--danger:hover { background: #f4d9d9; border-color: #e0b4b4; }

/* --- Rows / editors ------------------------------------------------------- */
.row { display: grid; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row--hours { grid-template-columns: 130px 1fr; }
.row--item { grid-template-columns: 1fr 150px 40px; }
@media (max-width: 620px) { .row--item { grid-template-columns: 1fr 110px 40px; } }
.row label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.row input, .row textarea, .row select {
  width: 100%; padding: .6rem .7rem; font: inherit; font-size: .93rem;
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
}
.row input:focus, .row textarea:focus { outline: none; border-color: var(--gold); }

.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.svc-head h3 { margin: 0; }

.toggle { display: inline-flex; align-items: center; gap: .6rem; font-size: .93rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--gold); }

/* --- Save bar ------------------------------------------------------------- */
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); border-top: 1px solid var(--line);
  padding: .8rem clamp(16px, 4vw, 32px);
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(42,34,29,.08);
}
.savebar__status { margin-right: auto; font-size: .84rem; color: var(--ink-3); }
.savebar__status.is-dirty { color: var(--gold-deep); }

.warnbox {
  border-left: 3px solid var(--gold); background: #fff8ec;
  padding: 1rem 1.1rem; font-size: .88rem; color: var(--ink-2); margin-bottom: 1.5rem;
}
.warnbox strong { color: var(--ink); }
