:root { --wrap: 1200px; --gap: 16px; }

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.wls-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eee; }
.site-header .wls-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark svg {
  width: 244px;
    height: auto;
    max-height: 50px;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
	display: none;
}


.primary-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.primary-nav a { text-decoration: none; color: #333; font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 10px; text-decoration: none; color: #111; background: #fff; }
.btn-green { background: #14a44d; border-color: #14a44d; color: #fff;  }

.site-main { padding: 24px 0; background-color: #f9fafb; }
.wp-singular .site-main { background-color: #FFFFFF; }
.directory-search { display: flex; gap: 10px; }
.directory-search input { flex: 1; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; }

.directory-filters { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.filter select { padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.site-header .btn {
	font-weight: 500; 
	font-size: 14px; 
	line-height: 20px;
	padding: 8px 16px;
	border-radius: 0;
}
.site-header .btn-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } .site-header .btn-icon { width: 14px; height: 14px } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }


.sidebar-list {
    gap: 18px;
    display: flex;
    flex-direction: column;
}
.card { 
	border-radius: 10px; 
	overflow: hidden; 
	background: #fff; 
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
	transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 300ms;
	animation-duration: 300ms;
}
.card:hover {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.card-media { 
	display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    width: 100%;
    overflow: hidden;
}
.card-media img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
	display: block; 
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 700ms;
    will-change: transform;
    animation-duration: 700ms;
}
.card:hover .card-media img {
	--tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.card-media-fallback { display: grid; place-items: center; height: 100%; color: #666; font-size: 14px; }
.card-backdrop {
    opacity: 0;
    position: absolute;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    animation-duration: 300ms;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(to top, #00000099, transparent, transparent);
}
.card:hover .card-backdrop {
	opacity: 1;
}
.card-meta-locations {
    gap: 0;
    display: flex;
    align-items: center;
}
.card-separate+a.meta-link {
    margin-left: 5px;
}
.card-play {
	opacity: 0;
	display: flex;
	position: absolute;
	transform: translate(0, 0) rotate(0) skewX0) skewY(0) scaleX(.9) scaleY(.9);
	align-items: center;
	justify-content: center;
	transition-duration: 300ms;
	animation-duration: 300ms;
	left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.card:hover .card-play {
	opacity: 1;
	transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}
.card-play-button {
	background-color: rgb(255 255 255 / 0.2);
	border-radius: 9999px;
    border: 1px solid #fff;
    padding: 12px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-play-button svg {
	fill: #FFFFFF;
	stroke: #FFFFFF;
}
.badge-live { position: absolute;
    left: 10px;
    top: 10px;
    background: #e11d48;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 5px; }

.card-body { padding: 12px 14px; }
.card-title { margin: 0 0 6px; font-size: 14px; }
.card-title a { 
	text-decoration: none; 
	color: #111827; 
	font-weight: 600; 
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
	overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.card:hover .card-title a {
	color: #2563eb;
}
.card-meta-row svg { width: 12px; height: 12px; }
.card-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}

.card-meta-left{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.card-meta-left a,
.card-meta-left span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:inline-block;
  max-width: 210px; /* ajustezi după grid */
}
.card-meta-row a.meta-link { 
	text-decoration: none; 
	font-weight: 500;
	line-height: 1.25;
	font-size: 0.75rem;
}
.card-meta-right {
	padding: 2px 6px;
	background-color: #f9fafb;
	border-radius: 5px;
}
.card-meta-right .views{
  display:flex;
  align-items:center;
  gap:6px;
  opacity:.7;
  font-variant-numeric: tabular-nums;
	font-size: 10px;
	font-weight: 500;
}

.muted { color: #666; }

.site-footer { border-top: 1px solid #eee; padding: 28px 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: #333; }
.footer-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eee; }
.sr-only { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }


/* ===== Single webcam layout ===== */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

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

.player-wrap { margin-bottom: 18px; }

.player {
  position: relative;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16/9;
}

.player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(2px);
  transform: scale(1.02);
  opacity: .65;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.player-overlay-inner {
  text-align: center;
  color: #fff;
  max-width: 420px;
}

.player-icon { font-size: 42px; margin-bottom: 10px; opacity: .9; }
.player-title { margin: 0 0 6px; font-size: 20px; }
.player-sub { margin: 0 0 14px; opacity: .85; font-size: 14px; }

.btn-play { background: #fff; color: #111; border-color: #fff; font-weight: 700; }

.player-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.player-meta .meta-left{
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
}

.btn.btn-soft.meta-chip {
	text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    gap: 0;
    border: 0;
    background-color: transparent;
    padding: 0;
}

.btn.btn-soft.meta-chip svg {margin-right: 5px; width: 14px; height: 14px; }

.meta-chip-text {
    gap: 0;
    display: inline-flex;
    align-items: center;
	font-weight: 400;
}
/* desktop: arată text complet, ascunde compact */
.meta-chip-compact{ display:none; }
/* default: FĂRĂ tooltip pe desktop */
.meta-chip::before,
.meta-chip::after{
  display:none !important;
}

.player-meta .meta-left .meta-item {
	display: flex;
	align-items: center;
}
.player-meta .meta-left .meta-item svg {
	margin-right: 4px;
	width: 16px;
	height: 16px;
}
.player-meta .meta-item {
	font-size: 14px;
	line-height: 20px;
	color: #4b5563;
}
.player-meta a.meta-link {
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	line-height: 14px;
}
.player-meta a.meta-link:hover {
	color: #2563eb;
}
.player-meta .meta-left .meta-item .card-separate + .meta-link {
	margin-left: 4px;
}
.meta-sep { 
	color: #d1d5db;
    font-weight: 100;
}

.meta-actions { display: flex; gap: 10px; align-items: center; }
.btn-soft { background: #fff; border-color: #e5e5e5; }
.meta-actions .btn, .interest-block .btn {
    cursor: pointer;
    padding: 0 12px;
    color: #4b5563;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    height: 36px;
}
.meta-actions .btn:hover, .interest-block .btn:hover {
    background-color: #f3f4f6;
}
.meta-actions .btn svg {
	width: 14px;
	height: 14px;
}
.single-title { margin: 0 0 10px; font-size: 28px; }
.single-desc { border-top: 1px solid #eee; padding-top: 16px; }

.section-title { margin: 24px 0 12px; font-size: 20px; }

/* Sidebar */
.sidebar-box { position: sticky; top: 84px; }
@media (max-width: 1100px) { .sidebar-box { position: static; } }

.sidebar-title { margin: 0 0 10px; font-size: 16px; }
.sidebar-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  border: 1px solid #eee;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.tab.is-active { background: #111; color: #fff; border-color: #111; }

.rec-card { border: 1px solid #eee; border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.rec-media { display: block; position: relative; aspect-ratio: 16/9; background: #f5f5f5; }
.rec-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-fallback { display: grid; place-items: center; height: 100%; color: #666; font-size: 14px; }

.rec-body { padding: 10px 12px; }
.rec-title { margin: 0 0 4px; font-size: 14px; }
.rec-title a { text-decoration: none; color: #111; }

.player--iframe{
  position: relative;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16/9;
}
.player--iframe iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.player-empty{
  width: 100%;
  height: 100%;
  background: #111;
  background-size: cover;
  background-position: center;
  position: relative;
}
.webcam-interests{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.pill{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #e6e6e6;border-radius:999px;font-size:13px;line-height:1;text-decoration:none}
.pill:hover{border-color:#cfcfcf}
.webcam-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px}
.is-hidden { display: none !important; }


.map-layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.map-sidebar {display:none}
.map-canvas{
  min-height: calc(100vh - 120px);
}

#wls-map.wls-map{
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 500px;
}
/* Header layout */
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Butoane icon */
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  cursor:pointer;
}
.icon-btn svg{ display:block; }

/* Burger vizibil doar pe mobil; meniul normal ascuns pe mobil */
.header-burger{ display:none; }
@media (max-width: 980px){
  .primary-nav{ display:none; }
  .header-burger{ display:inline-flex; border: 0; background: none;}
}

/* Drawer */
.wls-drawer{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
body.wls-drawer-open .wls-drawer{ display:block; }

.wls-drawer__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
}

.wls-drawer__panel{
  position:absolute;
  top:0; right:0;
  width:min(420px, 92vw);
  height:100%;
  background:#fff;
  box-shadow:0 10px 40px rgba(0,0,0,.2);
  display:flex;
  flex-direction:column;
  padding:18px;
  gap:14px;
}

.wls-drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.wls-drawer__title{
  font-weight:700;
  font-size:18px;
}

.drawer-nav{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
.drawer-nav li a{
  display:block;
  padding:14px 10px;
  border-radius:12px;
  text-decoration:none;
}
.drawer-nav li a:hover{
  background:rgba(0,0,0,.04);
}

.wls-drawer__cta{ margin-top:auto; }
.btn-full{ width:100%; justify-content:center; }
.interest-block { margin: 24px 0; }
.interest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
}
.interest-title { margin: 0; }
.interest-title a { text-decoration: none; }

@media (max-width: 1024px){
	.webcam-layout, .map-layout{grid-template-columns:1fr}
	.player-meta { align-items: flex-end; }
	.player-meta .meta-left { gap: 5px; }
	.header-actions .btn-text, .meta-actions .btn span, .player-meta .meta-left .meta-item-views span {display: none}
	.brand-mark svg { width: 200px; }
	.btn.btn-soft.meta-chip {
		position:relative;
		cursor: pointer;
		padding: 0 12px;
		color: #4b5563;
		background-color: #f9fafb;
		border: 1px solid #e5e7eb;
		border-radius: 9999px;
		font-weight: 500;
		font-size: 14px;
		line-height: 20px;
		transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
		transition-timing-function: cubic-bezier(.4, 0, .2, 1);
		transition-duration: .15s;
		height: 36px;
  }

  .meta-chip:hover::after,
  .meta-chip:focus::after,
  .meta-chip.is-open::after{
    display:block !important;
    content: attr(data-tip);
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom: calc(100% + 10px);
    white-space:nowrap;
    padding:8px 10px;
    border-radius:999px;
    border:1px solid #d0d7de;
    background:#fff;
    color:#111;
    font-size:12px;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    z-index:50;
  }

  .meta-chip:hover::before,
  .meta-chip:focus::before,
  .meta-chip.is-open::before{
    display:block !important;
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%) rotate(45deg);
    bottom: calc(100% + 4px);
    width:8px;
    height:8px;
    background:#fff;
    border-left:1px solid #d0d7de;
    border-top:1px solid #d0d7de;
    z-index:51;
  }
	.btn.btn-soft.meta-chip svg { margin-right: 0 }
	.btn.btn-soft.meta-chip-location svg, .btn.btn-soft.meta-chip-views svg { margin-right: 5px; } 
	.meta-chip-text {display: none}
	.meta-chip-compact{ display:inline; }
}
@media (max-width: 400px){
	.btn.btn-soft.meta-chip-location svg { margin-right: 0; }
	.btn.btn-soft.meta-chip-location .meta-chip-compact { display: none; }
}