:root {
  --secondary: #BC3A38;
  --background: #FCFCFC;
  --backdrop: #2A5F5FB2;
  --shadow: #00000040;
  --green-50: #FCFFFF;
  --green-100: #C8E5E680;
  --green-200: #ADD9D9;
  --green-300: #87C7C8;
  --green-400: #70BDBD;
  --green-500: #4CACAD;
  --green-600: #459D9D;
  --green-700: #367A7B;
  --green-800: #2A5F5F;
  --green-900: #204849;
}

@font-face {
  font-family: "Arimo";
  font-weight: 400;
  src: url("/fonts/Arimo.ttf") format("truetype");
}

@font-face {
  font-family: "Arimo";
  font-weight: 500;
  src: url("/fonts/Arimo.ttf") format("truetype");
}

@font-face {
  font-family: "Arimo";
  font-weight: 600;
  src: url("/fonts/Arimo.ttf") format("truetype");
}

@font-face {
  font-family: "Arimo";
  font-weight: 700;
  src: url("/fonts/Arimo.ttf") format("truetype");
}

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  margin: auto;
  font-family: "Arimo";
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

body:has(.header.active) {
  overflow: hidden;
}

main {
  max-width: 1280px;
  margin: auto;
}

button {
  font-family: "Arimo";
}

body:has(dialog[open]) {
  overflow: hidden;
}

.search-button {
  width: 122px;
  padding: 22px 0px;
  color: var(--green-50);
  font-size: 20px;
  font-weight: 500;
  border: none;
  border-radius: 15px;
  background: var(--green-700);
  cursor: pointer;
}

.search-button:hover {
  background-color: var(--green-800);
}

.search-button:active {
  background-color: var(--green-900);
}

.tag {
  box-sizing: border-box;
  white-space: nowrap;
  padding: 2px 12px;
  font-size: 16px;
  color: var(--green-900);
  border: 1px solid var(--green-700);
  border-radius: 10px;
  background: var(--background);
  cursor: pointer;
  height: 26px;
  align-content: center;
}

button.tag:hover {
  background: var(--green-100);
}

button.tag:active {
  background: var(--green-100);
}

.tag.selected {
  background-color: var(--green-200);
}

.hp-search-header-container {
  margin-top: 52px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--green-900);
}

.hp-search-header-grid {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 1097px;
}

.hp-map-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-img-map {
  width: 384px;
  max-width: 500px;
  height: 464px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0px 0px 8px 0px var(--shadow);
}

.hp-header-content {
  display: flex;
  flex-direction: column;
  text-align: right;
  border: 1px solid var(--green-700);
  border-radius: 15px;
  padding: 32px 24px;
  justify-content: space-between;
}

.hp-main-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.hp-secondary-title {
  font-size: 20px;
  margin-bottom: 44px;
}

.hp-header-description {
  line-height: 1.5;
  margin: 0;
  font-size: 16px;
}

.hp-view-all-button {
  display: flex;
  justify-content: flex-end;
}

.hp-secondary-button {
  background: var(--green-100);
  border-radius: 15px;
  padding: 8px 16px;
  color: var(--green-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.hp-secondary-button:hover {
  background: var(--green-200);
}

.hp-secondary-button:active {
  background: var(--green-300);
}

.hp-secondary-button img {
  width: 20px;
  height: 20px;
}

.text-page-title {
  font-size: 70px;
  color: var(--green-600);
  margin-bottom: 60px;
  background: var(--green-50);
}

.text-page-subtitle {
  font-size: 34px;
  color: #37384E;
  margin-bottom: 26px;
}

.rich-text-page-text {
  margin-bottom: 42px;
}

.sp-more-tags {
  white-space: nowrap;
  border: none;
  background: none;
  color: var(--green-900);
  font-size: 15px;
  cursor: pointer;
  margin-top: 3px;
}

.sp-more-tags:hover {
  color: var(--green-700);
}

.sp-more-text {
  border-bottom: 1px solid var(--green-900);
}

.simple-text-page-wrapper {
  padding: 0 125px;
}

.simple-text-page-button-wrapper {
  display: flex;
  justify-content: center;
}

.simple-text-page-button {
  background: none;
  border-radius: 15px;
  padding: 13px 21px;
  color: var(--green-900);
  font-size: 16px;
  border: 2px solid var(--green-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.simple-text-page-button:hover {
  background: var(--green-100);
}

.simple-text-page-button:active {
  background: var(--green-200);
}

.gallery-image {
  width: 1036px;
  margin-bottom: 40px;
}

.simple-text-page-picture-wrapper {
  text-align: center;
}

.simple-text-page-picture {
  width: 100%;
}

.simple-text-page-picture-text {
  margin-top: 8px;
  margin-bottom: 40px;
}

.thanks-gallery-wrapper {
  box-sizing: border-box;
  width: 1036px;
  min-height: 577px;
  border: 1px solid var(--green-900);
  border-radius: 15px;
  padding: 32px 84px;
  margin-bottom: 40px;
}

.thanks-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-items: center;
  justify-content: center;
}

.thanks-gallery-image {
  width: 143px;
  height: 191px;
  object-fit: cover;
}

.thanks-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 144px;
  text-align: center;
}

.thanks-gallery-item p {
  margin: 0;
}

.thanks-gallery-title {
  font-size: 17px;
  color: var(--green-900);
  margin-top: 0;
  margin-bottom: 24px;
}

.rich-text-page-text ul {
  padding-right: 14px;
}

.error-dialog {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--green-200);
  place-items: center;
}

.error-dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(4px);
}

.error-dialog__home-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--green-700);
  color: white;
  padding: 16px 12px;
  border: 1px solid var(--green-200);
  border-radius: 10px;
  cursor: pointer;
  height: 35px;
  font-size: 16px;
  margin-top: 40px;
}

.error-dialog__home-button:hover {
  background: var(--green-800);
}

.error-dialog__close-button {
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  font-family: "Arimo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--green-700);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.loader.dynamic-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.loader.dynamic-text .loading-text {
  white-space: nowrap;
  order: 1;
}

.loader.dynamic-text .loading-dots {
  min-width: 30px;
  text-align: right;
  order: 2;
}

.loader.dynamic-text .loading-dots::after {
  content: "";
  animation: loadingDots 1.5s infinite;
}

.loader:not(.dynamic-text)::after {
  content: "...";
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0% {
    content: "";
  }
  
  25% {
    content: ".";
  }
  
  50% {
    content: "..";
  }
  
  75% {
    content: "...";
  }
  
  100% {
    content: "";
  }
}

.tags-modal {
  background: white;
  max-width: 660px;
  border-radius: 15px;
  border: 1px solid var(--green-300);
}

.tags-modal-content {
  position: relative;
  background-color: white;
}

.tags-modal-content .tag {
  cursor: default;
}

.tags-close-modal {
  margin-bottom: 24px;
  font-size: 24px;
  cursor: pointer;
  color: var(--green-800);
  background: none;
  border: none;
}

.tags-close-modal:hover {
  color: var(--green-500);
}

.modal-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 800px) {
  .hp-search-container {
    padding: 0 13px;
    margin: 0;
  }

  .hp-header-content {
    box-sizing: border-box;
    padding: 27px 16px 8px 8px;
  }

  .hp-img-map {
    width: 161px;
    height: 194px;
    box-shadow: 0px 0px 8px 0px #2A5F5F;
    border: 1px solid #367A7B
  }

  .hp-search-header-grid {
    position: relative;
    justify-content: center;
  }

  .hp-map-container {
    position: absolute;
    top: -28px;
    left: -4px;
  }

  .hp-main-title {
    padding-left: 150px;
    margin-bottom: 48px;
  }

  .hp-secondary-title {
    margin-bottom: 16px;
  }

  .hp-header-description {
    margin-bottom: 16px;
  }

  .hp-search-header-grid {
    width: 100%;
  }

  .thanks-gallery-wrapper {
    width: 90vw;
    padding: 0
  }

  .thanks-gallery-grid {
    width: 90vw;
  }

  .simple-text-page-wrapper {
    padding: 0 13px;
  }

  .simple-text-page-button-wrapper {
    width: 90vw;
  }

}