/*
Theme Name:   Nisarg Child
Author:       Gleb Strunnikov
Author URI:   http://glebstrunnikov.com
Template:     nisarg
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html

*/

@font-face {
  font-family: "Open Sans Variable";
  src: url("./fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  /* Add additional src formats if necessary */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans Variable";
  src: url("./fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf")
    format("truetype");
  /* Add additional src formats if necessary */
  font-weight: normal;
  font-style: italic;
}

body,
button,
input,
select,
textarea,
p,
li {
  font-family: "Open Sans Variable", sans-serif !important;
  color: rgb(236, 236, 236);
}

p {
  text-align: left;
}

section,
section.no-results,
sectio.not-found {
  background-color: rgba(0, 0, 0, 0);
}

body {
  background-color: #191919;
}

a {
  color: #f55951;
}
a:hover {
  color: #fae8bb;
}

p > a > img {
  margin-top: 30px;
}

.popup {
  color: rgb(0, 0, 0);
}

th,
td {
  color: rgb(236, 236, 236);
}
/* @media only screen and (max-width: 720px) {
  body {
    font-size: 14px !important;
  }
} */
tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0);
}
.main-navigation .primary-menu > li > a:hover,
.main-navigation .primary-menu > li > a:focus {
  color: #b64040;
}

.btn-default {
  background-color: rgba(0, 0, 0, 0) !important;
  color: rgb(217, 217, 217) !important;
}

span.tiny {
  font-size: 12px;
}

/* .map-container {
  border-radius: 29px;
  background: #d9d9d9;
  overflow: hidden;
  margin-bottom: 50px;
}

#main-map {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
} */

#navigation_menu {
  width: 100%;
  /* padding-left: 25px;
  padding-right: 25px; */
  min-height: 63px;
  /* position: fixed; */
}

.main-navigation {
  box-shadow: none;
  /* раскомментить чтобы открепить меню */
  /* position: fixed; */
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  /* z-index: 1000; */
  /* background: url("../../../img/background.jpg"); */

  /* background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed; */

  background-color: rgba(0, 0, 0, 0);
}

.nav-link {
  color: rgb(236, 236, 236);
}

.main-navigation .primary-menu > li > a {
  /* box-shadow: 0px 1px 1px rgba(100, 100, 100, 0.2); */
  box-shadow: none;
  color: rgb(236, 236, 236);
  clear: both;
  display: block;
  float: none;
  margin-bottom: 0px;
  width: 100%;
  text-transform: none;
  border-top: none;
  border-bottom: none;
  font-size: 16px !important;
}

.main-navigation .primary-menu > .current-menu-item > a,
.main-navigation .primary-menu > .current-menu-item > a:hover,
.main-navigation .primary-menu > .current-menu-item > a:focus {
  border-top: none;
}

.main-navigation .primary-menu > .current_page_item > a,
.main-navigation .primary-menu > .current_page_item > a:hover,
.main-navigation .primary-menu > .current_page_item > a:focus,
.main-navigation .primary-menu > .current-menu-item > a:hover,
.main-navigation .primary-menu > .current-menu-item > a:focus {
  color: rgb(250, 232, 187);
}

.main-navigation .primary-menu {
  float: none;
}

.small-a-letter {
  font-size: 14px;
}
.big-a-letter {
  font-size: 16px;
}

.site-footer {
  background-color: black;
  min-height: 300px;
  padding: 30px;
}

.gradient-overlay {
  position: fixed;
  /* раскомментить чтобы открепить меню */
  /* top: 63px; */
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  /* background: url("../../../img/background.jpg"); */

  /* Я это закомментил, но пока не понимаю, почему и без этого работает, так что удалять не надо
   -webkit-mask-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(0, 0, 0, 1)),
    to(rgba(0, 0, 0, 0))
  ); */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  background-color: #191919;
  /* background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed; */
  pointer-events: none;
  z-index: 3; /* Set a lower z-index to ensure it appears below the navbar */
}

button.menu-toggle,
button.menu-toggle:active,
button.menu-toggle:hover,
button.menu-toggle:focus {
  background: none !important;
  background-image: none !important;
  background-color: rgba(0, 0, 0, 0) !important;
}

#app {
  z-index: 4;
}

.post-content,
.single-post-content,
.post-comments,
.comments-area {
  background-color: rgba(0, 0, 0, 0);
  clear: both;
  margin-bottom: 2em;

  /* box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
  -o-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15); */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", sans-serif !important;
  color: rgb(236, 236, 236);
  /* max-width: 100%; */
  text-size-adjust: none;
}

/* флекс для пунктов верхнего меню - но без поиска */
.primary-menu {
  display: flex !important;
  flex: 8;
}

.primary-menu .menu-item {
  flex: 1;
  text-align: center;
}

.font-div {
  flex: 1;
  display: flex;
  justify-content: center;
}
@media only screen and (max-width: 720px) {
  .font-div {
    display: none;
  }
}

/* ПОИСК */

.search-form {
  /* position: relative;
  width: 150px; */
  flex: 1;
  display: flex;
  /* justify-content: end; */
}
.search-form:focus-within {
  flex: 3;
  display: flex;
}
input[type="search"].search-field {
  border: none;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 29px;
  color: rgb(217, 217, 217);
}
@media only screen and (max-width: 720px) {
  input[type="search"].search-field {
    border: none;
    background-color: rgb(217, 217, 217);
    border-radius: 29px;
    color: rgba(33, 33, 33, 1);
  }
}
input[type="search"].search-field::placeholder {
  color: rgba(0, 0, 0, 0);
}

.search-form:focus-within > input[type="search"].search-field {
  border: none;
  background-color: rgb(217, 217, 217);
  border-radius: 29px;
  color: rgba(33, 33, 33, 1);
}
.search-form:focus-within > input[type="search"].search-field::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
@media only screen and (max-width: 720px) {
  .search-form {
    margin-top: 10px;
  }
  .search-field::placeholder {
    background: none !important;
  }
}

.search-form > button {
  /* position: relative;
  width: 150px; */
  display: none;
}
@media only screen and (max-width: 720px) {
  .search-form > button {
    display: block;
    position: relative;
    background-image: url("./svg/looking-glass.svg");
    background-size: 20px; /* Adjust size as needed */
    background-repeat: no-repeat;
    background-position: center;
  }
}
.search-submit:before {
  content: none;
}
.search-form:focus-within > button {
  display: block;
  position: relative;
  flex: 1;
  background-image: url("./svg/looking-glass.svg");
  background-size: 20px; /* Adjust size as needed */
  background-repeat: no-repeat;
  background-position: center;
  padding-left: 20px; /* Adjust padding to align placeholder text */
  /* width: 100px !important; */
}
.search-form:focus-within > button:hover {
  border: none;
}

.search-field::placeholder {
  background-image: url("./svg/looking-glass.svg");
  background-size: 20px; /* Adjust size as needed */
  background-repeat: no-repeat;
  background-position: right;
  padding-left: 20px; /* Adjust padding to align placeholder text */
}
.search-form:focus-within > .search-field::placeholder {
  background: none;
}

.search-submit {
  border: none;
  bottom: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  right: auto;
  top: 0;
  width: 42px !important;
  height: 40px;
  background: none;
}

.top-menu-flex {
  display: flex;
  margin-top: 20px;
}
@media only screen and (max-width: 720px) {
  .top-menu-flex > ul {
    flex-direction: column;
    align-items: end;
  }
}

.top-menu-flex > ul {
  /* flex: 1; */
}

.top-menu-flex > li {
  flex: none;
}

/* ПЕРВЫЙ ЭКРАН */

.first-screen-overlay {
  width: 100%;
  height: 90vh;
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center; /* Vertical centering */
}

.first-screen-container {
  margin-bottom: 150px;
  /* max-width: 100%; */
}

.first-screen-container > h1 {
  text-transform: uppercase;
  font-weight: 700;
  /* font-size: clamp(16px, 90px, 90px); */
  /* font-size: 90px; */
  line-height: 90px;
  letter-spacing: 5px;
  white-space: nowrap;
}
.first-screen-container > h1 {
  font-size: 90px;
}
@media only screen and (max-width: 720px) {
  .first-screen-container > h1 {
    font-size: 40px;
  }
}
.first-screen-container > p {
  color: rgb(182, 64, 64);
  font-weight: 550;
  margin-top: 35px;
}

/* ДРУГОЕ */

.site-content {
  margin-top: 50px !important;
}

.site-main {
  margin-left: 50px;
  margin-right: 50px;
}
@media only screen and (max-width: 720px) {
  .site-main {
    margin-left: 20px;
    margin-right: 20px;
  }
}

#font-btn {
  background: none;
  border: none;
}

.font-big {
  font-size: 30px !important;
}
h1.font-big {
  font-size: 100px !important;
}

.filters-container {
  border-radius: 29px;
  background: rgb(217, 217, 217);
  overflow: hidden;
  padding: 10px 40px 10px 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.map-search-input {
  background: none;
  border: none;
  margin-left: 10px;
  margin-right: 10px;
}

.box-text {
  color: rgb(33, 33, 33);
  font-weight: 550;
}

.background-shade {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* .nav-shade {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
} */

.main-content {
  width: auto;
}
.distance-panel {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-ctrl-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  right: 0px;
  /* ПРОВЕРИТЬ ЧТОБ ТОП: 0 НЕ ВЫЗЫВАЛ ПРОБЛЕМ НА СТРАНИЦАХ ОБЪЕКТОВ */
  top: 0px;
  margin: 20px;
}
.map-btn {
  border-radius: 50%;
  background-color: rgb(59, 59, 59);
  background-image: none;
  margin-bottom: 15px;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-btn:hover,
.map-btn:active,
.map-btn:focus {
  border-radius: 50%;
  background-color: rgb(59, 59, 59);
  background-image: none;
  padding: 5px;
}
img.map-btn-icon {
  width: 20px;
  height: 20px;
  margin: 5px;
  color: rgb(219, 219, 219);
  border: none !important;
  border-image: none;
}
.map-btn-zoom-icon {
  height: 15px;
  width: 15px;
}
.map-btn-zoom-in,
.map-btn-zoom-in:hover,
.map-btn-zoom-in:active,
.map-btn-zoom-in:focus {
  margin-bottom: 0;
  border-radius: 20px 20px 0 0 !important;
  height: 50px;
  border-bottom-width: 0;
}
.map-btn-zoom-out,
.map-btn-zoom-out:hover,
.map-btn-zoom-out:active,
.map-btn-zoom-out:focus {
  border-top-width: 0;
  border-radius: 0 0 20px 20px !important;
  height: 50px;
}

.entry-header {
  padding-top: 1em;
  padding-bottom: 0;
  text-align: start;
  text-transform: none;
  letter-spacing: 2px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  flex: 4;
  /* align-self: flex-end; */
}
.footer-link {
  display: inline;
  flex: 1;
  line-height: 36px;
}
.footer-space {
  flex: 999;
}

.site-info {
  text-align: start;
  flex: 3;
  display: flex;
  align-items: start;
}

.footer-logo {
  width: 90px;
  height: 90px;
  margin: 0px 50px 20px 20px;
}
.mapboxgl-ctrl-attrib-inner {
  margin-right: 12px;
}

/* СКРОЛЛ */

/* WebKit (Chrome, Safari, etc.) scrollbar customization */
/* Track */
::-webkit-scrollbar {
  width: 10px;
  background-color: #1f1f1f;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(93, 93, 93);
  border-radius: 29px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(121, 121, 121);
  border-radius: 29px;
}

/* Firefox */
@-moz-document url-prefix() {
  * {
    scrollbar-color: #1f1f1f rgb(93, 93, 93);
    scrollbar-width: thin;
  }
  html {
    scrollbar-width: thin;
    scrollbar-color: #1f1f1f rgb(93, 93, 93);
  }
}

/* ПОПАП */
/* .popup-cover-wrapper {

} */

.popup-top-wrapper {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

/* .popup-header-wrapper {
  padding: 8px 8px 0px 0px;
  text-align: start;
} */

.popup-header-wrapper {
  display: flex;
  padding: 8px 8px 0px 8px;
  text-align: start;
  max-width: min-content; /* Set max-width to min-content */
  box-sizing: content-box;
  flex-wrap: wrap; /* Allow content to wrap */
  box-shadow: none !important;
}

.mapboxgl-popup-tip {
  display: none;
}

.popup-content {
  padding: 20px 35px 40px 35px;
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
}
.popup-content-scroll {
  max-height: 400px;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;

  min-height: auto; /* Resetting min-height */
}

.popup-header {
  font-size: 20px;
  font-weight: 600 !important;
  margin-bottom: 0;
  color: white !important;
  z-index: 2;
  text-align: start;
  flex: 1;
  box-shadow: none !important;
}
h4.popup-header {
  display: inline;
  text-align: start;
  box-shadow: none !important;
}
a.popup-header {
  box-shadow: none !important;
}
.popup-coordinates {
  box-shadow: none !important;
  margin-bottom: 8px;
}
.popup-coords {
  font-size: 12px;
  color: #b0b9d0;
  z-index: 2;
  padding: 4px 8px 8px 8px;

  box-shadow: none !important;
}

.popup-info-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 14px !important;
}
.popup-info-settler-job,
.popup-info-settler-type {
  border-radius: 29px;
  border-style: solid;
  border-width: 1px;
  display: inline;
  padding: 5px;
  margin: 3px;
}
.popup-image {
  max-width: 220px;
}

.popup-text {
  font-size: 15px;
  color: rgb(31, 31, 31);
}
.popup-top {
  width: 100%;
  height: 50px;
  border-radius: 29px 29px 0 0;
}

.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 29px !important;
  box-shadow: none !important;
  overflow: hidden;
}
.mapboxgl-popup-content > * {
  box-shadow: none !important;
}
.mapboxgl-popup-close-button,
.mapboxgl-popup-close-button:hover,
.mapboxgl-popup-close-button:active {
  background-color: rgba(0, 0, 0, 0) !important;
  background-image: none;
  margin-top: 8px;
  margin-right: 8px;
  font-size: 24px;
  border: 0;
}

.popup-random-coords {
  padding: 5px 10px 5px 10px;
}

.popup-hover {
  padding: 10px 50px 10px 50px;
  color: rgb(236, 236, 236);
  font-size: 12px;
  pointer-events: none;
}

/* /POPUP */
/* POPUP-SCROLL */

/* WebKit (Chrome, Safari, etc.) */
.popup-content-scroll::-webkit-scrollbar {
  width: 10px;
  background-color: rgb(170, 170, 170);
  border-radius: 29px;
}

/* WebKit Handle */
.popup-content-scroll::-webkit-scrollbar-thumb {
  background: #ececec;
  border-radius: 29px;
}

/* WebKit Handle on hover */
.popup-content-scroll::-webkit-scrollbar-thumb:hover {
  background: #ececec;
  border-radius: 29px;
}

/* WebKit Track */
.popup-content-scroll::-webkit-scrollbar-track {
  background-color: rgb(170, 170, 170);
  border-radius: 29px;
}

/* Firefox */
/* Handle */
.popup-content-scroll::-moz-scrollbar-thumb {
  background: #ececec;
  border-radius: 29px;
}

/* Handle on hover */
.popup-content-scroll::-moz-scrollbar-thumb:hover {
  background: #ececec;
  border-radius: 29px;
}

/* Track */
.popup-content-scroll::-moz-scrollbar-track {
  background-color: rgb(170, 170, 170);
  border-radius: 29px;
}

/* Microsoft browsers */
/* Handle */
.popup-content-scroll::-ms-scrollbar-thumb {
  background: #ececec;
  border-radius: 29px;
}

/* Handle on hover */
.popup-content-scroll::-ms-scrollbar-thumb:hover {
  background: #ececec;
  border-radius: 29px;
}

/* Track */
.popup-content-scroll::-ms-scrollbar-track {
  background-color: rgb(170, 170, 170);
  border-radius: 29px;
}

/* /POPUP-SCROLL */

.mapboxgl-map {
  font-family: "Manrope", sans-serif !important;
  color: rgb(236, 236, 236);
  font-size: 16px;
  /* max-width: 100%; */
  text-size-adjust: none;
}

select.gt_selector {
  color: black;
}

/* ПОИСК */
.search-header-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  padding-left: 72px;
}
@media only screen and (max-width: 720px) {
  .search-header-wrapper {
    padding-left: 24px;
  }
}
.search-header-query {
  background-color: rgb(217, 217, 217);
  color: #212121;
  border: rgb(170, 170, 170) solid 2px;
  border-radius: 29px;
  padding: 5px 10px 5px 10px;
  font-size: 18px;
}
.search-query-line {
  border: none;
  height: 2px;
  background-color: rgb(170, 170, 170);
  flex: 999;
  margin-left: 10px;
  margin-right: 10px;
}

.search-result-title a,
.tag-page-title a {
  color: rgb(226, 226, 226) !important;
  font-size: 18px !important;
}
.search-result-description p,
.tag-page-description p {
  font-feature-settings: "wght" 500;
  font-size: 16px;
}

.search-result-category a,
.search-result-category:hover a,
.search-result-category:active a,
.search-result-category:focus a,
.tag-page-category a,
.tag-page-category:hover a,
.tag-page-category:active a,
.tag-page-category:focus a {
  display: inline;
  border-radius: 29px;
  /* background-color: #a47154; */
  color: white;
  padding: 3px 10px 3px 10px;
  font-size: 14px;
}

.nav-previous,
.nav-next,
.next-post,
.prev-post,
.next-post a,
.prev-post a,
.nav-links {
  background-color: rgba(0, 0, 0, 0) !important;
  color: rgb(217, 217, 217);
}

.menu-navigation {
  display: flex;
  flex-direction: column;
  align-items: start;
}

section.not-found {
  min-height: 90vh;
}

/* FOOTER */

.footer-container {
  font-variation-settings: "wght" 500 !important;
}

.language-widget-wrapper {
  display: flex;
}
.footer-language-icon {
  margin-right: 10px;
}

.footer-info-header {
  font-size: 15px;
}

.footer-info-text {
  font-size: 12px;
  line-height: 17px;
}

/* WP-FORMS */

.wpforms-field-label,
.wpforms-required-label {
  color: white !important;
}

.wpforms-field-medium,
.wpforms-field-required {
  background-color: rgba(0, 0, 0, 0) !important;
  color: white !important;
  border-color: white !important;
}

.wpforms-submit {
  background-color: rgba(0, 0, 0, 0) !important;
  color: white !important;
}

/* AUTHORS */

.authors-header {
  margin-top: 80px;
  margin-bottom: 20px;
}

.authors-wrapper {
  min-height: 90vh;
}

.authors-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.author-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 400px;
  margin: 40px 40px 40px 0;
}

.author-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-left: 30px;
}

.author-name {
  font-variation-settings: "wght" 600;
  font-size: 20px;
  color: rgb(236, 236, 236);
  /* line-height: 20px; */
}

.author-subtitle {
  font-variation-settings: "wght" 600;
  font-size: 14px;
  color: rgb(236, 236, 236);
  line-height: 20px;
}

.author-img {
  width: 100px;
  height: 100px;
  border-radius: 29px;
  margin: 0;
}

/* TEMPORARY */

br {
  display: none;
}
.footer-info-header {
  display: none;
}
.site-info {
  flex: 1;
}
