/* Public discovery stays separate from the signed-in booking app. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.catalog-heading h2 {
  font-size: clamp(34px, 3.7vw, 49px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  font-weight: 650;
  margin-top: 17px;
}
.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d9dce2;
  border-radius: 100px;
  background: white;
  min-height: 44px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  max-width: 300px;
  flex: none;
}
.location-button:hover {
  border-color: var(--blue);
}
.location-button > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-button svg,
.catalog-search svg,
.text-button svg,
.photo-fallback svg,
.gallery-arrow svg,
.close-dialog svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.catalog-toolbar {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.catalog-categories {
  display: flex;
  align-items: center;
  gap: 7px;
}
.catalog-categories button {
  color: #666973;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  border: 0;
  background: transparent;
  min-height: 43px;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}
.catalog-categories button:hover {
  background: #eeeff2;
  color: var(--ink);
}
.catalog-categories button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.catalog-search {
  display: flex;
  align-items: center;
  width: min(370px, 45%);
  border-radius: 100px;
  border: 1px solid #dfe0e4;
  background: #fff;
  overflow: hidden;
}
.catalog-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #3563e016;
}
.catalog-search input {
  font: inherit;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 8px 14px 20px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
.catalog-search button {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 46px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  cursor: pointer;
}
.catalog-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
}
.catalog-subline > p {
  color: #797c84;
  font-size: 11px;
}
.text-button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 550;
  font-size: 12px;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 3px;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.catalog-status {
  color: #696f7d;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #edf1fb;
  border-radius: 12px;
  margin-bottom: 21px;
}
.catalog-status .text-button {
  min-height: 30px;
  padding: 0;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 37px;
}
.listing-card {
  min-width: 0;
}
.listing-card-button {
  font: inherit;
  padding: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  border-radius: 18px;
}
.listing-photo {
  aspect-ratio: 1.14;
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: #e9eaf0;
}
.listing-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  transition: transform 0.35s;
}
.listing-card-button:hover .listing-photo > img {
  transform: scale(1.035);
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column-reverse;
  gap: 8px;
  color: #8b8f9a;
  font-size: 11px;
}
.photo-fallback svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.2;
}
.listing-category {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 12px;
  background: #ffffffed;
  color: #414654;
  border: 1px solid #ffffff75;
  backdrop-filter: blur(10px);
  padding: 7px 11px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
}
.listing-card-info {
  padding: 15px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.listing-card-title {
  color: #25262b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.listing-area {
  font-size: 12px;
  color: #858791;
  line-height: 1.5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.listing-price {
  margin-top: 3px;
  font-size: 13px;
  color: #62656e;
}
.listing-price strong {
  font-weight: 650;
  color: var(--ink);
}
.listing-skeleton > div {
  aspect-ratio: 1.14;
  border-radius: 17px;
  background: #e9ebee;
}
.listing-skeleton > span {
  display: block;
  height: 12px;
  border-radius: 5px;
  width: 74%;
  background: #e9ebee;
  margin-top: 17px;
}
.listing-skeleton > span:last-child {
  width: 45%;
  margin-top: 10px;
}
.catalog-empty {
  padding: 50px 25px;
  text-align: center;
  border-radius: 20px;
  background: #f0f1f3;
}
.empty-note {
  display: inline-block;
  color: var(--blue);
  font-size: 34px;
  margin-bottom: 12px;
}
.catalog-empty h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.catalog-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 425px;
  margin: 13px auto 23px;
}
.catalog-empty .button {
  background: #fff;
  font-size: 12px;
  min-height: 46px;
}
.more-listings {
  display: flex;
  margin: 34px auto 0;
  font-size: 12px;
  min-height: 48px;
}
.more-listings:disabled {
  opacity: 0.5;
}
.remote-section {
  margin-top: 47px;
}
.remote-section > h3 {
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.remote-section > p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 24px;
}
.catalog-footnote {
  font-size: 10px;
  line-height: 1.6;
  color: #94969d;
  margin-top: 25px;
}

dialog {
  color: var(--ink);
  border: 1px solid #e5e7ed;
  border-radius: 24px;
  padding: 0;
  width: min(740px, calc(100% - 40px));
  max-height: calc(100dvh - 64px);
  overflow: auto;
  background: #fff;
  box-shadow: 0 24px 90px #171b3540;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #171b355f;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 25px;
  border-bottom: 1px solid #eceef2;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffffed;
  backdrop-filter: blur(12px);
}
.dialog-heading h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.dialog-heading form {
  flex: none;
  margin: 0;
}
.close-dialog {
  border: 0;
  background: #f0f1f4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-dialog:hover {
  background: #e5e8ef;
}
.location-dialog {
  width: min(510px, calc(100% - 32px));
  padding: 0 26px 23px;
}
.location-dialog .dialog-heading {
  margin: 0 -26px;
}
.location-intro {
  margin-top: 23px;
  color: #727783;
  font-size: 13px;
  line-height: 1.7;
}
.location-dialog > .button {
  width: 100%;
  margin-top: 22px;
  min-height: 50px;
  font-size: 13px;
}
.location-error {
  font-size: 12px;
  color: #696e7b;
  line-height: 1.7;
  margin-top: 12px;
}
.location-error:empty {
  display: none;
}
#place-form {
  margin-top: 23px;
}
#place-form label {
  display: block;
  color: #404652;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 10px;
}
#place-query {
  font: inherit;
  width: 100%;
  border: 1px solid #d9dde5;
  border-radius: 11px;
  background: #fbfbfc;
  padding: 14px;
  font-size: 14px;
  color: var(--ink);
}
.place-result {
  width: 100%;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: transparent;
  cursor: pointer;
  padding: 14px 6px;
  border-radius: 5px;
}
.place-result:hover {
  background: #f5f7fc;
}
.place-result strong {
  color: #303744;
  font-size: 13px;
  font-weight: 550;
}
.place-result span {
  color: #8b909b;
  font-size: 11px;
}
.place-hint {
  color: #7a808c;
  font-size: 12px;
  line-height: 1.6;
  padding-block: 15px;
}
.place-credit {
  color: #9599a3;
  font-size: 9px;
  line-height: 1.7;
  margin-top: 18px;
}
.place-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.location-dialog > .text-button {
  margin-top: 12px;
}
.detail-loading {
  padding: 35px 25px;
  color: #747a87;
  font-size: 14px;
  line-height: 1.7;
}
#detail-body > .button {
  margin: 0 25px 30px;
}
.detail-gallery {
  position: relative;
  margin: 20px 24px 0;
}
.detail-photo {
  height: 365px;
  position: relative;
  background: #f0f1f4;
  border-radius: 16px;
  overflow: hidden;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff80;
  background: #ffffffee;
  box-shadow: 0 3px 12px #00000012;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gallery-previous {
  left: 12px;
}
.gallery-next {
  right: 12px;
}
.gallery-count {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: #111114a6;
  color: white;
  border-radius: 100px;
  padding: 6px 11px;
  font-size: 11px;
}
.detail-content {
  padding: 25px 28px;
}
.detail-meta {
  font-size: 12px;
  color: #747b88;
  line-height: 1.6;
}
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
}
.detail-price strong {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 700;
}
.detail-price > span {
  color: #747987;
  font-size: 14px;
}
.detail-price-note {
  margin-top: 7px;
  color: #9297a1;
  font-size: 10px;
  line-height: 1.7;
}
.detail-host {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e9ebf0;
  border-bottom: 1px solid #e9ebf0;
  padding: 18px 0;
  margin-top: 23px;
  font-size: 13px;
  font-weight: 550;
}
.host-initial {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8eefc;
  color: var(--blue);
  font-size: 15px;
}
.detail-content h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin-top: 23px;
}
.detail-description {
  color: #626a78;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-facts {
  font-size: 12px;
  color: #7d8592;
  margin-top: 20px;
  line-height: 1.7;
}
.detail-privacy {
  color: #7c8390;
  font-size: 11px;
  line-height: 1.7;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f5f6fa;
  margin-top: 24px;
}
.detail-footer {
  padding: 21px 28px 26px;
  border-top: 1px solid #e9ebf0;
}
.detail-footer .button {
  width: 100%;
  font-size: 13px;
}
.detail-footer p {
  color: #878f9d;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 18px;
  }
  .catalog-heading h2 {
    font-size: 41px;
  }
}
@media (max-width: 899px), (hover: none), (pointer: coarse), (pointer: none) {
  .catalog-section {
    margin-top: 70px;
  }
}
@media (max-width: 700px) {
  .catalog-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }
  .catalog-heading h2 {
    font-size: 37px;
    letter-spacing: -2px;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
    padding-bottom: 17px;
  }
  .catalog-categories {
    gap: 8px;
  }
  .catalog-categories button {
    padding-inline: 21px;
    flex: 1;
  }
  .catalog-search {
    width: 100%;
  }
  .catalog-search input {
    padding-block: 15px;
    font-size: 13px;
  }
  .catalog-subline {
    padding-block: 11px;
  }
  .catalog-subline > p {
    font-size: 10px;
    line-height: 1.6;
  }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 15px;
  }
  .listing-photo {
    aspect-ratio: 1;
    border-radius: 13px;
  }
  .listing-category {
    top: 9px;
    left: 9px;
    padding: 5px 8px;
    font-size: 8px;
  }
  .listing-card-title {
    font-size: 13px;
  }
  .listing-area {
    font-size: 10px;
  }
  .listing-price {
    font-size: 12px;
  }
  .listing-card-info {
    padding-top: 11px;
    gap: 5px;
  }
  .catalog-status {
    font-size: 12px;
    padding: 14px 16px;
  }
  .catalog-footnote {
    font-size: 9px;
  }
}
@media (max-width: 420px) {
  .catalog-heading h2 {
    font-size: 33px;
  }
  .catalog-categories {
    gap: 3px;
  }
  .catalog-categories button {
    padding-inline: 12px;
    font-size: 12px;
  }
  .listing-grid {
    column-gap: 12px;
  }
  .listing-card-title {
    font-size: 12px;
  }
  .listing-price {
    font-size: 11px;
  }
  .listing-category {
    font-size: 7px;
    padding: 5px 7px;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 19px;
  }
  .dialog-heading {
    padding: 16px 18px;
    gap: 15px;
  }
  .dialog-heading h2 {
    font-size: 17px;
  }
  .close-dialog {
    width: 34px;
    height: 34px;
  }
  .detail-gallery {
    margin: 15px 14px 0;
  }
  .detail-photo {
    height: 270px;
    border-radius: 12px;
  }
  .detail-content {
    padding: 22px 20px;
  }
  .detail-footer {
    padding: 18px 20px 23px;
  }
  .detail-description {
    font-size: 13px;
  }
  .location-dialog {
    padding: 0 20px 20px;
  }
  .location-dialog .dialog-heading {
    margin-inline: -20px;
  }
}
