body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    margin: 0 auto;
    max-width: 1200px;
    padding: 0;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1a73e8;
    border-radius: 0px 0px 8px 8px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.navbar, .footer {
    width: 100%;
}

.logo-link {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #ffd700;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    color: #1a73e8;
    padding: 10px;
    list-style-type: none;
    width: max-content;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.dropdown-menu li {
    padding: 5px 0;
}

.dropdown-menu li a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.dropdown-menu li a:hover {
    color: #e63946;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.main-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.h1.title {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    color: #1a73e8;
    text-align: left;
    font-weight: 700;
    margin: 0 0 25px;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e63946;
}

.highlight {
    background-color: #fff3e0;
    padding: 10px;
    border-radius: 5px;
}

h1 {
    font-size: 32px;
    color: #1a73e8;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

h5 {
    font-size: 18px;
    color: #555;
    font-weight: 500;
    margin-bottom: 10px;
}

h6 {
    font-size: 16px;
    color: #777;
    font-weight: 500;
    margin-bottom: 10px;
}

.footer {
    margin-top: 40px;
    background-color: #1a73e8;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 8px 8px 0px 0px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-text {
    color: #fff;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.footer-text:hover {
    color: #ffd700;
}

#footer-menu {
    padding: 0;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Linkek közötti távolság */
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.geoapify-route-directions-generate-button {
    background: #1a73e8 !important;
    color: #fff !important;
    font-weight: 600 !important;
    width: 50% !important;
    border-radius: 5px !important;
    transition: background 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.geoapify-route-directions-generate-button:hover {
    background: #e63946 !important;
}

.geoapify-route-directions-message.error {
    font-size: 16px !important;
    margin-left: 10px !important;
    font-weight: 600 !important;
    color: #e63946 !important;
}

.direction-instruction-icon {
    color: #e63946 !important;
}

.direction-waypoints {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.direction-instruction {
    display: flex;
    flex-direction: row;
    margin: 15px 0;
    color: #333;
}

.leaflet-bottom {
    display: none;
}

/* Google Maps */


#search-form {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#search-input {
  flex: 1;
  margin-right: 10px;
  height: 30px;
  border-style: double;
  border-radius: 3px;
  border-color: #cacaca;
  font-size: inherit;
}

#search-button {
  width: auto;
  margin-left: 10px;
}

#map-text {
  opacity: 0;
  transition: opacity 0.3s;
}

#map-container:hover #map-text {
  opacity: 1;
  font-weight: bold;
  color: #ff5050;
  font-size: 35px;
}

#traffic-map { 
  position: relative; 
  top: 0; 
  bottom: 0; 
  width: 100%; 
  height: 600px; 
  margin-bottom: 30px; 
}

.mapboxgl-ctrl-traffic {
background-image: url(data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23333333%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%22-2%20-2%2022%2022%22%3E%0D%0A%3Cpath%20d%3D%22M13%2C4.1L12%2C3H6L5%2C4.1l-2%2C9.8L4%2C15h10l1-1.1L13%2C4.1z%20M10%2C13H8v-3h2V13z%20M10%2C8H8V5h2V8z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: #f0f4f8;
    color: #333;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-banner p {
    margin: 0;
    padding-right: 15px;
}

.cookie-banner button {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #e63946;
}

/* Partners */

.partners-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.partner {
  text-align: center;
  margin-bottom: 20px;
}

.partner a {
  display: block;
  text-decoration: none;
}

.partner img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 150px;
}

.partner-name {
  font-weight: bold;
  margin-top: 10px;
}


@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .nav-list {
        flex-direction: column;
        margin-top: 15px;
    }

    .nav-item {
        margin: 10px 0;
    }

    .main-content {
        padding: 15px;
    }

    .h1.title {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .geoapify-route-directions-generate-button {
        width: 100% !important;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner button {
        margin-top: 10px;
    }
}