.plre-shell,
.plre-directory,
.plre-detail {
  --plre-ink: #17333d;
  --plre-deep: #173f35;
  --plre-teal: #008f98;
  --plre-gold: #b58a3d;
  --plre-line: #dfe8e5;
  --plre-soft: #f7faf9;
  --plre-muted: #66756f;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--plre-ink);
  font-family: inherit;
}

.plre-shell,
.plre-directory {
  padding: 34px;
  border: 1px solid rgba(28, 49, 43, 0.09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(19, 42, 35, 0.08);
}

.plre-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.plre-kicker {
  margin: 0 0 8px;
  color: var(--plre-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.plre-head h2,
.plre-detail h1,
.plre-detail h2,
.plre-detail h3 {
  color: var(--plre-ink);
}

.plre-head h2 {
  margin: .2em 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.plre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plre-grid > label,
.plre-grid > fieldset,
.plre-filters > label,
.plre-filter-wide > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.plre-grid > label > span,
.plre-grid > fieldset > legend,
.plre-filters label > span {
  font-weight: 700;
}

.plre-grid input:not([type="checkbox"]):not([type="radio"]),
.plre-grid select,
.plre-grid textarea,
.plre-filters input:not([type="checkbox"]):not([type="radio"]),
.plre-filters select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d7dfdc;
  border-radius: 12px;
  background: #fff;
  color: var(--plre-ink);
  font: inherit;
}

.plre-grid input[type="checkbox"],
.plre-grid input[type="radio"],
.plre-filters input[type="checkbox"],
.plre-filters input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--plre-teal);
}

.plre-full { grid-column: 1 / -1; }

.plre-feature-fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plre-feature-fieldset legend { margin-bottom: 8px; padding: 0; }

.plre-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  width: 100%;
}

.plre-feature-option {
  display: flex;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dfeaec;
  border-radius: 11px;
  background: #fbfdfd;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.plre-feature-option:hover,
.plre-feature-option:focus-within {
  border-color: rgba(0,143,152,.38);
  background: #f6fbfb;
  box-shadow: 0 5px 16px rgba(23,51,61,.06);
}

.plre-feature-option input[type="checkbox"] { flex: 0 0 17px; }
.plre-feature-option span {
  min-width: 0;
  color: var(--plre-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  writing-mode: horizontal-tb;
}

.plre-check,
.plre-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.plre-button,
.plre-contact-button,
.plre-secondary-button {
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.plre-button,
.plre-contact-button {
  border: 0;
  background: var(--plre-deep);
  color: #fff;
}

.plre-button { margin-top: 22px; }
.plre-button:hover,
.plre-contact-button:hover,
.plre-secondary-button:hover { transform: translateY(-1px); }

.plre-secondary-button {
  border: 1px solid var(--plre-line);
  background: #fff;
  color: var(--plre-deep);
}

.plre-contact-button.is-whatsapp { background: #167c61; }

.plre-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
}
.plre-notice.success { background: #eef8f1; }
.plre-notice.error { background: #fff0ed; }
.plre-hp { position: absolute !important; left: -9999px !important; }

.plre-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--plre-line);
  border-radius: 18px;
  background: var(--plre-soft);
}

.plre-filter-wide { grid-column: span 2; }
.plre-filter-checks,
.plre-filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: end;
  min-height: 44px;
}
.plre-filter-actions { justify-content: flex-end; }
.plre-filter-actions .plre-button { margin: 0; }
.plre-reset { color: var(--plre-deep); font-weight: 700; }
.plre-directory-summary { margin: 0 0 18px; color: var(--plre-muted); }

.plre-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plre-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28,49,43,.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(19,42,35,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plre-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(19,42,35,.12); }
.plre-card.plre-tier-premium { border-color: rgba(181,138,61,.48); box-shadow: 0 15px 38px rgba(181,138,61,.12); }
.plre-card.plre-tier-sponsored { border: 2px solid rgba(0,143,152,.5); box-shadow: 0 18px 44px rgba(0,143,152,.14); }
.plre-card.is-unavailable { opacity: .68; }

.plre-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef3f1;
}
.plre-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.plre-card:hover .plre-image img { transform: scale(1.025); }

.plre-card-body { padding: 20px; }
.plre-card h3 { margin: .25em 0; font-size: 1.3rem; line-height: 1.2; }
.plre-card h3 a,
.plre-link { color: var(--plre-deep); text-decoration: none; }
.plre-price { margin: 8px 0; color: #95702e; font-size: 1.25rem; font-weight: 850; }
.plre-meta { margin: 0; color: var(--plre-muted); font-size: .86rem; }
.plre-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plre-card-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.plre-card-facts span { padding: 5px 8px; border-radius: 999px; background: #f1f5f3; color: #52625c; font-size: .74rem; font-weight: 700; }
.plre-card-excerpt { color: #52625c; }
.plre-link { font-weight: 800; }

.plre-badge,
.plre-badge-static {
  display: inline-flex;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: #c89a40;
  color: #fff;
  font-size: .75rem;
  font-weight: 850;
}
.plre-badge { position: absolute; top: 14px; left: 14px; }
.plre-badge.is-sponsored,
.plre-badge-static.is-sponsored { background: var(--plre-teal); }

.plre-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 800;
  white-space: nowrap;
}
.plre-status-checked { background: #eaf7ef; color: #28734b; }
.plre-status-pending_update { background: #fff5df; color: #8a641f; }
.plre-status-unavailable { background: #f9e9e7; color: #9a4035; }

.plre-favorite-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--plre-deep);
  font-size: 1.45rem;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(19,42,35,.15);
}
.plre-favorite-button.is-active { color: #b8504b; }
.plre-favorite-button.is-detail {
  position: static;
  width: auto;
  height: auto;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1rem;
}
.plre-favorite-text { font-size: .82rem; font-weight: 800; }

.plre-pagination { margin-top: 30px; }
.plre-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.plre-pagination a,
.plre-pagination span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--plre-line); border-radius: 50%; color: var(--plre-deep); text-decoration: none; }
.plre-pagination .current { background: var(--plre-deep); color: #fff; }

.plre-detail { padding: 10px 0 30px; }
.plre-detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.plre-detail h1 { max-width: 850px; margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
.plre-detail-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.plre-checked-date { color: var(--plre-muted); font-size: .84rem; }
.plre-detail-price-wrap { display: flex; min-width: 220px; flex-direction: column; align-items: flex-end; gap: 10px; }
.plre-detail-price { margin: 0; color: #95702e; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 900; white-space: nowrap; }

.plre-gallery { margin-bottom: 30px; }
.plre-gallery-main { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #edf3f0; }
.plre-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.plre-gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.plre-gallery-thumb { overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #eef3f1; cursor: pointer; }
.plre-gallery-thumb.is-active { border-color: var(--plre-teal); }
.plre-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.plre-detail-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr); gap: 30px; align-items: start; }
.plre-detail-main { min-width: 0; }
.plre-detail-section { margin-bottom: 24px; padding: 26px; border: 1px solid var(--plre-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(19,42,35,.05); }
.plre-detail-section h2,
.plre-contact-card h2 { margin: 0 0 18px; font-size: 1.35rem; }
.plre-description p:last-child { margin-bottom: 0; }

.plre-fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.plre-fact-grid > div { padding: 14px; border-radius: 14px; background: var(--plre-soft); }
.plre-fact-grid dt { color: var(--plre-muted); font-size: .78rem; font-weight: 700; }
.plre-fact-grid dd { margin: 5px 0 0; font-size: 1.05rem; font-weight: 850; }

.plre-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.plre-feature-list li { padding: 11px 13px; border: 1px solid #dfeaec; border-radius: 11px; background: #fbfdfd; font-weight: 750; }

.plre-nearby-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plre-nearby-group { padding: 16px; border-radius: 14px; background: var(--plre-soft); }
.plre-nearby-group h3 { margin: 0 0 9px; font-size: 1rem; }
.plre-nearby-group ul { margin: 0; padding-left: 18px; }

.plre-detail-sidebar { position: sticky; top: 24px; }
.plre-contact-card { padding: 24px; border: 1px solid rgba(181,138,61,.28); border-radius: 20px; background: linear-gradient(180deg, #fffdf8, #fff); box-shadow: 0 18px 45px rgba(19,42,35,.08); }
.plre-tier-sponsored .plre-contact-card { border-color: rgba(0,143,152,.35); }
.plre-seller-type { color: var(--plre-muted); font-weight: 750; }
.plre-contact-actions { display: grid; gap: 10px; margin-top: 18px; }
.plre-contact-actions .plre-secondary-button,
.plre-contact-actions .plre-contact-button,
.plre-contact-card > .plre-secondary-button { width: 100%; margin-top: 10px; }
.plre-no-favorites,
.plre-no-results { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--plre-muted); }

@media (max-width: 980px) {
  .plre-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plre-filter-wide { grid-column: span 2; }
  .plre-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plre-detail-layout { grid-template-columns: 1fr; }
  .plre-detail-sidebar { position: static; }
  .plre-gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .plre-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .plre-shell,
  .plre-directory { padding: 20px; border-radius: 18px; }
  .plre-grid,
  .plre-cards,
  .plre-filters,
  .plre-feature-grid,
  .plre-fact-grid,
  .plre-feature-list,
  .plre-nearby-grid { grid-template-columns: 1fr; }
  .plre-filter-wide { grid-column: auto; }
  .plre-filter-checks,
  .plre-filter-actions { align-items: flex-start; flex-direction: column; }
  .plre-filter-actions { justify-content: flex-start; }
  .plre-detail-header { align-items: flex-start; flex-direction: column; }
  .plre-detail-price-wrap { min-width: 0; align-items: flex-start; }
  .plre-gallery-main { aspect-ratio: 4 / 3; border-radius: 18px; }
  .plre-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plre-detail-section,
  .plre-contact-card { padding: 19px; border-radius: 17px; }
  .plre-card-topline { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .plre-shell *,
  .plre-directory *,
  .plre-detail * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
