/* === BODY & PAGE CONTAINER === */

body {
  margin: 0;
  font-family: sans-serif;
  background: #D9D9D9;
  min-height: 100vh; /* ważne! */
  display: flex;
  flex-direction: column;
}

.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1; /* rozciąga zawartość, aby wypchnąć stopkę na dół */
}


/* === TEKST === */

.h1 {
    font-family: 'Prompt';
    font-style: normal;
    font-weight: 900;
    font-size: 96px;
    line-height: 96px;
    align-items: start;
    color: #242424;
    margin-top:20px;
    margin-bottom:0px;
}

.h1-banner {
    font-family: 'Prompt';
    font-style: normal;
    font-weight: 900;
    font-size: 96px;
    line-height: 96px;
    align-items: start;
    color: #C7731E;
    margin-top:20px;
    margin-bottom:0px;
    white-space: nowrap;
}

.h2 {
    font-family: 'Prompt';
    font-style: normal;
    font-weight: 900;
    font-size: 48px;
    line-height: 48px;
    align-items: start;
    color: #242424;
    margin-top:10px;
    margin-bottom:10px;
}

.bodytext {
    font-family:'Outfit';
    font-weight: 700;
    font-size: 32px;
    align-items: start;
    color: #242424;
    margin-top:10px;
    margin-bottom:10px;
}

.highlight{
    color: #C7731E;
}

/* === NAVBAR === */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  background: #D9D9D9;
  border-bottom: 4px solid #333;
  box-shadow: none;
  z-index: 1000;
}

.navbar-container {
  margin: 0 ;
  padding: 0px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.logo {
  color: #333;
  text-decoration: none; /* usuwa podkreślenie linku */
  font-family: 'Prompt', sans-serif;
  font-weight: 900;
  font-size:48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: #242424;
}

.logo:hover {
  opacity: 0.8; /* lekki efekt hover */
}

.nav-links {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
}

.instagram-link {
  color: #C7731E; /* kolor Instagramu */
  font-size: 2rem; /* rozmiar ikony */
  width: 25 px;
  margin-left: auto; /* np. odsuwa ikonę na prawo */
  padding: 0 10px;
  text-decoration: none;
}

.instagram-link:hover {
  color: #C13584;
}


/* === DROPDOWN === */
.dropdown {
  position: relative;
  display:block;
}

.dropdown.open .dropdown-menu {
  display:block;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: black;
  font-size: 24px;
  font-weight:300;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-family: 'Outfit';
}

.dropdown-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05); /* jasny hover */
}

/* === MENU ROZWIJANE Z MIASTAMI === */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 17px;
  right: 0;
  background-color: #D9D9D9;
  min-width: 180px;
  outline: 4px solid black;
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 10;
}

.dropdown-menu .badge {
  background-color: #C7731E;
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  display: inline-block;
}

.dropdown-menu a,
.dropdown-menu span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;             /* <-- dopasuj do span */
  font-family: 'Outfit';
  font-weight: normal;
  color: #333;
  text-decoration: none;          /* <-- usuwa podkreślenie z <a> */
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

.dropdown-menu span {
  color: #888;
  cursor: default;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* === LANDING PAGE CONTAINER === */
.landing-container {
  max-width: 100%;
  margin: 0;
  padding: 0px 60px;
}

/* === LANDING CONTAINER DO BANERÓW NA LANDING PAGE === */

.landing-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* domyślnie 3 kolumny */
  gap: 20px;
  padding-top: 10px;
  padding-right: 0px;
  padding-bottom: 10px;
  padding-left: 0px;
  margin: 0 auto;
  box-sizing: border-box;
}

.landing-grid-container-text {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* domyślnie 3 kolumny */
  gap: 20px;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 10px;
  padding-left: 0px;
  margin: 0 auto;
  box-sizing: border-box;
}

.landing-banner {
  position: relative;
  background: #242424;
  height: 100px;
  padding: 20px;
  border-radius: 33px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centrowanie zawartości */
  transition: transform 0.2s ease;
}

.landing-banner-copy {
    font-family: 'Prompt';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    align-items: start;
    color: #C7731E;
    margin-top:0px;
    text-align: center;
    justify-content: center; /* centrowanie zawartości */
    text-align: center;
    margin-top:10px;

}

.landing-item {
  position: relative;
  background: #C7731E; /* #D9D9D9 */
  padding: 20px;
  border-radius: 33px;
  border: 4px solid black;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center; /* centrowanie zawartości */
  transition: transform 0.2s ease;
  grid-column: span 3;
  margin-bottom:20px;
}

.landing-item-2 {
  position: relative;
  background: #C7731E;/* #D9D9D9 */
  padding: 20px;
  border-radius: 33px;
  border: 4px solid black;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center; /* centrowanie zawartości */
  transition: transform 0.2s ease;
  grid-column: span 3;
  margin-bottom:20px;
}


/* === NAGŁÓWEK MIASTA === */

.city-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.city-header {
  font-family: 'Outfit';
  font-size: 32px;
  font-weight:800;
  color: #242424;
  margin: 0;
}

.offers-counter {
  background: #C7731E;
  color: #242424;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 400;
  font-family: 'Prompt';
  display: flex;
  align-items: center;      /* wyśrodkuj pionowo */
  line-height: 1;
}

/* === GRID CONTAINER DO MIAST === */

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* domyślnie 4 kolumny */
  gap: 20px;
  padding: 15px 60px;
  margin: 0 auto;
  box-sizing: border-box;
}

.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #242424;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centrowanie zawartości */
  transition: transform 0.2s ease;
}

.grid-item.large {
  grid-column: span 2;
  /* lub grid-row: span 2; jeśli chcesz rozciągnąć w pionie */
}

/* === WYKRESY MIASTA === */

.chart-title {
  align-self: flex-start;
  color: #C7731E;
  font-weight: 500;
  font-family: 'Outfit';
  margin-bottom:5px;
}

.canvas-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
}

canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* === STOPKA === */

.site-footer {
  text-align: start;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family:'Outfit';
  font-weight:300;
  color: #333;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #f9f9f9;
  border-top: 4px solid #333;
  user-select: none;
  margin-top: 0px;
  background:#D9D9D9;
}

.site-footer small:last-child {
  font-weight: bold;
  text-align: right;
}

/* === KALKULATOR === */

.rent-input,
.rent-output{
  grid-column: span 2;
  min-height: 20px; /* cokolwiek pasuje wizualnie */
  height: auto;
  position: relative;
  background: #D9D9D9;
  padding: 20px;
  border-radius: 25px;
  border: 4px solid black;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between; /* centrowanie zawartości */
  transition: transform 0.2s ease;
}

#rentCheckerForm {
  display: flex;
  flex: 1 1 0;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

#rentCheckerForm input,
#rentCheckerForm select {

  appearance: none; /* Usuwa domyślny wygląd selecta */
  -webkit-appearance: none; /* Dla starszych wersji Safari */
  -moz-appearance: none; /* Dla Firefoksa */
  color: inherit;
  background: #D9D9D9;
  padding: 6px 10px;
  border: 1px solid black;
  font-family:'Outfit';
  border-radius: 12px;
  font-size: 14px;
  min-width: 200px;
  flex: 1 1 0;
}

#rentCheckerForm button {
  background: #C7731E;
  color: #242424;
  border: 1px solid black;
  font-family:'Outfit';
  border-radius: 12px;
  padding: 8px 16px;
  flex: 1 1 0;
  cursor: pointer;
}

#rentCheckerForm button:hover {
  background: #E48525;
}

.rent-title {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Outfit';
  margin-bottom: 10px;
}

.rentResult{
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 10px;
}


/* === @MEDIA 768px === */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0px 20px;
  }

  .logo {
    font-size: 36px;
  }

  .landing-container {
    padding: 0px 20px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 20px;
  }

  .landing-grid-container,
  .landing-grid-container-text {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .city-header {
    font-size: 24px;
  }

  .city-header-wrapper {
    gap: 15px;
    margin-top: 10px;
  }

  .h1 {
    font-size: 48px;
    line-height: 48px;
  }

  .h1-banner {
    font-size: 48px;
    line-height: 48px;
  }

  .h2 {
    font-size: 32px;
    line-height: 32px;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
    gap: 5px;
  }

  #rentCheckerForm {
    flex-direction: column; /* Układ pionowy na telefonach */
    flex-wrap: nowrap; /* Zapobiega zawijaniu */
    width:100%;
  }

  #rentCheckerForm input,
  #rentCheckerForm select,
  #rentCheckerForm button {
    width: 100%; /* Pełna szerokość na telefonach */
    min-width: auto; /* Usuwa minimalną szerokość */
    box-sizing: border-box; /* Upewnia się, że padding i border są wliczone w szerokość */
  }

  .rent-input,
  .rent-output {
    grid-column: span 1;
    padding: 12px;
    border-radius: 15px;
  }

  .rent-title {
    font-size: 1rem;
  }
}

/* === @MEDIA 480px === */
@media (max-width: 480px) {

  .navbar {
    height:auto;
  }

  .navbar-container {
    padding-top:5px;
    padding-bottom:5px;
    padding-left:15px;
    padding-right:15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 28px;
    white-space: nowrap;

  }

  .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;

  }

  .dropdown-toggle {
    font-size: 20px;

  }

  .landing-container {
    padding: 0px 15px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 15px;
  }

  .grid-item.large {
    grid-column: span 1;
  }

  .landing-banner {
    height: 80px;
    padding: 15px;
    border-radius: 20px;
  }

  .landing-banner-copy {
    font-size: 14px;

  }

  .city-header {
    font-size: 20px;
  }

  .city-header-wrapper {
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
  }

  .h1 {
    font-size: 72px;
    line-height: 80px;
    margin-top:10px;
  }

  .h1-banner {
    font-size: 36px;
    line-height: 36px;
    margin-top:5px;
  }

  .h2 {
    font-size: 24px;
    line-height: 24px;
  }

  .site-footer {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 10px;
  }

  #rentCheckerForm {
    flex-direction: column; /* Układ pionowy na telefonach */
    flex-wrap: nowrap; /* Zapobiega zawijaniu */
    width:100%;
  }

  #rentCheckerForm input,
  #rentCheckerForm select,
  #rentCheckerForm button {
    width: 100%; /* Pełna szerokość na telefonach */
    min-width: auto; /* Usuwa minimalną szerokość */
    box-sizing: border-box; /* Upewnia się, że padding i border są wliczone w szerokość */
  }

  .rent-input,
  .rent-output {
    grid-column: span 1;
    padding: 12px;
    border-radius: 15px;
  }

  .rent-title {
    font-size: 1rem;
  }

  .dropdown-menu {
    min-width: 150px;
    right: -10px;
  }
}

