.stay-list-wrap {
  width: 100%;
  margin: 1.25rem auto 2rem;
  padding: 0;
  box-sizing: border-box;
}
.stay-list-search-card {
  background: var(--gocore-color-surface, #fff);
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}
.stay-list-search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.8fr auto;
  gap: 0.65rem;
  align-items: end;
}
.stay-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stay-field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gocore-color-text-muted, #6c757d);
}
.stay-field input {
  height: 44px;
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 10px;
  padding: 0 0.7rem;
}
.stay-search-btn {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 1rem;
  background: var(--gocore-color-primary, #0d6efd);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.stay-list-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.stay-list-filters {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 0.75rem;
}
.stay-filter-card {
  background: var(--gocore-color-surface, #fff);
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 12px;
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
}
.stay-filter-card h2,
.stay-filter-card h3 {
  margin: 0;
  font-size: 1rem;
}
.stay-list-results {
  display: grid;
  gap: 0.8rem;
}
.stay-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.stay-list-toolbar h1 {
  margin: 0;
  font-size: 1.35rem;
}
.stay-list-toolbar p {
  margin: 0.2rem 0 0;
  color: var(--gocore-color-text-muted, #6c757d);
}
.stay-sort {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--gocore-color-text-muted, #6c757d);
}
.stay-sort select {
  height: 40px;
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 10px;
  padding: 0 0.6rem;
}
.stay-results-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0.8rem;
  align-items: start;
}
.stay-results-list {
  display: grid;
  gap: 0.75rem;
}
.stay-card {
  display: grid;
  grid-template-columns: 260px 1fr 210px;
  background: var(--gocore-color-surface, #fff);
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 12px;
  overflow: hidden;
}
.stay-card-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.stay-card-main {
  padding: 0.9rem;
}
.stay-card-main h2 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}
.stay-card-area {
  margin: 0 0 0.55rem;
  color: var(--gocore-color-text-muted, #6c757d);
}
.stay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.stay-badge {
  font-size: 0.75rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.18);
  color: #0b4db3;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
}
.stay-cancel {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: #067647;
}
.stay-card-side {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  align-items: flex-end;
}
.stay-score {
  margin: 0;
  font-size: 0.9rem;
  color: #344054;
}
.stay-reviews {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gocore-color-text-muted, #6c757d);
}
.stay-price {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-size: 1.4rem;
  color: #101828;
}
.stay-total {
  margin: 0 0 0.45rem;
  color: var(--gocore-color-text-muted, #6c757d);
  font-size: 0.78rem;
}
.stay-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  padding: 0 0.8rem;
  border-radius: 10px;
  background: var(--gocore-color-primary, #0d6efd);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.stay-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--gocore-color-surface, #fff);
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 12px;
  padding: 0.55rem 0.6rem;
  margin-top: 0.7rem;
}
.pg-pages {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.pg-btn {
  height: 34px;
  min-width: 34px;
  border: 1px solid var(--gocore-color-border, #dee2e6);
  background: var(--gocore-color-surface, #fff);
  color: var(--gocore-color-text, #1a1a1a);
  border-radius: 10px;
  padding: 0 0.6rem;
  cursor: pointer;
}
.pg-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.pg-btn.is-active {
  background: var(--gocore-color-primary, #0d6efd);
  border-color: var(--gocore-color-primary, #0d6efd);
  color: #fff;
}
.stay-map-panel {
  position: sticky;
  top: 100px;
}
.stay-map-box {
  background: var(--gocore-color-surface, #fff);
  border: 1px solid var(--gocore-color-border, #dee2e6);
  border-radius: 12px;
  padding: 0.75rem;
}
.stay-map-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.stay-map-canvas {
  height: 220px;
  border-radius: 10px;
  border: 1px solid var(--gocore-color-border, #dee2e6);
  background: linear-gradient(
    180deg,
    rgba(13, 110, 253, 0.12),
    rgba(13, 110, 253, 0.03)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b4db3;
  font-weight: 900;
}
.stay-map-center {
  padding: 0.35rem 0.55rem;
  background: var(--gocore-color-surface, #fff);
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 999px;
}
.stay-map-legend {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--gocore-color-text, #1a1a1a);
}
.stay-map-legend .pin {
  display: inline-block;
  color: var(--gocore-color-primary, #0d6efd);
  margin-right: 0.35rem;
}
@media (max-width: 1100px) {
  .stay-list-search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stay-search-btn {
    grid-column: span 2;
  }
  .stay-list-layout {
    grid-template-columns: 1fr;
  }
  .stay-list-filters {
    position: static;
  }
  .stay-results-content {
    grid-template-columns: 1fr;
  }
  .stay-map-panel {
    position: static;
  }
}
@media (max-width: 820px) {
  .stay-card {
    grid-template-columns: 1fr;
  }
  .stay-card-img {
    height: 200px;
  }
  .stay-card-side {
    align-items: flex-start;
    border-left: 0;
    border-top: 1px solid #eef0f5;
  }
}

/* Card image placeholder gradients (when no gallery) */
.stay-card-img--ph {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
}
.stay-card-img--ph-0 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.stay-card-img--ph-1 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.stay-card-img--ph-2 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.stay-card-img--ph-3 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.stay-card-img--ph-4 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* View toggle buttons */
.stay-toolbar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stay-view-toggle {
  display: flex;
  gap: 0.35rem;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.25rem;
  border: 1px solid #e5e7eb;
}
.stay-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 200ms;
}
.stay-view-btn:hover {
  color: #111827;
  background: #fff;
}
.stay-view-btn.is-active {
  background: #fff;
  color: #0f9f4b;
  border-color: #d1fae5;
  box-shadow: 0 1px 3px rgba(15, 159, 75, 0.1);
}

/* Card image with overlay badges */
.stay-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.stay-card-img-wrap img,
.stay-card-img-wrap .stay-card-img--ph {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 180px;
}
.stay-card-badges-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.35rem;
  flex-direction: column;
}
.stay-badge-capacity,
.stay-badge-rooms {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Amenity icons */
.stay-amenities {
  display: flex;
  gap: 0.5rem;
  margin: 0.4rem 0 0.55rem;
  flex-wrap: wrap;
}
.amenity-icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Map view mode */
.stay-results-content.view-mode-map {
  grid-template-columns: 1fr;
}
.stay-results-content.view-mode-map .stay-results-list {
  display: none;
}
.stay-results-content.view-mode-map .stay-map-panel {
  position: relative;
  top: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.stay-results-content.view-mode-map .stay-map-canvas {
  height: 600px;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .stay-toolbar-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stay-view-toggle {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .stay-view-btn {
    font-size: 0.8rem;
    padding: 0 0.6rem;
    height: 32px;
  }
}
.stay-card-img--ph-0 {
  background: linear-gradient(135deg, #ffe0e6, #ffb3c1, #ff6b8a);
}
.stay-card-img--ph-1 {
  background: linear-gradient(135deg, #e0eaff, #c2d4ff, #7ea8ff);
}
.stay-card-img--ph-2 {
  background: linear-gradient(135deg, #e0fff4, #b3ffe0, #5aedc0);
}
.stay-card-img--ph-3 {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2, #ffb347);
}
.stay-card-img--ph-4 {
  background: linear-gradient(135deg, #f0e0ff, #e0c2ff, #c77dff);
}
.stay-card-desc {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--gocore-color-text-muted, #6c757d);
  line-height: 1.55;
}

/* Gallery Modal Styles */
.stay-gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  flex-direction: column;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.stay-gallery-modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.stay-gallery-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.stay-gallery-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.stay-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.stay-gallery-title {
  color: #fff;
  font-weight: 700;
  margin: 0;
}
.stay-gallery-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.stay-gallery-close:hover {
  transform: scale(1.2);
}
.stay-gallery-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.stay-gallery-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.stay-gallery-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.stay-gallery-nav {
  display: flex;
  gap: 0.5rem;
}
.stay-gallery-prev,
.stay-gallery-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s;
}
.stay-gallery-prev:hover,
.stay-gallery-next:hover {
  background: rgba(255, 255, 255, 0.4);
}
.stay-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
}
.stay-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: all 0.2s;
  background-repeat: no-repeat;
}
.stay-thumb:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.stay-thumb.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

@media (max-width: 768px) {
  .stay-gallery-main {
    flex-direction: column;
    padding: 0.75rem;
  }
  .stay-gallery-image-wrap {
    min-height: 250px;
    width: 100%;
  }
  .stay-gallery-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    justify-content: center;
    width: auto;
  }
  .stay-gallery-prev,
  .stay-gallery-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .stay-thumb {
    width: 60px;
    height: 60px;
  }
}
