/* ============================================================
   Rockrose Ranch Listings — Layout Only
   All visual styling (colors, borders, shadows, fonts,
   backgrounds, border-radius) is intentionally removed so
   Elementor controls the design.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Filter bar ──────────────────────────────────────────── */
.fontera-wrap {
  position: relative;
  max-width: 100%;
  padding: 14px 16px 20px;
  margin-bottom: 14px;
}

.wrap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.fontera-tabs {
  display: flex;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 240px;
}

.fontera-tabs .tab {
  text-decoration: none;
  padding: 6px 8px;
}

.fontera-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 240px;
}

/* Toggle switch — functional shape only */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  transition: 0.2s;
  border-radius: 999px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  transition: 0.2s;
  border-radius: 999px;
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* ── Filter fields ───────────────────────────────────────── */
.wrap-fields {
  margin-top: 12px;
}
.fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.wrap-fields .search,
.wrap-fields .select {
  min-width: 0;
}
.wrap-fields .search input,
.wrap-fields .select select {
  width: 100%;
  padding: 12px 14px;
  line-height: 1.4;
  height: auto;
  box-sizing: border-box;
  background: transparent;
  border: none;
}
.wrap-fields .search input:focus,
.wrap-fields .select select:focus {
  outline: none;
}

/* Force search fields to always show */
.fontera-wrap .fields-row label.search {
  display: block !important;
  min-width: 0 !important;
  visibility: visible !important;
}
.fontera-wrap .fields-row label.search input[type="text"] {
  display: block !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ── Search button ───────────────────────────────────────── */
.fontera-btn-search {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: none;
  text-decoration: none;
}
.fontera-btn-search .fontera-search-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-self: center;
}

/* ── Grid ────────────────────────────────────────────────── */
.fontera-grid {
  margin-top: 16px;
  gap: 22px;
}

/* ── Card ────────────────────────────────────────────────── */
.fontera-card {
  overflow: hidden;
}
.fontera-card--wide {
  display: block;
}

/* ── Media / image area ──────────────────────────────────── */
.fontera-media {
  position: relative;
  height: auto !important;
}
.fontera-card-img-link {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

/* Status badge — positioned over image */
.fontera-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border: none;
}

/* ── Carousel ────────────────────────────────────────────── */
.fontera-carousel {
  position: relative;
  width: 100%;
  height: 280px; /* default height — Elementor "Card Image > Height" overrides this */
  overflow: hidden;
}
.fontera-carousel .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}
.fontera-carousel .slide {
  min-width: 100%;
  height: 100%;
}
.fontera-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev/next buttons — size and position only */
.fontera-carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.fontera-carousel .nav.prev { left: 10px; }
.fontera-carousel .nav.next { right: 10px; }

/* Dot indicators — size and position only */
.fontera-carousel .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 6px;
}
.fontera-carousel .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ── Card body ───────────────────────────────────────────── */
.fontera-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr minmax(100px, 120px);
  column-gap: 18px;
  row-gap: 0;
  align-items: start;
}
.fontera-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.fontera-title {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
.fontera-price {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.fontera-desc {
  grid-column: 1;
  grid-row: 2;
  line-height: 1.7;
  margin: 0 0 12px;
}
.fontera-meta {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 0;
  font-size: 16px;
  margin-bottom: 0;
  align-content: start;
}
.fontera-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-top: 8px;
}

/* Action buttons — layout only, no visual styling */
.fontera-btn {
  padding: 10px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  background: none;
}
.fontera-btn-primary {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  max-width: 240px;
  border: none;
  cursor: pointer;
  background: none;
  text-decoration: none;
}
.fontera-btn-primary .fontera-primary-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-self: center;
}
.fontera-btn-link {
  border: none;
  padding-left: 0;
  padding-right: 0;
  cursor: pointer;
  background: none;
  text-decoration: none;
}
.fontera-btn-link .fontera-link-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 6px;
  flex-shrink: 0;
}

/* ── Map ─────────────────────────────────────────────────── */
.fontera-map {
  width: 100%;
  min-height: 520px;
  margin: 16px 0;
}

/* ── Load more ───────────────────────────────────────────── */
.fontera-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.fontera-loadmore {
  min-width: 180px;
  justify-content: center;
}

/* ── Amenities grid ──────────────────────────────────────── */
.fontera-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 28px;
  margin-top: 18px;
}
.fontera-amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.fontera-amenity-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  margin-top: 2px;
}

/* ── CTA buttons ─────────────────────────────────────────── */
.fontera-cta__btn,
.fontera-cta__btn--primary {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  background: none;
}

/* ── Video embed ─────────────────────────────────────────── */
.fontera-video-embed {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}
.fontera-video-embed iframe,
.fontera-video-embed video {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

/* ── No results ──────────────────────────────────────────── */
.fontera-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .fontera-btn-primary {
    max-width: 100%;
    height: 30px;
  }
  .fields-row {
    grid-template-columns: 1fr;
  }
  .fontera-body {
    grid-template-columns: 1fr;
  }
  .fontera-meta {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
    margin-bottom: 8px;
  }
  .fontera-map {
    min-height: 380px;
  }
  .fontera-btn-search {
    max-width: 100%;
  }
  .fontera-amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .fontera-btn-primary {
    max-width: 100%;
    height: 30px;
  }
  .fontera-map {
    min-height: 320px;
  }
  .fontera-amenities-grid {
    grid-template-columns: 1fr;
  }
  .fontera-video-embed {
    min-height: 260px;
  }
  .fontera-video-embed iframe,
  .fontera-video-embed video {
    height: 300px;
  }
}
