/* =============================================== */
/*                     HEADER                     */
/* =============================================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.hero-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: filter 0.5s ease;
    filter: brightness(0.6);
    /* Imagine mai întunecată inițial */
}

.hero-container:hover .hero-img {
    filter: brightness(1);
    /* Revine la luminozitate normală la hover */
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Overlay mai subtil */
    transition: opacity 0.5s ease;
    opacity: 1;
}

.hero-container:hover .hero-img-overlay {
    opacity: 0;
    /* Overlay dispare la hover */
}

.hero-container h1 {
    font-family: 'Montserrat', sans-serif;
    background-color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        height: 30vh;
    }

    .hero-img {
        filter: brightness(0.5);
        /* Mai întunecat pe mobile */
    }
}

/* =============================================== */
/*                  NAVBAR STYLES                  */
/* =============================================== */
nav {
    font-family: 'Montserrat', sans-serif;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
}

.nav-link {
    background-color: white;
    color: black;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.nav-link img {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

/* =============================================== */
/*                  TIPOGRAFIE                    */
/* =============================================== */
main {
    font-family: 'Montserrat', sans-serif;
}

/* =============================================== */
/*                  Harta                          */
/* =============================================== */
#map {
    height: 300px;
    width: 100%;
    max-width: 800px;
    border-radius: 0.5rem;
    margin: 1rem auto;
    display: block;
}

.back-button {
    background-color: #e6ac1a;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.back-button:hover {
    background-color: #e6900b;
    transform: translateY(-2px);
    font-family: 'Montserrat', sans-serif;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 30px 0;
}

/* Butoane navigare secundare */
.nav-button {
    background-color: #e6ac1a;
    transition: all 0.3s ease;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 50%;
}

.nav-button:hover {
    background-color: #d39e17;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-button-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.nav-button-container:hover .nav-button-label {
    color: #1f2937;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    #map {
        height: 400px;
        margin: 2rem auto;
    }

    .nav-container {
        gap: 1rem;
        padding: 1rem 2rem;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 768px) {
    #map {
        height: 500px;
    }

    .nav-buttons-container {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-container {
        flex-wrap: nowrap;
    }
}

@media (max-width: 400px) {
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* Ajustări pentru butoanele de navigare pe ecrane foarte mici */
    .nav-button {
        width: 48px;
        height: 48px;
    }

    .nav-button-label {
        font-size: 0.75rem;
    }
}

/* Garantează că navbar-ul rămâne consistent */
.navbar-custom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Stilizare butoane specifice fără a încălca Tailwind */
.nav-btn-custom {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Corecție pentru hover state */
.nav-btn-custom:hover {
    transform: translateY(-2px);
}

/* =============================================== */
/*          MEDIA QUERIES SPECIFICE               */
/* =============================================== */
@media (max-width: 400px) {

    /* Corecții pentru ecrane foarte mici */
    .nav-btn-custom {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}