:root {
 --bg-main: #F4F6F9;
 --primary: #0A3D62;
 --secondary: #3C6382;
 --accent: #8B0000;
 --accent-light: #C0392B;
 --text-color: #1B1B1B;
 --title-color:red;
}

html {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Crimson Text', serif;
	background-color: var(--bg-main);
    margin: 0;
	padding: 0;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}
main {
    flex-grow: 1;
}
.txt {
    font-size: 10pt;
    color: #000033;
    text-align: justify;
}
.custom-close-button {
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    /* alb */
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.custom-close-button:hover {
    color: rgb(192, 192, 192);
    /* culoare la hover */
}

/* Personalizare Plyr.js */
.plyr--audio {
    max-width: 300px;
    /* Setează lățimea maximă a player-ului */
    width: 100%;
    /* Asigură că player-ul ocupă întreaga lățime disponibilă a părintelui său */
}

/* front view*/
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing Script Bold&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;500&display=swap');

/* ======== BANNER DESKTOP ======== */

.hero-banner {
    position: relative;
    background-image: url('/images/banner_map.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(70px + (100 * ((100vw - 320px) / 1920)));
    min-height: 50px;
    max-height: 130px;
    height: 130px;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 1;
}

/* opacitatea headerului */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    /* echivalent cu top:0; left:0; right:0; bottom:0; */
    /* background: rgba(255, 255, 255, 0.3);  culoarea și opacitatea overlay-ului*/
    background: linear-gradient(90deg, rgba(245, 245, 245, 0.95) 0%, rgba(245, 245, 245, 0.05) 100%);
    z-index: 0;
}

/* Logo-ul */
.hero-banner .logo {
    flex-shrink: 0;
}

/* Container titlu pe centru absolut orizontal */
.hero-banner .title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, rgba(13, 59, 102, 0.7) 0%, rgba(3, 22, 45, 0.7) 100%);
    color: #fff;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    display: inline-block;
    z-index: 10;
}

/* Stil text titlu */
.hero-banner .title-container h1 {
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: clamp(1rem, 1.5vw, 2rem);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    text-align: center;
}

/* ===== HEADER ===== */
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.3rem;
    position: relative;
    width: 100%;
}
.logo-svg {
	width: 260px;
	height: auto;
	display: block;
}
.site-header hr {
	margin: 0.1rem 0; /* micșorează distanța între logo și titlu */
}
.site-title {
	text-align: left;
	font-weight: 550;
	font-size: clamp(1rem, 1.2rem, 1.1rem); /* dimensiune flexibilă: min 1rem, max 1.5rem */
	color: var(--accent);
	letter-spacing: 0.03em;
	text-shadow: 0 1px 4px rgba(139, 0, 0, 0.3);
	margin-top: 0.4rem;
	line-height: 1.2;
}
/* ===== FLAGS + SEARCH AREA ===== */
.flag-search-container {
	display: flex;
	align-items: center;
	gap: 1rem;
    margin-left: auto;
    padding-right: 20px;
}
.flags {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.flag {
	width: 22px;
	height: 16px;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 2px;
}
/* ===== SEARCH BOX ===== */
.search-bar {
	display: flex;
	align-items: center;
	background: #ffffff; /* fundal alb */
	border: 1px solid rgba(10, 61, 98, 0.3); /* border gri */
	border-radius: 8px; /* colțuri mai rotunjite */
	padding: 6px 12px; /* padding mai generos */
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* shadow subtil */
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
 .search-bar:hover, .search-bar:focus-within {
 border-color: rgba(10, 61, 98, 0.5); /* border mai închis la hover/focus */
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* shadow mai vizibil la hover/focus */
}
.search-field {
	background: transparent;
	border: none;
	outline: none; /* elimină outline pe input */
	color: var(--text-color);
	font-size: 0.95rem;
	width: 160px;
	font-family: 'Crimson Text', serif;
	letter-spacing: 0.02em;
	transition: width 0.3s ease;
}
 .search-field::placeholder {
 color: rgba(10, 61, 98, 0.5);
}
.search-field:focus {
	width: 200px;
}
/* ===== ICON ===== */
.search-icon {
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3px;
	margin-left: 4px;
	outline: none; /* elimină conturul negru */
}
.search-icon:focus {
	outline: none; /* Elimină outline-ul negru */
	background-color: rgba(10, 61, 98, 0.05); /* Adaugă un fundal ușor albastru la focus */
	border-radius: 4px; /* O mică rotunjire */
}
.search-icon svg {
	stroke: rgba(10, 61, 98, 0.3); /* lupa gri */
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.search-icon:hover svg {
	opacity: 0.9;
	transform: scale(1.1);
}

/* ===== NAVIGATION BAR (Desktop) ======= */
.banner-menu {
	position: relative;
	top: 0;
	right: 0;
	width: 100%;
	height: fit-content;
	justify-content: flex-end; /* aliniere la dreapta */
	display: flex;
	background: rgba(13, 59, 102, 0.9);
	font-family: 'Crimson Text', serif;
	font-weight: 400;
	font-size: clamp(0.85rem, 0.7vw + 0.5rem, 1rem);
	letter-spacing: 0.02em;
}
.banner-menu a {
	color: #ffffff;
	min-width: 90px;
	text-decoration: none;
	display: block;
	padding: 6px 10px;
	border-radius: 4px;
	transition: background-color 0.25s ease, color 0.25s ease;
	text-shadow: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.banner-menu a:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #fdfdfd;
}
/* Structura meniului principal */
.banner-menu ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 2px 0;
	flex-wrap: wrap;
}
.banner-menu li {
	position: relative;
	margin: 0 12px;
}
/* Submeniu dropdown (Desktop) */
.banner-menu li .dropdown-content {
	display: none;
	position: absolute;
	background: rgba(13, 59, 102, 0.95);
	border-radius: 5px;
	padding: 4px 0;
	min-width: 160px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(-10px);
	top: calc(100% + 2px);
	left: 0;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
	z-index: 9999;
}
/* Linkuri din dropdown */
.banner-menu li .dropdown-content a {
	display: block;
	padding: 6px 10px;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Crimson Text', serif;
	transition: background-color 0.25s ease;
}
.banner-menu li .dropdown-content a:hover {
	background-color: rgba(255, 255, 255, 0.15);
}
/* Activare dropdown la hover */
.banner-menu li.dropdown:hover .dropdown-content {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ============ BEGIN MAP =================*/
.content-fieldset {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #3C6382;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-section {
    padding: 20px;
}

.inner-fieldset {
    width: 95%;
    margin: 5px auto;
    padding: 5px;
    border: 2px solid #3C6382;
    border-radius: 8px;
    background-color: #ffffff;
    margin-top: 5px;

}

.inner-fieldset legend {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: #2b2b2b;
    font-weight: bold;
}

.content-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1 rem;
    color: #333333;
    line-height: 1.6;
    text-align: justify;
}
.container {
    background-color: #ffffff !important;
}
.content-text p {
    margin-bottom: 5px;
}

.map {
    width: 100%;
    height: 630px;
    margin-bottom: 0;
    border: 1px solid #3C6382;
    border-radius: 8px;
    box-sizing: border-box;
}

.leaflet-container {
    background: #fff;
}

/* Control reset zoom  */
.leaflet-control-reset {
    background: #3C6382;
    color: #fff;
    font-size: 18px;
    line-height: 26px;
    width: 30px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    user-select: none;
}

/* Control slider opacitate */
.leaflet-control-opacity {
    background: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.leaflet-control-opacity label {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.leaflet-control-opacity input[type="range"] {
    width: 120px;
    margin: 0;
    vertical-align: middle;
}

.leaflet-bar button {
    background: #fff;
    width: 34px;
    height: 34px;
    line-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.leaflet-bar button:last-child {
    border-bottom: none;
}

.leaflet-bar button:hover {
    background: #f4f
}

.image-container {
    position: relative;
    height: 750px;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 750px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.image-container img.active {
    opacity: 1;
}

/*========= PIN MAP =============*/
        .map-pin-wrapper {
            transition: transform 0.15s ease-in-out;
            transform-origin: center;
        }

        /* animație hover */
        .map-pin-wrapper:hover {
            transform: scale(1.25);
            z-index: 9999 !important;
        }

        /* puls continuu activabil opțional */
        .pulse {
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.15);
            }

            100% {
                transform: scale(1);
            }
        }
/*     END PIN        */

/* ===== END MAP ===== */

/* Hamburger ascuns implicit (desktop) */
.banner-menu .icon {
	display: none;
}


/* Responsive pentru mobile */
/* ======== MOBILE ======== */

@media screen and (max-width: 768px) {
    .hero-banner {
        background-image: none !important;
        height: calc(10px + (40 * ((100vw - 320px) / 448)));
       /* min-height: 10px;
        max-height: 50px; */
        padding: 0;
        display: flex;
        align-items: center;
    }

    .banner-menu {
        position: relative;
        justify-content: flex-start;
        top: 0;
        left: 0;
        padding: 0;
        width: 100%;
        background: rgba(13, 59, 102, 0.9);
        font-size: clamp(0.9rem, 2.5vw, 1.5rem);
        /* ajustăm font-size pe mobile */
        z-index: 9999;
    }

    .banner-menu .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: #fff;
        background: rgba(13, 59, 102, 0.7);
        padding: 8px;
        border-radius: 6px;
        z-index: 3;
        cursor: pointer;
        border: 1px solid #003366;
    }

    .banner-menu .icon:hover {
        background-color: rgba(13, 59, 102, 0.4);
    }

    .banner-menu ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        background: rgba(13, 59, 102, 0.95);
        width: 100%;
        padding: 10px 0;
        z-index: 999;
    }

    .banner-menu ul.show {
        display: flex;
    }

    .banner-menu li {
        margin: 0;
        width: 100%;
    }

    .banner-menu a {
        padding: 12px 20px;
        font-size: clamp(1rem, 2.5vw, 1.4rem);
        display: block;
        color: #fff;
    }

    .banner-menu li .dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        background: rgba(13, 59, 102, 0.85);
        display: none;
        width: 100%;
    }

    .banner-menu li.dropdown.open .dropdown-content {
        display: flex;
        flex-direction: column;
    }

    .banner-menu li .dropdown-content a {
        padding: 10px 20px;
        font-size: clamp(0.9rem, 2.2vw, 1.3rem);
    }

    .leaflet-tooltip.custom-tooltip {
        font-size: 10px;
    }

    .leaflet-zoom-6 .leaflet-tooltip.custom-tooltip {
        font-size: 12px;
    }

    .leaflet-zoom-8 .leaflet-tooltip.custom-tooltip {
        font-size: 14px;
    }

}

/*Logo eNALR - begin*/
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #2ec4f3;
    font-family: 'Allura', cursive;
    width: 100%;
    max-width: 20vw;
    z-index: 3;
}

.logo svg {
    width: 100%;
    /* SVG umple containerul .logo */
    height: auto;
    /* păstrează proporțiile */
    max-height: 25vw;
}

.logo-subtext {
    display: none;
}

/* Animația sound wave
@keyframes colorPulse {
  0%, 100% {
    fill: #003366;
  }
  50% {
    fill: #2ec4f3;
  }
}

.logo .bar {
  animation: colorPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}
*/
/* decalaj animatie */
.bar:nth-child(1) {
    animation-delay: 0s;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

.bar:nth-child(6) {
    animation-delay: 0.5s;
}

.bar:nth-child(7) {
    animation-delay: 0.6s;
}

.bar:nth-child(8) {
    animation-delay: 0.7s;
}

.bar:nth-child(9) {
    animation-delay: 0.8s;
}

.bar:nth-child(10) {
    animation-delay: 0.9s;
}

.bar:nth-child(11) {
    animation-delay: 1s;
}

/*
text {
  filter: drop-shadow(0 0 3px rgba(3,3,255,0.5));
}*/

/* Responsive pe ecrane mici, optimizarea fontului pentru logo*/
@media screen and (max-width: 320px) {
    .logo-subtext {
        font-size: 2.5vw;
        /* mai mare pe foarte mic */
    }

    .logo {
        max-width: 70vw;
    }
}

/*Logo eNALR - end*/

/* ===== FOOTER ===== */

.site-footer {
	background: rgba(13, 59, 102, 0.9);
	color: #fff;
	text-align: center;
	padding: 1rem;
	font-size: 0.9rem;
    font-family: 'Crimson Text', serif;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
    padding: 0.1rem 1rem;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #2ec4f3;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.footer-section {
    flex: 1 1 300px;
}
/* ===== END FOOTER ===== */
/* Cursor: hartă default, pin-urile vor avea pointer */
.leaflet-container { cursor: default !important; }
.map-pin-wrapper { cursor: pointer !important; }

/* Dă senzație de card pentru fiecare anchetă */
.investigation-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 10px;
  align-items: center;
}

/* mini meta (mic text) */
.inv-meta { font-size: 13px; color: #444; line-height:1.35; }
.inv-meta small { color: #777; display:block; }

/* Container pentru audio */
.audio-player { width: 220px; }

/* Modal specific tweaks (ex: not to overflow) */
.modal-dialog { box-shadow: 0 12px 36px rgba(0,0,0,0.25); }
.modal-backdrop { cursor: default; }
