@import "node_modules/ol/ol.css";

:root {
    --bg-0: #f7fbfa;
    --bg-1: #edf5f4;
    --ink: #062726;
    --brand: #b8dbd9;
    --brand-strong: #8fc6c2;
    --accent: #04724d;
    --card-shadow: 0 24px 38px -28px rgba(6, 39, 38, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: inter_custom;
    src: url(fonts/Inter-VariableFont_opsz,wght.ttf);
}

@font-face {
    font-family: inter_custom;
    src: url(fonts/Inter_18pt-Bold.ttf);
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; top:10px; }
    to { opacity: 1; top: 0; }
}

body{
    padding-top: 70px;
    background:
        radial-gradient(circle at 12% 8%, rgba(143, 198, 194, 0.35), transparent 32%),
        radial-gradient(circle at 88% 82%, rgba(4, 114, 77, 0.12), transparent 28%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: inter_custom;
    overflow-x: hidden;
    overflow-y: auto;
}

body.main-page{
    overflow: hidden;
}

p{
    text-align: center;
    color: #062726;
    font-size: 20px;
}

#logo{
    height: 50px;
    margin-right: 20px;
    vertical-align: middle;
    margin-left: 2vw;
}

#logo-hover{
    height: 50px;
    margin-right: 20px;
    vertical-align: middle;
    margin-left: 2vw;
    display: none;
}

#logo-block:hover #logo{
    display: none;
}

#logo-block:hover #logo-hover{
    display: block;
}

.topnav{
    top: 0;
    height: 70px;
    position: fixed;
    width: 100%;
    overflow: hidden;
    z-index: 1001;
    padding: 10px 0;
    background-color: rgba(184, 219, 217, 0.88);
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px -16px #062726;
}

#logo-block {
    display: flex;
    align-items: center;
}

.topnav > a:first-child {
    margin-right: auto;
}

#nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.topnav a{
    display: inline-block;
    color: #04724D;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.topnav a:hover {
    color: #079163;
}

.home_dashboard_container{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(155deg, var(--brand), var(--brand-strong));
    border: 1px solid rgba(6, 39, 38, 0.14);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    width: 100%;
    min-height: 100%;
    word-wrap: break-word;
    margin-left: 0;
    padding: 28px 32px;
}

.home_dashboard_container:hover{
    background: linear-gradient(155deg, var(--brand), var(--brand-strong));
    transform: translateY(-2px);
    transition: transform 220ms ease;
}

.home_dashboard_container h1 {
    color: var(--ink);
    line-height: 1.05;
    font-size: clamp(2rem, 2.8vw, 3.1rem);
    letter-spacing: -0.02em;
}

.home_dashboard_container p{
    position: static;
    font-size: clamp(1.18rem, 1.45vw, 1.62rem);
    color: #062726;
    text-align: left;
    line-height: 1.58;
    max-width: 100%;
}

.home_dashboard_image{
    display: block;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    margin-left: 0;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(6, 39, 38, 0.1);
    filter: saturate(1.05) contrast(1.03);
}

.dashboard_scroll_container{
    height: calc(100vh - 70px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.home_slide{
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    min-height: calc(100vh - 70px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: min(96vw, 1600px);
    margin: 0 auto;
    padding: 18px 0;
    gap: 20px;
}

.home_slide_70_30 > :first-child{
    grid-column: span 11;
}

.home_slide_70_30 > :last-child{
    grid-column: span 9;
}

.home_slide_30_70 > :first-child{
    grid-column: span 9;
}

.home_slide_30_70 > :last-child{
    grid-column: span 11;
}

.dashboard_title{
    text-align: center;
    color: #062726;
    padding: auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

.contact_card{
    background: linear-gradient(155deg, var(--brand), var(--brand-strong));
    border: 1px solid rgba(6, 39, 38, 0.14);
    border-radius: 18px;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    box-shadow: var(--card-shadow);
    justify-content: center;
    transform: translateY(0) scale(1);
    transition: transform 240ms ease, box-shadow 240ms ease;
    animation: contactCardRiseIn 460ms ease both;
    cursor: pointer;
}

.contact_card:hover{
    background: linear-gradient(155deg, var(--brand), var(--brand-strong));
    transform: translateY(-9px) scale(1.035);
    box-shadow: 0 32px 48px -24px rgba(6, 39, 38, 0.72);
}

.contact_card p{
    margin-top: 10px;
    font-size: 16px;
    color: var(--ink);
    font-weight: bold;
}

.contact_card h3{
    color: var(--ink);
    font-weight: bold;
}

@keyframes contactCardRiseIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact_image{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border-color: #062726;
    box-shadow: 0 0 5px 2.5px #062726;
}

.contact_grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 1.1rem;
    padding: 20px;
    scrollbar-width: auto;
    justify-content: center;
}

.map {
    position: relative;
    width: 85vw;
    height: 78vh;
    margin: 0 auto;
    box-shadow: 0 0 5px 2.5px #062726;
}

#error-container{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(155deg, var(--brand), var(--brand-strong));
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

#error-container p{
    color: #062726;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
}
#error-container h1{
    color: #062726;
    font-size: 24px;
    text-align: center;
}

#legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F4F4F9;
    padding: 10px;
    border: 1px solid black;
    border-radius: 6px;
    font-size: 13px;
    z-index: 1000;
    max-height: 40vh;
    overflow-y: auto;
}

.legend-title {
    display: flex;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    font-size: 16px;
    color: #062726;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
  color: #062726;
}

.legend-color {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid black;
}

#selector{
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 1000;
    background-color: #F4F4F9;
    padding: 10px;
    border: 1px solid black;
    border-radius: 6px;
    font-size: 14px;
    color: #062726;
}

@media (max-width: 900px) {
    body {
        overflow: auto;
        background-attachment: scroll;
    }

    .dashboard_scroll_container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .home_slide {
        grid-template-columns: 1fr;
        width: 92vw;
        min-height: auto;
        gap: 16px;
        padding: 16px 0;
    }

    .home_slide > :nth-child(n) {
        grid-column: span 1;
    }

    .home_dashboard_container,
    .home_dashboard_image {
        min-height: 52vh;
    }

    .home_dashboard_container {
        padding: 22px;
    }
}