/* =========================================================================
   Complex Ben — Sistem Gestionare Rezervări
   Stylesheet principal
   ========================================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
input, textarea, select { font-size: 16px; } /* previne zoom-ul iOS la focus */
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.no-scroll { overflow: hidden !important; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Paleta principală — Hospitality Luxe */
  --c-cream:        #fbf8f3;
  --c-cream-2:      #f4efe7;
  --c-cream-3:      #ebe4d6;
  --c-paper:        #ffffff;
  --c-ink:          #1a2826;     /* verde-petrol foarte închis */
  --c-ink-2:        #2c3e3a;
  --c-ink-soft:     #4a5d59;
  --c-muted:        #7a8b87;
  --c-line:         #d9d2c4;
  --c-line-soft:    #ebe4d6;

  --c-gold:         #b89759;
  --c-gold-soft:    #d9c08a;
  --c-gold-dark:    #8e7340;

  /* Accent „lacuri sărate” (Ocna Sibiului) — folosit doar pe pagina publică */
  --c-lake:         #1f6f78;
  --c-lake-soft:    #5bb3bd;
  --c-lake-tint:    #e9f3f2;

  --c-success:      #1e7d56;
  --c-warning:      #c87f20;
  --c-danger:       #b1483b;
  --c-info:         #3b6db8;

  /* Status colors pentru tag-uri și rezervări */
  --c-tag-advance:  #3b82f6;
  --c-tag-paid:     #10b981;
  --c-tag-missing:  #f59e0b;
  --c-tag-cancelled:#ef4444;
  --c-tag-checkin:  #8b5cf6;

  /* Tipografie */
  --font-display: 'Fraunces', 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spațiere */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;

  /* Layout */
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --timeline-room-col-w: 220px;
  --timeline-day-w: 60px;
  --timeline-day-h: 64px;
  --timeline-header-h: 72px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 40, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 40, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 40, 38, 0.15);
  --shadow-xl: 0 24px 60px rgba(26, 40, 38, 0.22);

  /* Tranziții */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-cream);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(184, 151, 89, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(30, 125, 86, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: var(--c-ink);
  color: var(--c-cream);
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid rgba(217, 192, 138, 0.1);
  position: relative;
  z-index: 10;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold-soft), transparent);
  opacity: 0.3;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(217, 192, 138, 0.12);
}

.sidebar__logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.sidebar__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-cream);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sidebar__subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-gold-soft);
  margin-top: 4px;
  font-weight: 500;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  color: rgba(251, 248, 243, 0.7);
  font-weight: 500;
  font-size: 14px;
  transition: background var(--t-fast), color var(--t-fast);
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: rgba(217, 192, 138, 0.08);
  color: var(--c-cream);
}

.nav-item.is-active {
  background: rgba(217, 192, 138, 0.14);
  color: var(--c-gold-soft);
}

.nav-item.is-active svg { color: var(--c-gold); }

.sidebar__footer {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(217, 192, 138, 0.12);
}

.sidebar__legend-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-gold-soft);
  margin-bottom: var(--s-3);
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  color: rgba(251, 248, 243, 0.75);
  padding: var(--s-1) 0;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- APP MAIN ---------- */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---------- TOPBAR ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 var(--s-6);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.topbar__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}

.topbar__menu-btn:hover { background: var(--c-cream-2); }

.topbar__search {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 0 var(--s-4);
  height: 42px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.topbar__search:focus-within {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 89, 0.12);
}

.topbar__search svg { color: var(--c-muted); flex-shrink: 0; }

.topbar__search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 14px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 20;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  border-bottom: 1px solid var(--c-line-soft);
  transition: background var(--t-fast);
}

.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: var(--c-cream); }

.search-result-item__name {
  font-weight: 600;
  color: var(--c-ink);
}

.search-result-item__meta {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 2px;
}

.search-result-empty {
  padding: var(--s-5);
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
}

.topbar__actions {
  display: flex;
  gap: var(--s-3);
  margin-left: auto;
  align-items: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-5);
  height: 40px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-ink);
  color: var(--c-cream);
}

.btn--primary:hover {
  background: var(--c-ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}

.btn--ghost:hover {
  background: var(--c-cream-2);
  border-color: var(--c-ink-soft);
}

.btn--accent {
  background: var(--c-gold);
  color: var(--c-paper);
  border: 1px solid var(--c-gold);
}

.btn--accent:hover {
  background: var(--c-gold-dark);
  transform: translateY(-1px);
}

.btn--danger {
  background: var(--c-danger);
  color: var(--c-paper);
}

.btn--danger:hover {
  background: #963d32;
}

.btn--whatsapp {
  background: #25d366;
  color: var(--c-paper);
}

.btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

.btn--icon {
  padding: 0;
  width: 40px;
  justify-content: center;
}

.btn--sm {
  height: 32px;
  padding: 0 var(--s-3);
  font-size: 12px;
}

/* ---------- VIEWS ---------- */
.view {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.view.is-active { display: flex; }

.view__header {
  padding: var(--s-6) var(--s-7);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--s-4);
  border-bottom: 1px solid var(--c-line-soft);
}

.view__title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.view__subtitle {
  color: var(--c-muted);
  margin-top: var(--s-1);
}

.view__filters select {
  height: 40px;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  border-radius: var(--r-md);
  padding: 0 var(--s-4);
  font-size: 13px;
  cursor: pointer;
}

/* ---------- TIMELINE TOOLBAR ---------- */
/* ===== TOOLBAR CALENDAR: bara compactă cu un singur buton ===== */
.timeline-toolbar {
  padding: var(--s-3) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line-soft);
  position: relative;
  flex-shrink: 0;
}

.cal-month-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.cal-month-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  letter-spacing: 0.02em;
}

/* ===== MODAL MIC DE ALES LUNA ===== */
.cal-month-modal {
  position: absolute;
  top: calc(100% + 6px);
  left: var(--s-4);
  z-index: 500;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  width: 220px;
  animation: fadeSlideDown 0.15s ease;
}
.cal-month-modal[hidden] { display: none !important; }

.cal-month-modal__inner { padding: 14px; }

.cal-month-modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month-modal__year {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
}

.cal-month-modal__arrow {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--c-ink-soft);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.cal-month-modal__arrow:hover { background: var(--c-cream-2); }

.cal-month-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cal-picker-month {
  background: var(--c-cream-2);
  border: 1px solid var(--c-line-soft);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  text-align: center;
}
.cal-picker-month:hover { background: var(--c-lake, #1f6f78); color: #fff; }
.cal-picker-month.is-current { background: var(--c-lake, #1f6f78); color: #fff; border-color: var(--c-lake, #1f6f78); }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timeline-toolbar__left {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.timeline-toolbar__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-left: var(--s-4);
  letter-spacing: -0.01em;
  color: var(--c-ink);
  text-transform: capitalize;
}

.timeline-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.timeline-toolbar__range {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--c-ink-soft);
}

.timeline-toolbar__range select {
  height: 36px;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  border-radius: var(--r-md);
  padding: 0 var(--s-3);
  cursor: pointer;
  font-size: 13px;
}

/* ---------- TIMELINE GRID ---------- */
.timeline-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  background: var(--c-paper);
  position: relative;

  width: 100vw;
}

.timeline {
  position: relative;
  display: block;
  width: max-content;
  min-width: 100%;
}

/* O „linie” = etichetă cameră (sticky stânga) + bandă de zile */
.timeline__line {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

/* Cap de tabel - Săptămâni & Zile */
.timeline__header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--c-cream);
  border-bottom: 2px solid var(--c-line);
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

.timeline__corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  flex: 0 0 var(--timeline-room-col-w);
  width: var(--timeline-room-col-w);
  background: var(--c-cream);
  border-right: 2px solid var(--c-line);
  border-bottom: 2px solid var(--c-line);
  height: var(--timeline-header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--s-5);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline__days {
  flex: 0 0 auto;
  background: var(--c-cream);
  border-bottom: 2px solid var(--c-line);
  height: var(--timeline-header-h);
  display: flex;
  flex-direction: column;
}

.timeline__months-row {
  display: flex;
  height: 28px;
  border-bottom: 1px solid var(--c-line-soft);
}

.timeline__month-cell {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-soft);
  padding: 6px var(--s-3);
  border-right: 1px solid var(--c-line-soft);
  background: var(--c-cream-2);
  white-space: nowrap;
  overflow: hidden;
}

.timeline__days-row {
  display: flex;
  flex: 1 1 auto;
}

.timeline__day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  font-size: 12px;
  color: var(--c-ink-soft);
  border-right: 1px solid var(--c-line-soft);
  transition: background var(--t-fast);
}

.timeline__day-cell--weekend {
  background: rgba(184, 151, 89, 0.06);
}

.timeline__day-cell--today {
  background: var(--c-ink);
  color: var(--c-cream);
}

.timeline__day-cell--today .timeline__day-name { color: var(--c-gold-soft); }

.timeline__day-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.timeline__day-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}

/* Coloana camere */
.timeline__room {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: 0 0 var(--timeline-room-col-w);
  width: var(--timeline-room-col-w);
  background: var(--c-paper);
  border-right: 2px solid var(--c-line);
  border-bottom: 1px solid var(--c-line-soft);
  height: var(--timeline-day-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--s-5);
  cursor: pointer;
  transition: background var(--t-fast);
}

.timeline__room:hover { background: var(--c-cream); }

.timeline__room-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink);
}

.timeline__room-meta {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 2px;
  display: flex;
  gap: var(--s-3);
}

/* Rândul de celule pe cameră */
.timeline__row {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--c-line-soft);
  height: var(--timeline-day-h);
}

.timeline__row.is-drag-over {
  background: rgba(184, 151, 89, 0.08);
}

.timeline__cell {
  height: 100%;
  border-right: 1px solid var(--c-line-soft);
  cursor: pointer;
  transition: background var(--t-fast);
  position: relative;
}

.timeline__cell:hover {
  background: rgba(184, 151, 89, 0.08);
}

.timeline__cell--weekend {
  background: rgba(184, 151, 89, 0.04);
}

.timeline__cell--today {
  background: rgba(30, 125, 86, 0.06);
}

.timeline__cell--past {
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(122, 139, 135, 0.04) 6px,
    rgba(122, 139, 135, 0.04) 12px
  );
}

/* Bara de rezervare */
.reservation-bar {
  position: absolute;
  height: calc(var(--timeline-day-h) - 12px);
  top: 6px;
  border-radius: var(--r-sm);
  padding: 6px var(--s-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
  overflow: hidden;
  z-index: 2;
  color: #111;
}

.reservation-bar:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.reservation-bar.is-dragging {
  cursor: grabbing;
  opacity: 0.5;
  z-index: 100;
}

.reservation-bar.is-cancelled {
  opacity: 0.55;
  background: repeating-linear-gradient(
    45deg,
    var(--c-tag-cancelled) 0,
    var(--c-tag-cancelled) 6px,
    #c93026 6px,
    #c93026 12px
  ) !important;
  text-decoration: line-through;
}

.reservation-bar__name {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reservation-bar__meta {
  font-size: 10px;
  opacity: 0.9;
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-top: 2px;
  font-weight: 500;
}

.reservation-bar__tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.reservation-bar__tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.reservation-bar__backup-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 1.5px solid white;
}

/* Timeline empty state */
.timeline-empty {
  padding: var(--s-10);
  text-align: center;
  color: var(--c-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
/* Important: când are atributul [hidden] trebuie să dispară de tot (altfel acoperă calendarul) */
.timeline-empty[hidden] { display: none !important; }

.timeline-empty svg { color: var(--c-line); }

.timeline-empty h3 {
  font-size: 22px;
  color: var(--c-ink);
  margin-top: var(--s-3);
}

/* ---------- ROOMS VIEW ---------- */
.rooms-grid {
  padding: var(--s-7);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
  overflow-y: auto;
}

.room-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--c-gold));
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-line);
}

.room-card__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-1);
}

.room-card__type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold-dark);
  font-weight: 600;
  margin-bottom: var(--s-4);
}

.room-card__details {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line-soft);
}

.room-card__detail {
  display: flex;
  flex-direction: column;
}

.room-card__detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.room-card__detail-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--c-ink);
}

/* ---------- RESERVATIONS TABLE ---------- */
.reservations-table-wrap {
  flex: 1;
  overflow: auto;
  padding: var(--s-6) var(--s-7);
}

.reservations-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.reservations-table thead {
  background: var(--c-cream-2);
}

.reservations-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--c-ink-soft);
  padding: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}

.reservations-table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--c-line-soft);
  font-size: 13px;
  vertical-align: middle;
}

.reservations-table tbody tr:hover {
  background: var(--c-cream);
}

.reservations-table tbody tr {
  cursor: pointer;
}

.reservations-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge--upcoming { background: rgba(59, 130, 246, 0.12); color: #1e4a9c; }
.status-badge--current { background: rgba(16, 185, 129, 0.12); color: var(--c-success); }
.status-badge--past { background: rgba(122, 139, 135, 0.15); color: var(--c-muted); }
.status-badge--cancelled { background: rgba(239, 68, 68, 0.12); color: var(--c-danger); }

.table-empty {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  color: var(--c-muted);
}

/* ---------- STATS ---------- */
.stats-grid {
  padding: var(--s-7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
  overflow-y: auto;
}

.stat-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  background: var(--stat-color, var(--c-gold));
  color: white;
}

.stat-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-weight: 600;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  margin-top: var(--s-2);
  letter-spacing: -0.02em;
}

.stat-card__sub {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: var(--s-2);
}

/* ---------- SETTINGS ---------- */
.settings-grid {
  padding: var(--s-7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--s-5);
  overflow-y: auto;
  align-content: start;
}

.settings-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.settings-card h3 {
  font-size: 18px;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line-soft);
}

.settings-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.settings-card label input,
.settings-card label textarea,
.settings-card label select {
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-ink);
}

.settings-card label textarea {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  font-size: 13px;
  resize: vertical;
  min-height: 140px;
}

.settings-toggle {
  flex-direction: row !important;
  align-items: center;
  gap: var(--s-3) !important;
}

.settings-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--c-gold);
}

.settings-card--danger {
  border-color: rgba(177, 72, 59, 0.3);
  background: rgba(177, 72, 59, 0.03);
}

.settings-card--danger h3 { color: var(--c-danger); }

.hint {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: var(--s-2);
  line-height: 1.5;
}

.hint code {
  background: var(--c-cream-3);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 11px;
  color: var(--c-ink);
}

/* ---------- MODALS ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  animation: modalFadeIn 200ms ease;
}

.modal[hidden] { display: none; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 40, 38, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: var(--c-paper);
  border-radius: var(--r-xl);
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-line);
  overflow: hidden;
  animation: modalSlideIn 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal__dialog--small { max-width: 480px; }
.modal__dialog--large { max-width: 880px; }

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--c-line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-cream);
}

.modal__header h2 {
  font-size: 22px;
  font-weight: 500;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: all var(--t-fast);
}

.modal__close:hover {
  background: var(--c-cream-3);
  color: var(--c-ink);
}

.modal__body {
  padding: var(--s-6);
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.modal__footer-left,
.modal__footer-right {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ---------- FORMS ---------- */
.form-section {
  margin-bottom: var(--s-6);
}

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

.form-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold-dark);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-line-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field em {
  color: var(--c-danger);
  font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--c-gold);
  background: var(--c-paper);
  box-shadow: 0 0 0 3px rgba(184, 151, 89, 0.12);
}

.form-field input[type="color"] {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}

.form-field textarea {
  resize: vertical;
  min-height: 60px;
}

.form-error {
  background: rgba(177, 72, 59, 0.08);
  border: 1px solid rgba(177, 72, 59, 0.25);
  color: var(--c-danger);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  margin-top: var(--s-3);
}

.color-picker-wrap {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

.color-picker-wrap input[type="color"] { flex-shrink: 0; width: 60px; }

.color-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.color-preset {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--c-line);
  transition: transform var(--t-fast);
}

.color-preset:hover { transform: scale(1.15); }
.color-preset.is-active { box-shadow: 0 0 0 2px var(--c-ink); }

/* ---------- TAGS ---------- */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3);
  min-height: 56px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: all var(--t-fast);
  text-transform: none;
  letter-spacing: 0;
}

.tag-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.tag-pill.is-selected {
  color: white;
  border-color: transparent;
}

.tag-pill.is-selected[data-tag="Plată în avans"] { background: var(--c-tag-advance); }
.tag-pill.is-selected[data-tag="Plată lipsă"] { background: var(--c-tag-missing); }
.tag-pill.is-selected[data-tag="Achitat integral"] { background: var(--c-tag-paid); }
.tag-pill.is-selected[data-tag="Anulat"] { background: var(--c-tag-cancelled); }
.tag-pill.is-selected[data-tag="Check-in efectuat"] { background: var(--c-tag-checkin); }

.tag-pill .tag-remove {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  margin-left: 4px;
}

.tags-add {
  display: flex;
  gap: var(--s-2);
}

.tags-add input {
  flex: 1;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 13px;
}

.tags-add input:focus {
  outline: 0;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 89, 0.12);
}

/* ---------- PRICING ---------- */
.pricing-section {
  background: var(--c-cream);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.pricing-card {
  background: var(--c-paper);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
  border: 1px solid var(--c-line-soft);
}

.pricing-card--accent {
  background: var(--c-ink);
  border-color: var(--c-ink);
}

.pricing-card--accent .pricing-card__label { color: var(--c-gold-soft); }
.pricing-card--accent .pricing-card__value { color: var(--c-paper); }

.pricing-card__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin-bottom: var(--s-2);
}

.pricing-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
}

/* ---------- TOASTS ---------- */
.toast-container {
  position: fixed;
  top: var(--s-6);
  right: var(--s-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  pointer-events: none;
}

.toast {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--c-gold);
}

.toast--success { border-left-color: var(--c-success); }
.toast--error { border-left-color: var(--c-danger); }
.toast--info { border-left-color: var(--c-info); }
.toast--warning { border-left-color: var(--c-warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.is-leaving {
  animation: toastOut 200ms ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

.toast__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.toast--success .toast__icon { background: var(--c-success); }
.toast--error .toast__icon { background: var(--c-danger); }
.toast--info .toast__icon { background: var(--c-info); }
.toast--warning .toast__icon { background: var(--c-warning); }

.toast__content { flex: 1; }
.toast__title { font-weight: 700; font-size: 13px; }
.toast__message { font-size: 12px; color: var(--c-ink-soft); margin-top: 2px; }

/* ---------- ROOM CARD ACTIONS ---------- */
.room-card__actions {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.room-card:hover .room-card__actions { opacity: 1; }

.room-card__action {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-soft);
}

.room-card__action:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}

/* Action buttons in table */
.table-actions {
  display: flex;
  gap: 4px;
}

.table-action {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.table-action:hover {
  background: var(--c-cream-2);
  color: var(--c-ink);
  border-color: var(--c-line);
}

.table-action--whatsapp:hover { color: #25d366; }
.table-action--delete:hover { color: var(--c-danger); }

/* =========================================================================
   RESPONSIVE & MOBILE — Optimizat pentru telefoane și tablete
   ========================================================================= */

/* ---------- Sidebar mobil cu close button (ascuns pe desktop) ---------- */
.sidebar__close {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--c-cream);
  background: rgba(217, 192, 138, 0.08);
  transition: background var(--t-fast);
}
.sidebar__close:hover { background: rgba(217, 192, 138, 0.18); }

/* ---------- Backdrop pentru sidebar mobil ---------- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 40, 38, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--t-base);
}
.sidebar-backdrop.is-visible { opacity: 1; }

/* ---------- Search clear button ---------- */
.topbar__search-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-cream-2);
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar__search-clear:hover { background: var(--c-cream-3); color: var(--c-ink); }

/* ---------- FAB — Floating Action Button (mobil) ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-cream);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 40, 38, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: transform var(--t-fast), background var(--t-fast);
}
.fab:hover { background: var(--c-ink-2); }
.fab:active { transform: scale(0.93); }
.fab[hidden] { display: none !important; }

/* ---------- BREAKPOINT: tablete & ecrane mici (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  body {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform var(--t-slow);
    z-index: 100;
    padding-top: calc(var(--s-6) + env(safe-area-inset-top, 0px));
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__close { display: inline-flex; }
  .topbar__menu-btn { display: inline-flex; }
}

/* ---------- BREAKPOINT: telefoane (≤ 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --topbar-h: 56px;
    --timeline-day-w: 52px;
    --timeline-day-h: 60px;
    --timeline-room-col-w: 140px;
    --timeline-header-h: 68px;
  }

  /* Topbar mai compact */
  .topbar {
    padding: 0 var(--s-3);
    gap: var(--s-2);
    height: var(--topbar-h);
  }
  .topbar__search {
    height: 40px;
    padding: 0 var(--s-3);
  }
  .topbar__search input {
    font-size: 16px; /* anti-zoom iOS */
  }
  .topbar__actions { gap: var(--s-1); }

  /* Butoanele cu text devin doar icon */
  .btn--icon-only-mobile {
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    justify-content: center;
  }
  .btn--icon-only-mobile span {
    display: none;
  }
  /* Ascunde butonul "Rezervare Nouă" din topbar — FAB-ul are rolul lui */
  #newReservationBtn.btn--icon-only-mobile { display: none; }

  /* View headers mai compacte */
  .view__header {
    padding: var(--s-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }
  .view__header .btn { width: 100%; justify-content: center; }
  .view__title { font-size: 22px; }
  .view__subtitle { font-size: 13px; }

  /* Timeline: scroll mai fluid pe mobil */
  .timeline-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  /* Camera column mai îngustă pe mobil */
  .timeline__room {
    padding: var(--s-2) var(--s-3);
  }
  .timeline__room-name { font-size: 13px; }
  .timeline__room-meta { font-size: 11px; }

  /* Reservation bar mai accesibilă pe touch */
  .reservation-bar {
    font-size: 11px;
    padding: 4px 6px;
  }
  .reservation-bar__name { font-size: 12px; }
  .reservation-bar__meta { font-size: 10px; }
  .reservation-bar__tags { display: none; } /* păstrăm dot-uri colorate doar */

  /* Form-grid pe o singură coloană */
  .form-grid { grid-template-columns: 1fr; gap: var(--s-3); }

  /* Pricing pe 2x2 pe mobil */
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .pricing-card { padding: var(--s-3); }
  .pricing-card__value { font-size: 18px; }

  /* Modale full-screen pe mobil */
  .modal__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .modal__dialog--small {
    height: auto;
    max-height: 90vh;
    margin: auto var(--s-3);
    border-radius: var(--r-lg);
    width: calc(100% - var(--s-6));
  }
  .modal__header {
    padding: var(--s-4);
    position: sticky;
    top: 0;
    background: var(--c-paper);
    z-index: 5;
    padding-top: calc(var(--s-4) + env(safe-area-inset-top, 0px));
  }
  .modal__body {
    padding: var(--s-4);
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal__footer {
    padding: var(--s-3);
    flex-direction: column;
    gap: var(--s-2);
    border-top: 1px solid var(--c-line);
    position: sticky;
    bottom: 0;
    background: var(--c-paper);
    padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  }
  .modal__footer-left, .modal__footer-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-2);
  }
  .modal__footer .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    min-height: 44px;
  }
  .modal__footer .btn span { display: inline; }
  .modal__footer .btn--whatsapp { flex-basis: 100%; }

  /* Form sections mai compacte */
  .form-section { padding: var(--s-3); margin-bottom: var(--s-3); }
  .form-section__title { font-size: 13px; }

  /* Rooms grid pe mobil — o coloană */
  .rooms-grid { grid-template-columns: 1fr; gap: var(--s-3); }

  /* Reservations table → carduri pe mobil */
  .reservations-table-wrap {
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .reservations-table {
    display: block;
  }
  .reservations-table thead { display: none; }
  .reservations-table tbody { display: block; }
  .reservations-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-2);
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: var(--s-3);
    margin-bottom: var(--s-3);
    box-shadow: var(--shadow-sm);
  }
  .reservations-table tr:hover { background: var(--c-paper); }
  .reservations-table td {
    display: block;
    border: 0;
    padding: 2px 0;
    font-size: 13px;
  }
  .reservations-table td:before {
    content: attr(data-label);
    display: inline-block;
    font-weight: 600;
    color: var(--c-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: var(--s-2);
    min-width: 70px;
  }
  .reservations-table td.reservations-table__actions {
    grid-row: 1 / 9;
    grid-column: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    align-self: start;
  }
  .reservations-table td.reservations-table__actions::before { display: none; }
  .reservations-table .table-action {
    width: 38px;
    height: 38px;
  }

  /* Stats grid: 2 coloane pe mobil */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .stats-card { padding: var(--s-4); }
  .stats-card__value { font-size: 22px; }
  .stats-card__label { font-size: 11px; }

  /* Settings: o singură coloană */
  .settings-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .settings-card { padding: var(--s-4); }

  /* Search results full-width pe mobil */
  .search-results {
    left: var(--s-3);
    right: var(--s-3);
    max-height: 60vh;
  }

  /* FAB vizibil pe mobil */
  .fab { display: inline-flex; }

  /* Confirm modal mai compact pe mobil */
  .modal__dialog--small .modal__body { padding: var(--s-4); }

  /* Tag-uri mai mari (touch friendly) */
  .tag-pill {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Color picker mai mare pe mobil */
  .color-presets__swatch {
    width: 36px;
    height: 36px;
  }
}

/* ---------- BREAKPOINT: telefoane mici (≤ 420px) ---------- */
@media (max-width: 420px) {
  :root {
    --timeline-day-w: 46px;
    --timeline-room-col-w: 120px;
  }
  .topbar { gap: var(--s-1); padding: 0 var(--s-2); }
  .topbar__search { padding: 0 var(--s-2); }
  .stats-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .view__title { font-size: 19px; }
  .btn { padding: 10px 14px; min-height: 40px; }
  .modal__header h2 { font-size: 17px; }

  /* Filter și range select mai compacte */
  .view__filters select,
  .timeline-toolbar__range select { font-size: 13px; padding: 6px 8px; }
}

/* ---------- Touch device: feedback vizual mai bun ---------- */
@media (hover: none) and (pointer: coarse) {
  .nav-item:hover,
  .btn:hover,
  .topbar__search-clear:hover {
    background: inherit;
  }
  /* Active state mai vizibil pentru tap */
  .btn:active { transform: scale(0.97); }
  .nav-item:active { background: rgba(217, 192, 138, 0.14); }
  .reservation-bar:active { transform: scale(1.02); }

  /* Minim 44px pentru toate țintele tactile */
  .btn { min-height: 44px; }
  .btn--icon { min-width: 44px; min-height: 44px; }
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="number"], input[type="date"], input[type="search"],
  textarea, select {
    min-height: 44px;
    /* 16px obligatoriu pe touch: sub 16px, iOS Safari face zoom automat la focus.
       Suprascrie cele 14px/13px din .form-field și .settings-card. */
    font-size: 16px;
  }
}

/* ---------- Preferință utilizator: reduce mișcările ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- SCROLLBARS ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-ink-soft);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ---------- UTILITIES ---------- */
.text-muted { color: var(--c-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: 'SF Mono', 'Monaco', monospace; }

/* =========================================================================
   FEATURES NOI: Dashboard Astăzi, Taxă, Chitanță, Dark mode, Draft, Onboarding
   ========================================================================= */

/* ---------- DASHBOARD „ASTĂZI" ---------- */
.today-wrap {
  padding: var(--s-5);
  max-width: 1400px;
  margin: 0 auto;
}

.today-header {
  margin-bottom: var(--s-6);
}
.today-greeting {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-1);
}
.today-date {
  color: var(--c-muted);
  font-size: 14px;
  text-transform: capitalize;
}

.today-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.today-stat {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.today-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-gold);
}
.today-stat--arrivals::before { background: #10b981; }
.today-stat--departures::before { background: #f59e0b; }
.today-stat--inhouse::before { background: #3b82f6; }
.today-stat--revenue::before { background: var(--c-gold); }

.today-stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.today-stat__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.today-stat__sub {
  margin-top: var(--s-2);
  font-size: 12px;
  color: var(--c-muted);
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.today-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.today-card__header {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-cream);
}
.today-card__header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.today-card__sub {
  margin-top: var(--s-1);
  font-size: 12px;
  color: var(--c-muted);
}
.today-card__body {
  padding: var(--s-3);
  flex: 1;
  max-height: 600px;
  overflow-y: auto;
}
.today-card--reminders { grid-column: 1 / -1; }

.today-empty {
  padding: var(--s-5);
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  font-style: italic;
}
.today-empty--sm { padding: var(--s-3); font-size: 12px; }

.today-res {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  border-left: 3px solid #3b82f6;
  background: var(--c-cream);
  margin-bottom: var(--s-2);
  cursor: pointer;
  transition: background var(--t-fast);
}
.today-res:hover { background: var(--c-cream-2); }
.today-res__main { flex: 1; min-width: 0; }
.today-res__name {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 14px;
  margin-bottom: 2px;
}
.today-res__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--c-muted);
}
.today-res__phone {
  font-size: 12px;
  color: var(--c-ink-soft);
  margin-top: 2px;
}
.today-res__actions {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}

.today-section {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--c-line-soft);
}
.today-section:first-child { border-top: 0; padding-top: 0; }
.today-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-soft);
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reminder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) var(--s-3);
  background: var(--c-cream);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-1);
}
.reminder-row.is-sent { opacity: 0.55; }
.reminder-row__info { display: flex; flex-direction: column; }
.reminder-row__when {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 2px;
}

.btn--sm {
  padding: 6px 10px;
  font-size: 12px;
  min-height: 32px;
}

/* ---------- TAX REPORT VIEW ---------- */
.tax-wrap {
  padding: var(--s-5);
  max-width: 1400px;
  margin: 0 auto;
}
.tax-toolbar {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}
.tax-toolbar label { display: flex; gap: var(--s-2); align-items: center; font-size: 14px; }
.tax-toolbar select { padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-paper); }
.tax-toolbar__info { font-size: 13px; color: var(--c-muted); margin-left: auto; }
.tax-toolbar__info strong { color: var(--c-gold-dark); }

.tax-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.tax-summary__card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-sm);
}
.tax-summary__card--accent {
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2));
  border-color: var(--c-ink);
  color: var(--c-cream);
}
.tax-summary__card--accent .tax-summary__label { color: var(--c-gold-soft); }
.tax-summary__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.tax-summary__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tax-table-wrap {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.tax-print-header { margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: 2px solid var(--c-gold); }
.tax-print-header h2 { font-family: var(--font-display); font-size: 20px; color: var(--c-ink); }
.tax-print-header p { font-size: 13px; color: var(--c-muted); margin-top: var(--s-1); }

.tax-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tax-table th, .tax-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line-soft); }
.tax-table th { background: var(--c-cream); font-weight: 600; color: var(--c-ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.tax-table tr:hover { background: var(--c-cream); }
.tax-table__total { background: var(--c-cream-2) !important; font-weight: 600; }
.tax-table__total td { border-bottom: 0; border-top: 2px solid var(--c-gold); }

.empty-state {
  background: var(--c-paper);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-9);
  text-align: center;
  color: var(--c-muted);
}
.empty-state h3 { font-family: var(--font-display); font-size: 20px; color: var(--c-ink); margin-bottom: var(--s-2); }
.empty-state a { color: var(--c-gold-dark); text-decoration: underline; }

/* ---------- RECEIPT (Chitanță) ---------- */
.receipt-modal-body { padding: var(--s-5) !important; background: var(--c-cream); }
.receipt {
  background: white;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  color: var(--c-ink);
}
.receipt__header {
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 2px solid var(--c-gold);
  margin-bottom: var(--s-5);
}
.receipt__header h1 { font-family: var(--font-display); font-size: 24px; color: var(--c-ink); margin-bottom: var(--s-1); letter-spacing: -0.02em; }
.receipt__header p { font-size: 12px; color: var(--c-ink-soft); margin-bottom: 2px; }
.receipt__doc-info { text-align: right; }
.receipt__doc-info h2 { font-family: var(--font-display); font-size: 32px; color: var(--c-gold-dark); letter-spacing: 0.1em; }
.receipt__doc-info p { font-size: 13px; margin-top: var(--s-1); }

.receipt__guest, .receipt__details, .receipt__notes {
  margin-bottom: var(--s-5);
}
.receipt__guest h3, .receipt__details h3 {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.receipt__guest p { font-size: 14px; margin-bottom: 2px; }

.receipt__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.receipt__table th, .receipt__table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-line); }
.receipt__table th { background: var(--c-cream); font-weight: 600; }
.receipt__table tfoot td { text-align: right; padding: 8px 12px; border-bottom: 0; }
.receipt__total td { padding-top: 14px !important; border-top: 2px solid var(--c-gold) !important; font-size: 16px; }

.receipt__notes {
  background: var(--c-cream);
  border-left: 3px solid var(--c-gold);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--c-ink-soft);
}

.receipt__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  margin-top: var(--s-9);
  padding-top: var(--s-6);
}
.receipt__sig { text-align: center; font-size: 13px; }
.receipt__sig-line {
  height: 1px;
  background: var(--c-ink);
  margin: var(--s-7) 0 var(--s-2);
}
.receipt__sig p:first-child { color: var(--c-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.receipt__sig p:last-child { font-weight: 600; }

.receipt__thanks {
  text-align: center;
  margin-top: var(--s-6);
  font-family: var(--font-display);
  color: var(--c-gold-dark);
  font-style: italic;
}

/* ---------- DRAFT BANNER ---------- */
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  background: linear-gradient(135deg, #fff8e7, #fff2d4);
  border: 1px solid var(--c-gold-soft);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}
.draft-banner__content { display: flex; align-items: center; gap: var(--s-3); }
.draft-banner__icon { font-size: 24px; }
.draft-banner__when { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.draft-banner__actions { display: flex; gap: var(--s-2); }

/* ---------- ONBOARDING ---------- */
.onboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 20, 0.55);
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--t-base);
}
.onboard-overlay.is-visible { opacity: 1; }
.onboard-overlay.is-leaving { opacity: 0; }

.onboard-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15, 22, 20, 0.55), 0 0 0 4px var(--c-gold);
  transition: all var(--t-slow);
  pointer-events: none;
}

.onboard-tooltip {
  position: absolute;
  background: var(--c-paper);
  color: var(--c-ink);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  max-width: 380px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-xl);
  transition: all var(--t-slow);
}
.onboard-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--c-ink);
}
.onboard-text {
  color: var(--c-ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--s-4);
}
.onboard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.onboard-progress {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 600;
}

/* ---------- THEME RADIOS ---------- */
.theme-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.theme-radio {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
}
.theme-radio:hover { background: var(--c-cream-2); }
.theme-radio input:checked + span { color: var(--c-gold-dark); font-weight: 600; }
.theme-radio:has(input:checked) { border-color: var(--c-gold); background: linear-gradient(135deg, #fff8e7, #fff2d4); }

/* ---------- TOAST ACTION BUTTON ---------- */
.toast--with-action { padding-right: var(--s-2); position: relative; overflow: hidden; }
.toast__action {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  margin-left: var(--s-2);
  transition: background var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.toast__action:hover { background: rgba(255, 255, 255, 0.35); }
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  animation: toastProgress linear forwards;
  transform-origin: left;
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  body * { visibility: hidden; }
  /* La print chitanță */
  body.printing-receipt #receiptModal,
  body.printing-receipt #receiptModal *,
  body.printing-receipt .receipt,
  body.printing-receipt .receipt * {
    visibility: visible;
  }
  body.printing-receipt #receiptModal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: white !important;
  }
  body.printing-receipt .modal__backdrop,
  body.printing-receipt .modal__header,
  body.printing-receipt .modal__footer { display: none !important; }
  body.printing-receipt .modal__dialog {
    box-shadow: none !important;
    border: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  body.printing-receipt .receipt { box-shadow: none !important; }

  /* La print element generic (ex: raport taxă) */
  body.printing-element .print-target,
  body.printing-element .print-target * { visibility: visible; }
  body.printing-element .print-target {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
  }

  @page { margin: 1.5cm; }
}

/* =========================================================================
   DARK MODE — toate variabilele se rescriu pentru tema întunecată
   ========================================================================= */
[data-theme="dark"] {
  --c-cream:        #1a2826;
  --c-cream-2:      #243634;
  --c-cream-3:      #2e4541;
  --c-paper:        #1f2f2c;
  --c-ink:          #ebe4d6;
  --c-ink-2:        #d4c8a6;
  --c-ink-soft:     #c7b88f;
  --c-muted:        #8a9b94;
  --c-line:         #3a4f4a;
  --c-line-soft:    #2c403c;

  --c-gold:         #d4b574;
  --c-gold-soft:    #e2c890;
  --c-gold-dark:    #b89759;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* Ajustări specifice pentru dark mode */
[data-theme="dark"] body { background: #0f1817; color: var(--c-ink); }
[data-theme="dark"] .sidebar { background: #0a1413; }
[data-theme="dark"] .sidebar__brand { border-bottom-color: rgba(217, 192, 138, 0.18); }
[data-theme="dark"] .topbar { background: var(--c-paper); border-bottom-color: var(--c-line); }
[data-theme="dark"] .topbar__search { background: var(--c-cream); border-color: var(--c-line); }
[data-theme="dark"] .topbar__search input { color: var(--c-ink); }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: var(--c-cream-2);
  color: var(--c-ink);
  border-color: var(--c-line);
}
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder {
  color: rgba(199, 184, 143, 0.4);
}
[data-theme="dark"] .reservation-bar { color: #111; }
[data-theme="dark"] .today-stat,
[data-theme="dark"] .today-card,
[data-theme="dark"] .tax-summary__card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .room-card,
[data-theme="dark"] .modal__dialog,
[data-theme="dark"] .tax-table-wrap,
[data-theme="dark"] .reservations-table-wrap {
  background: var(--c-paper);
  border-color: var(--c-line);
}
[data-theme="dark"] .modal__header { background: var(--c-paper); border-bottom-color: var(--c-line); }
[data-theme="dark"] .modal__footer { background: var(--c-paper); border-top-color: var(--c-line); }
[data-theme="dark"] .draft-banner {
  background: linear-gradient(135deg, #3a3520, #2e2d1d);
  border-color: var(--c-gold-dark);
}
[data-theme="dark"] .theme-radio:has(input:checked) {
  background: linear-gradient(135deg, #3a3520, #2e2d1d);
}
[data-theme="dark"] .receipt { background: var(--c-paper); }
[data-theme="dark"] .form-section { background: var(--c-cream); }
[data-theme="dark"] .pricing-card { background: var(--c-cream-2); border-color: var(--c-line); }
[data-theme="dark"] code { background: var(--c-cream-2); color: var(--c-gold-soft); }
[data-theme="dark"] .reminder-row,
[data-theme="dark"] .today-res,
[data-theme="dark"] .table-empty {
  background: var(--c-cream);
  color: var(--c-ink);
}
[data-theme="dark"] .reservations-table th { background: var(--c-cream-2); color: var(--c-ink-soft); }
[data-theme="dark"] .reservations-table tr:hover { background: var(--c-cream-2); }

/* ---------- RESPONSIVE pentru noile feature-uri ---------- */
@media (max-width: 1024px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-card--reminders { grid-column: auto; }
  .tax-summary { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .today-wrap, .tax-wrap { padding: var(--s-3); }
  .today-greeting { font-size: 24px; }
  .today-stats { grid-template-columns: repeat(2, 1fr); }
  .today-stat { padding: var(--s-3); }
  .today-stat__value { font-size: 28px; }
  .today-res { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .today-res__actions { width: 100%; }
  .today-res__actions .btn { flex: 1; justify-content: center; }
  .tax-toolbar { flex-direction: column; align-items: stretch; }
  .tax-toolbar label { width: 100%; }
  .tax-toolbar select { flex: 1; }
  .tax-toolbar__info { margin-left: 0; }
  .receipt { padding: 20px; }
  .receipt__header { flex-direction: column; gap: var(--s-3); }
  .receipt__doc-info { text-align: left; }
  .receipt__footer { grid-template-columns: 1fr; gap: var(--s-5); }
  .draft-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .draft-banner__actions { width: 100%; }
  .draft-banner__actions .btn { flex: 1; }
}

/* =========================================================================
   FIX-URI CRITICE — Scroll & Mobil
   ========================================================================= */

/* ---------- FIX 1: View content trebuie să fie scrollabil pe desktop ----------
   Bug original: wrapper-ele de conținut (today-wrap, tax-wrap, etc.) nu aveau
   overflow-y: auto, deci pe ecrane scurte conținutul era tăiat invizibil.   */
.view > .today-wrap,
.view > .tax-wrap,
.view > .rooms-grid,
.view > .reservations-table-wrap,
.view > .stats-grid,
.view > .settings-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Pentru reservations-table-wrap pe desktop, păstrăm și horizontal overflow */
.view > .reservations-table-wrap {
  overflow-x: auto;
}

/* ---------- FIX 2: Pe mobil & tabletă — scroll natural la nivel de pagină ----
   Mult mai natural decât scroll-uri imbricate într-un layout app-like.
   Topbar-ul rămâne sticky deasupra, restul scrollează ca o pagină normală. */
@media (max-width: 1024px) {
  html, body {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;   /* dvh = înălțime reală (fără bara URL pe mobil) */
    overflow-x: hidden;
    overflow-y: auto !important;
  }

  body {
    overscroll-behavior-y: contain;
    -webkit-text-size-adjust: 100%;
  }

  .app {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible !important;
  }

  /* Topbar sticky pe mobil — mereu accesibil la scroll */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Compensează notch-ul iPhone */
    padding-top: env(safe-area-inset-top, 0);
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0));
    box-shadow: 0 1px 0 var(--c-line);
  }

  /* View-urile nu mai au flex/overflow constrains — cresc natural */
  .view {
    overflow: visible !important;
    flex: none !important;
  }
  /* Calendarul ocupă toată înălțimea ecranului (mai puțin bara de sus), cu scroll intern
     pe ambele axe cu un singur deget. */
  .view--timeline {
    overflow: hidden !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top, 0px)) !important;
    max-height: none !important;
  }
  .view > .today-wrap,
  .view > .tax-wrap,
  .view > .rooms-grid,
  .view > .reservations-table-wrap,
  .view > .stats-grid,
  .view > .settings-grid {
    overflow: visible !important;
    flex: none !important;
    min-height: auto !important;
    /* Adaugă padding-bottom pentru a nu fi acoperit de FAB sau bara mobilă */
    padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Sidebar (drawer) — păstrează scroll-ul lui intern pentru meniuri lungi */
  .sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh;
    padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom, 0px));
  }

  /* Timeline: umple zona calendarului, cu scroll pe ambele axe */
  .timeline-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* FAB ridicat puțin pe mobil să nu interfereze cu conținutul */
  .fab {
    bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 6px 20px rgba(26, 40, 38, 0.35);
  }
}

/* ---------- FIX 3: Telefoane mici — ajustări fine ---------- */
@media (max-width: 480px) {
  /* Topbar și mai compact */
  .topbar { padding: 0 var(--s-2); gap: var(--s-1); }
  .topbar__search { height: 36px; padding: 0 var(--s-2); }

  /* View padding mai mic */
  .view__header { padding: var(--s-3) !important; }
  .today-wrap, .tax-wrap { padding: var(--s-3) !important; }

  /* Stats pe o singură coloană */
  .today-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .today-stat { padding: var(--s-3); }
  .today-stat__value { font-size: 22px; }

  /* Cardurile dashboard mai compacte */
  .today-card__header { padding: var(--s-3) var(--s-4); }
  .today-card__header h3 { font-size: 15px; }
  .today-card__body { padding: var(--s-2); }

  /* Reservation cards (în tabel) mai compacte */
  .today-res { padding: var(--s-2) var(--s-3); }
  .today-res__name { font-size: 13px; }
}

/* ---------- FIX 4: Înălțimi 100dvh pentru iOS Safari ---------- */
@supports (height: 100dvh) {
  .modal__dialog {
    max-height: 100dvh;
  }
}

/* ---------- FIX 5: Scroll smooth peste tot ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- FIX 6: Tap target minim 44px pe touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  .nav-item,
  .btn,
  .table-action,
  .reservation-bar,
  .room-card,
  .today-res,
  .tag-pill,
  .color-presets__swatch,
  input[type="checkbox"],
  input[type="radio"],
  select {
    min-height: 44px;
  }
  .table-action {
    min-width: 44px;
  }
  /* Excepție pentru elemente mici care nu trebuie să fie 44px */
  .color-presets__swatch { min-height: 36px; min-width: 36px; }
}

/* ---------- FIX 7: Sidebar nav scrollabil dacă are multe iteme ---------- */
.sidebar__nav {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

/* =========================================================================
   ZOOM CALENDAR + RANDARE „DE LA PRÂNZ LA PRÂNZ" (split de zi la turnover)
   ========================================================================= */
.timeline-zoom {
  display: inline-flex;
  gap: 4px;
  margin-right: var(--s-3);
}
.timeline-zoom .btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
}

/* Bara de rezervare folosește clip-path pentru diagonalele de la prânz.
   clip-path taie box-shadow, așa că folosim drop-shadow (respectă conturul). */
.reservation-bar {
  box-shadow: none;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}
.reservation-bar:hover {
  box-shadow: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.30)) brightness(1.04);
}
.reservation-bar.is-dragging {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}
.reservation-bar__name,
.reservation-bar__meta,
.reservation-bar__tags { position: relative; z-index: 1; }

/* Pe ecrane mici, calendarul rămâne utilizabil fără zoom din browser */
@media (max-width: 768px) {
  .timeline-toolbar { flex-wrap: wrap; gap: var(--s-2); }
  .timeline-toolbar__right { width: 100%; justify-content: space-between; }
  .timeline-zoom .btn--icon { width: 42px; height: 42px; } /* tap target ≥ 42px */
  /* coloana camerelor rămâne fixă (sticky) — confirmat în .timeline__room */
}
@media (max-width: 420px) {
  .timeline-toolbar__range span { display: none; } /* economisim spațiu */
}

/* =========================================================================
   CLOUD: POARTĂ AUTENTIFICARE · CHIP UTILIZATOR · CERERI · PROFIL OASPETE
   ========================================================================= */
body.cb-auth-pending .app,
body.cb-auth-pending .sidebar,
body.cb-auth-pending .fab,
body.cb-auth-pending .sidebar-backdrop { display: none !important; }
body.cb-guest .app,
body.cb-guest .sidebar,
body.cb-guest .fab { display: none !important; }

.auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #243b37, #141f1d 70%);
  padding: var(--s-5);
  padding-top: calc(var(--s-5) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--s-5) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--s-5) + env(safe-area-inset-right, 0px));
  overflow-y: auto;
}
.auth-gate[hidden] { display: none !important; }
.auth-gate [hidden] { display: none !important; }
.auth-gate__card {
  background: var(--c-paper); border-radius: var(--r-lg);
  padding: 40px 32px; max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.auth-gate__logo { width: 56px; height: 56px; }
.auth-gate__title { font-family: var(--font-display); font-size: 26px; color: var(--c-ink); }
.auth-gate__subtitle { color: var(--c-muted); font-size: 14px; margin-top: -4px; }
.auth-gate__spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--c-line); border-top-color: var(--c-gold); animation: cbspin .8s linear infinite; margin: 6px 0;
}
@keyframes cbspin { to { transform: rotate(360deg); } }
.auth-gate__google { background: #4285F4 !important; color: #fff !important; width: 100%; justify-content: center; }
.auth-gate__google svg { margin-right: 6px; }
.auth-gate__retry { width: 100%; }
.auth-gate__public-link { color: var(--c-muted); font-size: 13px; text-decoration: none; margin-top: 4px; }
.auth-gate__public-link:hover { color: var(--c-gold); }
.auth-gate__hint { margin-top: 4px; }

.cb-user-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: var(--c-cream); border-radius: var(--r-md); margin-bottom: 10px;
}
.cb-user-chip img, .cb-user-chip__fallback {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gold); color: #fff; font-weight: 700;
}
.cb-user-chip__info { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.cb-user-chip__info strong { font-size: 13px; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.cb-user-chip__role { font-size: 11px; color: var(--c-gold); font-weight: 600; }
.cb-user-chip__logout { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--c-muted); padding: 6px; border-radius: var(--r-sm); }
.cb-user-chip__logout:hover { color: var(--c-tag-cancelled); background: var(--c-paper); }

/* buton + badge „Cereri" */
.cb-requests-btn { position: relative; }
.cb-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--c-tag-cancelled); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cb-badge[hidden] { display: none !important; }
.cb-requests-btn.has-pending svg { color: var(--c-gold); }

.cb-requests { position: fixed; inset: 0; z-index: 1200; }
.cb-requests[hidden] { display: none; }
.cb-requests__backdrop { position: absolute; inset: 0; background: rgba(20,31,29,.5); opacity: 0; transition: opacity .2s; }
.cb-requests.is-open .cb-requests__backdrop { opacity: 1; }
.cb-requests__drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 92vw);
  background: var(--c-paper); box-shadow: -12px 0 40px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
.cb-requests.is-open .cb-requests__drawer { transform: translateX(0); }
.cb-requests__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--c-line); }
.cb-requests__head h2 { font-family: var(--font-display); font-size: 20px; }
.cb-requests__list { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.cb-requests__empty { color: var(--c-muted); text-align: center; padding: 40px 0; }
.cb-req { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px; background: var(--c-cream); }
.cb-req__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cb-req__top strong { font-size: 15px; }
.cb-req__badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--c-gold); padding: 2px 8px; border-radius: 10px; }
.cb-req__meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--c-ink-soft); margin-bottom: 8px; }
.cb-req__contact { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.cb-req__contact a { color: var(--c-gold); text-decoration: none; }
.cb-req__notes { font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.cb-req__actions { display: flex; gap: 8px; }
.cb-req__actions .btn { flex: 1; }

.cb-toast {
  background: var(--c-ink); color: var(--c-cream); padding: 12px 16px; border-radius: var(--r-md);
  margin-top: 8px; max-width: 340px; box-shadow: var(--shadow-md); font-size: 14px;
}
.cb-toast strong { display: block; margin-bottom: 2px; }
.cb-toast--success { background: #1e7d56; }
.cb-toast--error { background: var(--c-tag-cancelled); }
.cb-toast--info { background: var(--c-ink); }

/* profil oaspete */
.guest-profile { position: fixed; inset: 0; z-index: 900; background: var(--c-cream); overflow-y: auto; }
.guest-profile[hidden] { display: none; }
.guest-profile__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--c-ink); color: var(--c-cream); }
.guest-profile__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 18px; }
.guest-profile__logo { width: 30px; height: 30px; }
.guest-profile__user { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.guest-profile__user img, .guest-profile__user .cb-user-chip__fallback { width: 32px; height: 32px; border-radius: 50%; }
.guest-profile__inner { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
.guest-profile__title { font-family: var(--font-display); font-size: 30px; color: var(--c-ink); }
.guest-profile__subtitle { color: var(--c-muted); margin: 4px 0 20px; }
.guest-profile__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.guest-card { background: var(--c-paper); border: 1px solid var(--c-line); border-left: 4px solid var(--c-gold); border-radius: var(--r-md); padding: 16px; }
.guest-card--in_asteptare { border-left-color: #f59e0b; }
.guest-card--confirmata { border-left-color: #1e7d56; }
.guest-card--anulata { border-left-color: var(--c-tag-cancelled); opacity: .7; }
.guest-card__head { display: flex; align-items: center; justify-content: space-between; }
.guest-card__head h3 { font-family: var(--font-display); font-size: 18px; }
.guest-card__status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; color: #fff; background: var(--c-muted); }
.guest-card__status--in_asteptare { background: #f59e0b; }
.guest-card__status--confirmata { background: #1e7d56; }
.guest-card__status--anulata { background: var(--c-tag-cancelled); }
.guest-card__dates { color: var(--c-ink-soft); margin: 6px 0; font-size: 14px; }
.guest-card__money { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.guest-card__notes { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.cb-muted { color: var(--c-muted); padding: 20px 0; text-align: center; }

/* =========================================================================
   PAGINA PUBLICĂ (index.html) — căsuțe de vacanță Ocna Sibiului
   Identitate: lemn + verde-pădure + accent „lacuri sărate” (teal mineral).
   ========================================================================= */
body.pub { display: block; height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--c-cream); color: var(--c-ink); }
.pub .muted { color: var(--c-muted); }

/* Eyebrow / overline reutilizabil */
.pub-overline {
  text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700;
  color: var(--c-gold-dark); text-align: center; margin-bottom: 10px;
}

/* Țintă de scroll sub header-ul sticky (altfel titlul e tăiat) */
.pub-section, .pub-about, .pub-reviews, .pub-loc, .pub-search, .pub-footer { scroll-margin-top: 84px; }

/* ----------------------------- HEADER ----------------------------- */
.pub-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 13px 22px; background: rgba(20,31,29,.86); backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); color: var(--c-cream);
  padding-top: calc(13px + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pub-header__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--c-cream); text-decoration: none; letter-spacing: .01em; }
.pub-header__brand img { width: 30px; height: 30px; }
.pub-header__nav { display: flex; gap: 22px; margin-left: auto; }
.pub-header__nav a { color: var(--c-cream); opacity: .82; text-decoration: none; font-weight: 600; font-size: 14px; position: relative; padding: 4px 0; transition: opacity var(--t-fast); }
.pub-header__nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--c-gold-soft); transition: right var(--t-base); }
.pub-header__nav a:hover { opacity: 1; }
.pub-header__nav a:hover::after { right: 0; }
.pub-header__auth { display: flex; gap: 8px; }
.pub-header__auth .btn { color: var(--c-cream); border-color: rgba(255,255,255,.32); }
.pub-header__auth .btn:hover { background: rgba(255,255,255,.1); }

/* ----------------------------- HERO ----------------------------- */
.pub-hero {
  position: relative; min-height: 76vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(120% 90% at 80% 0%, #34655d 0%, transparent 55%),
    radial-gradient(110% 80% at 0% 100%, #1b3a3f 0%, transparent 55%),
    linear-gradient(165deg, #16221f 0%, #1f3a36 50%, #244e49 100%);
  color: var(--c-cream); padding: 96px 22px 120px; overflow: hidden;
}
.pub-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.pub-hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.pub-hero__inner { position: relative; max-width: 720px; z-index: 2; }
.pub-hero__inner > * { animation: heroRise .7s cubic-bezier(.2,.7,.2,1) both; }
.pub-hero__eyebrow { animation-delay: .04s; text-transform: uppercase; letter-spacing: .26em; font-size: 13px; color: var(--c-gold-soft); font-weight: 700; }
.pub-hero__title { animation-delay: .1s; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 7.4vw, 74px); line-height: 1.02; margin: 10px 0 6px; letter-spacing: -.01em; }
.pub-hero__tagline { animation-delay: .16s; font-family: var(--font-display); font-size: clamp(19px, 3.2vw, 27px); font-weight: 400; opacity: .96; margin-bottom: 16px; }
.pub-hero__tagline em { font-style: italic; color: var(--c-lake-soft); }
.pub-hero__lead { animation-delay: .22s; font-size: clamp(15px, 2.2vw, 18px); opacity: .86; max-width: 540px; margin: 0 auto 28px; line-height: 1.6; }
.pub-hero__actions { animation-delay: .28s; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pub-hero__cta { height: auto; min-height: 52px; font-size: 16px; padding: 14px 30px; background: var(--c-cream); color: var(--c-ink); border: 1px solid var(--c-cream); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.pub-hero__cta:hover { background: #fff; transform: translateY(-2px); }
.pub-hero__ghost { height: auto; min-height: 52px; font-size: 16px; padding: 14px 24px; color: var(--c-cream); border: 1px solid rgba(255,255,255,.42); }
.pub-hero__ghost:hover { background: rgba(255,255,255,.1); }
.pub-hero__ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 130px); display: block; }
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Pastila de rating (Google) */
.pub-rating { animation-delay: .34s; display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: var(--c-cream); text-decoration: none; backdrop-filter: blur(4px); transition: background var(--t-fast); }
.pub-rating:hover { background: rgba(255,255,255,.16); }
.pub-rating__stars { color: var(--c-gold-soft); letter-spacing: 2px; font-size: 14px; }
.pub-rating__score { font-weight: 800; font-size: 15px; }
.pub-rating__count { opacity: .82; font-size: 13px; }

/* --------------------------- CĂUTARE --------------------------- */
.pub-search { padding: 0 22px; margin-top: -64px; position: relative; z-index: 30; }
.pub-search__card {
  max-width: 940px; margin: 0 auto; background: var(--c-paper); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); padding: 26px 26px 24px; border: 1px solid var(--c-line);
}
.pub-search__card.flash { animation: pubflash 0.9s ease; }
@keyframes pubflash { 0%,100%{ box-shadow: var(--shadow-xl);} 30%{ box-shadow: 0 0 0 4px var(--c-lake-soft);} }
.pub-search__head { margin-bottom: 16px; }
.pub-search__title { font-family: var(--font-display); font-weight: 600; font-size: 23px; }
.pub-search__sub { color: var(--c-muted); font-size: 14px; margin-top: 3px; }
.pub-search__grid { display: grid; grid-template-columns: 1fr 1fr 110px auto; gap: 14px; align-items: end; }
.pub-search__btn { height: 50px; white-space: nowrap; }
.pub-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-ink-soft); }
.pub-field input, .pub-field textarea {
  font-size: 16px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-cream); color: var(--c-ink); font-family: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.pub-field input:focus, .pub-field textarea:focus { outline: none; border-color: var(--c-lake); box-shadow: 0 0 0 3px rgba(31,111,120,.14); }
.pub-error { color: var(--c-danger); font-size: 14px; margin-top: 10px; font-weight: 600; }

/* ----------------------------- CAMERE ----------------------------- */
.pub-section { max-width: 1140px; margin: 0 auto; padding: 72px 22px; }
.pub-section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 38px); margin-bottom: 30px; text-align: center; letter-spacing: -.01em; }
.pub-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.pub-room { background: var(--c-paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); transition: transform var(--t-base), box-shadow var(--t-base); display: flex; flex-direction: column; }
.pub-room:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pub-room__media { height: 168px; position: relative; overflow: hidden; }
.pub-room__media::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px); mix-blend-mode: overlay; }
.pub-room__type { position: absolute; bottom: 12px; left: 12px; z-index: 2; background: rgba(20,31,29,.86); color: var(--c-cream); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.pub-room__price-chip { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.94); color: var(--c-ink); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pub-room__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pub-room__name { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.pub-room__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-room__meta span { display: inline-flex; align-items: center; gap: 6px; background: var(--c-cream-2); color: var(--c-ink-soft); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.pub-room__meta svg { width: 15px; height: 15px; stroke: var(--c-lake); fill: none; stroke-width: 1.8; }
.pub-room__total { font-size: 15px; color: var(--c-ink-soft); padding-top: 2px; }
.pub-room__total strong { color: var(--c-ink); }
.pub-room__book { margin-top: auto; }

/* ----------------------------- DESPRE ----------------------------- */
.pub-about { background: var(--c-paper); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.pub-about__inner { max-width: 1080px; margin: 0 auto; padding: 76px 22px; text-align: center; }
.pub-about__lead { color: var(--c-ink-soft); font-size: clamp(16px, 2.2vw, 18px); max-width: 700px; margin: 0 auto 40px; line-height: 1.7; }
.pub-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; text-align: left; }
.pub-feature { background: var(--c-cream); border-radius: var(--r-lg); padding: 24px 22px; border: 1px solid var(--c-line); transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base); }
.pub-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-lake-soft); }
.pub-feature__ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--c-lake-tint); color: var(--c-lake); margin-bottom: 14px; }
.pub-feature__ic svg { width: 24px; height: 24px; }
.pub-feature strong { display: block; margin-bottom: 5px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--c-ink); }
.pub-feature p { font-size: 14px; color: var(--c-ink-soft); line-height: 1.55; }

/* ----------------------------- RECENZII ----------------------------- */
.pub-reviews { background: linear-gradient(180deg, var(--c-lake-tint), #f3f7f6); }
.pub-reviews__inner { max-width: 1100px; margin: 0 auto; padding: 76px 22px; text-align: center; }
.pub-reviews__summary { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.pub-rev-score { font-family: var(--font-display); font-weight: 600; font-size: 52px; line-height: 1; color: var(--c-ink); }
.pub-rev-meta { text-align: left; }
.pub-rev-meta .stars { color: var(--c-gold); letter-spacing: 3px; font-size: 19px; }
.pub-rev-meta .count { display: block; color: var(--c-ink-soft); font-size: 14px; font-weight: 600; margin-top: 2px; }
.pub-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; text-align: left; }
.pub-rev-card { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.pub-rev-card .stars { color: var(--c-gold); letter-spacing: 2px; font-size: 15px; }
.pub-rev-card__text { font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--c-ink); }
.pub-rev-card__src { font-size: 12.5px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: auto; }
.pub-reviews__link { margin-top: 32px; }

/* ----------------------------- LOCAȚIE ----------------------------- */
.pub-loc__inner { max-width: 1140px; margin: 0 auto; padding: 76px 22px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.pub-loc__text .pub-overline, .pub-loc__title { text-align: left; }
.pub-loc__title { margin-bottom: 14px; }
.pub-loc__lead { color: var(--c-ink-soft); font-size: 17px; line-height: 1.6; margin-bottom: 22px; }
.pub-loc__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pub-loc__list li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; color: var(--c-ink-soft); }
.pub-loc__list em { font-style: normal; color: var(--c-muted); font-size: 13.5px; }
.pub-loc__dist { flex: 0 0 auto; min-width: 64px; font-weight: 800; color: var(--c-lake); font-size: 14px; background: var(--c-lake-tint); padding: 4px 10px; border-radius: 8px; text-align: center; }
.pub-loc__map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--c-cream-2); }
.pub-loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----------------------------- FOOTER ----------------------------- */
.pub-footer { background: var(--c-ink); color: var(--c-cream); padding: 56px 22px 26px; }
.pub-footer__inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; }
.pub-footer__brand { max-width: 360px; }
.pub-footer h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin-bottom: 10px; }
.pub-footer__tag { opacity: .72; font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.pub-footer__addr { opacity: .82; font-size: 14px; }
.pub-footer__phone { color: var(--c-gold-soft); text-decoration: none; display: inline-block; margin-top: 6px; font-weight: 600; }
.pub-footer__phone:hover { text-decoration: underline; }
.pub-footer__links { display: flex; flex-direction: column; gap: 9px; }
.pub-footer__lh { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 700; opacity: .55; margin-bottom: 3px; }
.pub-footer__links a { color: var(--c-cream); opacity: .82; text-decoration: none; font-size: 14px; transition: opacity var(--t-fast); }
.pub-footer__links a:hover { opacity: 1; color: var(--c-gold-soft); }
.pub-footer__copy { text-align: center; opacity: .55; font-size: 13px; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }

/* ----------------------------- MODAL REZERVARE ----------------------------- */
.pub-modal { position: fixed; inset: 0; z-index: 1000; }
.pub-modal[hidden] { display: none; }
.pub-modal__backdrop { position: absolute; inset: 0; background: rgba(20,31,29,.55); opacity: 0; transition: opacity .2s; }
.pub-modal.is-open .pub-modal__backdrop { opacity: 1; }
.pub-modal__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0;
  width: min(520px, 94vw); max-height: 90vh; background: var(--c-paper); border-radius: var(--r-xl);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-xl);
  transition: transform .24s cubic-bezier(.2,.7,.2,1), opacity .24s;
}
.pub-modal.is-open .pub-modal__dialog { transform: translate(-50%, -50%); opacity: 1; }
.pub-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px; border-bottom: 1px solid var(--c-line); }
.pub-modal__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.pub-modal__summary { color: var(--c-ink-soft); font-size: 14px; margin-top: 4px; }
.pub-modal__body { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
.pub-modal__note { font-size: 12px; color: var(--c-muted); line-height: 1.5; }
.pub-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--c-line); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

/* ----------------------------- SUCCES ----------------------------- */
.pub-success { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(20,31,29,.6); opacity: 0; transition: opacity .2s; }
.pub-success[hidden] { display: none; }
.pub-success.is-open { opacity: 1; }
.pub-success__card { background: var(--c-paper); border-radius: var(--r-xl); padding: 44px 34px; max-width: 420px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.pub-success__check { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: var(--c-success); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.pub-success__card h2 { font-family: var(--font-display); font-weight: 600; font-size: 25px; margin-bottom: 10px; }
.pub-success__card p { color: var(--c-ink-soft); margin-bottom: 24px; line-height: 1.55; }

/* ----------------------------- REVEAL LA SCROLL ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 880px) {
  .pub-loc__inner { grid-template-columns: 1fr; gap: 28px; }
  .pub-loc__map { aspect-ratio: 16 / 10; }
}

/* Modalul public devine „sheet” pe telefon: lățime totală, ancorat jos, scroll intern. */
@media (max-width: 560px) {
  .pub-modal__dialog {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-width: 100%;
    height: auto; max-height: 92vh; max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
  }
  .pub-modal.is-open .pub-modal__dialog { transform: translateY(0); }
  .pub-modal__head {
    position: sticky; top: 0; z-index: 2; background: var(--c-paper);
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }
  .pub-modal__foot { position: sticky; bottom: 0; background: var(--c-paper); }
}

@media (max-width: 720px) {
  .pub-hero { min-height: 70vh; padding: 80px 20px 104px; }
  .pub-search__grid { grid-template-columns: 1fr 1fr; }
  .pub-search__btn { grid-column: 1 / -1; }
  .pub-header__nav { display: none; }
  .pub-section, .pub-about__inner, .pub-reviews__inner, .pub-loc__inner { padding-top: 56px; padding-bottom: 56px; }
  .pub-footer__inner { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .pub-hero__inner > * { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pub-room, .pub-feature, .pub-hero__cta { transition: none; }
}

/* =========================================================================
   FUNCȚIONALITĂȚI NOI (admin) — internalName, add-on-uri, multi-cameră,
   client cunoscut, bare compacte/anulate, calendar alb-negru & ecran complet
   ========================================================================= */

/* Denumire internă (privată) cameră */
.room-card__internal { font-size: 12px; color: var(--c-gold-dark); font-weight: 600; margin: 2px 0; }

/* Bară rezervare: compactă / anulată / grup */
.reservation-bar__name--compact { font-size: 11px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reservation-bar.is-compact { padding-top: 2px; padding-bottom: 2px; }
.reservation-bar.is-cancelled { opacity: .55; }
.reservation-bar.is-cancelled .reservation-bar__name { text-decoration: line-through; }
.reservation-bar__group { position: absolute; top: 2px; right: 5px; font-size: 10px; opacity: .9; }

/* Hint „client cunoscut” */
.known-guest-hint { background: var(--c-lake-tint, #e9f3f2); border: 1px solid var(--c-lake-soft, #5bb3bd); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.known-guest-hint__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.known-guest-hint__badge { font-weight: 700; color: var(--c-lake, #1f6f78); font-size: 13px; }
.known-guest-hint__name { font-size: 13px; color: var(--c-ink-soft); margin-top: 4px; }
.known-guest-hint__cancel { font-size: 12.5px; color: var(--c-danger, #c0392b); margin-top: 6px; background: #fdecea; border-radius: 8px; padding: 6px 8px; }

/* Camere suplimentare (multi-cameră) + checkbox agenție */
.form-field--full { grid-column: 1 / -1; }
.extra-rooms { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-height: 180px; overflow: auto; -webkit-overflow-scrolling: touch; }
.extra-room { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 8px; cursor: pointer; }
.extra-room small { color: var(--c-muted); }
.extra-room input { width: 18px; height: 18px; flex: 0 0 auto; }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.btn--xs { padding: 3px 9px; font-size: 12px; min-height: 0; }

/* Calendar alb-negru */
body.calendar--mono .timeline-wrap { filter: grayscale(1) contrast(1.04); }
body.calendar--mono .reservation-bar { color: #111; }
#monoToggleBtn.is-active, #fullscreenBtn.is-active { background: var(--c-ink); color: var(--c-cream); }

/* Calendar ecran complet */
body.calendar--fullscreen .sidebar,
body.calendar--fullscreen .topbar,
body.calendar--fullscreen .fab,
body.calendar--fullscreen .sidebar-backdrop { display: none !important; }
body.calendar--fullscreen .app { margin: 0 !important; }
body.calendar--fullscreen #view-timeline {
  position: fixed; inset: 0; z-index: 600; margin: 0;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-cream);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
body.calendar--fullscreen #view-timeline .timeline-wrap {
  flex: 1 1 auto; min-height: 0; max-height: none;
  overflow-x: auto; overflow-y: auto;
}
[data-theme="dark"] body.calendar--fullscreen #view-timeline { background: #0f1817; }

@media (hover: none) and (pointer: coarse) {
  /* Pe ecrane touch, orice atingere în calendar = scroll (pan), nu drag.
     Mutarea rezervării se face din modal → „Mută la altă cameră”. */
  .timeline-wrap, .timeline, .timeline__row, .timeline__cell, .reservation-bar {
    touch-action: auto;
  }
  .reservation-bar { -webkit-user-drag: none; user-select: none; }
}

/* Contact (telefon + Facebook) în secțiunea Despre */
.pub-about__contact { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: -18px auto 34px; }
.pub-about__contact-item { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c-lake, #1f6f78); text-decoration: none; background: var(--c-lake-tint, #e9f3f2); padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.pub-about__contact-item:hover { background: var(--c-lake-soft, #5bb3bd); color: #fff; }

/* Câmpuri „nevoi” în modalul public de rezervare */
.pub-field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pub-modal__hint { font-size: 12.5px; color: var(--c-lake, #1f6f78); background: var(--c-lake-tint, #e9f3f2); border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
@media (max-width: 480px) { .pub-field-row { grid-template-columns: 1fr 1fr; } }

/* Buton reset șablon WhatsApp */
.settings-card__actions { margin-top: 8px; }
.btn--sm { padding: 6px 12px; font-size: 13px; }

/* Panou de alocare camere la confirmarea unei cereri din site */
.cb-alloc { margin-top: 10px; padding: 12px; border: 1px dashed var(--c-line); border-radius: 10px; background: var(--c-cream-2, rgba(0,0,0,.02)); }
.cb-alloc__head { font-size: 13px; margin-bottom: 8px; color: var(--c-ink-soft, inherit); }
.cb-alloc__list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; -webkit-overflow-scrolling: touch; }
.cb-alloc__room { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cb-alloc__room input { width: 18px; height: 18px; flex: 0 0 auto; }
.cb-alloc__room small { color: var(--c-muted); display: block; }
.cb-alloc__empty { font-size: 13px; color: var(--c-muted); padding: 6px 2px; }
.cb-alloc__bar { margin: 10px 0; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: rgba(192,57,43,.10); color: #c0392b; }
.cb-alloc__bar.is-covered { background: rgba(30,125,86,.14); color: #1e7d56; }

/* Stare „se încarcă” pentru butoane (ex: generare Excel) */
.btn.is-loading { opacity: .6; pointer-events: none; }

/* Cerințe & preferințe în formularul public de cerere */
.pub-prefs { margin: 4px 0 2px; }
.pub-prefs__title { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink, inherit); margin-bottom: 8px; }
.pub-prefs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pub-pref { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 9px 11px; border: 1px solid var(--c-line); border-radius: 9px; cursor: pointer; background: #fff; }
.pub-pref input { width: 17px; height: 17px; flex: 0 0 auto; }
.pub-pref:has(input:checked) { border-color: var(--c-lake, #1f6f78); background: var(--c-lake-tint, #e9f3f2); }
@media (max-width: 420px) { .pub-prefs__grid { grid-template-columns: 1fr; } }

/* Chips de preferințe în cardul de cerere (admin) */
.cb-req__prefs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cb-req__chip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--c-lake-tint, #e9f3f2); color: var(--c-lake, #1f6f78); font-weight: 600; }

/* Tabel rezervări: font alb (tema întunecată) */
.reservations-table td { color: inherit; }
.reservations-table td strong { color: inherit; }
.reservations-table td .text-muted { color: var(--c-muted); }