/*!
 * SomeTrans & Excavari - stiluri complementare pentru versiunea statică.
 * Se încarcă DUPĂ styles-YnbFCvQy.css, deci poate suprascrie la specificitate egală.
 */

/* Asegurar scroll suave aunque el CSS compilado cambie */
html {
  scroll-behavior: smooth;
}

/* Offsets para que los anclajes no queden bajo la barra fija */
[id] {
  scroll-margin-top: 84px;
}

/* ------------------------------------------------------------------ */
/* Menú móvil (panel construido por site.js)                          */
/* ------------------------------------------------------------------ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 34px;
  background: var(--background);
  color: var(--foreground);
  overflow-y: auto;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-brand {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.mobile-nav-close:hover {
  background: var(--foreground);
  color: var(--background);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.mobile-nav-links a {
  display: block;
  padding: 15px 0;
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

.mobile-nav-links .mobile-nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 22px;
  padding: 12px 22px;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 3px;
}

.mobile-nav-links .mobile-nav-phone:hover {
  background: var(--foreground);
  color: var(--background);
}

/* ------------------------------------------------------------------ */
/* Botones de filtro activos                                          */
/* ------------------------------------------------------------------ */
.filter-row button.filter-active {
  color: var(--background);
  background-color: var(--foreground);
  border-color: var(--foreground);
}

.filter-row button.filter-active:hover {
  color: var(--background);
  background-color: var(--foreground);
  border-color: var(--foreground);
}

/* ------------------------------------------------------------------ */
/* Lightbox de la galería (construido por site.js)                    */
/* ------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.lightbox-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1000px, 100%);
  max-height: 92svh;
  margin: 0;
  background: var(--background);
  border-radius: 6px;
  box-shadow: var(--shadow-photo);
  overflow: hidden;
}

.lightbox-img {
  display: block;
  width: 100%;
  max-height: 74svh;
  object-fit: contain;
  background: var(--secondary);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
}

.lightbox-title {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-size: 1rem;
}

.lightbox-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.lightbox-controls {
  display: flex;
  gap: 8px;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.lightbox-btn:hover {
  background: var(--foreground);
  color: var(--background);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

@media (max-width: 640px) {
  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}
