.inner-header { border-bottom: 1px solid var(--line); }
.inner-header .header-layout { min-height: 76px; }
.page-title {
  margin: 6px 0 0;
  font-size: clamp(2.65rem, 5.5vw, 4.5rem);
  letter-spacing: -.066em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.page-subtitle { margin: 12px 0 0; color: var(--muted); }
.results-page, .property-page { padding-bottom: 70px; }
.results-intro { margin: 39px 0 24px; }
.inner-search .search-bar { width: 100%; min-height: 76px; margin: 0; box-shadow: 0 6px 22px #152e230d; }
.inner-search .search-error { width: 100%; }
.results-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 31px;
}
.filter-panel {
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.filter-header, .results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filter-header h2, .results-toolbar h2 { margin: 0; letter-spacing: -.038em; line-height: 1.1; }
.filter-header h2 { font-size: 1.65rem; }
.filter-header .text-button { font-size: .875rem; }
.filter-header .text-button:disabled { color: #697a72; background: transparent; }
.filter-panel fieldset {
  display: block;
  min-width: 0;
  margin: 14px 0 0;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid #e6e8de;
}
.filter-panel legend { margin-bottom: 5px; padding: 0 5px 0 0; color: var(--ink); font-size: .94rem; font-weight: 700; }
.field-caption { display: block; margin-bottom: 5px; color: var(--muted); font-size: .82rem; }
.price-input { position: relative; }
.price-input input, .sort-field select, .room-search input {
  display: block;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #cbd3ca;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.price-input input { width: 100%; padding-right: 26px; font-size: .92rem; }
.price-input > span { position: absolute; top: 8px; right: 9px; color: var(--muted); pointer-events: none; }
.filter-choices { display: grid; gap: 3px; }
.filter-choices label, .rate-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--ink);
  font-size: .9rem;
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--teal);
}
.results-toolbar { min-height: 40px; }
.results-toolbar h2 { font-size: clamp(1.48rem, 3vw, 2.05rem); }
.results-toolbar h2:focus { outline: none; }
.sort-field { display: flex; flex: none; align-items: center; gap: 8px; }
.sort-field label { color: var(--muted); font-size: .87rem; font-weight: 650; }
.sort-field select {
  appearance: none;
  padding-right: 28px;
  background-image: url("assets/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  font-size: .9rem;
}
.result-context { margin: 8px 0 14px; color: var(--muted); font-size: .88rem; }
.result-cards { display: grid; gap: 14px; }
.result-card {
  display: grid;
  grid-template-columns: minmax(135px, 27%) minmax(0, 1fr) minmax(133px, auto);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e1e4d9;
  border-radius: 16px;
  background: var(--white);
}
.result-photo { position: relative; min-height: 183px; background: var(--mint); }
.result-photo > img { position: absolute; height: 100%; }
.result-info { min-width: 0; padding: 14px 16px; }
.result-type { margin: 0; color: var(--copper-dark); font-size: .82rem; font-weight: 750; }
.result-info h3 { margin: 3px 0 5px; font-size: clamp(1.4rem, 2.15vw, 1.9rem); letter-spacing: -.05em; line-height: 1.05; }
.result-info h3 a { text-decoration: none; }
.result-info h3 a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.result-location, .property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0;
  color: var(--teal);
  font-size: .88rem;
  font-weight: 650;
}
.result-location .icon, .property-location .icon { width: 17px; height: 17px; }
.result-description { margin: 6px 0; color: var(--muted); font-size: .9rem; }
.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.amenity-list li { padding: 2px 7px; border-radius: 5px; background: var(--mint); color: var(--teal-dark); font-size: .76rem; }
.result-price {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  gap: 4px;
  padding: 14px 14px 14px 0;
  color: var(--muted);
  text-align: right;
  font-size: .85rem;
}
.result-price strong { color: var(--ink); font-size: 1.32rem; }
.price-unit { white-space: nowrap; }
.result-price > small { font-size: .81rem; }
.result-price .button { margin-top: 7px; padding-inline: 11px; white-space: nowrap; }
.results-empty { padding-block: 36px; }
.results-empty .button, .missing-property .button { margin-top: 16px; }
.mobile-filter { display: none; }
.filter-apply { width: 100%; margin-top: 14px; }

.back-link { display: inline-flex; margin: 26px 0 16px; color: var(--teal); font-size: .92rem; font-weight: 700; text-underline-offset: 3px; }
.back-link:hover { color: var(--copper-dark); }
.missing-property { margin: 10px 0 35px; }
.missing-property h1 { margin-bottom: 12px; }
.property-heading, .property-actions { display: flex; align-items: end; justify-content: space-between; gap: 12px 15px; }
.property-heading { margin-bottom: 18px; }
.property-actions { flex-wrap: wrap; }
.property-favorite { color: var(--teal); }
.property-favorite[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.property-location { width: fit-content; margin: 12px 0 0; text-decoration: none; font-size: 1rem; }
.property-location:hover { text-decoration: underline; text-underline-offset: 3px; }
.property-gallery {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.18fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(250px, 39vw, 460px);
  gap: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: #d7e1d8;
}
.gallery-tile { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--mint); }
.gallery-tile:first-child { grid-row: 1 / -1; }
.gallery-tile img { height: 100%; object-position: center; transition: transform .26s ease; }
.gallery-tile:hover img { transform: scale(1.035); }
.gallery-tile:focus-visible { z-index: 1; outline-offset: -5px; outline-color: var(--white); }
.gallery-all {
  position: absolute;
  right: 13px;
  bottom: 13px;
  border: 1px solid #ffffff72;
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 4px 16px #162c2233;
}
.gallery-all:hover { background: var(--mint); }
.property-nav {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 25px;
  margin: 0 0 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.property-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--teal-dark);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.property-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.property-page section[id] { scroll-margin-top: 68px; }
.property-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 36%);
  gap: 28px;
  align-items: start;
}
.property-page h2 { margin: 0 0 9px; font-size: clamp(1.9rem, 4vw, 2.85rem); letter-spacing: -.053em; line-height: 1.05; }
.property-description > p { max-width: 59ch; margin: 11px 0 19px; color: var(--muted); }
.property-page h3 { margin: 0 0 7px; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.13; }
.property-amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.property-amenities li { display: flex; gap: 7px; align-items: center; min-height: 35px; font-size: .94rem; }
.property-amenities .icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--mint); color: var(--teal); }
.location-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.location-card > div { padding: 13px 14px 10px; }
.location-card h2 { margin: 0 0 3px; font-size: 1.56rem; }
.location-card p { margin: 0; color: var(--muted); font-size: .85rem; }
#property-map { display: block; width: 100%; height: 218px; border: 0; background: var(--mint); }
.location-card > a { justify-self: start; margin: 10px 14px 12px; color: var(--teal); font-size: .89rem; font-weight: 650; text-underline-offset: 3px; }

.room-section { margin-top: 46px; padding-block: 23px; border-top: 1px solid var(--line); }
.room-section-top p { margin: 0 0 15px; color: var(--muted); }
.room-search { margin-bottom: 17px; padding: 12px 14px; border: 1px solid #d5e3d9; border-radius: 13px; background: #edf4ee; }
.room-search-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1.35fr)) repeat(3, minmax(66px, .65fr)) auto;
  align-items: end;
  gap: 9px;
}
.room-search label { min-width: 0; color: var(--teal-dark); font-size: .84rem; font-weight: 700; }
.room-search input { width: 100%; min-width: 0; margin-top: 3px; font-size: .9rem; font-weight: 500; }
.room-search .button { min-height: 40px; }
.room-error { margin: 6px 0 0; color: var(--copper-dark); font-size: .91rem; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(265px, 32%); align-items: start; gap: 16px; }
.room-options { display: grid; gap: 9px; }
.room-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  min-height: 112px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.room-option.is-selected { border-color: var(--teal); background: #f5f9f4; }
.room-option h3 { margin-bottom: 5px; }
.room-specs { display: grid; gap: 3px; margin: 0; padding: 0; color: var(--muted); font-size: .86rem; list-style: none; }
.room-option-price { display: grid; flex: none; justify-items: end; gap: 7px; font-size: .85rem; white-space: nowrap; }
.room-option-price strong { color: var(--teal-dark); font-size: 1.1rem; }
.room-option-price .button { min-height: 35px; padding-inline: 9px; border-radius: 8px; font-size: .85rem; }
.room-option-price .button[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.quote-box { position: sticky; top: 62px; padding: 15px; border: 1px solid #d5e3d9; border-radius: 13px; background: var(--white); }
.quote-box h3 { color: var(--teal-dark); font-size: 1.54rem; }
#quote-stay-details { margin: 8px 0; }
#quote-stay-details p { margin: 2px 0; color: var(--muted); font-size: .88rem; }
#quote-option { color: var(--ink) !important; font-weight: 700; }
.rate-options { min-width: 0; margin: 11px 0 0; padding: 0; border: 0; }
.rate-options legend { font-size: .88rem; font-weight: 700; }
.rate-options label { min-height: 28px; }
#cancellation-summary { min-height: 41px; margin: 5px 0 9px; color: var(--muted); font-size: .84rem; }
.quote-prices, .rule-grid { margin: 0; }
.quote-prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; padding: 5px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.quote-prices dd { margin: 0; color: var(--teal-dark); font-size: 1.04rem; font-weight: 750; }
#quote-trip-line { font-weight: 700; }
#quote-total { font-size: 1.3rem; }
.quote-footnote, .demo-note { margin: 5px 0 0; color: var(--muted); font-size: .83rem; }
.property-rules { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 13px 0 17px; }
.rule-grid > div { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.rule-grid dt { color: var(--teal); font-size: .83rem; font-weight: 700; }
.rule-grid dd { margin: 1px 0 0; font-size: .94rem; }
.cancellation-rules p { margin: 6px 0; color: var(--muted); }

.photo-dialog {
  width: min(860px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid #ffffff69;
  border-radius: 17px;
  background: #102e2c;
  color: var(--white);
}
.photo-dialog::backdrop { background: #102621bd; }
.photo-dialog-toolbar, .photo-dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 13px; }
.photo-dialog-toolbar p { margin: 0; font-weight: 700; }
.photo-dialog-controls { justify-content: center; }
.photo-dialog img { height: min(64vh, 620px); object-fit: contain; }

@media (max-width: 980px) {
  .results-layout { grid-template-columns: 193px minmax(0, 1fr); gap: 13px; }
  .result-info { padding: 13px 10px; }
  .result-price { padding: 11px 11px 12px 0; }
  .property-overview { gap: 17px; }
}

@media (max-width: 790px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mobile-filter { display: inline-flex; justify-self: start; }
  .filter-panel:not(.filters-open) { display: none; }
  .filter-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-input { max-width: 270px; }
  .room-search-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .room-search-fields label { grid-column: span 2; }
  .room-search-fields label:nth-child(-n+2) { grid-column: span 3; }
  .room-search-fields .button { grid-column: span 6; }
}

@media (max-width: 620px) {
  .results-page, .property-page { padding-bottom: 43px; }
  .results-intro { margin: 26px 0 14px; }
  .inner-header .header-layout { min-height: 67px; }
  .results-layout { margin-top: 17px; }
  .result-card { grid-template-columns: minmax(0, 1fr); }
  .result-photo { min-height: 0; aspect-ratio: 2.04; }
  .result-info { padding: 11px 12px 6px; }
  .result-price { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 5px 12px 12px; text-align: left; }
  .result-price .button { margin: 0 0 0 auto; }
  .sort-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sort-field select { max-width: 152px; }
  .results-toolbar { gap: 5px; }
  .results-toolbar h2 { font-size: 1.42rem; }
  .property-heading { flex-wrap: wrap; }
  .property-actions { width: 100%; justify-content: start; }
  .property-gallery { height: 238px; grid-template-columns: 1.9fr 1fr; gap: 4px; border-radius: 13px; }
  .gallery-all { min-height: 35px; right: 6px; bottom: 6px; padding: 4px 7px; font-size: .83rem; }
  .property-nav { position: static; gap: 2px 14px; padding-block: 9px; margin-bottom: 18px; }
  .property-nav a { font-size: .86rem; }
  .property-page section[id] { scroll-margin-top: 14px; }
  .property-overview, .room-layout { grid-template-columns: minmax(0, 1fr); }
  .room-section { margin-top: 24px; }
  .room-option { min-height: 0; padding: 10px; }
  .quote-box { position: static; }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .sort-field select { max-width: 128px; }
  .room-option { flex-wrap: wrap; }
  .room-option-price { width: 100%; grid-auto-flow: column; align-items: center; justify-items: end; justify-content: space-between; }
}

.quote-book { width: 100%; margin-top: 10px; }
.quote-breakdown {
  padding-block: 5px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.quote-breakdown summary { cursor: pointer; }
.quote-breakdown ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.quote-breakdown li { display: flex; justify-content: space-between; gap: 8px; }
.property-gallery.photo-count-1 { grid-template-columns: minmax(0, 1fr); }
.property-gallery.photo-count-2 > .gallery-tile:nth-child(2) { grid-row: 1 / -1; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-card { overflow-wrap: anywhere; }
.review-grid .review-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.review-card p { margin: 4px 0; color: var(--muted); white-space: pre-wrap; }
.review-grid .review-card p:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); }
@media (max-width: 620px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
