/* ==========================================================================
   Nails by Aneka — shared stylesheet
   Plain CSS, no framework/build step. Reused across all pages.
   ========================================================================== */

:root {
  --ink: #f0e6d6;
  --muted: #b6a684;
  --bg: #0d0d0d;
  --bg-alt: #171512;
  --border: #4a3f2d;
  --accent: #e8c899;
  --accent-hover: #f4dcae;
  --accent-ink: #1a1408;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  --max-width: 1100px;
  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Scrollbars --------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-alt);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: var(--radius);
  border: 3px solid var(--bg-alt);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--bg-alt);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fixed full-viewport ambient glow — soft champagne-gold blooms, no hard seams (see octopathic.com's .ambient) */
.aura {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -5%, rgba(232, 200, 153, 0.10), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(232, 200, 153, 0.05), transparent 60%),
    radial-gradient(800px 500px at 10% 20%, rgba(232, 200, 153, 0.05), transparent 60%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--accent);
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

/* ---- Layout helpers ----------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  min-height: 60vh;
  flex: 1;
}

section {
  padding: 3rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: 1.75rem;
}

.section-heading p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(232, 200, 153, 0);
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
}

.btn:hover,
.btn:focus {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 200, 153, 0.35);
}

/* Shared gold hover glow across all buttons & button-like nav items (mirrors octopathic.com) */
.site-nav a:hover,
.site-nav a:focus,
.social-icon:hover,
.social-icon:focus {
  box-shadow: 0 8px 30px rgba(232, 200, 153, 0.35);
}

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo-link {
  display: inline-flex;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
}

.logo {
  display: block;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--accent);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .site-nav li {
    border-top: 1px solid var(--border);
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
}

.social-icon:hover,
.social-icon:focus {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.25rem;
}

.hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ---- Portrait (About page) ------------------------------------------------ */
/* Circular portrait placeholder — swap the inner span for e.g.
   <img src="assets/portrait.jpg" alt="Portrait of Aneka"> when the photo is ready */
.portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  border: 1px dashed var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  overflow: hidden;
}

/* ---- Cards / grids -------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-grid .card {
  transition: border-color 0.2s, box-shadow 0.25s;
}

.card-grid .card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent), 0 8px 30px rgba(232, 200, 153, 0.25);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---- Gallery -------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Photo placeholder box — swap the inner span for an <img> once real gallery photos are ready */
.photo-placeholder {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* ---- Forms ---------------------------------------------------------------- */
.form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-field .hint {
  color: var(--muted);
  font-size: 0.85rem;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #9a9092;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

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

/* ---- FAQ ------------------------------------------------------------------ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---- Booking -------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.toggle-option {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: none;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.toggle-option + .toggle-option {
  border-left: 1px solid var(--border);
}

.toggle-option:hover {
  color: var(--accent);
}

.toggle-option.selected {
  background: var(--accent);
  color: var(--accent-ink);
}

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.photo-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.photo-preview-remove:hover {
  background: var(--accent-hover);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
}

.booking-main {
  align-self: start;
}

.booking-section {
  margin-bottom: 1.5rem;
}

.booking-section:last-child {
  margin-bottom: 0;
}

.svc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.svc-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.25s, transform 0.2s;
}

.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(232, 200, 153, 0.35);
}

.svc-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: rgba(232, 200, 153, 0.08);
}

.svc-radio {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.svc-card.selected .svc-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.svc-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.calendar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.calendar-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.calendar-weekdays {
  margin-bottom: 0.4rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.calendar-day:hover:not(:disabled) {
  border-color: var(--accent);
}

.calendar-day.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.calendar-day:disabled {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
  opacity: 0.45;
}

.calendar-day-empty {
  background: transparent;
  border-color: transparent;
}

/* Dimmed hint for a date we've already discovered has no open slots — still
   clickable (availability can change), just visually deprioritized. */
.calendar-day-unavailable {
  color: var(--muted);
  opacity: 0.55;
}

/* Admin blocked-slots calendar: small dot marking a date that already has
   at least one blocked slot, independent of whether it's the currently
   viewed date (.selected). */
.calendar-day-blocked {
  position: relative;
}

.calendar-day-blocked::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.calendar-day.selected.calendar-day-blocked::after {
  background: var(--accent-ink);
}

@media (max-width: 420px) {
  .calendar-day {
    font-size: 0.8rem;
  }
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.6rem;
}

.slot {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.3rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.slot:hover {
  border-color: var(--accent);
}

.slot.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.slot-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  padding: 0.5rem 0;
}

.summary-panel {
  position: sticky;
  top: 90px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row .k {
  color: var(--muted);
  font-weight: 600;
}

.summary-row .v {
  font-weight: 600;
  text-align: right;
}

.summary-row .v.empty {
  color: var(--muted);
  font-weight: 500;
}

.confirm-hint {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.75rem;
}

.confirmed {
  text-align: center;
}

.confirmed .tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(232, 200, 153, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.confirmed h3 {
  margin-bottom: 0.25rem;
}

.confirmed-sub {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.confirmed-box {
  text-align: left;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.confirmed-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.confirmed-row .k {
  color: var(--muted);
}

.confirmed-row .v {
  font-weight: 600;
  text-align: right;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

/* ---- Admin dashboard -------------------------------------------------------- */
.admin-header .header-inner {
  justify-content: flex-start;
  gap: 1.5rem;
}

.admin-title {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.admin-back-link {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-back-link:hover {
  color: var(--accent-hover);
}

.admin-tabs {
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-login {
  max-width: 420px;
  margin: 0 auto 2rem;
  text-align: center;
}

.admin-login .form {
  text-align: left;
}

.admin-login .admin-hint {
  display: block;
  margin-bottom: 1.25rem;
}

.admin-login .status-msg {
  text-align: center;
}

.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-card-head h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.admin-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.status-msg {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.status-msg.ok {
  color: var(--accent);
}

.status-msg.error {
  color: #e2867e;
}

.status-msg.hidden {
  display: none;
}

/* Secondary/outline button — for unblock, cancel, and other non-primary actions */
.btn-ghost {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, color 0.2s;
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 22px rgba(232, 200, 153, 0.25);
}

.btn-ghost:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Weekly hours editor */
.wh-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wh-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wh-day {
  font-weight: 600;
  width: 90px;
  flex-shrink: 0;
}

.wh-times {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.wh-time-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.wh-time-field input {
  width: auto;
}

.wh-row.is-closed .wh-times {
  opacity: 0.4;
}

/* Blocked days / blocked slots */
.block-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.block-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.block-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.block-item-date {
  font-weight: 600;
}

.block-item-reason {
  color: var(--muted);
  font-size: 0.85rem;
}

.block-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Edit Site Text — page list (clickable .block-item) */
.pc-page-btn {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pc-page-btn:hover,
.pc-page-btn:focus {
  border-color: var(--accent);
}

/* Bookings — three columns (pending / confirmed / upcoming). Desktop: side by
   side, matching DOM order. Mobile: stacks to one column, pending first
   (see the @media block below), since DOM order already puts pending first. */
.bookings-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.bookings-column {
  display: flex;
  flex-direction: column;
  min-width: 0; /* let long customer names/text ellipsize instead of forcing the column wide */
}

@media (max-width: 900px) {
  .bookings-columns {
    grid-template-columns: 1fr;
  }

  .bookings-list {
    max-height: none; /* full-height cards read better stacked on a phone than in a short scroll box */
    overflow-y: visible;
  }
}

/* Bookings list */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.25rem; /* breathing room so the scrollbar doesn't overlap card content */
}

.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.booking-date {
  font-weight: 700;
  color: var(--ink);
}

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-pending {
  border-color: var(--accent);
  color: var(--accent);
}

.status-confirmed {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.status-cancelled,
.status-declined {
  color: var(--muted);
  text-decoration: line-through;
}

.booking-card {
  transition: border-color 0.2s, box-shadow 0.25s;
}

.booking-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent), 0 8px 30px rgba(232, 200, 153, 0.25);
}

.booking-card.is-inactive {
  opacity: 0.6;
}

.booking-service {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.85rem;
}

.booking-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.booking-details dt {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.booking-details dd {
  margin: 0;
  font-weight: 600;
}

.booking-allergy {
  background: rgba(232, 200, 153, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.booking-message {
  color: var(--ink);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.85rem;
}

/* Admin booking-card reference photos (Phase 4) — thumbnails reuse the
   booking page's own .photo-preview square (width/height/radius/overflow);
   .booking-photo-thumb resets the <button>-specific chrome .photo-preview
   never needed when it was just a <div>. */
.booking-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.booking-photo-thumb {
  display: block;
  padding: 0;
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color 0.15s;
}

.booking-photo-thumb:hover:not(:disabled) {
  border-color: var(--accent);
}

.booking-photo-thumb:disabled {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Decline-reason modal (Phase 6) */
.decline-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.decline-modal-card h3 {
  margin-top: 0;
}

.decline-modal-card textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 0.5rem;
  resize: vertical;
}

.decline-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Booking actions + calendar sync status (Phase 5) */
.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.booking-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto; /* keep actions to the right when a badge sits alongside */
}

/* Compact size modifier for the existing .btn / .btn-ghost, so booking-card
   actions don't dominate the card the way the full-size booking buttons do. */
.btn-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
}

.gcal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.gcal-ok {
  color: #9cc79f;
  border-color: rgba(156, 199, 159, 0.4);
}

.gcal-warn {
  color: #e6b877;
  border-color: rgba(230, 184, 119, 0.45);
}

.gcal-muted {
  color: var(--muted);
}

@media (max-width: 600px) {
  .wh-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-back-link {
    margin-left: 0;
  }
}

/* ---- Utility --------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2rem;
}
