/* Hotel details stay outside the map. Results use the page's normal scroll. */
.ase .ase-hotel-explorer {
  background: var(--ase-surface);
  scroll-margin-top: calc(var(--ase-header-height) + 18px);
}
.ase .ase-explorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}
.ase .ase-explorer-toolbar .ase-city-tabs {flex: 0 1 auto;min-width: 0;}
.ase .ase-explorer-toolbar .ase-city-tabs button {min-height: 46px;}
.ase .ase-explorer-toolbar .ase-hotel-search {
  flex: 1 1 230px;
  min-width: 180px;
  max-width: 420px;
  margin: 0;
  background: var(--ase-bg);
}
.ase .ase-explorer-toolbar .ase-hotel-search input {min-width: 0;}
.ase .ase-hotel-reset {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ase-line);
  border-radius: 11px;
  background: var(--ase-surface);
  color: var(--ase-ink);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.ase .ase-hotel-reset svg {width: 18px;height: 18px;}
.ase .ase-hotel-reset:hover {background: var(--ase-tint);border-color: var(--ase-accent);}

/* Physical placement is stable in both reading directions: map left, panel right. */
.ase .ase-hotel-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  direction: ltr;
  background: var(--ase-soft);
  border-bottom: 1px solid var(--ase-line);
  scroll-margin-top: calc(var(--ase-header-height) + 18px);
}
.ase .ase-hotel-overview .ase-explorer-map-wrap {min-width: 0;}
.ase .ase-hotel-overview .ase-explorer-map {
  height: 500px;
  min-height: 480px;
  width: 100%;
  background: var(--ase-soft);
  direction: ltr;
}
.ase .ase-hotel-details {
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--ase-line);
  background: var(--ase-surface);
  color: var(--ase-ink);
  direction: ltr;
  text-align: start;
  overflow-wrap: anywhere;
}
html[dir="rtl"] .ase .ase-hotel-details,
.ase[dir="rtl"] .ase-hotel-details {direction: rtl;}
.ase .ase-hotel-details-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 32px 24px;
  text-align: center;
}
.ase .ase-hotel-details-empty > svg {width: 42px;height: 42px;margin-bottom: 18px;color: var(--ase-accent);}
.ase .ase-hotel-details-empty h3 {font-size: 1.15rem;margin-bottom: 10px;}
.ase .ase-hotel-details-empty p {color: var(--ase-muted);font-size: .9rem;line-height: 1.8;}
.ase .ase-hotel-detail-photo {
  position: relative;
  width: 100%;
  height: 150px;
  margin: 0;
  overflow: hidden;
  background: var(--ase-soft);
}
.ase .ase-hotel-detail-photo img,
.ase .ase-hotel-detail-img {width: 100%;height: 100%;object-fit: cover;display: block;}
.ase .ase-hotel-detail-photo :is(.ase-hotel-detail-watermark, .ase-watermark) {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  padding: 4px 7px;
  border-radius: 5px;
  background: rgb(8 43 56 / 82%);
  color: #fff;
  font: 700 10px/1.3 Arial, sans-serif;
  letter-spacing: .04em;
  direction: ltr;
}
.ase .ase-hotel-detail-body {padding: 17px 19px 18px;}
.ase .ase-hotel-detail-city {display: block;color: var(--ase-accent);font-size: .76rem;line-height: 1.6;margin-bottom: 4px;}
.ase .ase-hotel-detail-body h3 {font-size: 1.1rem;line-height: 1.55;margin: 0 0 12px;text-wrap: pretty;}
.ase .ase-hotel-detail-distance {display: flex;flex-wrap: wrap;align-items: baseline;gap: 3px 9px;margin: 0;}
.ase .ase-hotel-detail-distance strong {color: var(--ase-accent);font-size: 1.25rem;line-height: 1.45;font-weight: 750;}
.ase .ase-hotel-detail-distance span {font-size: .75rem;line-height: 1.65;color: var(--ase-muted);}
.ase .ase-hotel-detail-walk-time {color: var(--ase-muted);font-size: .75rem;line-height: 1.7;margin-top: 7px;}
.ase .ase-hotel-detail-sources {display: flex;flex-wrap: wrap;gap: 0 13px;margin-top: 4px;}
.ase .ase-hotel-detail-sources a {display: inline-flex;align-items: center;min-height: 36px;color: var(--ase-accent);font-size: .74rem;line-height: 1.55;text-decoration: underline;text-underline-offset: 3px;}
.ase .ase-hotel-detail-actions {display: grid;grid-template-columns: 1fr;gap: 8px;margin-top: 9px;}
.ase .ase-hotel-detail-actions :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ase-line);
  border-radius: 9px;
  background: var(--ase-surface);
  color: var(--ase-accent);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}
.ase .ase-hotel-detail-actions > :first-child {background: var(--ase-button);border-color: var(--ase-button);color: #fff;}
.ase .ase-hotel-detail-actions > :first-child:hover {background: var(--ase-button-hover);border-color: var(--ase-button-hover);}
.ase .ase-hotel-detail-actions > :not(:first-child):hover {background: var(--ase-tint);border-color: var(--ase-accent);}
.ase .ase-hotel-detail-credit {margin: 11px 0 0;color: var(--ase-muted);font-size: .7rem;line-height: 1.65;}
.ase .ase-hotel-detail-credit a {text-decoration: underline;text-underline-offset: 3px;}

/* The results do not have a fixed height or an inner scrollbar. */
.ase .ase-hotel-results {padding: 25px 22px 22px;scroll-margin-top: calc(var(--ase-header-height) + 18px);}
.ase .ase-hotel-results-head {display: flex;flex-wrap: wrap;align-items: baseline;justify-content: space-between;gap: 7px 18px;margin-bottom: 12px;}
.ase .ase-hotel-results-head h3 {font-size: 1.3rem;scroll-margin-top: calc(var(--ase-header-height) + 18px);}
.ase .ase-hotel-results-head p {color: var(--ase-muted);font-size: .85rem;line-height: 1.7;}
.ase .ase-hotel-cards {display: grid;grid-template-columns: repeat(3, minmax(0, 1fr));gap: 18px;height: auto;max-height: none;overflow: visible;padding: 0;}
.ase .ase-hotel-result {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ase-line);
  border-radius: 15px;
  background: var(--ase-surface);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ase .ase-hotel-result:hover {border-color: var(--ase-accent);box-shadow: var(--ase-shadow);}
.ase .ase-hotel-result.is-active {border-color: var(--ase-accent);box-shadow: inset 0 0 0 1px var(--ase-accent);background: var(--ase-tint);}
.ase .ase-hotel-result[hidden] {display: none !important;}
.ase .ase-hotel-result-photo {position: relative;display: block;height: 174px;overflow: hidden;background: var(--ase-soft);flex-shrink: 0;}
.ase .ase-hotel-result-photo img {display: block;width: 100%;height: 100%;object-fit: cover;}
.ase .ase-hotel-result-photo .ase-watermark {inset-inline-end: 9px;bottom: 9px;padding: 4px 7px;font-size: 10px;max-width: calc(100% - 18px);}
.ase .ase-hotel-result-number {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  background: rgb(8 43 56 / 86%);
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
}
.ase .ase-hotel-result-body {display: flex;flex: 1;flex-direction: column;gap: 10px;padding: 17px;min-width: 0;}
.ase .ase-hotel-result-city {color: var(--ase-accent);font-size: .73rem;line-height: 1.6;}
.ase .ase-hotel-result-body h4 {font-size: 1rem;line-height: 1.6;margin: 0;overflow-wrap: anywhere;text-wrap: pretty;}
.ase .ase-hotel-result-body h4 a:hover {color: var(--ase-accent);}
.ase .ase-hotel-result-summary {display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden;color: var(--ase-muted);font-size: .8rem;line-height: 1.8;}
.ase .ase-hotel-result-distance {display: flex;flex-wrap: wrap;align-items: baseline;gap: 3px 8px;padding-top: 2px;margin-top: auto;}
.ase .ase-hotel-result-distance strong {color: var(--ase-accent);font-size: 1.05rem;line-height: 1.5;}
.ase .ase-hotel-result-distance span {color: var(--ase-muted);font-size: .71rem;line-height: 1.65;}
.ase .ase-hotel-result-actions {display: grid;grid-template-columns: 1fr 1fr;gap: 8px;}
.ase .ase-hotel-result-actions :is(button, a) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--ase-line);
  border-radius: 8px;
  background: var(--ase-surface);
  color: var(--ase-accent);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.ase .ase-hotel-result-actions button {background: var(--ase-button);border-color: var(--ase-button);color: #fff;}
.ase .ase-hotel-result-actions button svg {width: 16px;height: 16px;}
.ase .ase-hotel-result-actions button:hover {background: var(--ase-button-hover);border-color: var(--ase-button-hover);}
.ase .ase-hotel-result-actions a:hover {background: var(--ase-tint);border-color: var(--ase-accent);}
.ase .ase-hotel-result-credit {color: var(--ase-muted);font-size: .67rem;line-height: 1.65;margin: 0;}
.ase .ase-hotel-result-credit a {text-decoration: underline;text-underline-offset: 3px;}
.ase .ase-hotel-results > .ase-map-no-results {margin: 0;padding: 28px 10px;text-align: center;border: 1px dashed var(--ase-line);border-radius: 12px;}

.ase .ase-hotel-pagination {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 12px;margin: 18px 0;}
.ase .ase-hotel-pagination[hidden] {display: none !important;}
.ase .ase-hotel-pagination:last-child {margin-bottom: 0;}
.ase .ase-hotel-page-numbers {display: flex;flex-wrap: wrap;align-items: center;justify-content: center;gap: 6px;}
.ase .ase-hotel-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid var(--ase-line);
  border-radius: 9px;
  background: var(--ase-bg);
  color: var(--ase-ink);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
}
.ase .ase-hotel-page-numbers button {padding-inline: 8px;}
.ase .ase-hotel-pagination button:not(:disabled):hover {background: var(--ase-tint);border-color: var(--ase-accent);}
.ase .ase-hotel-pagination button[aria-current="page"] {background: var(--ase-button);border-color: var(--ase-button);color: #fff;}
.ase .ase-hotel-pagination button:disabled {opacity: .45;cursor: not-allowed;}
.ase .ase-hotel-detail-body h3 {scroll-margin-top: calc(var(--ase-header-height) + 18px);}
.ase .ase-hotel-results-head h3:focus-visible,
.ase .ase-hotel-detail-body h3:focus-visible {outline: 3px solid var(--ase-focus);outline-offset: 5px;border-radius: 3px;}
.ase .ase-hotel-marker > span > b {display: block;transform: rotate(45deg);font-weight: 700;}
.ase .ase-hotel-marker.is-active > span {background: #8c5b24;border-color: #fff;box-shadow: 0 0 0 4px rgb(232 201 149 / 75%), 0 4px 12px rgb(8 43 56 / 35%);}
.ase .ase-hotel-marker:focus-visible {outline: none;}
.ase .ase-hotel-marker:focus-visible > span {outline: 3px solid var(--ase-focus);outline-offset: 3px;}
.ase .ase-hotel-marker-label {
  width: max-content;
  max-width: 240px;
  padding: 7px 10px;
  border: 1px solid var(--ase-line);
  border-radius: 8px;
  background: var(--ase-surface);
  color: var(--ase-ink);
  box-shadow: 0 3px 12px rgb(8 43 56 / 16%);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
  direction: ltr;
}
html[dir="rtl"] .ase .ase-hotel-marker-label,
.ase[dir="rtl"] .ase-hotel-marker-label {direction: rtl;}
.ase .ase-hotel-marker-label.leaflet-tooltip-top::before {border-top-color: var(--ase-surface);}

@media (max-width: 1100px) {
  .ase .ase-hotel-cards {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .ase .ase-explorer-toolbar .ase-hotel-search {max-width: none;}
}
@media (min-width: 761px) and (max-width: 1000px) {
  .ase .ase-hotel-overview {grid-template-columns: minmax(0, 1fr) 320px;}
}
@media (max-width: 760px) {
  .ase .ase-explorer-toolbar {padding: 14px;gap: 10px;}
  .ase .ase-explorer-toolbar .ase-city-tabs {width: 100%;flex-basis: 100%;gap: 8px;}
  .ase .ase-explorer-toolbar .ase-city-tabs button {font-size: .82rem;}
  .ase .ase-explorer-toolbar .ase-hotel-search {flex: 1 1 100%;min-width: 0;max-width: none;}
  .ase .ase-hotel-reset {width: 100%;min-height: 44px;}
  .ase .ase-hotel-overview {grid-template-columns: 1fr;}
  .ase .ase-hotel-overview .ase-explorer-map {height: 320px;min-height: 320px;}
  .ase .ase-hotel-details {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    gap: 8px 14px;
    border-left: 0;
    border-top: 1px solid var(--ase-line);
    padding: 16px;
  }
  .ase .ase-hotel-details-empty {grid-column: 1 / -1;min-height: 0;padding: 12px 10px;}
  .ase .ase-hotel-details-empty > svg {width: 30px;height: 30px;margin-bottom: 9px;}
  .ase .ase-hotel-details-empty h3 {font-size: 1rem;margin-bottom: 5px;}
  .ase .ase-hotel-details-empty p {font-size: .83rem;}
  .ase .ase-hotel-detail-photo {grid-column: 1;grid-row: 1 / 4;height: 116px;border-radius: 10px;}
  .ase .ase-hotel-detail-photo :is(.ase-hotel-detail-watermark, .ase-watermark) {inset-inline: 3px;bottom: 4px;max-width: none;padding: 3px 2px;font-size: 7px;letter-spacing: 0;text-align: center;}
  .ase .ase-hotel-detail-body {display: contents;}
  .ase .ase-hotel-detail-body > * {grid-column: 1 / -1;min-width: 0;}
  .ase .ase-hotel-detail-body .ase-hotel-detail-city {grid-column: 2;grid-row: 1;margin: 0;font-size: .73rem;}
  .ase .ase-hotel-detail-body h3 {grid-column: 2;grid-row: 2;margin: 0;font-size: 1rem;line-height: 1.6;}
  .ase .ase-hotel-detail-body .ase-hotel-detail-distance {grid-column: 2;grid-row: 3;gap: 0 7px;align-self: start;}
  .ase .ase-hotel-detail-distance strong {font-size: 1.1rem;}
  .ase .ase-hotel-detail-distance span {font-size: .7rem;}
  .ase .ase-hotel-detail-walk-time {margin: 3px 0 0;}
  .ase .ase-hotel-detail-sources {margin: 0;gap: 4px 16px;}
  .ase .ase-hotel-detail-sources a {min-height: 44px;}
  .ase .ase-hotel-detail-actions {grid-template-columns: 1fr 1fr;gap: 8px;margin: 0;}
  .ase .ase-hotel-detail-actions :is(a, button) {font-size: .76rem;padding: 9px 8px;}
  .ase .ase-hotel-detail-credit {margin: 2px 0 0;font-size: .68rem;}
  .ase .ase-hotel-results {padding: 21px 16px 18px;}
  .ase .ase-hotel-results-head {align-items: start;}
  .ase .ase-hotel-pagination {display: grid;grid-template-columns: 1fr 1fr;gap: 9px 12px;}
  .ase .ase-hotel-pagination > [data-hotel-prev] {grid-column: 1;grid-row: 1;}
  .ase .ase-hotel-pagination > [data-hotel-next] {grid-column: 2;grid-row: 1;}
  .ase .ase-hotel-page-numbers {grid-column: 1 / -1;grid-row: 2;gap: 6px;}
  .ase .ase-hotel-cards {gap: 16px;}
}
@media (max-width: 540px) {
  .ase .ase-hotel-cards {grid-template-columns: minmax(0, 1fr);}
  .ase .ase-hotel-overview .ase-explorer-map {height: 300px;min-height: 300px;}
  .ase .ase-hotel-details {grid-template-columns: 90px minmax(0, 1fr);padding: 14px;gap: 7px 12px;}
  .ase .ase-hotel-detail-photo {height: 110px;}
  .ase .ase-hotel-result-photo {height: 185px;}
  .ase .ase-hotel-result-body {padding: 16px;}
  .ase .ase-hotel-result-summary {font-size: .83rem;}
  .ase .ase-hotel-result-actions :is(a, button) {font-size: .78rem;}
  .ase .ase-hotel-results {padding-inline: 14px;}
  .ase .ase-hotel-results-head h3 {font-size: 1.2rem;}
  .ase .ase-hotel-results-head p {font-size: .8rem;}
}
@media (prefers-reduced-motion: reduce) {
  .ase .ase-hotel-result {transition: none;}
}
@media print {
  .ase .ase-explorer-toolbar,
  .ase .ase-hotel-pagination,
  .ase .ase-hotel-result-actions button {display: none !important;}
  .ase .ase-hotel-overview {display: block;}
  .ase .ase-hotel-details {border: 0;break-inside: avoid;}
  .ase .ase-hotel-result {break-inside: avoid;box-shadow: none;}
}
