/* ============================================================
   InfoDecese.ro — Stylesheet Principal v1.0
   Temă: Dark caldă, empatic, accesibil WCAG 2.1 AA
   Fonturi: Playfair Display (display) + Source Sans 3 (body)
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  /* Culori fundal */
  --bg-base:       #1e1a17;
  --bg-surface:    #2a2520;
  --bg-surface-2:  #332d28;
  --bg-surface-3:  #3d3630;
  --border:        #4a3f38;
  --border-light:  #5a4f48;

  /* Accent colors */
  --brown:         #8B4513;
  --brown-light:   #a0522d;
  --brown-dark:    #6b3310;
  --gold:          #c8a84b;
  --gold-light:    #e2c97e;
  --gold-dark:     #a88930;
  --olive:         #6b7c4d;

  /* Text */
  --text-primary:  #e8ddd5;
  --text-secondary:#c0b0a0;
  --text-muted:    #8a7a6c;
  --text-faint:    #5a4f48;

  /* Status */
  --success:  #2ecc71;
  --danger:   #e74c3c;
  --warning:  #f39c12;
  --info:     #3498db;
  --success-bg: rgba(46,204,113,.12);
  --danger-bg:  rgba(231,76,60,.12);
  --warning-bg: rgba(243,156,18,.12);
  --info-bg:    rgba(52,152,219,.12);

  /* Layout */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.35);
  --shadow:     0 4px 20px rgba(0,0,0,.45);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.55);

  /* Transitions */
  --t-fast:  .15s ease;
  --t:       .25s ease;
  --t-slow:  .4s ease;

  /* Fonturi */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  /* Spacing scale */
  --space-1:  .25rem;  /* 4px  */
  --space-2:  .5rem;   /* 8px  */
  --space-3:  .75rem;  /* 12px */
  --space-4:  1rem;    /* 16px */
  --space-5:  1.5rem;  /* 24px */
  --space-6:  2rem;    /* 32px */
  --space-7:  3rem;    /* 48px */
  --space-8:  4rem;    /* 64px */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TIPOGRAFIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.28;
  margin-bottom: .65em;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem,  3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem,  2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold-light); }
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong { color: var(--text-primary); font-weight: 600; }
em     { color: var(--gold); font-style: italic; }

ul, ol { padding-left: 1.5em; }
li     { margin-bottom: .35em; }

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

blockquote {
  border-left: 3px solid var(--brown);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-sm  { max-width: 800px;  margin: 0 auto; padding: 0 var(--space-5); }
.container-lg  { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-5); }

.section    { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-6) 0; }
.section-xs { padding: var(--space-5) 0; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;               gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);        gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);        gap: var(--space-4); }

.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.gap-1          { gap: var(--space-2); }
.gap-2          { gap: var(--space-4); }
.gap-3          { gap: var(--space-5); }
.align-center   { align-items: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(30,26,23,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: var(--space-5);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.site-logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}
.logo-cross {
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1.1;
}
.logo-text em {
  font-size: .8rem;
  color: var(--gold);
  font-style: normal;
}

/* Nav principal DESKTOP */
.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: .2rem;
}

/* Nav MOBIL — ascuns pe desktop */
.mobile-nav { display: none !important; }
/* CTA mobil — ascuns pe desktop */
.header-mobile-cta { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}
.nav-link i { font-size: .82em; opacity: .7; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTOANE
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  min-height: 44px; /* WCAG touch target */
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sizes */
.btn-sm  { padding: .45rem 1rem;   min-height: 36px; font-size: .875rem; }
.btn-lg  { padding: .85rem 2rem;   min-height: 52px; font-size: 1.05rem; }
.btn-xl  { padding: 1rem 2.5rem;   min-height: 58px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Variants */
.btn-primary {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}
.btn-primary:hover {
  background: var(--brown-light);
  border-color: var(--brown-light);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-base);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-base);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-surface-2);
  border-color: var(--brown);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #c0392b;
  border-color: #c0392b;
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .3rem;
  font-size: 1.15rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  min-width: 28px;
  min-height: 28px;
}
.btn-close:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}

/* Icon button */
.btn-icon {
  padding: .55rem;
  min-width: 44px;
}

/* ============================================================
   FORMULARE
   ============================================================ */
.form-group  { margin-bottom: 1.2rem; }
.form-row    { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

.form-label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-primary);
}
.form-label .req {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  min-height: 44px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--brown);
  background: var(--bg-surface-2);
  box-shadow: 0 0 0 3px rgba(139,69,19,.2);
}
.form-control::placeholder { color: var(--text-faint); }
.form-control.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(231,76,60,.15);
}
.form-control.is-valid {
  border-color: var(--success);
}

textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control   { cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7a6c' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}

.form-hint  { font-size: .83rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .83rem; color: var(--danger); margin-top: .3rem; display: none; }
.form-error.visible { display: block; }

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
}
.form-check-input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brown);
  cursor: pointer;
}
.form-check-label { cursor: pointer; font-size: .95rem; }

/* Input group */
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); flex: 1; }
.input-group .btn           { border-radius: 0 var(--radius) var(--radius) 0; flex-shrink: 0; }

/* ============================================================
   CARDURI
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-surface-2);
}
.card-body   { padding: 1.2rem; }
.card-footer {
  padding: .9rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.card-title {
  font-size: 1.05rem;
  margin-bottom: .3rem;
  font-family: var(--font-display);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.card-desc {
  font-size: .88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   BADGE-URI
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2em .65em;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: .02em;
}
.badge-premium  { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--bg-base); }
.badge-new      { background: var(--olive); color: #fff; }
.badge-category { background: var(--bg-surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-success  { background: var(--success-bg); color: var(--success); border: 1px solid rgba(46,204,113,.3); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(231,76,60,.3); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(243,156,18,.3); }
.badge-info     { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(52,152,219,.3); }

/* ============================================================
   STELE RATING
   ============================================================ */
.stars { font-size: 1.05em; letter-spacing: 1.5px; line-height: 1; }
.star  { color: var(--border-light); }
.star.filled { color: var(--gold); }
.star.half   { color: var(--gold); opacity: .6; }
.rating-val  { font-size: .82rem; color: var(--text-muted); margin-left: .35rem; vertical-align: middle; }

/* Stars interactive */
.star-label { cursor: pointer; }
.star-label .star { transition: color var(--t-fast); }
.star-label:hover .star,
.star-label:hover ~ .star-label .star { color: var(--gold-dark); }

/* ============================================================
   ALERTE
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.alert i { margin-top: 2px; flex-shrink: 0; font-size: 1rem; }
.alert-success { background: var(--success-bg); border-color: rgba(46,204,113,.3);  color: #4cca7a; }
.alert-error   { background: var(--danger-bg);  border-color: rgba(231,76,60,.3);   color: #e74c3c; }
.alert-warning { background: var(--warning-bg); border-color: rgba(243,156,18,.3);  color: #f39c12; }
.alert-info    { background: var(--info-bg);    border-color: rgba(52,152,219,.3);  color: #3498db; }

/* ============================================================
   PAGINARE
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: var(--space-7);
}
.pagination-info { font-size: .82rem; color: var(--text-muted); margin-right: .5rem; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: .4rem .75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--t-fast);
}
.page-btn:hover { background: var(--bg-surface-2); color: var(--text-primary); border-color: var(--brown); }
.page-btn.active { background: var(--brown); color: #fff; border-color: var(--brown); pointer-events: none; }
.page-dots { color: var(--text-faint); padding: 0 .25rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: var(--space-8) 0;
  text-align: center;
  background: linear-gradient(165deg, var(--bg-base) 0%, var(--bg-surface-2) 55%, rgba(139,69,19,.1) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(139,69,19,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(200,168,75,.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: .82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: block;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  max-width: 900px;
  margin: 0 auto var(--space-4);
  line-height: 1.2;
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-7);
  line-height: 1.65;
}

/* Hero search box */
.hero-search {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.hero-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
}
.hero-quick-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--space-4);
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--t);
  cursor: pointer;
  overflow: hidden;
}
.category-card:hover {
  border-color: var(--brown);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
/* Imagine categorie */
.category-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.category-card:hover .category-card-img {
  transform: scale(1.05);
}
/* Placeholder fără imagine — icon FA */
.category-card-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  transition: background var(--t);
}
.category-card:hover .category-card-icon {
  background: rgba(139,69,19,.08);
}
.category-card-icon i {
  font-size: 2.5rem;
  color: var(--gold);
}
/* Text sub imagine */
.category-card-body {
  padding: .65rem .75rem .75rem;
  width: 100%;
}
.category-card-body span {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}
.category-card-body .category-count {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .2rem;
  font-weight: 400;
}

/* ============================================================
   LISTING CARDS — GRID VIEW
   ============================================================ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

.listing-card { position: relative; }
.listing-card .badge-premium {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}
.listing-card .card-img { transition: transform .4s ease; }
.listing-card:hover .card-img { transform: scale(1.03); }

/* ============================================================
   LISTING ROW — LIST VIEW
   ============================================================ */
.listings-list { display: flex; flex-direction: column; gap: 1rem; }

.listing-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.listing-row:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}
.listing-row-img {
  width: 170px;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}
.listing-row-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.listing-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: 1rem;
  min-width: 130px;
  border-left: 1px solid var(--border);
}

/* ============================================================
   SEARCH FILTERS
   ============================================================ */
.search-filters {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: .35rem; }

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.view-btn {
  padding: .5rem .85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .95rem;
  transition: all var(--t-fast);
  min-height: 38px;
}
.view-btn:hover  { background: var(--bg-surface-2); color: var(--text-primary); }
.view-btn.active { background: var(--bg-surface-2); color: var(--text-primary); }

/* Sort dropdown */
.sort-select {
  padding: .5rem .85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: .88rem;
  min-height: 38px;
  cursor: pointer;
}

/* ============================================================
   PAGINA LISTING DETAIL
   ============================================================ */
.listing-detail-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-6);
  align-items: flex-start;
}
.listing-content { min-width: 0; }
.listing-sidebar { position: sticky; top: 80px; }

/* Gallery */
.gallery-main { position: relative; margin-bottom: .75rem; }
.gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-2);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
}
.gallery-thumb {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: .65;
  transition: opacity var(--t-fast), outline var(--t-fast);
  background: var(--bg-surface-2);
}
.gallery-thumb:hover  { opacity: .9; }
.gallery-thumb.active { opacity: 1; outline: 2px solid var(--gold); }

/* Info card (reusable în sidebar și detaliu) */
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.info-card > h3:first-child,
.info-card > h4:first-child { margin-top: 0; }

/* Info rows (adresă, telefon etc.) */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row-icon {
  color: var(--gold);
  font-size: 1rem;
  width: 1.5rem;
  flex-shrink: 0;
  padding-top: 3px;
  text-align: center;
}
.info-row-content { flex: 1; min-width: 0; }
.info-row-label   { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.info-row-value   { color: var(--text-primary); font-size: .95rem; word-break: break-word; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: .5rem 0; vertical-align: middle; }
.hours-table .day-name { color: var(--text-muted); font-weight: 500; width: 110px; }
.hours-table .day-hours { color: var(--text-secondary); }
.hours-table .day-closed { color: var(--text-faint); font-style: italic; }
.hours-table tr.today .day-name  { color: var(--success); font-weight: 700; }
.hours-table tr.today .day-hours { color: var(--success); }

/* Facility tags */
.facility-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.facility-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .85rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .83rem;
  color: var(--text-secondary);
}
.facility-tag i { color: var(--gold); font-size: .85em; }

/* Price cards */
.price-list { display: flex; flex-direction: column; gap: .6rem; }
.price-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius);
  gap: 1rem;
}
.price-item-name { font-weight: 500; color: var(--text-primary); flex: 1; }
.price-item-desc { font-size: .82rem; color: var(--text-muted); }
.price-item-amount { color: var(--gold); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item.open { border-color: var(--brown); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
  font-size: .95rem;
  gap: 1rem;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--t-fast);
  line-height: 1;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-slow);
  font-size: .92rem;
  color: var(--text-secondary);
}
.faq-item.open .faq-answer { max-height: 1000px; padding: 0 1.1rem 1rem; }

/* ============================================================
   RECENZII
   ============================================================ */
.reviews-list { margin-top: var(--space-5); }
.review-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .6rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.reviewer-name { font-weight: 600; color: var(--text-primary); }
.review-date   { font-size: .8rem; color: var(--text-muted); }
.review-text   { font-size: .92rem; color: var(--text-secondary); }
.review-reply {
  margin-top: .85rem;
  background: var(--bg-surface-2);
  border-left: 3px solid var(--brown);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .88rem;
  color: var(--text-secondary);
}
.review-reply-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

/* ============================================================
   FORMULAR LEAD (contact rapid din sidebar)
   ============================================================ */
.lead-form {
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
  border: 1px solid var(--brown);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.lead-form h3 { color: var(--gold); font-size: 1.15rem; }
.lead-success {
  text-align: center;
  padding: var(--space-6) 0;
  display: none;
}
.lead-success i { font-size: 3rem; color: var(--success); margin-bottom: var(--space-4); display: block; }

/* Rezervare popup */
.booking-popup {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
  animation: fadeIn .2s ease;
}
.booking-popup.open { display: block; }

/* ============================================================
   GHID PAS CU PAS
   ============================================================ */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: flex-start;
}
.guide-nav { position: sticky; top: 80px; }

/* Nav pași */
.steps-nav { list-style: none; padding: 0; }
.step-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem .9rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: .9rem;
  transition: all var(--t-fast);
  margin-bottom: .3rem;
  border-left: 3px solid transparent;
}
.step-nav-item:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}
.step-nav-item.active {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border-left-color: var(--gold);
}
.step-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 2px solid var(--border);
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.step-nav-item.active  .step-num-badge { background: var(--brown); border-color: var(--brown); color: #fff; }
.step-nav-item.done    .step-num-badge { background: var(--gold);  border-color: var(--gold);  color: var(--bg-base); }

/* Checklist */
.checklist-wrap { margin-top: var(--space-5); }
.checklist-progress-wrap { margin-bottom: var(--space-4); }
.checklist-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.checklist-bar {
  height: 6px;
  background: var(--bg-surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.checklist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brown), var(--gold));
  border-radius: 100px;
  transition: width .4s ease;
}
.checklist-items { list-style: none; padding: 0; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--t-fast);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brown);
  cursor: pointer;
}
.checklist-item label { cursor: pointer; font-size: .92rem; }
.checklist-item.done label {
  opacity: .5;
  text-decoration: line-through;
}

/* ============================================================
   WIZARD ADD LISTING
   ============================================================ */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: var(--space-7);
  padding: 0 var(--space-2);
}
.wizard-progress-line {
  position: absolute;
  top: 17px;
  left: var(--space-6);
  right: var(--space-6);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 1;
  flex: 1;
}
.wizard-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: .82rem;
  transition: all var(--t);
  color: var(--text-muted);
}
.wizard-step-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  line-height: 1.3;
}
.wizard-step-indicator.active .wizard-step-num  { background: var(--brown); border-color: var(--brown); color: #fff; }
.wizard-step-indicator.done   .wizard-step-num  { background: var(--gold);  border-color: var(--gold);  color: var(--bg-base); }
.wizard-step-indicator.active .wizard-step-label,
.wizard-step-indicator.done   .wizard-step-label { color: var(--text-primary); }

.wizard-panel { display: none; animation: fadeIn .25s ease; }
.wizard-panel.active { display: block; }

/* Nav buttons wizard */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

/* Plan cards (wizard pas 1) */
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--bg-surface);
  position: relative;
}
.plan-card:hover  { border-color: var(--brown-light); background: var(--bg-surface-2); }
.plan-card.selected { border-color: var(--brown); background: rgba(139,69,19,.08); }
.plan-card.featured { border-color: var(--gold); }
.plan-card-badge    { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); }
.plan-name   { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .25rem; }
.plan-price  { font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.plan-price-sub { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.plan-duration { font-size: .82rem; color: var(--text-muted); margin: .4rem 0 1.1rem; }
.plan-features { list-style: none; padding: 0; text-align: left; }
.plan-features li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--text-secondary);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li .fa-check   { color: var(--success); font-size: .85em; }
.plan-features li .fa-times   { color: var(--text-faint); font-size: .85em; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--bg-surface);
}
.upload-zone:hover  { border-color: var(--brown); background: var(--bg-surface-2); }
.upload-zone.dragover { border-color: var(--gold); background: rgba(200,168,75,.05); }
.upload-zone i { font-size: 2.5rem; color: var(--gold); margin-bottom: var(--space-3); display: block; }
.upload-zone input[type="file"] { display: none; }

/* Gallery preview grid */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .6rem;
  margin-top: var(--space-4);
}
.gallery-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Facilități checkboxes */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .65rem;
  margin-top: var(--space-3);
}

/* Program săptămânal */
.hours-grid {
  display: grid;
  gap: .65rem;
}
.hours-row {
  display: grid;
  grid-template-columns: 120px auto 1fr 1rem 1fr;
  align-items: center;
  gap: .6rem;
}
.hours-row-day { font-weight: 500; color: var(--text-primary); font-size: .92rem; }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  min-height: 60vh;
}
.dashboard-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.dashboard-sidebar-avatar {
  text-align: center;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brown) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
}
.dashboard-user-name  { font-weight: 600; color: var(--text-primary); font-size: .95rem; }
.dashboard-user-plan  { font-size: .78rem; color: var(--gold); margin-top: .2rem; }

.dashboard-menu { list-style: none; padding: 0; }
.dashboard-menu-item + .dashboard-menu-item { margin-top: .15rem; }
.dashboard-menu-item a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}
.dashboard-menu-item a:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.dashboard-menu-item a.active {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border-left-color: var(--gold);
}
.dashboard-menu-item a i { color: var(--gold); width: 18px; text-align: center; }
.dashboard-menu-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-3) 0;
}

/* Stat cards (dashboard) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: border-color var(--t);
}
.stat-card:hover { border-color: var(--border-light); }
.stat-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: var(--space-3); }
.stat-num  { font-size: 2rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-display); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }

/* ============================================================
   TABELE
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table thead tr { background: var(--bg-surface-2); }
.data-table th {
  padding: .8rem 1rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  vertical-align: middle;
  color: var(--text-secondary);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.data-table .td-actions { display: flex; gap: .4rem; }

/* ============================================================
   PWA BANNERS
   ============================================================ */
.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface-2);
  border-top: 2px solid var(--brown);
  z-index: 1800;
  padding: var(--space-4);
  animation: slideUp .35s ease;
}
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 600px;
  margin: 0 auto;
}
.pwa-banner-icon { border-radius: var(--radius); flex-shrink: 0; }
.pwa-banner-text { flex: 1; }
.pwa-banner-text strong { display: block; color: var(--text-primary); font-size: .95rem; }
.pwa-banner-text span   { font-size: .82rem; color: var(--text-muted); }
.pwa-banner-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.offline-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--warning);
  color: #fff;
  padding: .55rem var(--space-4);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
  z-index: 1700;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: .88rem; }
.cookie-actions { display: flex; gap: .65rem; flex-shrink: 0; }

/* ============================================================
   MAP
   ============================================================ */
#listing-map,
#search-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
}
#listing-map { height: 320px; }
#search-map  { height: 520px; }

/* ============================================================
   SECTION TITLE (centered header pentru secțiuni)
   ============================================================ */
.section-title { text-align: center; margin-bottom: var(--space-7); }
.section-title h2 { margin-bottom: .5rem; }
.section-title p  { max-width: 560px; margin: 0 auto; font-size: 1.02rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}
.footer-logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}
.footer-logo .logo-cross { font-size: 1.5rem; color: var(--gold); }
.footer-logo strong { font-size: 1.2rem; color: var(--text-primary); }
.footer-about p { font-size: .88rem; line-height: 1.65; }
.footer-col h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: var(--text-secondary);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--gold); }
.footer-links a i { color: var(--brown); font-size: .75em; }
.footer-social { display: flex; gap: .55rem; margin-top: var(--space-4); }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--t-fast);
}
.social-btn:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   UTILITARE
   ============================================================ */
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }
.text-primary { color: var(--text-primary) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-gold    { color: var(--gold) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-sm      { font-size: .875rem !important; }
.text-xs      { font-size: .78rem !important; }
.text-lg      { font-size: 1.1rem !important; }
.font-bold    { font-weight: 700 !important; }
.font-display { font-family: var(--font-display) !important; }

.mt-0 { margin-top: 0; }          .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: .5rem; }      .mb-2 { margin-bottom: .5rem; }
.mt-3 { margin-top: .75rem; }     .mb-3 { margin-bottom: .75rem; }
.mt-4 { margin-top: 1rem; }       .mb-4 { margin-bottom: 1rem; }
.mt-5 { margin-top: 1.5rem; }     .mb-5 { margin-bottom: 1.5rem; }
.mt-6 { margin-top: 2rem; }       .mb-6 { margin-bottom: 2rem; }
.mt-7 { margin-top: 3rem; }       .mb-7 { margin-bottom: 3rem; }
.mt-8 { margin-top: 4rem; }       .mb-8 { margin-bottom: 4rem; }

.d-none  { display: none !important; }
.d-block { display: block !important; }
.d-flex  { display: flex !important; }
.d-grid  { display: grid !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--space-5) 0;
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { color: var(--text-muted); font-size: .85rem; white-space: nowrap; }

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* ============================================================
   ANIMAȚII
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

.fade-in { animation: fadeIn .35s ease both; }
.slide-up { animation: slideUp .3s ease both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (≤ 1200px) ── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet mic (≤ 992px) ── */
@media (max-width: 992px) {
  .listing-detail-main { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .plan-cards { grid-template-columns: 1fr 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .hero-search-row { grid-template-columns: 1fr 1fr; }
  .hero-search-row .btn { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: repeat(1, 1fr); }
}

/* ── Mobil mare (≤ 768px) ── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  /* Ascunde nav desktop pe mobil */
  .main-nav { display: none !important; }

  /* Header mobil — 2 rânduri */
  .header-inner {
    flex-wrap: wrap;
    padding: .6rem 0;
    gap: 0;
  }
  /* Rândul 1: logo + hamburger */
  .site-logo {
    order: 1;
    flex: 1;
  }
  .header-actions {
    order: 2;
    flex-shrink: 0;
  }
  /* Rândul 2: buton "Adaugă afacere" — lățime completă */
  .header-mobile-cta {
    order: 3;
    width: 100%;
    display: block;
    padding: .5rem 0 .4rem;
  }
  .header-mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }
  /* Ascunde btn-urile din header-actions pe mobil (rămân în rândul 2) */
  .header-actions .btn-outline,
  .header-actions .btn-gold { display: none; }

  /* Nav mobil — fullscreen, în afara header-ului */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-base);
    z-index: 999;
    padding: 5rem var(--space-5) var(--space-5);
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav.open { display: flex !important; }
  .mobile-nav ul {
    list-style: none;
    padding: 0; margin: 0;
    flex-direction: column;
    gap: .25rem;
    display: flex;
  }
  .mobile-nav-subcategories { padding-left: var(--space-4); }
  .mobile-nav-subcategories ul { gap: .1rem; }
  .nav-link-sub {
    font-size: .9rem;
    padding: .6rem var(--space-3);
    color: var(--text-muted);
  }

  /* Header deasupra meniului mobil */
  .site-header { position: relative; z-index: 1000; }

  .nav-overlay { display: none; }
  .nav-link { padding: .9rem var(--space-4); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }

  .hero { padding: var(--space-7) 0; }
  .hero-search-row { grid-template-columns: 1fr; }

  .listing-row { grid-template-columns: 1fr; }
  .listing-row-img { width: 100%; height: 200px; }
  .listing-row-actions { flex-direction: row; border-left: none; border-top: 1px solid var(--border); min-width: auto; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .listing-grid { grid-template-columns: repeat(1, 1fr); }

  .filter-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .wizard-progress { flex-wrap: wrap; gap: .5rem; }
  .wizard-progress-line { display: none; }
  .wizard-step-label { display: none; }

  .plan-cards { grid-template-columns: 1fr; }

  .gallery-main img { height: 260px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .hours-row { grid-template-columns: 100px auto 1fr auto 1fr; }

  .stat-cards { grid-template-columns: 1fr 1fr; }

  .cookie-inner { flex-direction: column; }

  .pwa-banner-inner { flex-wrap: wrap; }
}

/* ── Mobil mic (≤ 480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .hero-title { font-size: 1.75rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .listings-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .wizard-step-indicator { display: none; }
  .btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
}

/* ── Print ── */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .pwa-banner,
  .offline-banner,
  .lead-form,
  .listing-sidebar .btn,
  .booking-popup,
  nav { display: none; }
  body { background: #fff; color: #333; font-size: 12pt; }
  .info-card, .card { border: 1px solid #ccc; }
  a { color: #333; }
  @page { margin: 2cm; }
}

/* ============================================================
   ADĂUGIRI Sprint 3 — clase lipsă identificate
   ============================================================ */

/* Grid listări */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Desktop: list view ascuns, grid e singurul mod */
@media (min-width: 769px) {
  .listing-list { display: none !important; }
  .view-toggle-btn[aria-label="Afișare listă"] { display: none; }
}

/* Mobil: grid view ascuns, list e singurul mod; toggle ascuns complet */
@media (max-width: 768px) {
  .listing-grid { display: none !important; }
  .listing-list--mobile { display: block !important; }
  .view-toggle { display: none !important; }
}

/* Badge deschis acum */
.badge-open {
  background: rgba(46,204,113,0.15);
  color: var(--success);
  border: 1px solid rgba(46,204,113,0.3);
}
.badge-open .fa-circle { font-size: 0.6em; vertical-align: middle; }

/* Previzualizare pași ghid (homepage CTA) */
.guide-steps-preview {
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.guide-steps-preview .step-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.guide-steps-preview .step-row:last-child { border-bottom: none; }
.guide-steps-preview .step-num-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-steps-preview .step-title-sm {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Card counter categorii */
.category-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Listing row item (S18) */
.listing-row-item {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.listing-row-item:hover { box-shadow: var(--shadow); }
.listing-row-item--premium { border-color: var(--gold-dark); }
.listing-row-img-wrap { position: relative; overflow: hidden; }
.listing-row-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}
.row-badge-premium {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: var(--bg-base);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.listing-row-body { padding: 1.1rem 0; }
.listing-row-top { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.listing-row-title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.listing-row-title a { color: var(--text-primary); }
.listing-row-title a:hover { color: var(--gold); }
.listing-row-rating { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.listing-row-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-row-info { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.row-info-item { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.4rem; }
.row-info-item i { color: var(--gold); font-size: 0.8em; }
.row-info-item a { color: var(--text-secondary); }
.row-info-item a:hover { color: var(--gold); }
.listing-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  border-left: 1px solid var(--border);
}
.listing-row-views { margin-top: 0.5rem; text-align: center; }

/* Card badge-uri (listing-card.php) */
.card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  align-items: flex-end;
}
.card { position: relative; }
.card-img-link { display: block; overflow: hidden; }
.card-img-link img { transition: transform 0.4s ease; }
.card-img-link:hover img { transform: scale(1.04); }
.card-rating { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
.card-location { font-size: 0.83rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-footer-actions { display: flex; gap: 0.4rem; align-items: center; }
.btn-icon { padding: 0.45rem 0.65rem; min-width: 38px; justify-content: center; }
.listing-card--premium { border-color: var(--gold-dark); }

/* Hero search tags (shortcut categorii) */
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.85rem; }

/* Flash message global */
.flash-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  min-width: 300px;
  max-width: 90vw;
  animation: fadeIn 0.3s ease;
}

/* Skip link accesibilitate */
.skip-link { position: absolute; top: -100px; left: 1rem; }
.skip-link.focusable:focus { top: 1rem; }
.focusable:focus { position: static; width: auto; height: auto; clip: auto; overflow: visible; }

/* Header user dropdown */
.header-user-menu { position: relative; }
.header-user-btn { gap: 0.4rem; }
.header-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 4px;
  min-width: 200px;
  z-index: 500;
}
.user-dropdown-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.header-user-menu:hover .user-dropdown,
.header-user-menu:focus-within .user-dropdown { display: block; animation: fadeIn 0.15s ease; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.dropdown-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.dropdown-item i { color: var(--gold); width: 1rem; }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }
.dropdown-item-danger { color: var(--danger); }
.dropdown-item-danger i { color: var(--danger); }
.dropdown-item-danger:hover { background: rgba(231,76,60,0.08); color: var(--danger); }
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--danger);
  color: #fff;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 0.25rem;
}
.notif-badge-sm { font-size: 0.7rem; padding: 1px 5px; background: var(--danger); color: #fff; border-radius: 100px; margin-left: auto; }

/* Header nav submeniu */
.has-submenu { position: relative; }
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  background: transparent;
  min-width: 260px;
  z-index: 1050;
}
.nav-submenu-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu { display: block; animation: fadeIn 0.15s ease; }
.submenu-inner { padding: 0.5rem 0; }
.submenu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition);
}
.submenu-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.submenu-item i { color: var(--gold); width: 1rem; }
.submenu-all { border-top: 1px solid var(--border); margin-top: 0.25rem; padding-top: 0.75rem; color: var(--gold); }
.nav-chevron { font-size: 0.65em; margin-left: 2px; transition: transform var(--transition); }
.has-submenu:hover .nav-chevron { transform: rotate(180deg); }

/* Responsive Sprint 3 adăugiri */
@media (max-width: 992px) {
  .listing-row-item { grid-template-columns: 160px 1fr; }
  .listing-row-actions { grid-column: 1 / -1; flex-direction: row; border-left: none; border-top: 1px solid var(--border); padding: 0.75rem 1rem; }
}
@media (max-width: 768px) {
  .listing-row-item { grid-template-columns: 1fr; }
  .listing-row-img-wrap { height: 200px; }
  .listing-row-body { padding: 0 1rem; }
}

/* ============================================================
   PAGINA CĂUTARE / DIRECTOR — S20
   ============================================================ */

/* Layout search: sidebar filtre + rezultate */
.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar filtre */
.filters-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.filters-sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-sidebar-title a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.filters-sidebar-title a:hover { color: var(--gold); }

/* Mobile: panel filtre collapse */
.filters-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: none;
}
.filters-panel.open { display: block; animation: fadeIn 0.2s ease; }

/* Sort bar + view toggle + count */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.sort-bar-count {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sort-bar-count strong { color: var(--text-primary); }
.sort-select {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  cursor: pointer;
}

/* View toggle butoane grid/list/map */
.view-toggle { display: flex; gap: 4px; }
.view-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
}
.view-toggle-btn:hover,
.view-toggle-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

/* Rezultate */
.search-results { min-height: 300px; }

/* View list */
.listing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* No results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.no-results i {
  font-size: 3.5rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  display: block;
}
.no-results h3 { color: var(--text-secondary); margin-bottom: 0.75rem; }

/* Filtre active (tags deasupra rezultatelor) */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139,69,19,.15);
  border: 1px solid var(--brown);
  color: var(--text-secondary);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
}
.active-filter-tag a {
  color: var(--text-muted);
  margin-left: 0.25rem;
  line-height: 1;
}
.active-filter-tag a:hover { color: var(--danger); }

/* Container hartă Leaflet */
.map-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-surface-2);
}
.map-container-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 1rem;
}
.map-container-placeholder i { font-size: 2.5rem; }

/* Buton filtre mobil */
.filters-toggle-btn {
  display: none;
}

/* Rating stars input filtre */
.rating-filter {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.rating-filter-star {
  font-size: 1.2rem;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s;
}
.rating-filter-star.active,
.rating-filter-star:hover { color: var(--gold); }

/* Checkbox facilități */
.facility-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

/* Responsive search */
@media (max-width: 992px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .filters-toggle-btn { display: flex; }
}
@media (max-width: 768px) {
  .sort-bar { gap: 0.6rem; }
  .sort-bar-count { width: 100%; }
}

/* ============================================================
   PAGINA DETALIU LISTING — S21
   ============================================================ */

/* Layout principal: col-stânga + col-dreapta */
.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Coloana sidebar — sticky ca un bloc, nu elementele din interior */
.listing-detail-layout > div:last-child {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Header listing (titlu + breadcrumb) */
.listing-header { margin-bottom: 1.75rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  gap: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  margin: 0 0.45rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}
.breadcrumb-item a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb-item a:hover { color: var(--gold-light); text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-secondary); }
.listing-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.listing-title { font-size: 2rem; line-height: 1.2; margin-bottom: 0.5rem; }
.listing-slogan { color: var(--text-muted); font-size: 1.05rem; font-style: italic; margin-bottom: 1rem; }
.listing-header-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1rem; }

/* Galerie imagini */
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface-2);
  margin-bottom: 0.75rem;
  aspect-ratio: 16/9;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); }
.gallery-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

/* Price cards */
.prices-list { display: flex; flex-direction: column; gap: 0.75rem; }
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  gap: 1rem;
}
.price-card-name { font-weight: 500; color: var(--text-secondary); }
.price-card-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.price-card-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Recenzii */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.reviews-avg-big { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.review-author { font-weight: 600; color: var(--text-primary); }
.review-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.review-comment { color: var(--text-secondary); line-height: 1.65; }
.review-owner-reply {
  background: var(--bg-surface-2);
  border-left: 3px solid var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
}
.review-owner-reply-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

/* Formular lead */
.lead-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.lead-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

/* Booking modal */
.booking-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.booking-modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.booking-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.booking-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}
.booking-modal-close:hover { color: var(--danger); }

/* Secțiunile paginii */
.listing-section { margin-bottom: 2rem; }
.listing-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.listing-section-title i { color: var(--gold); }

/* Facilități tags */
.facilities-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facility-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.facility-tag i { color: var(--gold); font-size: 0.8em; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-row td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.hours-row:last-child td { border-bottom: none; }
.hours-day { color: var(--text-secondary); min-width: 110px; }
.hours-time { color: var(--text-primary); font-weight: 500; }
.hours-row.today .hours-day { color: var(--gold); font-weight: 600; }
.hours-row.today .hours-time { color: var(--gold); }
.hours-closed { color: var(--text-faint); font-style: italic; }

/* Contact info sidebar */
.contact-info-list { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.contact-info-item i {
  color: var(--gold);
  width: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item a { color: var(--text-secondary); word-break: break-word; }
.contact-info-item a:hover { color: var(--gold); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; overflow: hidden; }
.faq-question {
  width: 100%;
  background: var(--bg-surface-2);
  border: none;
  padding: 0.95rem 1.1rem;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background var(--transition);
}
.faq-question:hover,
.faq-question[aria-expanded="true"] { background: var(--bg-surface-3); color: var(--text-primary); }
.faq-chevron { font-size: 0.75rem; flex-shrink: 0; transition: transform var(--transition); }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.1rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s ease; }
.faq-answer.open { max-height: 400px; padding: 0.85rem 1.1rem 1rem; }
.faq-answer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin: 0; }

/* Share buttons */
.share-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Harta embed listing */
.listing-map {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Responsive listing detail */
@media (max-width: 1100px) {
  .listing-detail-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 900px) {
  .listing-detail-layout { grid-template-columns: 1fr; }
  .lead-form { position: static; }
}
@media (max-width: 600px) {
  .listing-title { font-size: 1.5rem; }
}

/* ============================================================
   GHID POST-DECES — S22, S23
   ============================================================ */

/* Layout ghid: sidebar + conținut */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Sidebar navigare pași */
.guide-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}
.guide-sidebar-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.guide-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: .88rem;
  transition: all var(--transition);
  text-decoration: none;
}
.guide-nav-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.guide-nav-item.active {
  background: rgba(139,69,19,.15);
  color: var(--gold);
  font-weight: 600;
  border-left: 3px solid var(--brown);
  padding-left: .625rem;
}
.guide-nav-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
}
.guide-nav-item.active .guide-nav-num {
  background: var(--brown);
  color: #fff;
}
.guide-nav-item.completed .guide-nav-num {
  background: var(--success);
  color: #fff;
}

/* Card pas ghid (index) */
.guide-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
.guide-step-card:hover {
  border-color: var(--brown);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.guide-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-step-body { flex: 1; }
.guide-step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .35rem;
}
.guide-step-card:hover .guide-step-title { color: var(--gold); }
.guide-step-excerpt {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-step-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .65rem;
  flex-wrap: wrap;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(139,69,19,.12);
  border: 1px solid rgba(139,69,19,.25);
  color: var(--gold);
  border-radius: 100px;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}
.guide-step-checklist-count {
  font-size: .78rem;
  color: var(--text-muted);
}
.guide-step-arrow {
  color: var(--text-faint);
  font-size: 1.1rem;
  align-self: center;
  flex-shrink: 0;
  transition: color var(--transition);
}
.guide-step-card:hover .guide-step-arrow { color: var(--gold); }

/* Contor progres global */
.guide-progress-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.guide-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .6rem;
  font-size: .88rem;
  color: var(--text-secondary);
}
.guide-progress-pct { font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.guide-progress-bar-track {
  height: 8px;
  background: var(--bg-surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.guide-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brown), var(--gold));
  border-radius: 100px;
  transition: width .4s ease;
}

/* Conținut pas detaliu */
.guide-content { line-height: 1.8; color: var(--text-secondary); }
.guide-content p { margin-bottom: 1rem; }
.guide-content h3 { color: var(--text-primary); margin: 1.5rem 0 .65rem; }
.guide-content ul, .guide-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.guide-content li { margin-bottom: .35rem; }

/* Checklist interactiv */
.checklist-wrap {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.75rem;
}
.checklist-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-primary);
}
.checklist-title i { color: var(--gold); }
.checklist-progress-bar {
  height: 6px;
  background: var(--bg-surface-3);
  border-radius: 100px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brown), var(--gold));
  border-radius: 100px;
  transition: width .3s ease;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(74,63,56,.4);
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-cb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  margin-top: 1px;
}
.checklist-item.done .checklist-cb {
  background: var(--success);
  border-color: var(--success);
}
.checklist-item.done .checklist-cb::after {
  content: '✓';
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.checklist-text {
  flex: 1;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.checklist-item.done .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}
.checklist-count-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .75rem;
  text-align: right;
}

/* Navigare prev/next pas */
.guide-step-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.guide-step-nav-btn {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  gap: .25rem;
}
.guide-step-nav-btn:hover { border-color: var(--brown); }
.guide-step-nav-btn.next { text-align: right; }
.guide-step-nav-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.guide-step-nav-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-primary);
}
.guide-step-nav-btn:hover .guide-step-nav-title { color: var(--gold); }

/* Responsive ghid */
@media (max-width: 992px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
}

/* ============================================================
   PAGINI AUTH: login, register, contact — S24, S25, S26
   ============================================================ */

.auth-layout {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 20px);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.auth-logo a span { color: var(--gold); }
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .35rem;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.password-toggle-wrap { position: relative; }
.password-toggle-btn {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .25rem;
  font-size: .9rem;
  line-height: 1;
}
.password-toggle-btn:hover { color: var(--gold); }
.password-toggle-wrap .form-control { padding-right: 2.5rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brown);
  flex-shrink: 0;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   OWNER DASHBOARD — Sprint 5
   ============================================================ */

/* Layout owner: sidebar + conținut */
.owner-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
}
.owner-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}
.owner-content {
  padding: 2rem;
  min-width: 0;
}
.owner-sidebar-section {
  padding: 0 .75rem;
  margin-bottom: 1.25rem;
}
.owner-sidebar-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  padding: 0 .75rem;
  margin-bottom: .4rem;
}
.owner-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: .88rem;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}
.owner-nav-link i { width: 1.1rem; color: var(--text-muted); flex-shrink: 0; }
.owner-nav-link:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.owner-nav-link:hover i { color: var(--gold); }
.owner-nav-link.active {
  background: rgba(139,69,19,.15);
  color: var(--gold);
  font-weight: 600;
}
.owner-nav-link.active i { color: var(--gold); }
.owner-nav-link .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

/* Dashboard grid statistici */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-card-sub {
  font-size: .78rem;
  color: var(--text-muted);
}
.stat-card-icon {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: .7;
  align-self: flex-end;
  margin-top: -.5rem;
}
.stat-card--green .stat-card-value { color: var(--success); }
.stat-card--gold  .stat-card-value { color: var(--gold); }
.stat-card--red   .stat-card-value { color: var(--danger); }

/* Tabel date */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-surface-2); }
.data-table-empty {
  text-align: center;
  padding: 2.5rem !important;
  color: var(--text-muted);
  font-style: italic;
}

/* Status badges listări */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 100px;
  padding: .22rem .7rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.status-badge--approved  { background: rgba(46,204,113,.12); color: #27ae60; border: 1px solid rgba(46,204,113,.3); }
.status-badge--pending   { background: rgba(243,156,18,.12); color: #e67e22; border: 1px solid rgba(243,156,18,.3); }
.status-badge--expired   { background: rgba(231,76,60,.12);  color: #c0392b; border: 1px solid rgba(231,76,60,.3); }
.status-badge--inactive  { background: rgba(149,165,166,.12);color: #7f8c8d;border: 1px solid rgba(149,165,166,.3); }
.status-badge--confirmed { background: rgba(46,204,113,.12); color: #27ae60; border: 1px solid rgba(46,204,113,.3); }
.status-badge--cancelled { background: rgba(231,76,60,.12);  color: #c0392b; border: 1px solid rgba(231,76,60,.3); }

/* Lead card (inbox) */
.lead-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  transition: border-color var(--transition);
}
.lead-card.unread { border-left: 3px solid var(--gold); }
.lead-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.lead-card-name { font-weight: 600; color: var(--text-primary); }
.lead-card-date { font-size: .78rem; color: var(--text-muted); flex-shrink: 0; }
.lead-card-meta { display: flex; flex-wrap: wrap; gap: .65rem; font-size: .84rem; margin-bottom: .5rem; }
.lead-card-meta a { color: var(--text-secondary); }
.lead-card-meta a:hover { color: var(--gold); }
.lead-card-message { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.lead-card-actions { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.lead-card-listing { font-size: .76rem; color: var(--text-muted); margin-bottom: .4rem; }

/* Form adăugare / editare listing */
.listing-form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.listing-form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.listing-form-section-title i { color: var(--gold); }

/* Upload zone imagini */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(200,168,75,.05);
  color: var(--text-secondary);
}
.upload-zone i { font-size: 2.5rem; display: block; margin-bottom: .75rem; color: var(--text-faint); }
.upload-zone p { margin: 0; font-size: .9rem; }
.upload-zone small { font-size: .78rem; }

/* Galerie upload preview */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.upload-preview-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview-item .remove-img-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-preview-item .main-img-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--gold);
  color: var(--bg-base);
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Hours builder */
.hours-builder { display: flex; flex-direction: column; gap: .6rem; }
.hours-day-row { display: grid; grid-template-columns: 100px 1fr; gap: .75rem; align-items: center; }
.hours-day-row .day-label { font-size: .88rem; color: var(--text-secondary); }
.hours-day-row .day-inputs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hours-closed-chk { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-muted); cursor: pointer; }

/* Page header owner */
.owner-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.owner-page-title { font-size: 1.4rem; font-weight: 700; }
.owner-page-title span { color: var(--gold); }

/* Booking card */
.booking-status-select {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  padding: .35rem .7rem;
  font-size: .82rem;
  cursor: pointer;
}

/* Responsive owner */
@media (max-width: 992px) {
  .owner-layout { grid-template-columns: 1fr; }
  .owner-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: .75rem 0; }
  .owner-content { padding: 1.25rem 1rem; }
}
@media (max-width: 640px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .hours-day-row { grid-template-columns: 80px 1fr; }
}

/* ============================================================
   ARTICOLE UTILE
   ============================================================ */
.article-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 .5rem;
}
.article-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 .4rem;
}
.article-content p { margin-bottom: .9rem; }
.article-content ul,
.article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .4rem; }
.article-content ul li::marker { color: var(--primary); }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { opacity: .8; }
.article-content strong { color: var(--text-primary); font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-surface-2);
  padding: .85rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  color: var(--text-secondary);
}
.article-content code {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .88em;
}
.article-content pre {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.article-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}

/* ============================================================
   EPITAFURI
   ============================================================ */

/* Card generat CSS (text alb pe gri închis) */
.epitaph-card {
  position: relative;
  background: linear-gradient(145deg, #2a2520, #1e1a17);
  border: 1px solid #4a3f38;
  border-radius: 10px;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 200px;
  justify-content: center;
  overflow: hidden;
}

.epitaph-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(200,168,75,.07) 0%,
    transparent 60%);
  pointer-events: none;
}

.epitaph-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .8;
  color: var(--gold);
  opacity: .4;
  font-style: normal;
  margin-bottom: -.5rem;
}

.epitaph-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: #f0e8df;
  position: relative;
  z-index: 1;
}

.epitaph-author {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .04em;
  text-align: right;
  margin-top: .25rem;
}

/* Grid pagina /epitafuri */
.epitaphs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.epitaph-item {
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
}

/* Secțiune homepage */
.epitaphs-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .epitaphs-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .epitaphs-home-grid { grid-template-columns: 1fr; }
  .epitaph-text { font-size: .95rem; }
}

/* ============================================================
   NECROLOGURI
   ============================================================ */

/* ── Progress bar multi-step ── */
.obit-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
}
.obit-progress::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.obit-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.obit-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .2s;
}
.obit-step--active .obit-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #1e1a17;
}
.obit-step--done .obit-step-num {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}
.obit-step--done .obit-step-num::before { content: '✓'; }
.obit-step--done span.obit-step-num { font-size: 0; }
.obit-step-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}
.obit-step--active .obit-step-label { color: var(--gold); font-weight: 600; }

/* ── Form panel ── */
.obit-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.obit-panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-primary);
}
.obit-panel-title i { color: var(--gold); font-size: 1rem; }

/* ── Hero pagina publică ── */
.obit-hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1rem 2.5rem;
}
.obit-hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.obit-portrait-wrap {
  position: relative;
  flex-shrink: 0;
}
.obit-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: block;
}
.obit-portrait-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-faint);
}
.obit-candle {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1.6rem;
  animation: candle-flicker 3s ease-in-out infinite;
}
@keyframes candle-flicker {
  0%,100% { transform: scale(1) rotate(-2deg); }
  50%      { transform: scale(1.08) rotate(2deg); }
}
.obit-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 .5rem;
  line-height: 1.15;
}
.obit-dates {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.obit-dates-sep { color: var(--gold); }
.obit-age {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .15rem .65rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.obit-places {
  display: flex;
  gap: 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.obit-places i { margin-right: .3rem; color: var(--gold); }
.obit-share {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}
.obit-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-surface-2);
  cursor: pointer;
  transition: all .15s;
  font-size: .9rem;
}
.obit-share-btn:hover { border-color: var(--gold); color: var(--gold); }
.obit-share-fb:hover { border-color: #1877f2; color: #1877f2; }
.obit-share-wa:hover { border-color: #25d366; color: #25d366; }

/* ── Anunț ── */
.obit-announcement {
  background: var(--bg-surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Secțiuni ── */
.obit-section { margin-bottom: 2.5rem; }
.obit-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.obit-section-title i { color: var(--gold); font-size: 1rem; }

/* ── Info cards ── */
.obit-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.obit-info-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(200,168,75,.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  font-size: 1rem;
}
.obit-info-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}
.obit-info-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Familie ── */
.obit-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.obit-family-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.obit-family-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.obit-family-label i { margin-right: .35rem; }
.obit-family-value {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Servicii funerare ── */
.obit-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.obit-service-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.obit-service-item > i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.obit-service-item div { display: flex; flex-direction: column; gap: .2rem; }
.obit-service-item strong {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.obit-service-item span { font-size: .9rem; color: var(--text-secondary); }

/* ── Galerie ── */
.obit-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
}
.obit-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: opacity .15s;
}
.obit-gallery-item:hover img { opacity: .85; }

/* ── Listing grid ── */
.obit-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.obit-listing-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.obit-listing-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.obit-listing-photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}
.obit-listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.obit-listing-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 1.5rem;
}
.obit-listing-info { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
.obit-listing-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obit-listing-dates { font-size: .8rem; color: var(--gold); }
.obit-listing-age {
  background: var(--bg-surface-2);
  border-radius: 10px;
  padding: .1rem .45rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: .4rem;
}
.obit-listing-excerpt {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.obit-listing-meta { font-size: .75rem; color: var(--text-faint); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .obit-hero-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
  .obit-portrait, .obit-portrait-placeholder { width: 110px; height: 110px; }
  .obit-dates, .obit-places, .obit-share { justify-content: center; }
  .obit-progress { gap: 0; }
  .obit-step-label { display: none; }
  .obit-panel { padding: 1.25rem; }
}

/* ============================================================
   SPRINT 2 — CONDOLEANȚE + REACȚII
   ============================================================ */

/* ── Contoare hero ── */
.obit-counters {
  display: flex;
  gap: 1.25rem;
  margin: .75rem 0;
  flex-wrap: wrap;
}
.obit-counter {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--text-secondary);
}
.obit-counter i { color: var(--gold); }
.obit-counter-icon { font-size: 1rem; }
.obit-counter span { font-weight: 700; color: var(--text-primary); }
.obit-counter small { font-size: .78rem; color: var(--text-muted); }

/* ── Butoane acțiuni hero ── */
.obit-actions {
  display: flex;
  gap: .6rem;
  margin: .85rem 0;
  flex-wrap: wrap;
}
.obit-action-btn {
  padding: .45rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.obit-action-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,168,75,.08);
}
.obit-action-btn:disabled { opacity: .6; cursor: default; }

/* ── Badge contor ── */
.obit-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--gold);
  color: #1e1a17;
  border-radius: 11px;
  font-size: .75rem;
  font-weight: 700;
  padding: 0 .4rem;
  margin-left: .5rem;
}

/* ── Reactions wall ── */
.obit-reactions-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}
.obit-reactions-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.obit-reaction-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.obit-reaction-display {
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.obit-flame {
  font-size: 1.6rem;
  display: inline-block;
  animation: flame-flicker 2s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes flame-flicker {
  0%,100% { transform: scaleY(1) rotate(-2deg); }
  25%      { transform: scaleY(1.1) rotate(1deg); }
  75%      { transform: scaleY(.95) rotate(-1deg); }
}
.obit-flower {
  font-size: 1.5rem;
  display: inline-block;
  animation: flower-sway 3s ease-in-out infinite;
}
@keyframes flower-sway {
  0%,100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
.obit-reaction-btn {
  padding: .55rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.obit-reaction-btn--candle:hover:not(:disabled) {
  background: rgba(255,193,7,.1);
  border-color: #ffc107;
  color: #b8860b;
}
.obit-reaction-btn--flower:hover:not(:disabled) {
  background: rgba(255,105,180,.1);
  border-color: hotpink;
  color: #c2185b;
}
.obit-reaction-btn:disabled { opacity: .6; cursor: default; }
.obit-reaction-count {
  font-size: .82rem;
  color: var(--text-muted);
}
.obit-reaction-count span { font-weight: 700; color: var(--text-primary); }

/* ── Condoleanțe ── */
.condolences-form-wrap {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.condolence-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  animation: fadeInUp .3s ease;
}
.condolence-item--new { animation: fadeInUp .4s ease; }
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.condolence-item:last-child { border-bottom: none; }
.condolence-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.condolence-body { flex: 1; min-width: 0; }
.condolence-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.condolence-meta strong { font-size: .92rem; color: var(--text-primary); }
.condolence-meta span   { font-size: .78rem; color: var(--text-faint); }
.condolence-message {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 580px) {
  .obit-reactions-wall { grid-template-columns: 1fr; }
  .obit-counters { gap: .75rem; }
}

/* EasyMDE full-width în formularul de creare necrolog */
.obituary-create-page .EasyMDEContainer,
.obituary-create-page .EasyMDEContainer .CodeMirror,
.obituary-create-page .editor-toolbar {
  width: 100%;
  box-sizing: border-box;
}
.obituary-create-page .EasyMDEContainer .CodeMirror {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  font-size: .92rem;
  line-height: 1.7;
}
.obituary-create-page .editor-toolbar {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.obituary-create-page .editor-toolbar button {
  color: var(--text-secondary) !important;
}
.obituary-create-page .editor-toolbar button:hover,
.obituary-create-page .editor-toolbar button.active {
  background: rgba(200,168,75,.1) !important;
  color: var(--gold) !important;
}
.obituary-create-page .editor-preview {
  background: var(--bg-surface);
  padding: 1rem;
}

/* ============================================================
   BUTON WHATSAPP FLOTANT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
  color: #fff;
}
.whatsapp-float-tooltip {
  position: absolute;
  right: 64px;
  background: #1e1a17;
  color: #fff;
  font-size: .8rem;
  white-space: nowrap;
  padding: .4rem .8rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  font-family: var(--font-body);
}
.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
}
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .whatsapp-float-tooltip { display: none; }
}
