:root {
  font-family: Tahoma, "Segoe UI", sans-serif;
  color: #23332c;
  background: #f7f8f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #245c43;
  --green-dark: #193f31;
  --mint: #e9f1e9;
  --muted: #78827b;
  --line: #e6e9e3;
  --orange: #d58a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f7f8f4;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

.topbar {
  height: 74px;
  padding: 0 max(6.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8ebe5;
  background: #fbfcf9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px 12px 12px 3px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
}

.brand-dot {
  color: var(--orange);
}

.topbar-note {
  color: #758079;
  font-size: 13px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: #89a95d;
}

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 34px;
  padding: 34px 0 42px;
}

.hero-copy {
  padding: 18px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: #718071;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.eyebrow-line {
  width: 23px;
  height: 1px;
  background: var(--orange);
}

.hero h1 {
  margin: 0;
  color: #24352e;
  font-size: clamp(32px, 4.1vw, 48px);
  line-height: 1.43;
  letter-spacing: -1.5px;
}

.hero h1 span {
  color: var(--green);
}

.hero-description {
  max-width: 465px;
  margin: 12px 0 20px;
  color: #77827a;
  font-size: 14px;
  line-height: 1.9;
}

.destination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.destination-list span {
  padding: 6px 12px;
  border: 1px solid #e4e9e1;
  border-radius: 99px;
  color: #617169;
  background: #fbfcf9;
  font-size: 11px;
}

.hero-art {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 150px 150px 22px 22px;
  background: linear-gradient(168deg, #f3d9b2 0%, #f6e8cd 43%, #cbd9c4 100%);
  box-shadow: 0 15px 40px #384c3812;
}

.sun {
  position: absolute;
  top: 37px;
  left: 21%;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f9f2d6;
  box-shadow: 0 0 0 13px #fff3d530;
}

.mountain {
  position: absolute;
  bottom: -62px;
  width: 0;
  height: 0;
  border-right: 210px solid transparent;
  border-bottom: 208px solid;
  border-left: 210px solid transparent;
}

.mountain-back {
  right: -14px;
  border-bottom-color: #9eac8a;
}

.mountain-front {
  right: 112px;
  bottom: -83px;
  border-right-width: 245px;
  border-bottom-width: 236px;
  border-left-width: 245px;
  border-bottom-color: #718a70;
}

.fort {
  position: absolute;
  right: 37%;
  bottom: 56px;
  width: 66px;
  height: 52px;
  border: 2px solid #f5ead2;
  border-bottom: 0;
  background: #bf9268;
  clip-path: polygon(0 16%, 17% 16%, 17% 0, 29% 0, 29% 16%, 48% 16%, 48% 0, 61% 0, 61% 16%, 82% 16%, 82% 0, 96% 0, 96% 16%, 100% 16%, 100% 100%, 0 100%);
}

.fort span {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 18px;
  background: #6a5944;
}

.fort span:nth-child(1) { right: 11px; }
.fort span:nth-child(2) { right: 28px; height: 24px; }
.fort span:nth-child(3) { right: 45px; }

.art-caption {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 5px #253b2d8c;
  font-size: 11px;
}

.art-caption span:first-child {
  font-size: 16px;
  font-weight: 700;
}

.search-panel {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding: 19px 22px 14px;
  border: 1px solid #e8ebe5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 32px #253b2d0b;
}

.search-panel form {
  display: grid;
  grid-template-columns: 1.23fr 1fr 1fr 0.76fr auto;
  gap: 15px;
  align-items: end;
}

.field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.field-label,
.price-filter > span:first-child {
  color: #7b847e;
  font-size: 11px;
  font-weight: 600;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-icon {
  color: #72907d;
  font-size: 18px;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #edf0ea;
  border-radius: 8px;
  outline: none;
  color: #39483f;
  background: #fbfcfa;
  font-size: 12px;
}

.field input:focus,
.field select:focus,
.price-input-wrap:focus-within {
  border-color: #8eac94;
  box-shadow: 0 0 0 3px #245c4310;
}

.field select {
  padding-right: 7px;
}

.search-button,
.primary-button {
  height: 41px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.search-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
}

.search-button span {
  margin-left: 7px;
  font-size: 18px;
  vertical-align: -2px;
}

.availability-note {
  display: flex;
  gap: 7px;
  margin: 13px 0 0;
  color: #8a928c;
  font-size: 10px;
  line-height: 1.7;
}

.availability-note span {
  color: #9aab85;
}

.search-error {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  color: #9d4538;
  background: #fff1ee;
  font-size: 12px;
}

.results-section {
  padding: 59px 0 72px;
}

.results-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-eyebrow {
  margin-bottom: 8px;
  color: #9a7858;
}

.results-heading-row h2 {
  margin: 0;
  color: #26372f;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.sort-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e7eae4;
  border-radius: 10px;
  background: #f0f2ed;
}

.sort-button {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  color: #7c857e;
  background: transparent;
  font-size: 11px;
}

.sort-button.is-active {
  color: var(--green-dark);
  background: white;
  box-shadow: 0 1px 5px #293e3015;
  font-weight: 700;
}

.results-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 21px;
}

.filters-panel {
  padding: 19px 18px;
  border: 1px solid #e8ebe5;
  border-radius: 13px;
  background: #fff;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.filter-heading h3 {
  margin: 0;
  font-size: 14px;
}

.reset-button {
  padding: 4px 0;
  border: 0;
  color: var(--green);
  background: none;
  font-size: 10px;
}

.reset-button:hover {
  text-decoration: underline;
}

.price-filter {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #e8ebe5;
  border-radius: 7px;
  color: #88928a;
  font-size: 11px;
}

.price-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #34443b;
  background: transparent;
  font-size: 12px;
}

.filter-divider {
  height: 1px;
  margin: 21px 0;
  background: #edf0eb;
}

.filter-label {
  margin: 0 0 12px;
  color: #78837a;
  font-size: 11px;
  font-weight: 600;
}

.check-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #59665e;
  cursor: pointer;
  font-size: 11px;
}

.check-filter input {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
}

.custom-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #d6ddd4;
  border-radius: 5px;
  background: #fff;
}

.check-filter input:checked + .custom-check {
  border-color: var(--green);
  background: var(--green);
}

.check-filter input:checked + .custom-check::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
}

.check-filter input:focus-visible + .custom-check {
  outline: 3px solid #245c4325;
}

.filter-footnote {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 23px;
  padding-top: 13px;
  border-top: 1px solid #edf0eb;
  color: #859087;
  font-size: 10px;
}

.filter-footnote span:first-child {
  color: var(--orange);
}

.offer-column {
  min-width: 0;
}

.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  color: #69756d;
  font-size: 11px;
}

.results-summary p {
  margin: 0;
}

.sort-summary {
  color: #8a938c;
  font-size: 10px;
}

.offers-list {
  display: grid;
  gap: 12px;
}

.offer-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 186px;
  gap: 15px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e8ebe5;
  border-radius: 13px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.offer-card:hover {
  border-color: #ccd9cd;
  box-shadow: 0 7px 22px #253b2d0b;
}

.hotel-monogram {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, #a5b99d, #526f5c);
  font-size: 26px;
  font-weight: 700;
}

.hotel-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hotel-title-row h3 {
  margin: 0;
  color: #2a3931;
  font-size: 15px;
}

.star-rating {
  color: #d59754;
  font-size: 11px;
  letter-spacing: 1px;
}

.hotel-location {
  margin: 7px 0 10px;
  color: #828c84;
  font-size: 10px;
}

.hotel-location > span:first-child {
  color: #8ba18d;
}

.location-separator {
  margin: 0 4px;
  color: #b2b9b2;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rating-score {
  padding: 4px 7px;
  border-radius: 5px 5px 5px 0;
  color: white;
  background: #547a5d;
  font-size: 11px;
  font-weight: 700;
}

.rating-score small {
  margin-right: 2px;
  opacity: 0.8;
  font-size: 8px;
}

.rating-count {
  color: #828d84;
  font-size: 10px;
}

.rating-count.is-low {
  padding: 3px 7px;
  border-radius: 99px;
  color: #946a36;
  background: #f8f0df;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
}

.amenity.is-positive {
  color: #3c7250;
  background: #edf5ed;
}

.amenity.is-muted {
  color: #828a84;
  background: #f3f4f1;
}

.value-explanation {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-top: 11px;
  color: #78877b;
  font-size: 9px;
  line-height: 1.7;
}

.value-sparkle {
  flex: none;
  color: #c58a4e;
}

.offer-price {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 17px;
  border-right: 1px solid #edf0eb;
}

.price-label {
  color: #858e87;
  font-size: 10px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 4px 0 7px;
  color: #263d30;
}

.price strong {
  font-size: 25px;
  letter-spacing: -0.7px;
}

.price > span {
  color: #728078;
  font-size: 10px;
}

.tax-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  line-height: 1.7;
}

.tax-status.is-included {
  color: #4a7755;
}

.tax-status.is-excluded {
  color: #a06c37;
}

.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--green);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

.booking-link:hover {
  text-decoration: underline;
}

.booking-link.is-disabled {
  color: #a0a8a1;
  cursor: not-allowed;
}

.empty-state {
  padding: 46px 20px;
  border: 1px dashed #dfe5dc;
  border-radius: 13px;
  text-align: center;
  background: #fff;
}

.empty-state[hidden],
.search-error[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 0 auto 15px;
  border-radius: 50%;
  color: #7c957e;
  background: #edf3ec;
  font-size: 23px;
}

.empty-state h3 {
  margin: 0;
  font-size: 15px;
}

.empty-state p {
  margin: 8px 0 17px;
  color: #808a82;
  font-size: 11px;
}

.primary-button {
  height: 36px;
  font-size: 11px;
}

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px max(6.5vw, 24px);
  border-top: 1px solid #e8ebe5;
  color: #818a83;
  background: #fbfcf9;
  font-size: 10px;
}

.footer-brand {
  font-size: 18px;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px 9px 9px 3px;
  font-size: 16px;
}

.footer-disclaimer {
  color: #9a8b7a;
}

@media (max-width: 920px) {
  .search-panel form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-button {
    grid-column: span 4;
  }

  .results-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .offer-card {
    grid-template-columns: 60px minmax(0, 1fr) 155px;
    gap: 12px;
    padding: 15px;
  }

  .hotel-monogram {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 62px;
    padding: 0 20px;
  }

  main {
    width: min(100% - 32px, 540px);
  }

  .topbar-note {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0 23px;
  }

  .hero-copy {
    padding: 4px 0;
  }

  .hero h1 {
    font-size: clamp(31px, 8vw, 42px);
  }

  .hero-description {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .hero-art {
    height: 180px;
    border-radius: 100px 100px 16px 16px;
  }

  .mountain {
    right: -12px;
    border-right-width: 170px;
    border-bottom-width: 160px;
    border-left-width: 170px;
  }

  .mountain-front {
    right: 40px;
    bottom: -75px;
    border-right-width: 190px;
    border-bottom-width: 182px;
    border-left-width: 190px;
  }

  .fort {
    right: 39%;
    bottom: 42px;
    transform: scale(0.82);
  }

  .sun {
    top: 27px;
    width: 43px;
    height: 43px;
  }

  .search-panel {
    padding: 16px;
  }

  .search-panel form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .city-field,
  .search-button {
    grid-column: span 2;
  }

  .field input,
  .field select {
    font-size: 11px;
  }

  .search-button {
    margin-top: 2px;
  }

  .results-section {
    padding: 43px 0 48px;
  }

  .results-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 17px;
  }

  .results-heading-row h2 {
    font-size: 21px;
  }

  .sort-switch {
    width: 100%;
  }

  .sort-button {
    flex: 1;
  }

  .results-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .filters-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 13px;
    padding: 14px;
  }

  .filter-heading,
  .price-filter,
  .filter-divider,
  .filter-label,
  .filter-footnote {
    grid-column: span 2;
  }

  .price-filter {
    margin-top: 16px;
  }

  .filter-divider {
    margin: 14px 0;
  }

  .filter-label {
    margin-bottom: 4px;
  }

  .check-filter {
    gap: 7px;
    margin: 8px 0;
    font-size: 10px;
  }

  .filter-footnote {
    margin-top: 13px;
    padding-top: 11px;
  }

  .results-summary {
    margin: 0 1px 9px;
  }

  .offer-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .hotel-monogram {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    font-size: 21px;
  }

  .hotel-title-row h3 {
    font-size: 13px;
  }

  .hotel-location {
    font-size: 9px;
  }

  .offer-price {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;
    min-height: 0;
    padding: 12px 0 0;
    border-top: 1px solid #edf0eb;
    border-right: 0;
  }

  .price-label {
    grid-column: 1;
  }

  .price {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .price strong {
    font-size: 22px;
  }

  .tax-status {
    grid-column: 1;
    margin-top: 4px;
    font-size: 8px;
  }

  .booking-link {
    grid-column: 1 / span 2;
    margin-top: 5px;
    padding-top: 8px;
  }

  .value-explanation {
    font-size: 8px;
  }

  footer {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 16px;
    text-align: center;
  }

  footer > span {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
