:root {
  --color-cream: #FAF6EE;
  --color-cream-dark: #F1E7D6;
  --color-brown-50: #F5EEE6;
  --color-brown-100: #E8DBC9;
  --color-brown-200: #D3BB9C;
  --color-brown-300: #BC9A75;
  --color-brown-400: #A17F5B;
  --color-brown-500: #8A6B4C;
  --color-brown-600: #6E5138;
  --color-brown-700: #614735;
  --color-brown-800: #3A2A1E;
  --color-brown-900: #2A1D14;
  --color-accent: #C89B7B;
  --color-star: #C89B7B;
  --color-text: #8A6B4C;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-brown-900);
}

.font-display { font-family: var(--font-display); }

.icon-svg { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.star-svg { fill: var(--color-star); color: var(--color-star); }

::selection { background-color: #C89B7B; color: #fff; }

/* ---- simple fade/slide animation used for the service detail swap ---- */
.fade-in {
  animation: fadeIn 0.35s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-out {
  animation: fadeOut 0.2s ease both;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---- scroll-to-top button ---- */
#scrollTopBtn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ---- admin edit mode ---- */
.editable {
  border-radius: 4px;
  outline: 1px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s ease, background-color 0.15s ease;
}
body.edit-mode .editable:hover {
  outline-color: #C89B7B;
  background-color: rgba(200, 155, 123, 0.08);
  cursor: text;
}
body.edit-mode .editable[contenteditable="true"]:focus {
  outline: 2px solid #C89B7B;
  background-color: #fff;
}
body.edit-mode .editable-img {
  position: relative;
  cursor: pointer;
}
body.edit-mode .editable-img::after {
  content: 'Změnit fotku (URL nebo soubor)';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 42, 30, 0);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  border-radius: inherit;
}
body.edit-mode .editable-img:hover::after {
  opacity: 1;
  background: rgba(58, 42, 30, 0.45);
}

#adminModal, #adminToolbar { font-family: 'Inter', system-ui, sans-serif; }

/* ---- floating text-format toolbar (Word-like) ---- */
#textToolbar {
  position: fixed;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--color-brown-900);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
#textToolbar.show { display: flex; }
#textToolbar button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}
#textToolbar button:hover { background: rgba(255,255,255,0.15); }
#textToolbar button.active { background: var(--color-accent); color: var(--color-brown-900); }
#textToolbar select {
  height: 28px;
  border-radius: 6px;
  border: none;
  font-size: 11px;
  padding: 0 4px;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ---- image edit popover ---- */
#imageEditPopover {
  display: none;
}
#imageEditPopover.show { display: flex; }
