/* App-like listing / post pages — match Flutter PropertyList / HousingList / HousingPost. */
.stays-page,
.housing-page {
  background: #fff !important;
  color: #1d3557;
}
.app-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}
.app-intro {
  margin: 0 0 8px;
  color: #757575;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.app-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8a8178;
}
.app-kicker a { color: #ed6c02; }
.app-page > h1,
.app-page .housing-nb h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #1d3557;
  line-height: 1.15;
}
.app-seg {
  display: flex;
  border: 1.4px solid #1d3557;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 0 12px;
}
.app-seg a {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #1d3557;
  background: #fff;
}
.app-seg a.on {
  background: #1d3557;
  color: #fff;
}
.app-filters {
  display: grid;
  gap: 6px;
  margin: 0 0 6px;
  grid-template-columns: 1fr;
}
.app-page .housing-filters,
.app-page .housing-nb-search {
  grid-template-columns: 1fr;
}
.app-filters label,
.app-field {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #5c534c;
}
.app-filters input,
.app-filters select,
.app-field input,
.app-field select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  padding: 10px 12px;
  border: 1px solid #c5c5c5;
  border-radius: 4px;
  background: #fff;
}
.app-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.app-filter-actions {
  display: grid;
  gap: 8px;
  margin: 6px 0 8px;
}
.app-apply,
.app-page .housing-btn,
.app-page .sale-apply,
.app-page #staysApply {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: #ed6c02;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-page .housing-btn.ghost,
.app-page .sale-clear {
  background: #fff;
  color: #ed6c02;
  border: 2px solid #ed6c02;
}
.app-count {
  margin: 6px 0 12px;
  color: #757575;
  font-size: 13px;
}
.app-list,
.stays-page .sale-grid,
.app-page .housing-results {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.stays-page .sale-card {
  background: #fff;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(29, 53, 87, 0.06);
}
.app-page .housing-result {
  background: #fff;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(29, 53, 87, 0.06);
}
.stays-page .sale-card-media,
.app-page .housing-result-photo img,
.app-page .housing-result-photo .housing-card-ph {
  width: 100%;
  height: 170px;
  min-height: 170px;
  object-fit: cover;
  background: #efe8e0;
}
.app-page .housing-result-link {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  text-decoration: none;
  color: inherit;
}
.app-page .housing-result-body {
  padding: 14px;
}
.app-page .housing-result-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #212121;
}
.app-page .housing-result-body .meta {
  margin: 0;
  color: #757575;
  font-size: 13px;
}
.app-page .housing-result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.app-page .housing-result-stats strong {
  color: #ed6c02;
  font-size: 16px;
}
.app-page .housing-result-stats span {
  font-size: 11px;
  font-weight: 600;
  color: #8a8178;
}
.app-page .housing-result .housing-btn {
  margin-top: 10px;
  width: 100%;
}
.stays-page .sale-card-body {
  padding: 12px 14px 14px;
}
.stays-page .sale-card-body strong,
.stays-page .stay-card-title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1d3557;
  line-height: 1.25;
}
.stays-page .sale-loc {
  margin: 4px 0 0;
  color: #757575;
  font-size: 13px;
}
.stays-page .stays-card-rent {
  margin: 8px 0 2px;
  color: #ed6c02;
  font-weight: 800;
  font-size: 18px;
}
.stays-page .stays-card-actions a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
}
.stays-page .stays-sidebar-links,
.stays-page .stays-extra {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.stays-page .stays-extra a {
  text-align: center;
  font-weight: 700;
  color: #1d3557;
  font-size: 13px;
}
.housemates-hero {
  padding: 8px 0 4px;
}
.housemates-pill {
  display: inline-block;
  background: #ed6c02;
  color: #fff;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 14px;
}
.housemates-hero h1 {
  margin: 12px 0 8px;
  font-size: 26px;
  font-weight: 900;
  color: #1d3557;
  line-height: 1.15;
}
.housemates-hero .housing-note {
  margin: 0 0 8px;
  font-size: 16px;
  color: #4a5560;
  line-height: 1.35;
}
.app-page .housing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.app-page .housing-chips a {
  background: #fff4ef;
  color: #1d3557;
  border: 1px solid #ffd7c8;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.app-page .housing-nb {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  border-radius: 0;
}
.app-page .housing-nb-owner {
  text-align: left;
  border-top: 0;
  padding-top: 4px;
  margin-top: 8px;
}
.app-page .housing-section {
  margin: 16px 0 8px;
}
.app-page .housing-section h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
}
.app-page .housing-steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.app-page .housing-steps span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #8a8178;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  padding: 6px 10px;
  background: #fff;
}
.app-page .housing-steps span.on {
  color: #fff;
  background: #ed6c02;
  border-color: #ed6c02;
}
.app-page .housing-form {
  gap: 6px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(29, 53, 87, 0.06);
}
.app-page .housing-form input,
.app-page .housing-form select,
.app-page .housing-form textarea {
  padding: 10px 12px;
  font-size: 14px;
}
.app-page .housing-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.app-page .housing-actions .housing-btn {
  width: 100%;
}
.app-page .housing-amen-table label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .app-page { max-width: 860px; }
}

@media (min-width: 1024px) {
  .app-page {
    max-width: 1200px;
    padding: 20px 28px 48px;
  }
  .app-page > h1,
  .app-page .housing-nb h1 {
    font-size: 28px;
  }
  .app-filters.app-filters-desk,
  .app-page #housingFilters {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 12px;
    align-items: end;
  }
  .app-page #housingFilters .housing-filter-actions,
  .app-filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .app-list,
  .stays-page .sale-grid,
  .app-page .housing-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .stays-page .sale-card,
  .app-page .housing-result {
    border-radius: 16px;
  }
  .stays-page .sale-card-body {
    padding: 14px;
  }
  .stays-page .sale-card-media,
  .app-page .housing-result-photo img,
  .app-page .housing-result-photo .housing-card-ph {
    height: 220px;
    min-height: 220px;
  }
  .app-page .housing-actions {
    grid-template-columns: 1fr 1fr;
  }
  .app-page .housing-nb-search {
    grid-template-columns: 140px 1fr 140px auto;
  }
}

/* Shared mobile detail + dock + room sheet (Stays + Housing). */
.app-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px;
  color: #1d3557;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.app-detail .app-gal {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  margin-bottom: 12px;
}
.app-detail .app-gal img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.app-detail h1,
.app-detail .app-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1d3557;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.app-loc {
  margin: 0 0 8px;
  color: #4a5560;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.app-price {
  margin: 0 0 6px;
  color: #ed6c02;
  font-weight: 800;
  font-size: 20px;
}
.app-vacancy {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #e8f7ee;
  color: #145c32;
  font-size: 12px;
  font-weight: 800;
}
.app-vacancy.out {
  background: #fde8e8;
  color: #9b1c1c;
}
.app-card {
  background: #fff;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
}
.app-card h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8178;
}
.app-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d3557;
  overflow-wrap: anywhere;
}
.app-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.app-fact {
  background: #f7f2eb;
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}
.app-fact span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8a8178;
}
.app-fact strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #1d3557;
  overflow-wrap: anywhere;
}
.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-chip {
  background: #fff4ef;
  border: 1px solid #ffd7c8;
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1d3557;
}
.app-room-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 2px solid #1d3557;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}
.app-room-btn small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8a8178;
  text-transform: uppercase;
}
.app-room-btn strong,
.app-room-btn .app-room-btn-t {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: #1d3557;
  overflow-wrap: anywhere;
  white-space: normal;
}
.app-sheet[hidden] { display: none !important; }
.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.app-sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.app-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78dvh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(20px + var(--safe-bottom, 0px));
}
.app-sheet-panel h3 {
  margin: 0 20px 12px 0;
  font-size: 18px;
  color: #1d3557;
}
.app-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #1d3557;
}
.app-room-opt {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin: 0 0 8px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-room-opt.on {
  border-color: #ed6c02;
  background: #fff4ef;
}
.app-room-opt[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.app-room-opt strong { display: block; font-size: 16px; color: #1d3557; }
.app-room-opt span { display: block; font-size: 13px; color: #4a5560; margin-top: 2px; }
.app-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--app-nav-h) + var(--safe-bottom));
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #e6e6e6;
}
.app-dock a,
.app-dock button {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}
.app-dock .app-dock-primary {
  background: #ed6c02;
  color: #fff;
}
.app-dock .app-dock-ghost {
  background: #fff;
  color: #128c7e;
  border: 2px solid #25d366;
}
.app-more-filters {
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #eadfd4;
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  color: #1d3557;
  cursor: pointer;
}
@media (max-width: 767px) {
  .app-page #housingFilters.is-collapsed .app-filter-extra {
    display: none;
  }
}
@media (min-width: 1024px) {
  .app-dock {
    position: static;
    max-width: none;
    margin: 16px 0 0;
    border: 1px solid #eadfd4;
    border-radius: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .app-detail .app-gal img { height: 340px; }
  .app-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 16px;
  }
  .app-detail-hero .app-gal { margin-bottom: 0; }
  .app-detail-side {
    position: sticky;
    top: calc(var(--desk-header-h) + 16px);
  }
  .app-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-room-btn { display: none; }
  .app-sheet {
    position: static;
    inset: auto;
    display: block !important;
  }
  .app-sheet[hidden] { display: block !important; }
  .app-sheet-bg,
  .app-sheet-close { display: none !important; }
  .app-sheet-panel {
    position: static;
    max-height: none;
    overflow: visible;
    border-radius: 12px;
    border: 1px solid #eadfd4;
    padding: 16px;
  }
  .app-page {
    max-width: 1180px;
  }
  .app-more-filters { display: none; }
  .app-page #housingFilters.is-collapsed .app-filter-extra {
    display: contents;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .app-detail .app-gal img { height: 260px; }
  .app-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-page .housing-results,
  .stays-page .sale-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-page #housingFilters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .app-page[data-housing-page="post"] {
    max-width: 760px;
  }
}
.stays-book-form,
#reportForm {
  scroll-margin-top: 80px;
}


