/* Pages: shells, cards, vistas y footer */

main {
  padding: 0 0 64px;
  position: relative;
  z-index: 1;
}

main,
.site-footer {
  font-size: 0.78rem;
}

.status-shell,
.home-section,
.results-view,
.detail-view,
.reserve-view {
  position: relative;
  z-index: 1;
}

.status-shell {
  position: relative;
  margin-top: 18px;
  padding: 12px 0 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.status-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background: linear-gradient(90deg, rgba(20, 67, 146, 0.8) 0%, rgba(20, 67, 146, 0.28) 22%, rgba(20, 67, 146, 0.08) 52%, rgba(20, 67, 146, 0) 100%);
  pointer-events: none;
}

.steps-bar,
.search-chip {
  position: relative;
  z-index: 1;
}

.steps-bar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.step {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(20, 67, 146, 0.72);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}

.step.is-active {
  background: transparent;
  color: var(--navy);
}

.search-chip {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-section,
.results-view,
.detail-view,
.reserve-view,
.page-view {
  margin-top: 30px;
}

.search-match-head {
  align-items: center;
}

.search-match-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-match-status {
  min-width: 160px;
  text-align: right;
  color: var(--muted);
  font-weight: 700;
}

.search-match-grid {
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-match-grid::-webkit-scrollbar {
  display: none;
}

.search-match-track {
  display: flex;
  gap: 18px;
}

.search-match-card {
  flex: 0 0 calc((100% - ((var(--search-visible) - 1) * 18px)) / var(--search-visible));
  background: var(--surface);
  border: 1px solid rgba(215, 226, 241, 0.9);
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  scroll-snap-align: start;
}

.search-match-media {
  height: 152px;
  overflow: hidden;
}

.search-match-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-match-body {
  padding: 12px 12px 11px;
  display: grid;
  gap: 8px;
}

.search-match-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.search-match-top h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.search-match-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.search-match-bottom {
  display: grid;
  gap: 8px;
  align-items: end;
  margin-top: 0;
}

.search-match-bottom strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.search-match-bottom .price-caption {
  font-size: 0.7rem;
  line-height: 1.28;
}

.search-match-empty {
  margin-top: 18px;
}

.featured-shell {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}

.featured-card,
.featured-sidekick,
.support-card {
  background: var(--surface);
  border: 1px solid rgba(215, 226, 241, 0.9);
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.featured-card {
  overflow: hidden;
}

.featured-card-surface {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
  min-height: 330px;
  height: 330px;
}

.featured-card-surface.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.featured-visual {
  min-height: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.featured-content {
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.featured-content h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.featured-location,
.featured-copy {
  color: var(--muted);
}

.featured-copy {
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-more-link {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.featured-more-link:hover {
  color: var(--navy-ink);
}

.featured-feature-list,
.catalog-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-feature-list {
  margin: 16px 0 18px;
}

.featured-feature-list span,
.catalog-feature-list span {
  background: #f0f5fc;
  color: var(--navy-ink);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 600;
}

.featured-actions {
  margin-top: auto;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.featured-actions strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.featured-sidekick {
  padding: 14px 16px;
  display: grid;
  gap: 14px;
}

.feature-stat {
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  padding: 18px;
}

.feature-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--navy-ink);
}

.feature-stat span {
  color: var(--muted);
  line-height: 1.5;
}

.catalog-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-head {
  align-items: center;
}

.catalog-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-carousel-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-carousel-shell {
  display: block;
}

.catalog-main.is-list-mode .catalog-results-grid {
  overflow: visible;
}

.catalog-carousel-status {
  min-width: 220px;
  text-align: right;
  color: var(--muted);
  font-weight: 600;
}

.catalog-carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(215, 226, 241, 0.9);
  background: var(--surface);
  color: var(--navy-ink);
  border-radius: 12px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}

.catalog-carousel-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f5f9ff;
}

.catalog-carousel-btn:disabled {
  opacity: .42;
  cursor: default;
}

.catalog-results-grid {
  margin-top: 0;
  overflow: hidden;
}

.catalog-carousel-track {
  display: flex;
  width: 100%;
  transition: transform .42s ease;
  will-change: transform;
}

.catalog-carousel-page {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.catalog-load-sentinel {
  display: flex;
  justify-content: center;
  padding: 20px 12px 4px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.catalog-load-sentinel.hidden {
  display: none;
}


.catalog-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-main {
  min-width: 0;
}


.support-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  padding: 22px;
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.home-head h2,
.section-head h2,
.detail-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.18rem, 1.7vw, 1.75rem);
  letter-spacing: -0.03em;
}

.home-head p,
.mini-status,
.filter-note,
.detail-subtitle,
.detail-copy,
.reserve-copy,
.booking-message,
.empty-results,
.search-chip,
.price-caption {
  color: var(--muted);
}

.destination-strip,
.offer-grid,
.recent-grid {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.destination-strip {
  grid-template-columns: repeat(6, 1fr);
}

.offer-grid,
.recent-grid {
  grid-template-columns: repeat(4, 1fr);
}

.destination-card,
.offer-card,
.recent-card,
.filters-card,
.detail-card,
.price-card,
.guest-form,
.reserve-summary,
.empty-results {
  background: var(--surface);
  border: 1px solid rgba(215, 226, 241, 0.9);
  box-shadow: var(--shadow);
  border-radius: 6px;
}

.destination-card,
.offer-card,
.recent-card {
  overflow: hidden;
}

.destination-card {
  color: inherit;
  background: #fff;
}

.destination-thumb,
.offer-thumb,
.stay-image,
.hero-photo,
.gallery-photo,
.reserve-thumb {
  background-size: cover;
  background-position: center;
}

.featured-visual,
.offer-thumb,
.stay-image {
  position: relative;
  overflow: hidden;
}

.featured-image,
.offer-thumb-media,
.stay-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.destination-thumb {
  height: 176px;
}

.destination-body {
  padding: 14px 4px 0;
}

.destination-body h3 {
  margin: 0 0 4px;
  font-size: 0.72rem;
}

.destination-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.offer-card {
  position: relative;
  display: grid;
  grid-template-rows: 245px 1fr;
  border-radius: 16px;
}

.offer-thumb {
  height: 245px;
  overflow: hidden;
}

.offer-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.offer-stars {
  color: #ffb400;
  letter-spacing: 2px;
  font-size: 1rem;
  line-height: 1;
}

.offer-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.34;
}

.offer-city {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.offer-popularity {
  margin: 4px 0 0;
  color: #0f9f57;
  font-size: 0.76rem;
  line-height: 1.45;
  min-height: 2.1em;
}

.offer-address {
  margin: 2px 0 0;
  color: rgba(9, 34, 58, 0.72);
  font-size: 0.76rem;
  line-height: 1.4;
}

.offer-footer-row {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.offer-rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rating-box-small {
  background: #0f4aa3;
  color: #fff;
  border-radius: 6px;
  padding: 6px 9px;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
}

.offer-rating-text {
  color: #3a4458;
  font-size: 0.78rem;
  line-height: 1.3;
}

.offer-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: 0;
}

.offer-price strong {
  font-size: 1.22rem;
  letter-spacing: -0.04em;
}

.favorite-btn,
.favorite-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 1.12rem;
  box-shadow: none;
  line-height: 1;
}

.favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.55rem;
}

.favorite-btn.is-favorite,
.favorite-circle.is-favorite {
  color: #d7265e;
}

.recent-card {
  padding: 14px;
}

.recent-card h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.recent-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.74rem;
}

.sidebar-recent {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 226, 241, 0.9);
}

.sidebar-recent-head h3 {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--navy-ink);
}

.sidebar-recent-list {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sidebar-recent-list .recent-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 10px;
}

.sidebar-recent-list .recent-card::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 59, 149, 0.16), rgba(0, 59, 149, 0.04)),
    linear-gradient(180deg, #eaf2ff 0%, #dbe8fb 100%);
  display: block;
}

.sidebar-recent-list .recent-card h3,
.sidebar-recent-list .recent-card p,
.sidebar-recent-list .recent-card .recent-action {
  grid-column: 2;
}

.sidebar-recent-list .recent-card h3 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.sidebar-recent-list .recent-card p {
  margin: 0 0 8px;
  font-size: 0.67rem;
  line-height: 1.4;
}

.sidebar-recent-list .recent-card .recent-action {
  justify-self: start;
}

.results-layout,
.detail-shell,
.reserve-shell,
.page-shell {
  display: grid;
  gap: 22px;
}

.results-layout {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

.filters-card,
.detail-card,
.price-card,
.guest-form,
.reserve-summary {
  padding: 22px;
}

.filter-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.filter-group span {
  font-weight: 800;
}

.results-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.stay-card {
  background: var(--surface);
  border: 1px solid rgba(215, 226, 241, 0.9);
  box-shadow: var(--shadow);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "media body"
    "meta meta";
  align-items: start;
}

.stay-media-panel {
  grid-area: media;
  display: grid;
  grid-template-rows: 188px;
  min-height: 100%;
  background: #fff;
}

.stay-image {
  min-height: 188px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-block,
.skeleton-line,
.skeleton-chip,
.skeleton-pill,
.skeleton-button,
.feature-skeleton,
.detail-view.is-loading .hero-photo,
.detail-view.is-loading .gallery-photo,
.detail-view.is-loading #detailTitle,
.detail-view.is-loading #detailSubtitle,
.detail-view.is-loading #detailRating,
.detail-view.is-loading #detailDescription,
.detail-view.is-loading #detailDestination,
.detail-view.is-loading #detailDates,
.detail-view.is-loading #detailGuests,
.detail-view.is-loading #detailNightly,
.detail-view.is-loading #detailTotal {
  background: linear-gradient(90deg, #e7eef8 0%, #f5f8fc 50%, #e7eef8 100%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-stack {
  display: grid;
  gap: 10px;
}

.skeleton-line,
.detail-view.is-loading #detailTitle,
.detail-view.is-loading #detailSubtitle,
.detail-view.is-loading #detailRating,
.detail-view.is-loading #detailDescription,
.detail-view.is-loading #detailDestination,
.detail-view.is-loading #detailDates,
.detail-view.is-loading #detailGuests,
.detail-view.is-loading #detailNightly,
.detail-view.is-loading #detailTotal {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  color: transparent !important;
}

.skeleton-line-title,
.detail-view.is-loading #detailTitle {
  width: 68%;
  height: 22px;
}

.skeleton-line-medium,
.detail-view.is-loading #detailSubtitle {
  width: 44%;
}

.skeleton-line-long,
.detail-view.is-loading #detailDescription {
  width: 92%;
}

.skeleton-line-small {
  width: 30%;
}

.skeleton-line-price,
.detail-view.is-loading #detailTotal,
.detail-view.is-loading #detailNightly {
  width: 34%;
  height: 18px;
}

.skeleton-pill,
.detail-view.is-loading #detailRating {
  display: inline-block;
  width: 88px;
  height: 42px;
  border-radius: 18px;
}

.skeleton-pill-small {
  width: 74px;
  height: 24px;
  margin-bottom: 12px;
}

.skeleton-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skeleton-chip,
.feature-skeleton {
  display: inline-block;
  width: 92px;
  height: 28px;
  border-radius: 999px;
}

.skeleton-button {
  display: inline-block;
  width: 138px;
  height: 48px;
  border-radius: 6px;
}

.skeleton-media {
  background-color: #eef3fa;
}

.detail-view.is-loading #detailDescription {
  min-height: 76px;
  border-radius: 18px;
}

.detail-view.is-loading .feature-list {
  min-height: 28px;
}

.stay-body {
  grid-area: body;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.stay-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.stay-top h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.stay-top p,
.stay-body > p {
  margin: 0;
}

.stay-body > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  padding-bottom: 4px;
}

.rating-box,
.rating-pill {
  min-width: 0;
  background: transparent;
  color: #111;
  padding: 0;
  border-radius: 0;
  text-align: left;
  font-weight: 800;
}

.rating-box strong {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.rating-box span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #111;
}

.rating-box-comments span {
  display: inline;
  margin-top: 0;
  font-size: 0.86rem;
  line-height: 1.1;
  font-weight: 700;
}

.stay-meta,
.feature-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stay-meta {
  margin: 10px 0 12px;
}

.stay-meta-row {
  grid-area: meta;
  margin: 0;
  padding: 10px 16px 14px;
  align-content: start;
  border-top: 1px solid rgba(215, 226, 241, 0.9);
}

.stay-meta span,
.feature-list span {
  background: #eef5ff;
  color: var(--navy);
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.policy-pill {
  background: #eef8ef;
  color: #1f6b3a;
}

#homeCatalog .catalog-results-grid .stay-card {
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas: "media body";
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
}

#homeCatalog .catalog-results-grid .stay-media-panel {
  grid-template-rows: 1fr;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

#homeCatalog .catalog-results-grid .stay-image,
#homeCatalog .catalog-results-grid .stay-image-media {
  min-height: 220px;
  height: 220px;
}

#homeCatalog .catalog-results-grid .stay-image-media {
  object-fit: cover;
}

#homeCatalog .catalog-results-grid .stay-body {
  padding: 0;
  grid-template-columns: minmax(0, 1fr) 220px;
  column-gap: 18px;
  row-gap: 14px;
  align-items: start;
}

#homeCatalog .catalog-results-grid .stay-top {
  grid-column: 1 / span 2;
  align-items: start;
}

#homeCatalog .catalog-results-grid .stay-top h3 {
  font-size: 0.98rem;
  line-height: 1.34;
}

#homeCatalog .catalog-results-grid .stay-top p {
  font-size: 0.8rem;
  line-height: 1.32;
}

#homeCatalog .catalog-results-grid .stay-body > p {
  grid-column: 1;
  align-self: start;
  -webkit-line-clamp: 3;
  font-size: 0.82rem;
  line-height: 1.52;
  padding-bottom: 0;
}

#homeCatalog .catalog-results-grid .stay-footer {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 100%;
  gap: 14px;
}

#homeCatalog .catalog-results-grid .stay-price {
  width: 100%;
  text-align: right;
}

#homeCatalog .catalog-results-grid .stay-price small {
  display: block;
  margin-bottom: 4px;
}

#homeCatalog .catalog-results-grid .stay-price .price {
  font-size: 1.05rem;
  line-height: 1.1;
}

#homeCatalog .catalog-results-grid .stay-price .price-caption {
  font-size: 0.76rem;
  line-height: 1.36;
}

#homeCatalog .catalog-results-grid .stay-footer .reserve-btn,
#homeCatalog .catalog-results-grid .stay-footer .wide-btn {
  width: 100%;
  justify-content: center;
}

#homeCatalog .catalog-results-grid .stay-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0 0;
  border-top: 0;
}

#homeCatalog .catalog-results-grid .stay-meta-row span {
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

#homeCatalog .catalog-results-grid .stay-meta-row span:first-child {
  padding-left: 0;
}

#homeCatalog .catalog-results-grid .stay-meta-row span + span {
  border-left: 1px solid rgba(31, 41, 55, 0.12);
}

#homeCatalog .catalog-results-grid .stay-meta-row span:nth-child(n+5) {
  display: none;
}

#homeCatalog .catalog-results-grid .stay-meta-row::after {
  content: "...";
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 10px;
}

#homeCatalog .catalog-results-grid .detail-header-actions {
  gap: 12px;
  align-items: center;
}

#resultsGrid .stay-card {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas:
    "media body"
    "meta meta";
  gap: 22px;
  padding: 18px;
  border-radius: 18px;
}

#resultsGrid .stay-media-panel {
  grid-template-rows: 250px;
  min-height: 250px;
  border-radius: 16px;
  overflow: hidden;
}

#resultsGrid .stay-image,
#resultsGrid .stay-image-media {
  min-height: 250px;
  height: 250px;
}

#resultsGrid .stay-image-media {
  object-fit: cover;
}

#resultsGrid .stay-body {
  padding: 0;
  position: relative;
  grid-template-columns: minmax(0, 1fr) 210px;
  column-gap: 20px;
  row-gap: 14px;
  align-items: start;
}

#resultsGrid .stay-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 222px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(31, 41, 55, 0) 0%,
    rgba(31, 41, 55, 0.1) 16%,
    rgba(31, 41, 55, 0.2) 50%,
    rgba(31, 41, 55, 0.1) 84%,
    rgba(31, 41, 55, 0) 100%
  );
}

#resultsGrid .stay-top {
  grid-column: 1 / span 2;
  gap: 16px;
}

#resultsGrid .stay-top h3 {
  font-size: 1rem;
  line-height: 1.38;
}

#resultsGrid .stay-top p {
  font-size: 0.8rem;
  line-height: 1.32;
}

#resultsGrid .stay-body > p {
  grid-column: 1;
  font-size: 0.86rem;
  line-height: 1.58;
  -webkit-line-clamp: 4;
  padding-bottom: 0;
}

#resultsGrid .stay-footer {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding-left: 24px;
}

#resultsGrid .stay-price {
  width: 100%;
  text-align: right;
}

#resultsGrid .stay-price .price {
  font-size: 1.08rem;
  line-height: 1.06;
}

#resultsGrid .stay-price .price-caption {
  font-size: 0.78rem;
  line-height: 1.34;
}

#resultsGrid .stay-footer .reserve-btn,
#resultsGrid .stay-footer .wide-btn {
  width: 100%;
  justify-content: center;
}

#resultsGrid .stay-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(215, 226, 241, 0.9);
}

#resultsGrid .stay-meta-row span {
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

#resultsGrid .stay-meta-row span:first-child {
  padding-left: 0;
}

#resultsGrid .stay-meta-row span + span {
  border-left: 1px solid rgba(31, 41, 55, 0.12);
}

#resultsGrid .detail-header-actions {
  gap: 14px;
  align-items: center;
  align-self: stretch;
  min-width: 210px;
  justify-content: flex-start;
  padding-left: 24px;
}

#resultsGrid .detail-header-actions .favorite-circle {
  font-size: 1.6rem;
  color: #d7265e;
}

#resultsGrid .detail-header-actions .favorite-circle.is-favorite {
  color: #d7265e;
}

#resultsGrid .rating-box-comments {
  color: #16934b;
}

#resultsGrid .rating-box-comments span {
  display: inline;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 700;
  color: #16934b;
}

.stay-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.stay-price small {
  color: var(--muted);
}

.price {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.empty-results {
  padding: 26px;
  margin-top: 20px;
}

.back-link {
  justify-self: start;
  background: #edf4ff;
  color: var(--navy);
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 400;
  font-size: 0.78rem;
  text-decoration: none;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.hero-photo {
  min-height: 420px;
  border-radius: 14px;
  cursor: zoom-in;
}

.gallery-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  height: 420px;
}

.gallery-photo {
  min-height: 0;
  width: 100%;
  border: 0;
  border-radius: 14px;
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(215, 226, 241, 0.9);
}

.gallery-photo.is-active {
  box-shadow: inset 0 0 0 3px rgba(11, 82, 155, 0.92);
}

.gallery-more-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
}

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 132, 219, 0.42);
}

.gallery-more-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: max-content;
  margin: auto;
  padding: 12px 16px;
  background: #74c6f3;
  color: #08345a;
  box-shadow: 0 10px 22px rgba(8, 52, 90, 0.18);
  text-align: center;
}

.gallery-more-copy strong {
  font-size: 0.94rem;
  font-weight: 800;
}

.gallery-more-copy span {
  font-size: 0.74rem;
  color: rgba(8, 52, 90, 0.82);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 29, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 0;
  display: grid;
  place-items: center;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 72px);
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 3.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

body.lightbox-open {
  overflow: hidden;
}

.detail-grid,
.reserve-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
}

.detail-copy {
  margin-bottom: 0;
  line-height: 1.7;
}

.detail-features-block {
  margin-top: 24px;
}

.detail-features-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-features-head h3 {
  margin: 0;
}

.detail-features-trigger {
  border: 1px solid rgba(11, 82, 155, 0.18);
  background: #edf4ff;
  color: var(--navy);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-card > h3:first-child {
  margin-bottom: 14px;
}

.detail-card .feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

.detail-amenity {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.detail-amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #2f343b;
}

.detail-amenity-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.detail-amenity-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: #2f343b;
  text-decoration: none;
}

.price-card {
  display: grid;
  gap: 8px;
}

.price-card .section-kicker {
  margin-bottom: 2px;
}

.price-card .booking-message {
  margin: 0 0 4px;
  line-height: 1.45;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-line span,
.price-line strong {
  line-height: 1.35;
}

.price-line strong {
  text-align: right;
}

.total-line {
  font-size: 1.08rem;
  font-weight: 800;
  padding-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
}

.wide-btn {
  min-height: 54px;
}

.reserve-btn.wide-btn {
  padding: 14px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
}

.reserve-thumb {
  min-height: 200px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.reserve-summary h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.guest-form > .confirm-btn {
  margin-top: 18px;
}

#reserveCouponApply {
  margin-top: 14px;
  background: #111;
  border-color: #111;
}

.page-shell {
  background: var(--surface);
  border: 1px solid rgba(215, 226, 241, 0.9);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 28px;
}

.page-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 18px;
}

.account-shell .auth-form {
  margin-top: 18px;
}

.page-head h1 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
  color: var(--navy-ink);
}

.page-content {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-content > *:first-child {
  margin-top: 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--navy-ink);
  letter-spacing: -0.03em;
}

.page-content h2 {
  font-size: 1.35rem;
  margin: 1.8em 0 0.6em;
}

.page-content h3 {
  font-size: 1.08rem;
  margin: 1.5em 0 0.5em;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin: 0 0 1em;
}

.page-content ul,
.page-content ol {
  padding-left: 1.2rem;
}

.page-content a {
  color: var(--navy);
}

.page-sidebar {
  background: #f8fbff;
  border: 1px solid rgba(215, 226, 241, 0.9);
  border-radius: 14px;
  padding: 18px 16px;
}

.page-sidebar-menu {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.page-sidebar-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-ink);
  border: 1px solid rgba(215, 226, 241, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
}

.page-sidebar-menu a:hover {
  background: #eef5ff;
  color: var(--navy);
}

.site-footer {
  width: 100%;
  max-width: none;
  margin-top: 56px;
  padding: 34px 24px 40px;
  background: #f4f8fd;
  border-top: 1px solid rgba(215, 226, 241, 0.9);
}

.footer-links-top,
.footer-columns {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-links-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(215, 226, 241, 0.9);
}

.footer-links-top a,
.footer-columns a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer-columns h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: #ffffff;
}

.footer-columns > div {
  display: grid;
  gap: 8px;
}

.footer-links-top a:hover,
.footer-columns a:hover {
  color: #ffffff;
  text-decoration: none;
}

.search-btn:hover,
.reserve-btn:hover,
.confirm-btn:hover,
.back-link:hover,
.card-action:hover,
.recent-action:hover {
  transform: translateY(-2px);
  background: #111;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.favorite-btn:hover,
.favorite-circle:hover {
  transform: translateY(-2px);
  background: transparent;
  color: #d7265e;
  box-shadow: none;
}

.nav-btn:hover {
  background: #d9dde4;
  color: var(--navy-ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.favorite-btn.is-favorite:hover,
.favorite-circle.is-favorite:hover {
  background: transparent;
  color: #ff4d7d;
  box-shadow: none;
}

.nav-btn:active,
.search-btn:active,
.reserve-btn:active,
.confirm-btn:active,
.back-link:active,
.card-action:active,
.recent-action:active,
.favorite-btn:active,
.favorite-circle:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .search-match-head {
    align-items: start;
  }

  .search-match-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-match-status {
    min-width: 0;
    text-align: left;
  }

  .search-match-grid {
    grid-template-columns: 1fr;
  }

  .search-match-bottom .reserve-btn,
  .search-match-bottom .wide-btn {
    width: 100%;
    justify-content: center;
  }

  .detail-card .feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 980px) {
  #homeCatalog .catalog-results-grid .stay-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  #homeCatalog .catalog-results-grid .stay-media-panel,
  #homeCatalog .catalog-results-grid .stay-image,
  #homeCatalog .catalog-results-grid .stay-image-media {
    min-height: 190px;
    height: 190px;
  }

  #homeCatalog .catalog-results-grid .stay-body {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  #homeCatalog .catalog-results-grid .stay-top {
    grid-column: 1;
  }

  #homeCatalog .catalog-results-grid .stay-body > p {
    grid-column: 1;
  }

  #homeCatalog .catalog-results-grid .stay-footer {
    grid-column: 1;
    grid-row: auto;
    align-items: stretch;
    gap: 10px;
  }

  #homeCatalog .catalog-results-grid .stay-price {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .catalog-head {
    align-items: start;
  }

  .catalog-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-main.is-list-mode .catalog-carousel-status {
    text-align: left;
  }

  .catalog-main.is-list-mode .catalog-results-grid {
    overflow: visible;
  }

  .catalog-results-grid {
    gap: 14px;
  }

  .stay-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body"
      "meta";
  }

  .stay-media-panel {
    grid-template-rows: 200px;
    min-height: 0;
  }

  .stay-image,
  .stay-image-media {
    min-height: 200px;
    height: 200px;
    display: block;
  }

  .stay-image-media {
    object-fit: cover;
  }

  .stay-body {
    gap: 10px;
    padding: 14px 14px 12px;
  }

  .stay-top {
    gap: 10px;
  }

  #resultsGrid .stay-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body"
      "meta";
    gap: 0;
    padding: 0;
    border-radius: 6px;
  }

  #resultsGrid .stay-media-panel,
  #resultsGrid .stay-image,
  #resultsGrid .stay-image-media {
    min-height: 200px;
    height: 200px;
    border-radius: 0;
  }

  #resultsGrid .stay-body {
    padding: 14px 14px 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #resultsGrid .stay-body::after {
    display: none;
  }

  #resultsGrid .stay-top,
  #resultsGrid .stay-body > p,
  #resultsGrid .stay-footer {
    grid-column: auto;
    grid-row: auto;
  }

  #resultsGrid .stay-footer {
    align-items: flex-start;
    border-left: 0;
    padding-left: 0;
  }

  #resultsGrid .detail-header-actions {
    min-width: 0;
    border-left: 0;
    padding-left: 0;
  }

  #resultsGrid .stay-price {
    text-align: left;
  }

  #resultsGrid .stay-footer .reserve-btn,
  #resultsGrid .stay-footer .wide-btn {
    width: auto;
  }

  #resultsGrid .stay-meta-row {
    padding: 10px 14px 14px;
  }

  .stay-top h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .stay-top p {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .stay-body > p {
    -webkit-line-clamp: 2;
    font-size: 0.76rem;
    line-height: 1.45;
    padding-bottom: 0;
  }

  .detail-header-actions {
    gap: 8px;
    align-items: center;
  }

  .rating-box-comments span {
    font-size: 0.78rem;
  }

  .stay-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .stay-price small {
    font-size: 0.68rem;
  }

  .stay-price .price-caption {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .stay-footer .reserve-btn,
  .stay-footer .wide-btn {
    width: 100%;
    justify-content: center;
  }

  .stay-meta-row {
    padding: 0 14px 14px;
    border-top: 0;
    gap: 8px;
  }

  .stay-meta-row span:nth-child(n+4) {
    display: none;
  }
}
.featured-feature-list {
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.featured-feature-list span {
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.featured-feature-list span:first-child {
  padding-left: 0;
}

.featured-feature-list span + span {
  border-left: 1px solid rgba(31, 41, 55, 0.12);
}

.featured-feature-list span:nth-child(n+5) {
  display: none;
}

.featured-feature-list::after {
  content: "...";
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  padding-left: 8px;
}
.featured-content h3 {
  line-height: 1.18;
  margin: 0 0 6px;
}

.featured-location {
  margin: 0 0 6px;
}

.featured-copy {
  -webkit-line-clamp: 2;
}

.featured-feature-list {
  margin: 12px 0 16px;
}

.featured-feature-list span:nth-child(n+4) {
  display: none;
}
.featured-visual {
  padding: 14px;
}

.featured-visual .featured-image,
.featured-visual .featured-image picture,
.featured-visual .featured-image img,
.featured-visual img.featured-image,
.featured-visual picture,
.featured-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}
.recent-thumb-wrap {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 59, 149, 0.16), rgba(0, 59, 149, 0.04)),
    linear-gradient(180deg, #eaf2ff 0%, #dbe8fb 100%);
}

.recent-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-thumb-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-recent-list .recent-card::before {
  display: none;
}

.sidebar-recent-list .recent-card h3,
.sidebar-recent-list .recent-card p,
.sidebar-recent-list .recent-card .recent-action {
  grid-column: 2;
}
.offer-card {
  grid-template-rows: 208px 1fr;
}

.offer-thumb {
  height: 208px;
}

.offer-body {
  padding: 12px 14px 14px;
  gap: 8px;
}

.offer-title {
  font-size: 0.94rem;
  line-height: 1.26;
}

.offer-city {
  font-size: 0.78rem;
  line-height: 1.28;
}

.offer-popularity {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-footer-row {
  gap: 10px;
}

.offer-rating-text {
  font-size: 0.74rem;
  line-height: 1.25;
}

.offer-price strong {
  font-size: 1.14rem;
}
#homeCatalog .catalog-results-grid .stay-footer .reserve-btn,
#homeCatalog .catalog-results-grid .stay-footer .wide-btn {
  font-size: 0.94rem;
}
#homeCatalog #catalogCards .stay-footer .reserve-btn,
#homeCatalog #catalogCards .stay-footer .wide-btn {
  font-size: 1.02rem !important;
  font-weight: 600;
  line-height: 1.2;
}

#resultsGrid .stay-footer .reserve-btn,
#resultsGrid .stay-footer .wide-btn {
  font-size: 1.02rem !important;
  font-weight: 600;
  line-height: 1.2;
}

.payment-view {
  padding: 0 24px 48px;
}

.payment-shell {
  display: grid;
  gap: 20px;
}

.payment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.reservation-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reservation-action-hint {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(8, 52, 90, 0.72);
}

.payment-secondary-action {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .payment-head {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }
}
