/* ============================================================
   Propiedades — base look for the public widgets.

   Deliberately plain and deliberately overridable. A site with its own design
   changes these from "CSS y JavaScript del sitio"; a site without one still
   gets something a visitor can read, instead of an unstyled list that looks
   like the page failed to load.

   Everything is scoped to .prpw-* and nothing is written inline, so a
   stylesheet always wins.
   ============================================================ */

.prpw-loading,
.prpw-empty {
    padding: 32px 0;
    text-align: center;
    color: #6c757d;
}

/* ---------- the grid of cards ---------- */

.prpw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.prpw-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3e3e0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.prpw-card:not(.is-static):hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}

.prpw-card-photo { display: block; }
.prpw-card-photo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.prpw-card-body { display: block; padding: 22px 24px 26px; }

.prpw-tag {
    display: block;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #7b5cff;
    margin-bottom: 8px;
}

.prpw-card-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
}

.prpw-card-place,
.prpw-card-text {
    display: block;
    font-size: .92rem;
    color: #5c5f59;
    margin-bottom: 14px;
}

.prpw-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.prpw-specs li {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: #5c5f59;
    background: #f2f2ef;
    border-radius: 40px;
    padding: 5px 12px;
}

.prpw-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

/* A strip of extra photos inside a card (projects). */
.prpw-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.prpw-mini img {
    width: 64px; height: 52px; object-fit: cover; border-radius: 6px;
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

/* ---------- the search bar ---------- */

.prpw-search {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
    background: #fff;
    border: 1px solid #e3e3e0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 34px;
}
.prpw-field label {
    display: block;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #5c5f59;
    margin-bottom: 9px;
}
.prpw-field select {
    width: 100%;
    border: 1px solid #e3e3e0;
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    font-size: .95rem;
    background: #fff;
    cursor: pointer;
}
.prpw-btn {
    border: 0;
    border-radius: 40px;
    padding: 14px 30px;
    font: inherit;
    font-weight: 600;
    background: #7b5cff;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 900px) {
    .prpw-search { grid-template-columns: 1fr 1fr; }
    .prpw-btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .prpw-search { grid-template-columns: 1fr; }
}

.prpw-count {
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    color: #5c5f59;
    margin-bottom: 26px;
}
.prpw-clear { margin-left: 12px; }

/* ---------- one property's sheet ---------- */

.prpw-sheet {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: start;
}
.prpw-sheet.is-photoless { grid-template-columns: 1fr; }
@media (max-width: 980px) { .prpw-sheet { grid-template-columns: 1fr; } }

.prpw-sheet-cover {
    width: 100%;
    height: clamp(320px, 46vw, 520px);
    object-fit: cover;
    border-radius: 14px;
}
.prpw-thumbs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.prpw-thumbs img {
    width: 88px; height: 72px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transition: transform .2s ease;
}
.prpw-thumbs img:hover { transform: scale(1.05); }

.prpw-sheet-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 10px 0 14px; }
.prpw-sheet-price { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 26px; }

.prpw-spec-list { margin: 0 0 30px; }
.prpw-spec-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e3e3e0;
    padding: 14px 0;
}
.prpw-spec-list > div:last-child { border-bottom: 0; }
.prpw-spec-list dt {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.prpw-spec-list dd { margin: 0; color: #5c5f59; }

.prpw-sheet-extra {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #e3e3e0;
}
@media (max-width: 860px) { .prpw-sheet-extra { grid-template-columns: 1fr; } }
.prpw-block h2 { font-size: 1.2rem; margin-bottom: 16px; }
.prpw-block p { margin-bottom: 16px; }

.prpw-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prpw-features li { display: flex; gap: 12px; }
.prpw-features li::before { content: "+"; color: #7b5cff; font-weight: 700; }

.prpw-similar { margin-top: 56px; }
.prpw-similar h2 { font-size: 1.2rem; margin-bottom: 26px; }
