/* Tifola Stay — Magicbricks-style SERP UI (under /stay/ only) */

.page-stay .position_absolute_for_mobile1 {
  display: none !important;
}

.stay-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(231, 99, 24, 0.35), transparent 55%),
    linear-gradient(125deg, #163806 0%, #2d6502 48%, #9a3f0f 100%);
  color: #fff;
  padding: 2.1rem 1rem 1.6rem;
}

.stay-hero--search {
  padding-bottom: 1.35rem;
}

.stay-hero--photo {
  min-height: min(58vh, 460px);
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.stay-hero-bg { position: absolute; inset: 0; }
.stay-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stay-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 2, 0.2) 0%, rgba(8, 18, 2, 0.9) 100%);
}

.stay-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.stay-hero--photo .stay-hero-inner {
  padding: 2.8rem 1.15rem 2rem;
  width: 100%;
}

.stay-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  opacity: 0.88;
  margin: 0 0 0.4rem;
}

.stay-hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.stay-tagline {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  opacity: 0.94;
  max-width: 36rem;
}

.stay-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* —— Search panel —— */
.stay-search {
  background: #fff;
  color: #1a1a1a;
  padding: 0.85rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  margin-top: 0.35rem;
}

.stay-search-main {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

.stay-search-field,
.stay-filter {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0;
  min-width: 0;
}

.stay-search-field span,
.stay-filter span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

.stay-search-field input,
.stay-search-field select,
.stay-filter select {
  width: 100%;
  border: 1px solid #d7e0d2;
  background: #fafcf8;
  padding: 0.65rem 0.7rem;
  font-size: 0.95rem;
  color: #1a1a1a;
  outline: none;
}

.stay-search-field input:focus,
.stay-search-field select:focus,
.stay-filter select:focus {
  border-color: #2d6502;
  background: #fff;
}

.stay-search-submit {
  align-self: end;
  min-height: 2.7rem;
}

.stay-filters {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2ea;
  align-items: end;
}

.stay-filter-reset {
  align-self: end;
  justify-self: start;
  color: #c24e0e;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.55rem 0;
}

.stay-filter-reset:hover {
  text-decoration: underline;
}

.stay-quick-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.stay-quick {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: #f7faf5;
  color: #2d6502 !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #d7e5cc;
}

.stay-quick.is-active,
.stay-quick:hover {
  background: #2d6502;
  color: #fff !important;
  border-color: #2d6502;
}

.stay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stay-btn:hover { transform: translateY(-2px); }
.stay-btn-primary { background: #e76318; color: #fff !important; }
.stay-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.stay-btn-ghost-dark {
  background: #f7faf5;
  color: #2d6502 !important;
  border: 1px solid #c5d8b8;
}

.stay-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.35rem 1rem 4.5rem;
}

.stay-breadcrumb {
  font-size: 0.86rem;
  color: #666;
  margin-bottom: 0.85rem;
}
.stay-breadcrumb a { color: #2d6502; text-decoration: none; }
.stay-breadcrumb span { margin: 0 0.3rem; color: #999; }

.stay-intro {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.4rem;
}
.stay-intro--short {
  font-size: 0.95rem;
  color: #555;
  max-width: 46rem;
}

.stay-section { margin: 1.5rem 0 1.85rem; }
.stay-section h2 {
  color: #2d6502;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  border-left: 4px solid #e76318;
  padding-left: 0.7rem;
}

.stay-listings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.stay-listings-head h2 { margin-bottom: 0; }
.stay-count {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
}
.stay-count strong { color: #1a1a1a; }

.stay-chip-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.stay-chip-grid a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #f7faf5;
  color: #2d6502;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid #e76318;
  font-size: 0.88rem;
}
.stay-chip-grid a:hover { background: #eef6e8; }

/* —— Listing cards (horizontal on desktop) —— */
.stay-card-grid {
  display: grid;
  gap: 0.95rem;
}

.stay-card {
  background: #fff;
  border: 1px solid #e4ebe0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stay-card:hover {
  border-color: #c5d8b8;
  box-shadow: 0 12px 28px rgba(45, 101, 2, 0.1);
  transform: translateY(-2px);
}

.stay-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: #eef6e8;
  overflow: hidden;
}
.stay-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.stay-card:hover .stay-card-media img { transform: scale(1.04); }

.stay-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d6502;
  font-size: 2rem;
}

.stay-card-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  color: #fff;
  background: rgba(45, 101, 2, 0.92);
}
.stay-card-badge--ok {
  left: auto;
  right: 0.55rem;
  background: rgba(231, 99, 24, 0.95);
}

.stay-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stay-card-price {
  margin: 0;
  color: #c24e0e;
  font-size: 1.2rem;
  font-weight: 800;
}

.stay-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.stay-card-body h3 a {
  color: #1a1a1a;
  text-decoration: none;
}
.stay-card-body h3 a:hover { color: #2d6502; }

.stay-card-loc {
  margin: 0;
  color: #555;
  font-size: 0.88rem;
}
.stay-card-loc i { color: #e76318; margin-right: 0.2rem; }

.stay-card-specs {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.stay-card-specs li {
  background: #f7faf5;
  color: #2d6502;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
}

.stay-card-am {
  margin: 0.2rem 0 0;
  color: #777;
  font-size: 0.82rem;
}

.stay-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.7rem;
}
.stay-card-actions .stay-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
}
.stay-card-lock {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}

.stay-empty {
  background: #f7faf5;
  padding: 1.35rem 1.2rem;
  border-left: 4px solid #e76318;
}
.stay-empty h3 {
  margin: 0 0 0.4rem;
  color: #1a1a1a;
}
.stay-empty p { margin: 0 0 0.85rem; color: #555; }

.stay-cta-band {
  margin-top: 2rem;
  padding: 1.25rem 1.2rem;
  background: linear-gradient(90deg, #fff8f0, #f7faf5);
  border: 1px solid #e8d4c4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.stay-cta-title {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.stay-cta-band p { margin: 0; color: #555; }

/* Property detail */
.stay-property-grid {
  display: grid;
  gap: 1.25rem;
}
.stay-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.stay-facts li {
  background: #f7faf5;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stay-facts span {
  font-size: 0.72rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stay-facts strong { color: #1a1a1a; font-size: 1rem; }

.stay-amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stay-amenities li {
  background: #fff4eb;
  color: #c24e0e;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
}
.stay-desc { line-height: 1.65; color: #333; }
.stay-map {
  border: 1px solid #e4ebe0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 0.5rem;
}
.stay-map iframe { width: 100%; height: 100%; border: 0; }
.stay-map-note { color: #555; margin: 0; }
.stay-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.stay-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stay-owner-gate {
  background: #fff;
  border: 1px solid #e4ebe0;
  border-top: 4px solid #e76318;
  padding: 1.15rem 1.1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
}
.stay-owner-gate-lock {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff4eb;
  color: #e76318;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stay-owner-gate h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #1a1a1a;
  border: none;
  padding: 0;
}
.stay-owner-gate p {
  margin: 0 0 0.55rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}
.stay-owner-gate-hint { color: #666 !important; font-size: 0.88rem !important; }
.stay-owner-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.stay-owner-gate .stay-btn-ghost {
  background: #f7faf5;
  color: #2d6502 !important;
  border: 1px solid #c5d8b8;
}

.page-stay-property { padding-bottom: 5.5rem; }

.stay-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e4ebe0;
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
}
.stay-sticky-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.stay-sticky-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.stay-sticky-copy strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stay-sticky-copy span {
  color: #c24e0e;
  font-weight: 700;
  font-size: 0.82rem;
}
.stay-sticky-actions .stay-btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .stay-search-main {
    grid-template-columns: 1.1fr 2fr auto;
    align-items: end;
  }
  .stay-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  }
  .stay-card {
    grid-template-columns: 240px 1fr;
    min-height: 190px;
  }
  .stay-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 190px;
  }
}

@media (min-width: 900px) {
  .stay-property-grid {
    grid-template-columns: 1.45fr 0.9fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .stay-facts { grid-template-columns: 1fr; }
  .stay-hero h1 { text-align: left; }
  .stay-cta-band { text-align: left; }
  .stay-sticky-copy strong { max-width: 9rem; }
}
