html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e0dfdf;
  color: #1a1a1a;
  box-sizing: border-box;
}




header {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('IMG/polusa3.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.test {
  display: flex;
  background-color: black;
  padding: 10px 20px;
  text-align: center;
  flex-direction: row;
  justify-content: space-around;
}

.test h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, rgba(191, 149, 63, 1) 0%, rgba(252, 246, 186, 1) 30%, rgba(179, 135, 40, 1) 48%, rgba(251, 245, 183, 1) 70%, rgba(170, 119, 28, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
  word-break: break-word;
  font-family: Brush Script MT, Brush Script Std, cursive;
}

.test p {
  font-size: 1rem;
  color: white;
  margin: 0.3rem 0;
  font-family: Apple Chancery, cursive;
}



/* Top sub-navigation */
.subnav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background-color: #f7f7f7;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.subnav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.subnav a:hover {
  background: #eaeaea;
}

/* Header with smaller padding */
.subpage-header.small {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Main section */
.visa-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Visa Block */
.visa-block {
  margin-bottom: 3rem;
  background-color: #fdfdfd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.visa-block h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

/* News item */
.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e2e2;
}

.news-item h3 {
  margin: 0 0 0.5rem;
}

.news-item a {
  color: #0073e6;
}

/* Guide list */
.guide-list {
  list-style: none;
  padding: 0;
}

.guide-list li {
  margin: 0.6rem 0;
}

.guide-list a {
  color: #004f9e;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.main-nav {
  z-index: 999;
  background: #ffffff;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  height: 5vh;
  min-height: fit-content;
  position: sticky;
  top: 0;
}
.main-nav button{
  border: none;
  cursor: pointer;
  background-color: white;
}
.sidebar button{
  background-color: black;
  margin: 20px 0px;
}
.container {  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  gap: 10px 10px;
  grid-auto-flow: row;
  grid-template-areas:
    "Home tourism"
    "visa Culture"
    "Test Property"

}




.tourism { grid-area: tourism; }

.visa { grid-area: visa; }

.Culture { grid-area: Culture; }

.recommendations { grid-area: recommendations; }

.Property { grid-area: Property; }

.Forum { grid-area: Forum; }

.Home { grid-area: Home; }

.Test { grid-area: Test; }

.option{
  color: white;
  display: flex;
  min-height: 20px;
  min-width: 20px;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  flex-direction: column;
  border: 1px solid gold;
}
.option:hover{
  background-color: gray;
}
.option h3 {
  font-size: 1rem;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.2;
}
.option i {
  font-size: 2rem;
  color: #c8102e;
  display: block;
  margin-bottom: 0.5rem;
}
.banner{
  background-color: #eee;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 80vh;
}
.banner h1{
  background: linear-gradient(90deg, rgba(191, 149, 63, 1) 0%, rgba(252, 246, 186, 1) 30%, rgba(179, 135, 40, 1) 48%, rgba(251, 245, 183, 1) 70%, rgba(170, 119, 28, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 50px;
  max-width: 80%;
}
.banner img{
  display: flex;
  max-width: 40%;
}
main.visa-section {
  padding: 2rem;
  transition: all 0.3s ease;
}

.menu-button {
  display: none;
  background: #222;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 1rem;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  border-radius: 5px;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  min-width: fit-content;
  z-index: 1000;
  background-color: black;
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  padding-top: 2rem;
  padding: 10px;
}
.sidebar a{
  color: white;
  text-decoration: none;
}
@media (max-width: 768px) {
  .menu-button {
    display: block;
  }
  .hideOnMobile{
    display: none;
  }
  .desktop-nav {
    display: none;
  }

  .banner{
    height: 40vh;
  }
  .test{
    flex-direction: column;
    justify-content: center;
  }
  .search-box {
      width: 20%;
      margin: 0 auto;
      box-sizing: border-box;
      justify-content: center;
    }

    .search-box input {
      width: 100%;
      box-sizing: border-box;
    }

    .search-box button {
      flex-shrink: 0; /* zapobiega ściskaniu przycisku */
    }
    .dropdown ul {
      list-style: none;
      padding: 0;
    }
}


@media (min-width: 769px) {
  .sidebar {
    display: none;
    height: 100%;
    width: 200px;
  }
  .hideOnPC{
    display: none;

  }
  .restaurant-card{
    flex-direction: row;
  }
}

.section {
  display: none;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.SubSection {
  display: none;
  padding: 20px;
  background-color: white;
  height: fit-content;
}

.SubSection.active{
  display: block;
}


.section.active {
  display: block;
}


.search-box {
  margin: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-box form {
  display: contents;
}


.search-box input {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 250px;
}

.search-box button {

  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  color: white;

}
.section1 a{
  display: inline-flex;

}

.recomm{
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  border-bottom: 3px solid red;
}

.section h2{
  display: inline-flex;
}



.top{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2%;
}

.section1 {
  flex-direction: column;
}

.article {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  
}

.article h2 {
  margin: 0 0 10px 0;
  color: black;
}

.article p {
  margin: 10px 0;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* liczba widocznych linii */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-link {
  text-decoration: none;
  display: block;
  padding: 10px 0;
  color: gray;
}


.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 80%;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

input.small-input,
textarea.message-input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  background-color: #fff;
  color: #000; 
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid black;
}

textarea.message-input {
  min-height: 150px;
  resize: none;
}

.contact form .send{
  width: 200px;
  padding: 0.8rem 1.2rem;
  background-color: #10c835;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact form .send:hover {
  background-color: #0ea52a;
}


.city {
  margin-top: 20px;
  border-bottom: 2px solid gray;
}

.city-toggle {
  cursor: pointer;
  position: relative;
}

.city-toggle::after {
  content: "▼";
  font-size: 0.8em;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.city-toggle.active::after {
  transform: rotate(-180deg);
}

.dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.dropdown.open {
  max-height: fit-content; /* dopasuj w razie potrzeby */
}


.restaurant-card {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  margin: 12px auto;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.restaurant-card a {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Zdjęcie */
.restaurant-img {
  width: 150px;
  height: 100%;
  object-fit: cover;
  align-self: center;
  background-color: black;
  border-right: 1px solid gray;
}

/* Opis */
.restaurant-info {
  padding: 16px;
  flex: 1;
}

.restaurant-info h3 {
  margin-bottom: 8px;
}

.restaurant-info p {
  margin: 4px 0;
}

.location {
  font-style: italic;
  color: #666;
}

/* MOBILE */
@media (max-width: 768px) {
  .restaurant-card {
    flex-direction: column;
    align-items: center;
  }

  .restaurant-card a {
    flex-direction: column;
    align-items: center;
  }

  .restaurant-img {
    width: 100%;
    border-right: 0px;
  }

  .restaurant-info {
    width: 90%;
    text-align: justify;
  }
  #map {
    height: 60vh; /* np. 60% ekranu */
  }
}

#map {
  width: 100%;
  aspect-ratio: 1 / 1;  /* kwadrat */
  max-width: 600px;     /* żeby na dużych ekranach nie rozjechało się */
  margin: 0 auto;       /* wyśrodkowanie */
  border-radius: 8px;
  overflow: hidden;
}