:root {
  --hotel-bg: #f4f6fb;
  --hotel-blue: #0e3fad;
  --hotel-blue-dark: #0e3fad;
  --hotel-text: #151b27;
  --hotel-muted: #6d7688;
  --hotel-line: #e4e9f1;
  --hotel-chip: #eef1f5;
  --hotel-shadow: 0 8px 24px rgba(21, 34, 62, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--hotel-text);
  background: var(--hotel-bg);
}

body.hotel-filter-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hotel-results-container {
  width: min(100% - 56px, 1440px);
  margin: 0 auto;
}

.hotel-results-main {
  padding: 24px 0 34px;
  text-align: left;
}

.hotel-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 53px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hotel-filter-row::-webkit-scrollbar {
  display: none;
}

.hotel-filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  color: #101827;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hotel-filter-row button.active {
  color: #fff;
  background: #0e3fad;
}

.hotel-filter-row svg {
  width: 14px;
  height: 14px;
}

.hotel-filter-popover {
  position: fixed;
  z-index: 1700;
  display: none;
  width: min(320px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #e4e8f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 34, 70, 0.18);
}

.hotel-filter-popover.is-open {
  display: block;
}

.hotel-filter-popover .hotel-filter-section {
  margin: 0;
}

.hotel-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 1800;
  pointer-events: none;
  visibility: hidden;
}

.hotel-filter-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.hotel-filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0);
  transition: background 0.24s ease;
}

.hotel-filter-drawer.is-open .hotel-filter-backdrop {
  background: rgba(12, 18, 32, 0.34);
}

.hotel-filter-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: min(100vw - 8px, clamp(18.75rem, 13.3125rem + 14.5vw, 26rem));
  height: 100%;
  border-radius: 0 22px 22px 0;
  background: #ffffff;
  box-shadow: 20px 0 50px rgba(15, 25, 52, 0.22);
  transform: translateX(-104%);
  transition: transform 0.26s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hotel-filter-drawer.is-open .hotel-filter-panel {
  transform: translateX(0);
}

.hotel-filter-grip {
  width: 103px;
  height: 5px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #c8cbd1;
  flex-shrink: 0;
}

.hotel-filter-head {
  min-height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.hotel-filter-head h2 {
  margin: 0;
  color: #191c1e;
  font-size: 20px;
  font-weight: 700;
}

.hotel-filter-head button {
  border: 0;
  background: transparent;
  color: var(--hotel-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}

.hotel-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 100px;
  scrollbar-width: none;
}

.hotel-filter-body::-webkit-scrollbar {
  display: none;
}

.hotel-filter-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 26px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 24%);
}

.hotel-filter-footer button {
  width: 100%;
  min-height: clamp(3.125rem, 2.75rem + 1vw, 3.625rem);
  border-radius: 8px;
  color: #fff;
  background: var(--hotel-blue);
  box-shadow: 0 14px 28px rgba(18, 76, 196, 0.24);
  font-size: clamp(0.875rem, 0.7813rem + 0.25vw, 1rem);
  font-weight: 600;
}

.hotel-filter-section {
  margin-top: 28px;
}

.hotel-filter-section:first-child {
  margin-top: 0;
}

.hotel-filter-title {
  display: block;
  margin-bottom: 14px;
  color: #777587;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hotel-location-filter {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f3f6;
  color: #8d9bb2;
}

.hotel-location-filter svg {
  width: 16px;
  height: 16px;
  color: #8ba0c4;
}

.hotel-location-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
}

.hotel-duration-box {
  padding: 18px 16px 14px;
  border-radius: 12px;
  background: #f1f3f6;
}

.hotel-duration-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hotel-duration-dates > div + div {
  border-left: 1px solid #dde3ee;
  padding-left: 18px;
}

.hotel-duration-dates small {
  display: block;
  color: #596477;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.hotel-duration-dates strong {
  display: block;
  margin-top: 4px;
  color: #101827;
  font-size: 14px;
  font-weight: 700;
}

.hotel-duration-total {
  min-height: 30px;
  margin-top: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dce7f4;
  color: var(--hotel-blue);
  font-size: 13px;
  font-weight: 700;
}

.hotel-duration-total svg {
  width: 15px;
  height: 15px;
}

.hotel-occupancy-grid,
.hotel-rating-grid,
.hotel-perks-grid,
.hotel-collection-tags {
  display: grid;
  gap: 8px;
}

.hotel-occupancy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hotel-occupancy-grid button {
  min-height: 56px;
  border-radius: 12px;
  background: #f1f3f6;
  color: #101827;
  font-weight: 800;
}

.hotel-occupancy-grid button span {
  display: block;
  margin-bottom: 5px;
  color: #636d80;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.hotel-occupancy-grid button.is-selected {
  border: 1px solid #b9b8ff;
  background: #f7f7ff;
}

.hotel-rating-grid {
  grid-template-columns: repeat(4, minmax(0, max-content));
}

.hotel-rating-grid button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f1f3f6;
  color: #101827;
  font-size: 13px;
  font-weight: 800;
}

.hotel-rating-grid button.is-selected {
  color: #fff;
  background: var(--hotel-blue);
  box-shadow: 0 10px 18px rgba(18, 76, 196, 0.22);
}

.hotel-property-list {
  display: grid;
  gap: 16px;
}

.hotel-property-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #242b3b;
  font-size: 15px;
  font-weight: 500;
}

.hotel-property-list input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #c7cce0;
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-items: center;
}

.hotel-property-list input:checked {
  border-color: var(--hotel-blue);
  background: var(--hotel-blue);
}

.hotel-property-list input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.hotel-perks-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hotel-perks-grid button {
  min-height: 39px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding: 0 12px;
  background: #f1f3f6;
  color: #101827;
  font-size: 12px;
  font-weight: 800;
}

.hotel-perks-grid button.is-selected {
  border: 1px solid var(--hotel-blue);
  background: #eaf2ff;
}

.hotel-perks-grid svg {
  width: 15px;
  height: 15px;
  color: var(--hotel-blue);
}

.hotel-collection-tags {
  grid-template-columns: repeat(2, max-content);
}

.hotel-collection-tags button {
  min-height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  background: #dfe7ef;
  color: #424a56;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hotel-collection-tags button.is-selected {
  color: var(--hotel-blue);
  background: #e7f0ff;
}

.hotel-budget-filter .filter-range {
  width: 100%;
  accent-color: var(--hotel-blue);
}

.hotel-budget-labels {
  display: flex;
  justify-content: space-between;
  color: #444b5a;
  font-size: 13px;
  font-weight: 800;
}

.hotel-budget-pill {
  min-height: 23px;
  margin: -4px auto 0;
  padding: 0 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  width: fit-content;
  color: var(--hotel-blue);
  background: #eef0ff;
  font-size: 12px;
  font-weight: 800;
}

.hotel-trending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hotel-trending strong {
  color: #727b8c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hotel-trending button {
  min-height: 25px;
  padding: 0 17px;
  border-radius: 999px;
  color: #697285;
  background: #e8ebf0;
  font-size: 10px;
  font-weight: 700;
}

.hotel-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
}

.hotel-results-heading h1 {
  margin: 0 0 4px;
  color: #1b202b;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.hotel-results-heading p {
  margin: 0;
  color: #7a8495;
  font-size: 13px;
  font-weight: 500;
}

.hotel-sort-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hotel-sort-tabs button {
  min-width: 112px;
  min-height: 30px;
  padding: 0 15px;
  border-radius: 5px;
  color: #647084;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.hotel-sort-tabs button.active {
  color: #0e3fad;
  background: #fff;
}

.hotel-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(
      420px,
      clamp(22.5rem, -80.1875rem + 132.5vw, 35.75rem)
    );
  gap: clamp(1.25rem, -8.4375rem + 12.5vw, 2.5rem);
  align-items: start;
  margin-top: 36px;
}

.hotel-list-column {
  display: grid;
  gap: 20px;
}

.hotel-result-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  min-height: 244px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(30, 42, 70, 0.03);
}

.hotel-result-media {
  position: relative;
  min-height: 244px;
  background-position: center;
  background-size: cover;
}

.hotel-result-media.sunset {
  background-image: url("../images/hotel-result-pool.png");
}

.hotel-result-media.palace {
  background-image: url("../images/hotel-result-palace.png");
}

.hotel-result-media.villa {
  background-image: url("../images/hotel-result-villa.png");
}

.hotel-result-media.media-pool {
  background-image: url("../images/hotel-result-pool.png");
}

.hotel-result-media.media-palace {
  background-image: url("../images/hotel-result-palace.png");
}

.hotel-result-media.media-villa {
  background-image: url("../images/hotel-result-villa.png");
}

.discount,
.scarcity {
  position: absolute;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discount {
  top: 17px;
  min-width: 126px;
  padding: 0 16px;
  background: #d71920;
}

.discount.sale {
  min-width: 96px;
}

.scarcity {
  top: 46px;
  padding: 0 12px;
  color: #e21d2c;
  background: #fff;
}

.hotel-result-media > button {
  position: absolute;
  top: 17px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(38, 42, 48, 0.26);
  padding: 0;
}

.hotel-result-media > button svg {
  width: 20px;
  height: 20px;
}

.hotel-media-dots {
  position: absolute;
  left: 50%;
  bottom: 15px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hotel-media-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.hotel-media-dots button.active {
  background: #0e3fad;
  box-shadow: 0 0 0 2px rgba(218, 231, 255, 0.28);
}

.hotel-result-info {
  position: relative;
  display: grid;
  align-content: start;
  padding: 27px 16px 16px 22px;
}

.hotel-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hotel-title-line h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1b2230;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
}

.hotel-title-line h2 svg {
  width: 16px;
  height: 16px;
  color: #fff;
  fill: #0e3fad;
}

.hotel-title-line strong {
  min-width: 56px;
  padding: 5px 7px;
  border-radius: 5px;
  color: #0e3fad;
  background: #ecf3ff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.hotel-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #697386;
  font-size: 12px;
  font-weight: 600;
}

.hotel-location svg {
  width: 13px;
  height: 13px;
}

.hotel-location a {
  margin-left: 9px;
  color: #0e3fad;
  font-weight: 700;
}

.hotel-review-line {
  margin: 0 0 0 auto;
  color: #667084;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hotel-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 58px;
  margin-top: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid #edf0f5;
}

.hotel-amenities span {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 13px;
  border-radius: 4px;
  color: #4e596b;
  background: #eceff4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hotel-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 20px;
}

.hotel-price-block > span {
  color: #6f788a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hotel-price-block p {
  margin: 8px 0 2px;
  color: #697386;
  font-size: 12px;
  font-weight: 500;
}

.hotel-price-block del {
  color: #8b95a6;
  font-size: 12px;
  margin-right: 8px;
}

.hotel-price-block strong {
  color: #0e3fad;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.hotel-price-block small {
  color: #6d7688;
  font-size: 10px;
  font-weight: 600;
}

.hotel-price-block small.danger {
  color: #db1520;
  font-weight: 700;
}

.hotel-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-card-actions button,
.hotel-card-actions a {
  min-width: 116px;
  min-height: 40px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--hotel-blue);
  font-size: 14px;
  font-weight: 700;
}

.hotel-card-actions button.outline,
.hotel-card-actions a.outline {
  color: #111827;
  background: #fff;
  border: 1px solid #e1e7ef;
}

.hotel-map-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  min-height: 792px;
  border-radius: 22px;
  background: #e9ded4;
}

.hotel-map-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 792px;
  object-fit: cover;
}

.hotel-map-card::before,
.hotel-map-card::after {
  content: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      37deg,
      transparent 0 12%,
      #fff 12% 13.2%,
      transparent 13.2% 100%
    ),
    linear-gradient(
      75deg,
      transparent 0 23%,
      #fff 23% 24.2%,
      transparent 24.2% 100%
    ),
    linear-gradient(
      118deg,
      transparent 0 36%,
      #fff 36% 37.4%,
      transparent 37.4% 100%
    ),
    linear-gradient(
      155deg,
      transparent 0 48%,
      #fff 48% 49.6%,
      transparent 49.6% 100%
    ),
    linear-gradient(
      12deg,
      transparent 0 58%,
      #fff 58% 59.3%,
      transparent 59.3% 100%
    ),
    linear-gradient(
      95deg,
      transparent 0 70%,
      #fff 70% 71.4%,
      transparent 71.4% 100%
    );
  opacity: 0.95;
}

.hotel-map-card::after {
  inset: 35px -50px -20px 55px;
  transform: rotate(-18deg);
  opacity: 0.65;
}

.map-water,
.map-park,
.map-block,
.map-road,
.map-pin {
  position: absolute;
}

.map-water {
  right: -80px;
  bottom: -45px;
  width: 250px;
  height: 570px;
  border-radius: 60% 0 0 35%;
  background: #17c5d4;
  transform: rotate(7deg);
}

.map-park {
  background: #98d20d;
}

.park-one {
  left: 22px;
  top: 90px;
  width: 62px;
  height: 96px;
  transform: rotate(-5deg);
}

.park-two {
  left: -16px;
  bottom: 0;
  width: 130px;
  height: 320px;
  transform: rotate(-16deg);
}

.park-three {
  right: 118px;
  bottom: 80px;
  width: 70px;
  height: 235px;
  transform: rotate(13deg);
}

.map-block {
  background: rgba(128, 128, 128, 0.35);
}

.block-one {
  left: 76px;
  bottom: 147px;
  width: 108px;
  height: 62px;
  transform: rotate(-18deg);
}

.block-two {
  left: 78px;
  top: 205px;
  width: 108px;
  height: 165px;
  transform: rotate(-7deg);
}

.map-road {
  z-index: 2;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  transform-origin: left center;
}

.r1 {
  left: 50px;
  top: 132px;
  width: 430px;
  transform: rotate(-35deg);
}
.r2 {
  left: 75px;
  top: 325px;
  width: 410px;
  transform: rotate(-20deg);
}
.r3 {
  left: 60px;
  top: 515px;
  width: 480px;
  transform: rotate(30deg);
}
.r4 {
  left: 190px;
  top: 10px;
  width: 9px;
  height: 760px;
  transform: rotate(-8deg);
}
.r5 {
  left: 350px;
  top: 0;
  width: 9px;
  height: 720px;
  transform: rotate(23deg);
}
.r6 {
  left: 0;
  top: 420px;
  width: 390px;
  transform: rotate(-58deg);
}
.r7 {
  left: 230px;
  top: 615px;
  width: 370px;
  transform: rotate(-45deg);
}

.map-pin {
  z-index: 5;
}

.map-pin b {
  position: absolute;
  left: -22px;
  top: -31px;
  display: grid;
  place-items: center;
  min-width: 70px;
  height: 28px;
  border-radius: 4px;
  color: #fff;
  background: #050505;
  font-size: 12px;
  font-weight: 800;
}

.map-pin span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 4px solid #ff2f60;
  border-radius: 50%;
  color: #ff2f60;
  background: #fff;
}

.map-pin svg {
  width: 14px;
  height: 14px;
  fill: #ff2f60;
}

.p1 {
  left: 42px;
  top: 110px;
}
.p2 {
  right: 152px;
  top: 145px;
}
.p3 {
  left: 152px;
  top: 275px;
}
.p4 {
  left: 192px;
  top: 470px;
}
.p5 {
  right: 132px;
  top: 545px;
}
.p6 {
  left: 48px;
  bottom: 200px;
}
.p7 {
  right: 90px;
  bottom: 218px;
}
.p8 {
  right: 150px;
  bottom: 340px;
}

@media (max-width: 1180px) {
  .hotel-results-layout {
    grid-template-columns: 1fr;
  }

  .hotel-map-card {
    position: relative;
    top: auto;
    min-height: 460px;
  }
}

@media (max-width: 1024px) {
  .hotel-results-container {
    width: min(100% - 28px, 1440px);
  }

  .hotel-filter-row {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .hotel-filter-row {
    margin-top: 26px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hotel-filter-row button {
    flex: 0 0 auto;
  }

  .hotel-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotel-sort-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hotel-result-card {
    grid-template-columns: 1fr;
  }

  .hotel-result-media {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .hotel-results-main {
    padding-top: 14px;
  }

  .hotel-trending {
    margin-top: 24px;
  }

  .hotel-results-heading {
    margin-top: 24px;
  }

  .hotel-results-layout {
    gap: 24px;
    margin-top: 22px;
  }

  .hotel-result-card {
    border-radius: 16px;
  }

  .hotel-result-info {
    padding: 18px 14px 16px;
  }

  .hotel-title-line {
    gap: 10px;
  }

  .hotel-title-line h2 {
    font-size: 18px;
  }

  .hotel-location {
    flex-wrap: wrap;
  }

  .hotel-review-line {
    margin: 10px 0 0;
  }

  .hotel-card-bottom {
    grid-template-columns: 1fr;
  }

  .hotel-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hotel-card-actions button,
  .hotel-card-actions a {
    min-width: 0;
  }

  .hotel-map-card {
    min-height: 390px;
    border-radius: 16px;
  }
}
