/* =============================================================================
   PROPIEDADES — page-only (propiedades.css)
   - Diseño moderno: hero con searchbar + filtros sticky + drawer móvil
   - No tocar estilos globales, usamos prefijo .pr-
============================================================================= */

:root {
  --pr-ink: var(--gm-text, #0f172a);
  --pr-muted: rgba(15, 23, 42, 0.68);
  --pr-card: rgba(255, 255, 255, 0.86);
  --pr-border: rgba(15, 23, 42, 0.1);
  --pr-shadow: var(--gm-shadow, 0 18px 45px rgba(15, 23, 42, 0.12));
  --pr-shadow2: var(--gm-shadow2, 0 10px 26px rgba(15, 23, 42, 0.1));
  --pr-radius: var(--gm-radius-lg, 26px);
}

/* HERO */
.pr-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 22px;
  background: radial-gradient(
      1100px 520px at 15% 0%,
      rgba(31, 157, 138, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 420px at 88% 12%,
      rgba(11, 18, 32, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--gm-bg, #f6f8fb) 70%);
}

.pr-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.pr-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.55);
}

.pr-hero__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--pr-ink);
  line-height: 1.06;
}

.pr-hero__lead {
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 650;
  line-height: 1.7;
  max-width: 80ch;
}

/* Barra búsqueda + acciones */
.pr-hero__bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pr-search {
  flex: 1 1 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--pr-shadow2);
}

.pr-search__icon {
  color: rgba(15, 23, 42, 0.55);
  font-weight: 950;
}

.pr-search__input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.92);
  min-width: 220px;
}

.pr-search__btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 950;
}

.pr-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-pill {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 950;
  box-shadow: var(--pr-shadow2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pr-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--pr-shadow);
}
.pr-pill--ghost {
  background: rgba(255, 255, 255, 0.62);
}
.pr-pill--primary {
  border: 0;
  background: linear-gradient(
    90deg,
    var(--gm-accent, #1f9d8a),
    var(--gm-accent2, #176b5f)
  );
  color: #07110d;
}

.pr-active {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 157, 138, 0.18);
  background: rgba(31, 157, 138, 0.1);
  font-weight: 950;
  color: rgba(15, 23, 42, 0.84);
}
.pr-chip button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 950;
}

/* Panel meta */
.pr-hero__meta {
  display: flex;
  justify-content: flex-end;
}

.pr-metaCard {
  width: 100%;
  border-radius: var(--pr-radius);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--pr-shadow);
  padding: 14px 14px;
}

.pr-metaCard__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pr-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gm-accent, #1f9d8a),
    var(--gm-accent2, #176b5f)
  );
  box-shadow: 0 0 0 7px rgba(31, 157, 138, 0.12);
}

.pr-metaCard__text {
  margin: 0;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 650;
  line-height: 1.6;
}

.pr-metaStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.pr-stat {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 12px;
  box-shadow: var(--pr-shadow2);
}
.pr-stat__k {
  display: block;
  font-weight: 950;
  font-size: 22px;
}
.pr-stat__l {
  display: block;
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 750;
}

.pr-metaBtns {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pr-miniBtn {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
  box-shadow: var(--pr-shadow2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pr-miniBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--pr-shadow);
}
.pr-miniBtn--dark {
  border: 0;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

/* WRAP */
.pr-wrap {
  padding: 18px 0 84px;
  background: linear-gradient(180deg, var(--gm-bg, #f6f8fb) 0%, #ffffff 70%);
}

.pr-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

/* FILTROS */
.pr-filters {
  border-radius: var(--pr-radius);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--pr-shadow);
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.pr-filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.pr-filters__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.pr-miniAction {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 950;
}

.pr-filters__body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.pr-field {
  display: grid;
  gap: 6px;
}
.pr-label {
  font-size: 13px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.78);
}

.pr-input {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  outline: none;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.92);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pr-input:focus {
  border-color: rgba(31, 157, 138, 0.55);
  box-shadow: 0 0 0 5px rgba(31, 157, 138, 0.14);
}
.pr-input--compact {
  height: 42px;
}

.pr-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pr-help {
  margin: 0;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 650;
  line-height: 1.5;
}

.pr-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 6px 0;
}

.pr-btn {
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 950;
  box-shadow: var(--pr-shadow2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pr-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--pr-shadow);
}
.pr-btn--primary {
  border: 0;
  background: linear-gradient(
    90deg,
    var(--gm-accent, #1f9d8a),
    var(--gm-accent2, #176b5f)
  );
  color: #07110d;
}
.pr-btn--dark {
  border: 0;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.pr-note {
  margin: 0;
  color: rgba(15, 23, 42, 0.64);
  font-weight: 650;
  line-height: 1.6;
}

/* RESULTADOS */
.pr-results {
  min-width: 0;
}

.pr-results__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--pr-radius);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--pr-shadow);
}

.pr-results__count {
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}
.pr-results__hint {
  display: inline-block;
  margin-left: 10px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 650;
}

.pr-results__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pr-sort__label {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.74);
  font-size: 13px;
}

.pr-view {
  display: flex;
  gap: 8px;
}
.pr-viewBtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 950;
  box-shadow: var(--pr-shadow2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pr-viewBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--pr-shadow);
}
.pr-viewBtn.is-active {
  border-color: rgba(31, 157, 138, 0.35);
  box-shadow: 0 0 0 5px rgba(31, 157, 138, 0.1), var(--pr-shadow2);
}

/* Cards */
.pr-cards {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.pr-cards--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pr-cards--list {
  grid-template-columns: 1fr;
}

.pr-card {
  border-radius: var(--pr-radius);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pr-shadow);
  overflow: hidden;
  display: grid;
}

.pr-card__media {
  height: 180px;
  background: radial-gradient(
      600px 260px at 20% 10%,
      rgba(31, 157, 138, 0.14),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.06) 0%,
      rgba(15, 23, 42, 0.02) 100%
    );
  position: relative;
}

.pr-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-weight: 950;
  color: rgba(15, 23, 42, 0.86);
}

.pr-card__body {
  padding: 14px 14px;
  display: grid;
  gap: 10px;
}

.pr-card__title {
  margin: 0;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.01em;
}

.pr-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-pillMini {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 157, 138, 0.18);
  background: rgba(31, 157, 138, 0.1);
  font-weight: 950;
  color: rgba(15, 23, 42, 0.8);
  font-size: 13px;
}

.pr-card__priceRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.pr-card__price {
  font-weight: 950;
  font-size: 22px;
  color: rgba(15, 23, 42, 0.92);
}

.pr-card__place {
  color: rgba(15, 23, 42, 0.62);
  font-weight: 750;
}

.pr-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-cardBtn {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 950;
  box-shadow: var(--pr-shadow2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.92);
}
.pr-cardBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--pr-shadow);
}
.pr-cardBtn--dark {
  border: 0;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

/* Skeleton (carga) */
.pr-skel {
  border-radius: var(--pr-radius);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--pr-shadow2);
  overflow: hidden;
}
.pr-skel__top {
  height: 180px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.05),
    rgba(15, 23, 42, 0.1),
    rgba(15, 23, 42, 0.05)
  );
  background-size: 240% 100%;
  animation: prShimmer 1.1s infinite linear;
}
.pr-skel__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.pr-skel__line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.05),
    rgba(15, 23, 42, 0.1),
    rgba(15, 23, 42, 0.05)
  );
  background-size: 240% 100%;
  animation: prShimmer 1.1s infinite linear;
}
.pr-skel__line.w60 {
  width: 60%;
}
.pr-skel__line.w80 {
  width: 80%;
}

@keyframes prShimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 240% 0;
  }
}

/* Footer acciones */
.pr-more {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-moreBtn {
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 950;
  box-shadow: var(--pr-shadow2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pr-moreBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--pr-shadow);
}
.pr-moreBtn--ghost {
  background: rgba(255, 255, 255, 0.62);
}

/* Drawer móvil */
.pr-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.pr-drawer.is-open {
  display: block;
}

.pr-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.pr-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--pr-shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(12px);
  animation: prSlideIn 0.18s ease forwards;
}
@keyframes prSlideIn {
  to {
    transform: translateX(0);
  }
}

.pr-drawer__top {
  padding: 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.pr-drawer__x {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 950;
  font-size: 22px;
}

.pr-drawer__body {
  padding: 14px;
  overflow: auto;
}

.pr-drawer__bottom {
  padding: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
  .pr-hero__inner {
    grid-template-columns: 1fr;
  }
  .pr-hero__meta {
    justify-content: flex-start;
  }
  .pr-grid {
    grid-template-columns: 1fr;
  }
  .pr-filters {
    display: none;
  } /* usamos drawer en móvil */
  .pr-cards--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pr-results__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .pr-sort {
    width: 100%;
    justify-content: space-between;
  }
  .pr-input--compact {
    width: 220px;
  }
}

/* Imagen real en cards */
.pr-card__media {
  position: relative;
  overflow: hidden;
}

.pr-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

.pr-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(15, 23, 42, 0.06) 100%
  );
}
