.ish-listing-section,
.ish-property-detail {
  overflow: hidden;
}
#ish-listing-app {
  min-width: 0;
}
.ish-listing-filters {
  align-items: end;
  background: #fff;
  border: 1px solid #ece8e4;
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 20px;
}
.ish-listing-filters label,
.ish-listing-filters legend {
  color: #24211f;
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.ish-listing-filters select,
.ish-listing-filters input {
  background: #fff;
  border: 1px solid #ded9d4;
  border-radius: 5px;
  color: #39332e;
  display: block;
  font: inherit;
  height: 46px;
  margin-top: 7px;
  max-width: 100%;
  min-width: 0;
  padding: 0 11px;
  width: 100%;
}
.ish-more-filters {
  align-self: stretch;
  border: 1px solid #ded9d4;
  border-radius: 5px;
  grid-column: span 2;
  position: relative;
}
.ish-more-filters summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 13px 15px;
}
.ish-more-filters summary::-webkit-details-marker {
  display: none;
}
.ish-more-filters summary:after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  float: right;
  height: 7px;
  margin: 5px 3px 0;
  transform: rotate(45deg);
  width: 7px;
}
.ish-more-filters[open] summary:after {
  transform: rotate(225deg);
}
.ish-more-filter-grid {
  background: #fff;
  border: 1px solid #ece8e4;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(28, 24, 21, .12);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}
.ish-more-filter-grid fieldset {
  border: 0;
  grid-column: span 2;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.ish-more-filter-grid legend {
  margin-bottom: 8px;
}
.ish-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ish-filter-checks label {
  align-items: center;
  display: inline-flex;
  font-weight: 400;
  gap: 6px;
}
.ish-filter-checks input {
  accent-color: var(--theme-color1);
  height: 16px;
  margin: 0;
  width: 16px;
}
.ish-show-features {
  background: none;
  border: 0;
  color: var(--theme-color1);
  cursor: pointer;
  font-size: 13px;
  margin-top: 8px;
  padding: 0;
}
.ish-filter-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}
.ish-reset-filters {
  background: none;
  border: 0;
  color: #695b50;
  cursor: pointer;
  font: inherit;
  padding: 10px;
}
.ish-listing-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 30px 0 18px;
}
.ish-results-summary {
  align-items: baseline;
  display: flex;
  gap: 8px;
}
.ish-results-summary a,
.ish-listing-price {
  color: var(--theme-color1);
}
.ish-card-location { margin: 0 0 6px; color: #5f6470; font-size: 14px; }
.ish-property-card.is-map-highlighted { outline: 2px solid var(--theme-color1); outline-offset: 2px; }
.ish-sort {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}
.ish-sort select {
  background: #fff;
  border: 1px solid #ded9d4;
  border-radius: 5px;
  font: inherit;
  height: 42px;
  max-width: 190px;
  padding: 0 10px;
}
.ish-layout-toggle {
  border: 1px solid #e4ded8;
  border-radius: 6px;
  display: inline-flex;
  overflow: hidden;
}
.ish-layout-toggle button,
.ish-mobile-map-toggle button {
  background: #fff;
  border: 0;
  color: #4b4139;
  cursor: pointer;
  font: inherit;
  padding: 10px 13px;
}
.ish-layout-toggle button + button {
  border-left: 1px solid #e4ded8;
}
.ish-layout-toggle button[aria-pressed="true"],
.ish-mobile-map-toggle button[aria-pressed="true"] {
  background: var(--theme-color1);
  color: #fff;
}
.ish-pagination-summary {
  margin: 0 0 16px;
}
.ish-listing-results {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ish-listing-results[data-layout="list"] {
  grid-template-columns: minmax(0, 1fr);
}
.ish-property-card {
  background: #fff;
  border: 1px solid #ece8e4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.ish-card-media {
  aspect-ratio: 1.58;
  background: #f3f0ed;
  overflow: hidden;
  position: relative;
}
.ish-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.ish-card-image-placeholder {
  align-items: center;
  color: #9b8c80;
  display: flex;
  font-size: 28px;
  height: 100%;
  justify-content: center;
}
.ish-card-controls {
  inset: 10px 10px auto;
  position: absolute;
  z-index: 2;
}
.ish-favorite {
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #55483f;
  cursor: pointer;
  height: 38px;
  line-height: 38px;
  padding: 0;
  text-align: center;
  width: 38px;
}
.ish-favorite[aria-pressed="true"] {
  color: #b64c3c;
}
.ish-slider-button {
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 34px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
}
.ish-slider-prev {
  left: 9px;
}
.ish-slider-next {
  right: 9px;
}
.ish-slider-dots {
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}
.ish-slider-dots button {
  background: rgba(255, 255, 255, .65);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 7px;
  padding: 0;
  width: 7px;
}
.ish-slider-dots button[aria-current="true"] {
  background: #fff;
}
.ish-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.ish-property-card h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 8px 0;
  overflow-wrap: normal;
  word-break: normal;
}
.ish-property-card h2 a {
  color: inherit;
}
.ish-listing-price {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 7px;
}
.ish-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 0 0 12px;
  overflow: hidden;
}
.ish-card-facts,
.ish-property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ish-card-taxonomy,
.ish-property-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.ish-chip,
.ish-label {
  background: #f5f0ec;
  border-radius: 20px;
  color: #604936;
  display: inline-block;
  font-size: 12px;
  padding: 5px 10px;
}
.ish-label {
  background: var(--theme-color1);
  color: #fff;
}
.ish-card-labels {
  display: flex;
  gap: 6px;
  left: 10px;
  position: absolute;
  top: 10px;
}
.ish-listing-results[data-layout="list"] .ish-property-card {
  flex-direction: row;
  min-height: 250px;
}
.ish-listing-results[data-layout="list"] .ish-card-media {
  aspect-ratio: auto;
  flex: 0 0 36%;
}
.ish-listing-skeleton {
  align-items: center;
  background: linear-gradient(90deg, #f3f0ed 25%, #faf9f8 50%, #f3f0ed 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  color: #66594f;
  display: flex;
  justify-content: center;
  min-height: 260px;
  animation: ish-skeleton 1.4s ease infinite;
}
@keyframes ish-skeleton {
  to { background-position: -200% 0; }
}
.ish-listing-message {
  margin: 32px auto;
  max-width: 560px;
  padding: 42px 20px;
  text-align: center;
}
.ish-listing-message h2 {
  margin-bottom: 10px;
}
.ish-listing-message p {
  margin: 0 auto 20px;
}
.ish-listing-message .ish-empty-icon {
  color: var(--theme-color1);
  font-size: 36px;
  margin-bottom: 12px;
}
.ish-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}
.ish-pagination a,
.ish-pagination button {
  background: #fff;
  border: 1px solid #ded9d4;
  border-radius: 4px;
  color: #3c332d;
  cursor: pointer;
  min-width: 40px;
  padding: 9px 12px;
  text-align: center;
}
.ish-pagination [aria-current="page"] {
  background: var(--theme-color1);
  border-color: var(--theme-color1);
  color: #fff;
}
.ish-map-panel {
  background: #f2efec;
  border-radius: 8px;
  min-height: 480px;
  overflow: hidden;
  width: 100%;
}
.ish-listing-results[data-layout="half_map"] {
  display: block;
  max-height: 760px;
  overflow: auto;
  padding-right: 16px;
}
.ish-listing-results[data-layout="half_map"] .ish-property-card {
  margin-bottom: 18px;
  min-height: 210px;
}
.ish-listing-results[data-layout="half_map"] .ish-card-media {
  aspect-ratio: auto;
  flex: 0 0 36%;
}
.ish-map-panel.is-half-map {
  bottom: auto;
  height: 760px;
  position: sticky;
  top: 20px;
}
.ish-results-map-layout.ish-half-map-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
}
.ish-results-map-layout.ish-half-map-layout #ish-listing-results {
  min-width: 0;
}
.ish-results-map-layout.ish-half-map-layout #ish-map {
  min-width: 0;
}
.ish-map-column { min-width: 0; }
.ish-map-controls { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ish-map-panel:not(.is-half-map) {
  display: none;
}
.ish-mobile-map-toggle {
  display: none;
}
.ish-map-popup {
  max-width: 220px;
}
.ish-map-popup img {
  aspect-ratio: 1.6;
  display: block;
  object-fit: cover;
  width: 100%;
}
.ish-map-popup a {
  color: var(--theme-color1);
  font-weight: 600;
}
.ish-map-highlighted {
  filter: drop-shadow(0 0 6px rgba(27, 105, 83, 0.9));
}
.leaflet-marker-icon.is-map-highlighted {
  transform: scale(1.25);
  z-index: 1000 !important;
}
.leaflet-interactive.is-map-highlighted {
  stroke-width: 4;
}
.ish-property-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}
.ish-property-gallery img {
  border-radius: 8px;
  display: block;
  height: 240px;
  object-fit: cover;
  width: 100%;
}
.ish-property-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  height: 492px;
}
.ish-property-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
  overflow-wrap: normal;
  word-break: normal;
}
.ish-property-facts {
  border-bottom: 1px solid #e8e2dd;
  border-top: 1px solid #e8e2dd;
  margin: 20px 0;
  padding: 16px 0;
}
.ish-property-detail h2 {
  font-size: 24px;
  margin: 24px 0 12px;
}
.ish-property-lists {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ish-property-lists ul {
  padding-left: 20px;
}
.ish-property-detail #ish-property-map {
  margin-bottom: 24px;
  min-height: 360px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 991.98px) {
  .ish-listing-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ish-listing-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ish-more-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ish-results-map-layout.ish-half-map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 767.98px) {
  .ish-listing-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .ish-listing-results[data-layout="list"] .ish-property-card,
  .ish-listing-results[data-layout="half_map"] .ish-property-card {
    flex-direction: column;
  }
  .ish-listing-results[data-layout="list"] .ish-card-media,
  .ish-listing-results[data-layout="half_map"] .ish-card-media {
    aspect-ratio: 1.58;
    flex: auto;
  }
  .ish-results-map-layout.ish-half-map-layout {
    display: block;
  }
  .ish-results-map-layout.ish-half-map-layout #ish-map {
    display: none;
    height: calc(100vh - 120px);
    min-height: 420px;
    position: sticky;
    top: 10px;
  }
  .ish-results-map-layout.ish-half-map-layout.is-map-visible #ish-listing-results {
    display: none;
  }
  .ish-results-map-layout.ish-half-map-layout.is-map-visible #ish-map {
    display: block;
  }
  .ish-listing-results[data-layout="half_map"] {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .ish-listing-results[data-layout="half_map"] .ish-property-card {
    min-height: 0;
  }
  .ish-map-panel.is-half-map {
    height: 460px;
    min-height: 460px;
    position: relative;
    top: auto;
  }
  .ish-mobile-map-toggle {
    display: flex;
    margin: 0 0 12px;
  }
  .ish-mobile-map-toggle button {
    border: 1px solid #e4ded8;
    flex: 1;
  }
  .ish-more-filter-grid {
    grid-template-columns: minmax(0, 1fr);
    max-height: 70vh;
    overflow: auto;
  }
  .ish-more-filter-grid fieldset {
    grid-column: auto;
  }
  .ish-property-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ish-property-gallery img {
    height: 160px;
  }
  .ish-property-gallery img:first-child {
    height: 332px;
  }
  .ish-property-lists {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 575.98px) {
  .ish-listing-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }
  .ish-more-filters {
    grid-column: span 2;
  }
  .ish-filter-actions {
    grid-column: span 2;
  }
  .ish-listing-toolbar {
    align-items: flex-start;
  }
  .ish-layout-toggle {
    width: 100%;
  }
  .ish-layout-toggle button {
    flex: 1;
    padding-left: 6px;
    padding-right: 6px;
  }
  .ish-listing-results[data-layout="list"] .ish-property-card {
    flex-direction: column;
  }
  .ish-listing-results[data-layout="list"] .ish-card-media {
    aspect-ratio: 1.58;
    flex: auto;
  }
  .ish-property-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .ish-property-gallery img,
  .ish-property-gallery img:first-child {
    flex: 0 0 88%;
    height: 250px;
    scroll-snap-align: start;
  }
}
