@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/ptsans-400.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/ptsans-700.woff2") format("woff2");
  font-display: swap;
}

html {
  height: 100%;
}

body {
  min-width: 1200px;
  height: 100%;
  margin: 0;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  background-color: #f2f2f2;
}

img {
  max-width: 100%;
  object-fit: contain;
}

.page-container {
  display: flex;
  flex-direction: column;
  width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  color: #000000;
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 8px 50px;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #756157;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background-color: #615048;
}

.button:focus {
  background-color: #615048;
}

.button:active {
  color: rgba(255, 255, 255, 0.3);
  background-color: #756157;
}

.button:disabled {
  background-color: rgba(229, 229, 229, 0.3);
  pointer-events: none;
}

.navigation-link.button {
  margin: 14px 0 14px 20px;
  padding: 8px 34px;
}

.appointment-button {
  margin-top: 34px;
  margin-bottom: 54px;
  font-size: 20px;
  line-height: 36px;
}

.button-light {
  background-color: #82b3d3;
}

.button-light:hover {
  background-color: #68a2ca;
}

.button-light:focus {
  background-color: #68a2ca;
}

.button-light:active {
  color: rgba(255, 255, 255, 0.3);
  background-color: #82b3d3;
}

.subscription-button {
  font-size: 20px;
  line-height: 36px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.hotels-card-button {
  padding: 8px 20px;
}

.card-button-more {
  padding: 8px 26px;
}

.card-rating-button {
  display: inline-block;
  padding: 8px 23px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  color: #333333;
  background-color: #f2f2f2;
  border-radius: 4px;
  cursor: default;
}

.button-reset {
  background-color: transparent;
}

.button-reset:hover {
  color: rgba(255, 255, 255, 0.6);
  background-color: transparent;
}

.button-reset:focus {
  background-color: transparent;
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.button-reset:active {
  color: rgba(255, 255, 255, 0.3);
  background-color: transparent;
}

.button-reset:disabled {
  color: rgba(255, 255, 255, 0.1);
  background-color: transparent;
}

.button-current {
  background-color: #7db54f;
}

.button-current:not(:disabled):hover {
  background-color: #6c9e42;
}

.button-current:not(:disabled):focus {
  background-color: #6c9e42;
}

.button-current:not(:disabled):active {
  color: rgba(255, 255, 255, 0.3);
  background-color: #7db54f;
}

/* Header */

.page-header {
  position: relative;
}

.page-header a:not(.button) {
  text-decoration: none;
  color: #000000;
}

.navigation {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 0 70px;
}

.navigation-logo-link:focus img {
  outline: 2px solid #000000;
}

.logo {
  position: absolute;
  z-index: 1;
  margin-left: 70px;
}

.navigation-list {
  display: flex;
  flex-wrap: wrap;
  width: 530px;
  margin: 0;
  margin-left: 168px;
  padding: 0;
  list-style-type: none;
}

.navigation-user {
  justify-content: flex-end;
  width: 325px;
  min-height: 64px;
  margin-left: auto;
}

.navigation-link:not(.button) {
  position: relative;
  display: block;
  height: 100%;
  padding: 20px 16px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.navigation-link-current {
  cursor: default;
}

.navigation-link-current::before {
  position: absolute;
  height: 2px;
  right: 16px;
  bottom: 0;
  left: 16px;
  background-color: #756257;
  content: "";
}

.navigation-user .navigation-list-item {
  min-height: 64px;
}

.navigation-user .navigation-list-item:not(:has(.button)) {
  position: relative;
  min-width: 44px;
}

.navigation-link-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.navigation-list-item:hover .navigation-link:not(.navigation-link-current):not(.button) {
  color: #756157;
}

.navigation-list-item:focus-within .navigation-link:not(.navigation-link-current):not(.button) {
  color: #756157;
}

.navigation-list-item:active .navigation-link:not(.navigation-link-current):not(.button) {
  color: rgba(117, 97, 87, 0.3);
}

.count {
  position: absolute;
  top: 11px;
  left: 20px;
  padding: 5px;
  font-size: 10px;
  line-height: 10px;
  text-align: center;
  color: #ffffff;
  background-color: #7db54f;
  border-radius: 100vw;
}

/* Main container all pages */

.main-container {
  flex-grow: 1;
}

/* Main index */

.welcome-sedona-images {
  position: relative;
  width: 1200px;
  height: 485px;
  background-color: #3F5E72;
  background-image: url("../images/svg/background-mask.svg"), url("../images/background/background-index.jpg");
  background-position: 100% 100.12%, 0% 0%;
  background-repeat: no-repeat, no-repeat;
  background-size: 1200px 57px, cover;
}

.welcome-sedona-image {
  position: absolute;
  top: 51px;
  left: 50%;
  transform: translateX(-50%);
}

.section-about {
  text-align: center;
  padding: 69px 270px 65px;
}

.section-about-description {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
}

.section-about-details {
  margin: 25px 0;
  font-size: 22px;
  line-height: 26px;
  color: #333333;
}

.advantages-list {
  display: grid;
  grid-template-columns: 400px 400px 400px;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.advantages-list-container {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: #82b3d3;
}

.advantages-list-card {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  max-width: 400px;
  min-height: 385px;
  padding: 0 84px;
  text-align: center;
}

.advantages-card-title {
  position: relative;
  display: block;
  margin: 0 30px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.advantages-card-title::before {
  position: absolute;
  bottom: -32px;
  left: 50%;
  width: 60px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  content: "";
}

.advantages-card .advantages-card-title::before {
  background-color: rgba(0, 0, 0, 0.3);
}

.advantages-card-image {
  max-width: 800px;
  object-fit: cover;
}

.advantages-card-description {
  margin: 0;
  margin-top: 62px;
  line-height: 21px;
}

.advantages-card .advantages-card-title {
  color: #000000;
}

.advantages-card {
  color: #333333;
}

.advantages-card:nth-child(even) {
  background-color: rgba(131, 179, 211, 0.12);
}

.advantages-card:nth-child(odd) {
  background-color: rgba(131, 179, 211, 0.2);
}

.services {
  text-align: center;
}

.services-container {
  padding: 64px 347px 44px;
}

.services-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 20px;
}

.services-description {
  margin: 0;
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 26px;
  color: #333333;
}

.services-list {
  display: grid;
  grid-template-columns: 400px 400px 400px;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.services-list-card {
  display: flex;
  flex-direction: column;
  min-height: 385px;
  padding: 183px 85px;
  padding-bottom: 0;
  background-position: center 81px;
  background-repeat: no-repeat;
  background-size: 75px 72px;
}

.services-list-card:nth-child(1) {
  background-image: url("../images/svg/icon-home.svg");
}

.services-list-card:nth-child(2) {
  background-image: url("../images/svg/icon-burger.svg");
}

.services-list-card:nth-child(3) {
  background-image: url("../images/svg/icon-gift.svg");
}

.services-list-card:nth-child(odd) {
  background-color: rgba(131, 179, 211, 0.12);
}

.services-card-title {
  margin: 0;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.services-card-description {
  margin: 0;
  line-height: 21px;
  color: #333333;
}

.appointment {
  padding: 96px 304px 42px;
  text-align: center;
}

.appointment-title {
  margin: 0;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
}

.appointment-description {
  margin: 0;
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 26px;
  color: #333333;
}

/* Footer */

.page-footer a {
  text-decoration: none;
  color: #000000;
}

.footer-subscription {
  padding: 96px 258px 50px;
  text-align: center;
}

.index-subscription {
  color: #ffffff;
  background: #608fb6 url("../images/background/background-index-subscription.jpg") top center no-repeat;
  background-size: cover;
}

.footer-subscription-title {
  margin: 0;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
}

.footer-subscription-description {
  margin: 0 104px 20px;
  font-size: 22px;
  line-height: 26px;
}

.footer-subscription-form {
  display: flex;
  flex-wrap: wrap;
  width: 684px;
  margin: 54px 0;
}

.field {
  padding: 12px 20px;
  margin: 0;
  font-family: "PT Sans";
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #000000;
  background-color: #f2f2f2;
  border: none;
  border-radius: 4px;
}

.field:hover,
.field:focus {
  background-color: #e5e5e5;
}

.field:focus {
  background-color: #e5e5e5;
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.field:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.field::placeholder {
  color: #000000;
  opacity: 0.6;
}

.footer-subscription-field {
  flex-grow: 1;
  font-weight: 400;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 120px;
  padding: 45px 70px 30px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  width: 192px;
  margin: 0;
  margin-right: auto;
  padding: 0;
  list-style-type: none;
}

.social-list-item {
  width: 48px;
  height: 40px;
}

.social-item-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.social-link-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  fill: #83b3d3;
}

.social-item-link:hover .social-link-icon {
  fill: #68a2ca;
}

.social-item-link:focus .social-link-icon {
  fill: #68a2ca;
}

.social-item-link:active .social-link-icon {
  fill: rgba(104, 162, 202, 0.3);
}

.contacts-address {
  min-width: 340px;
  margin-right: 233px;
  text-align: center;
}

.contacts-address-phone {
  font-style: normal;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
}

.contacts-address-phone:hover {
  color: #756157;
}

.contacts-address-phone:focus {
  color: #756157;
}

.contacts-address-phone:active {
  color: rgba(117, 97, 87, 0.3);
}

.logo-htmlacademy-link:hover .logo-htmlacademy-icon {
  fill: #756157;
}

.logo-htmlacademy-link:focus .logo-htmlacademy-icon {
  fill: #756157;
}

.logo-htmlacademy-link:active .logo-htmlacademy-icon {
  fill: rgba(117, 97, 87, 0.3);
}

/* Main catalog */

.hotels-filter-container {
  padding: 35px 70px 70px;
  color: #ffffff;
  background-color: #000000;
  background: #756157 url("../images/background/background-catalog-header.jpg") center no-repeat;
  background-size: cover;
}

.hotels-filter-container a {
  text-decoration: none;
  color: #ffffff;
}

.hotels-header-title {
  margin: 0;
  margin-bottom: 8px;
  font-size: 60px;
  font-weight: 700;
  line-height: 78px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.breadcrumbs-item {
  position: relative;
  font-size: 16px;
  line-height: 21px;
}

.breadcrumbs-item {
  position: relative;
  margin-right: 28px;
}

.breadcrumbs-item:not(:first-child):has(.breadcrumbs-link-icon) {
  margin-right: 42px;
}

.breadcrumbs-item::after {
  position: absolute;
  width: 8px;
  height: 11px;
  right: -18px;
  content: url("../images/svg/arrow-right.svg");
}

.breadcrumbs-item:not(:first-child):has(.breadcrumbs-link-icon)::after {
  right: -32px;
}

.breadcrumbs-item:last-child::after {
  content: none;
}

.breadcrumbs-link {
  display: inline-block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.breadcrumbs-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs-link:focus {
  color: #ffffff;
}

.breadcrumbs-link:active {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs-item:first-child .breadcrumbs-link {
  position: relative;
  width: 13px;
}

.breadcrumbs-item:last-child .breadcrumbs-link {
  color: #ffffff;
  pointer-events: none;
}

.breadcrumbs-link-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.breadcrumbs-link-description {
  top: 5px;
  left: 5px;
}

.hotels-filter {
  display: flex;
  flex-wrap: wrap;
  row-gap: 40px;
  width: 1060px;
  margin-top: 40px;
}

.hotels-filter-group {
  min-width: 150px;
  margin: 0;
  margin-right: 70px;
  padding: 0;
  border: none;
}

.hotels-filter-group:nth-child(5n) {
  margin-right: 0;
}

.hotels-range-group {
  display: flex;
  min-width: 288px;
  margin-left: auto;
  padding: 0;
  border: none;
}

.hotels-filter-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  margin-bottom: 32px;
  padding: 0;
}

.hotels-filter-item:not(:last-child) {
  margin-bottom: 16px;
}

.hotels-filter-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.control {
  position: relative;
  display: block;
  padding-left: 36px;
  line-height: 23px;
  cursor: pointer;
}

.control-mark {
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 4px;
}

.control:hover .control-mark {
  background-color: rgba(255, 255, 255, 0.6);
}

.control:focus .control-mark {
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.control:focus-within .control-mark {
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.control:active .control-mark {
  background-color: rgba(255, 255, 255, 0.3);
}

.control:has(.control-input:disabled) {
  opacity: 0.1;
  pointer-events: none;
}

.control-input[type="checkbox"]:checked + .control-mark {
  background: #ffffff url("../images/svg/input-check.svg") center no-repeat;
}

.control-input[type="radio"] + .control-mark {
  border-radius: 50%;
}

.control-input[type="radio"]:checked + .control-mark::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 10px;
  height: 10px;
  background-color: #3f5e72;
  border-radius: 50%;
  content: "";
}

.control:hover .control-label {
  color: rgba(255, 255, 255, 0.6);
}

.control:active .control-label {
  color: rgba(255, 255, 255, 0.3);
}

.range-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.range-group .hotels-filter-title {
  align-self: flex-start;
}

.range-wrapper-inputs {
  display: flex;
  justify-content: center;
}

.range-inputs-field {
  display: flex;
  min-width: 143px;
  min-height: 48px;
  padding: 12px 20px;
  background-color: #ffffff;
  cursor: text;
}

.range-inputs-field:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.range-inputs-field:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.range-inputs-field + .range-inputs-field {
  margin-left: 2px;
}

.range-inputs-field:has(.range-input):focus-within {
  outline: 3px solid #83B3D3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.range-input {
  width: 75px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-align: start;
  background-color: transparent;
  border: none;
  outline: none;
  -webkit-appearance: textfield;
          appearance: textfield;
}

.range-input::-webkit-outer-spin-button,
.range-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
          appearance: none;
}

.hotels-filter-label {
  margin-left: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.3);
  cursor: text;
}

.range-scale {
  position: relative;
  width: 277px;
  height: 4px;
  margin-top: 44px;
  margin-left: 10px;
  background-color: rgba(255, 255, 255, 0.3);
}

.range-bar {
  position: absolute;
  height: 4px;
  background-color: #ffffff;
}

.range-toggle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.range-toggle:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.range-toggle:focus {
  border: 3px solid #83b3d3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  outline: none;
}

.range-toggle:active {
  border: 2px solid #83b3d3;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.4);
}

.range-toggle:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.toggle-min {
  top: -8px;
  left: -10px;
}

.toggle-max {
  top: -8px;
  right: -10px;
}

.hotels-filter-buttons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-left: 70px;
}

.hotels-filter-buttons .button:not(:last-child) {
  margin-bottom: 32px;
}

.catalog-hotels a:not(.button):not(.pagination-link) {
  text-decoration: none;
  color: #000000;
}

.catalog-hotels {
  padding: 50px 70px 60px;
}

.catalog-search-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-result {
  max-width: 350px;
  margin: 6px 0;
  margin-right: auto;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
}

.select {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 292px;
  margin-right: 70px;
}

.select-control {
  width: 100%;
  padding: 14px 20px;
  padding-right: 48px;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  color: #333333;
  background: #ffffff url("../images/svg/arrow-down.svg") no-repeat;
  background-position: right 20px center;
  outline: 2px solid #e5e5e5;
  outline-offset: -2px;
  border-width: 0;
  border-radius: 4px;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}

.select-control:hover {
  outline-color: #68a2ca;
}

.select-control:focus {
  outline-color: #68a2ca;
}

.select-control:disabled {
  color: rgba(0, 0, 0, 0.3);
  outline-color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.button-search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 160px;
}

.button-search {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 14px;
  outline: 2px solid #e5e5e5;
  outline-offset: -2px;
  border-width: 0;
  border-radius: 4px;
  cursor: pointer;
}

.button-search:hover {
  outline-color: #000000;
}

.button-search:focus {
  outline-color: #68a2ca;
}

.button-search:active {
  outline-color: #000000;
}

.button-search:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.button-search-current {
  outline-color: #000000;
}

.button-search:nth-child(3n) {
  margin-right: 0;
}

.button-search-grid {
  background-image: url("../images/svg/card-grid.svg");
}

.button-search-cards {
  background-image: url("../images/svg/card-cards.svg");
}

.button-search-list {
  background-image: url("../images/svg/card-list.svg");
}

.hotels-list {
  display: grid;
  gap: 18px;
  margin: 40px 0;
  padding: 0;
  line-height: 21px;
  list-style-type: none;
  color: #333333;
  background-color: #ffffff;
}

.hotels-list.grid {
  grid-template-columns: repeat(3, 1fr);
}

.hotels-list.cards {
  grid-template-columns: repeat(2, 1fr);
}

.hotels-list.list {
  grid-template-columns: 1fr;
}

.hotels-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

.hotels-card.grid {
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "image   image"
    "title   title"
    "type    type"
    "buttons buttons"
    "rating  rating";
}

.hotels-card.cards {
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "image   image"
    "title   title"
    "type    type"
    "buttons buttons"
    "rating  rating";
}

.hotels-card.list {
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "image title"
    "image type"
    "image buttons"
    "image rating";
}

.hotels-card-link-image {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: image;
  place-self: center center;
  display: block;
  width: 300px;
  height: 212px;
}

.hotels-card.cards > .hotels-card-link-image {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
}

.hotels-card.list > .hotels-card-link-image {
  -ms-grid-row: 1;
  -ms-grid-row-span: 4;
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
}

.hotels-card-image {
  object-fit: cover;
  object-position: center;
}

.hotels-card-link-title {
  -ms-grid-row: 2;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: title;
}

.hotels-card.cards > .hotels-card-link-title {
  -ms-grid-row: 2;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
}

.hotels-card.list > .hotels-card-link-title {
  -ms-grid-row: 1;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
}

.hotels-card-title {
  margin: 8px 0;
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.hotels-card-type {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: type;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0;
}

.hotels-card.cards > .hotels-card-type {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
}

.hotels-card.list > .hotels-card-type {
  -ms-grid-row: 2;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
}

.hotels-card-price {
  justify-self: end;
}

.hotels-card-buttons {
  -ms-grid-row: 4;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: buttons;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  justify-content: space-between;
  margin: 8px 0;
}

.hotels-card.cards > .hotels-card-buttons {
  -ms-grid-row: 4;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
}

.hotels-card.list > .hotels-card-buttons {
  -ms-grid-row: 3;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
}

.hotels-card-buttons-rating {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: rating;
  margin-bottom: 0;
}

.hotels-card.cards > .hotels-card-buttons-rating {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
}

.hotels-card.list > .hotels-card-buttons-rating {
  -ms-grid-row: 4;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
}

.rating-area {
  align-self: center;
  cursor: default;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  margin: 0;
  margin-top: 40px;
  padding: 0;
  padding-top: 40px;
  list-style-type: none;
  border-top: 1px solid #e5e5e5;
}

.pagination a {
  text-decoration: none;
  color: #ffffff;
}

.pagination-item:not(:last-child) {
  margin-right: 8px;
}

.pagination-link {
  display: block;
  min-width: 60px;
  min-height: 60px;
  padding: 11px 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #82b3d3;
  border-radius: 4px;
}

.pagination-link:not(.show-more):not(.pagination-current):hover {
  background-color: #68a2ca;
}

.pagination-link:not(.show-more):not(.pagination-current):focus {
  background-color: #68a2ca;
}

.pagination-link:not(.show-more):not(.pagination-current):active {
  color: rgba(255, 255, 255, 0.3);
  background-color: #82b3d3;
}

.pagination-current {
  background-color: #f2f2f2;
  cursor: default;
}

.item-current a {
  color: #000000;
}

.show-more {
  color: #000000;
  background-color: #ffffff;
  cursor: default;
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  grid-template-rows: minmax(30px, 1fr) 1fr 1fr;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(242, 242, 242, 0.8);
  transition: opacity 0.3s ease;
}

.modal-container-close {
  display: none;
}

.modal {
  position: relative;
  grid-row: 2 / 3;
  margin: auto;
  padding: 64px 70px;
  background-color: #ffffff;
  border-radius: 30px;
}

.modal-hotel-search {
  width: 717px;
}

.modal-title {
  margin: 0;
  margin-bottom: 64px;
  padding-right: 64px;
  font-family: "PT Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  color: #000000;
}

.hotel-search-form {
  display: flex;
  flex-direction: column;
}

.field-group {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 137px 1fr;
  align-items: center;
  margin-bottom: 20px;
}

.field-group-number {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 23px;
  margin-bottom: 48px;
}

.hotel-group-number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 23px;
}

.hotel-search-label {
  font-family: "PT Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.search-date-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 440px;
  min-height: 48px;
  background: #f2f2f2 url("../images/svg/date-icon.svg") no-repeat right 20px center;
}

.search-date-container:hover {
  background-color: #e5e5e5;
}

.search-date-container.focused {
  background-color: #e5e5e5;
  outline: 3px solid #83b3d3;
}

.search-date-value {
  position: relative;
  z-index: 2;
  width: 90%;
  padding: 10px 20px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  background-color: #f2f2f2;
  border: none;
  border-radius: 6px;
}

.search-date-container:hover .search-date-value {
  background-color: #e5e5e5;
}

.search-date-container.focused .search-date-value {
  background-color: #e5e5e5;
}

.search-date-value:focus-within {
  outline: none;
}

.hotel-search-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent;
  border: none;
}

.hotel-search-field::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.hotel-search-field::-moz-calendar-picker-indicator {
  display: none;
}

.text-field-message {
  grid-column: 1 / -1;
  margin-top: 4px;
  margin-left: 157px;
}

.text-field-message.invalid-message {
  color: #ff5757;
}

.search-number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 48px;
  margin-left: 46px;
  padding: 0;
  background-color: #f2f2f2;
  border-radius: 4px;
}

.form-label-icon {
  position: relative;
  padding-right: 36px;
}

.tooltip {
  position: absolute;
  width: 26px;
  height: 26px;
  margin-top: -2px;
  margin-left: 10px;
}

.tooltip-toggle {
  display: block;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: none;
}

.tooltip-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.tooltip-text {
  position: absolute;
  left: 50%;
  z-index: 1;
  display: none;
  width: 256px;
  margin-top: 18px;
  padding: 18px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-transform: none;
  color: #ffffff;
  background-color: #333333;
  border-radius: 10px;
  transform: translateX(-50%);
}

.tooltip-text::before {
  position: absolute;
  bottom: 100%;
  left: 49%;
  width: 19px;
  height: 19px;
  margin-bottom: -8px;
  background-color: #333333;
  transform: rotate(-45deg) translateX(-50%);
  content: "";
}

.tooltip-toggle:hover + .tooltip-text,
.tooltip-toggle:focus + .tooltip-text,
.tooltip-toggle:focus-within + .tooltip-text {
  display: block;
}

.search-number-button {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 14px 10px;
  padding: 0;
  color: #756157;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-number-button:hover {
  color: #000000;
}

.search-number-button:focus {
  color: #000000;
  outline: 3px solid #83b3d3;
}

.search-number-button:active {
  border: none;
  outline: none;
}

.search-number-button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.number-button-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.search-number-button:not(:disabled):hover .number-button-icon {
  fill-opacity: 1;
}

.search-number-button:not(:disabled):focus .number-button-icon {
  fill-opacity: 1;
}

.search-number-button:not(:disabled):active .number-button-icon {
  fill-opacity: 0.3;
}

.search-number-field {
  width: 31px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  background-color: transparent;
  border: none;
  outline: none;
  -webkit-appearance: textfield;
          appearance: textfield;
}

.search-number-field::-webkit-outer-spin-button,
.search-number-field::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
          appearance: none;
}

.hotel-search-button {
  padding: 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  border-radius: 10px;
}

.hotel-search-button:not(:last-child) {
  margin-bottom: 23px;
}

.modal-close-button {
  position: absolute;
  top: 64px;
  right: 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #000000;
  background-color: #f2f2f2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close-button:hover {
  background-color: #e5e5e5;
}

.modal-close-button:focus {
  background-color: #e5e5e5;
  border: 3px solid #83b3d3;
  outline: none;
}

.modal-close-button:active {
  background-color: #e5e5e5;
  border: none;
  outline: none;
}

.modal-close-button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.close-button-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.modal-close-button:active .close-button-icon {
  fill-opacity: 0.3;
}
