@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --pl-primary:      #2261AD;
    --pl-secondary:    #49ABE0;
    --pl-accent-light: #AAD5EF;
    --pl-text:         #000000;
    --pl-text-light:   #666;
    --pl-border:       #e0e0e0;
    --pl-bg:           #f7f8fa;
    --pl-white:        #ffffff;
    --pl-sold:         #c0392b;
    --pl-radius:       8px;
    --pl-shadow:       0 2px 12px rgba(0,0,0,0.08);
    --pl-shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
    --pl-font:         'Poppins', sans-serif;
}

/* ── Base font ───────────────────────────────────────────── */
.pl-listings-wrap,
.pl-single-wrap,
.pl-hero {
    font-family: var(--pl-font);
}

/* ── Filters ─────────────────────────────────────────────── */
.pl-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    background: var(--pl-white);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.pl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.pl-filter-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pl-text-light);
}

.pl-filter-group select {
    padding: 10px 14px;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    font-size: 15px;
    font-family: var(--pl-font);
    background: var(--pl-bg);
    color: var(--pl-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
    transition: border-color 0.2s;
}

.pl-filter-group select:focus {
    outline: none;
    border-color: var(--pl-primary);
}

.pl-filter-clear {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--pl-text-light);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    text-decoration: none;
    transition: all 0.2s;
    align-self: flex-end;
    font-family: var(--pl-font);
}

.pl-filter-clear:hover { border-color: #c00; color: #c00; }

/* ── Results count ───────────────────────────────────────── */
.pl-results-count { font-size: 14px; color: var(--pl-text-light); margin-bottom: 20px; }

/* ── Grid ────────────────────────────────────────────────── */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Card ────────────────────────────────────────────────── */
.pl-card {
    position: relative;
    background: var(--pl-white);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    overflow: hidden;
    box-shadow: var(--pl-shadow);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.pl-card:hover { box-shadow: var(--pl-shadow-hover); transform: translateY(-3px); }
.pl-card--featured { border-color: var(--pl-secondary); border-width: 2px; }
.pl-card--sold { opacity: 0.85; }
.pl-card--sold:hover { transform: none; box-shadow: var(--pl-shadow); }

.pl-card__image-link { display: block; aspect-ratio: 16/10; overflow: hidden; }

.pl-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pl-card:hover .pl-card__image { transform: scale(1.04); }

.pl-card__image--placeholder {
    background: var(--pl-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pl-text-light);
    font-size: 14px;
    height: 200px;
}

.pl-card__body { padding: 18px 20px; flex: 1; }

.pl-card__type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pl-primary);
    margin-bottom: 6px;
}

.pl-card__title { font-size: 17px; font-weight: 600; margin: 0 0 10px; line-height: 1.3; }
.pl-card__title a { color: var(--pl-text); text-decoration: none; }
.pl-card__title a:hover { color: var(--pl-primary); }

.pl-card__price { font-size: 20px; font-weight: 700; color: var(--pl-primary); margin-bottom: 14px; }
.pl-card__price--sold { font-size: 18px; font-weight: 800; color: var(--pl-sold); letter-spacing: 0.05em; }
.pl-card__price-period { font-size: 14px; font-weight: 400; color: var(--pl-text-light); }

.pl-card__specs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pl-spec { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--pl-text-light); }

.pl-card__footer { padding: 14px 20px; border-top: 1px solid var(--pl-border); background: var(--pl-bg); }

/* ── Badges ──────────────────────────────────────────────── */
.pl-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    position: absolute;
    top: 12px;
    z-index: 2;
}

.pl-badge--sold    { background: var(--pl-sold); color: #fff; left: 12px; font-size: 12px; padding: 4px 14px; }
.pl-badge--featured{ background: #f5a623; color: #fff; left: 12px; }
.pl-badge--listing { background: var(--pl-primary); color: #fff; right: 12px; }

/* ── No results ──────────────────────────────────────────── */
.pl-no-results { text-align: center; padding: 60px 20px; color: var(--pl-text-light); border: 2px dashed var(--pl-border); border-radius: var(--pl-radius); }

/* ── Buttons ─────────────────────────────────────────────── */
.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--pl-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--pl-font);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.pl-btn--primary   { background: var(--pl-primary); color: var(--pl-white); }
.pl-btn--primary:hover { background: #1a4d8a; color: var(--pl-white); }
.pl-btn--secondary { background: var(--pl-secondary); color: var(--pl-white); }
.pl-btn--secondary:hover { background: #2e8fbf; color: var(--pl-white); }
.pl-btn--whatsapp  { background: #25d366; color: var(--pl-white); }
.pl-btn--whatsapp:hover { background: #1da851; color: var(--pl-white); }

.pl-btn--outline {
    background: transparent;
    border-color: var(--pl-border);
    color: var(--pl-text-light);
}
.pl-btn--outline:hover { border-color: var(--pl-primary); color: var(--pl-primary); }

.pl-btn--block { display: flex; width: 100%; margin-top: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-sizing: border-box; }
.pl-btn--block span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ════════════════════════════════════════════════════════════
   HERO HEADER
   ════════════════════════════════════════════════════════════ */
.pl-hero {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: var(--pl-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.pl-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 0.7;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 1;
}

.pl-hero--sold .pl-hero__overlay { background-color: #000; opacity: 0.8; }

.pl-hero__sold-ribbon {
    position: absolute;
    top: 32px;
    right: -36px;
    background: var(--pl-sold);
    color: #fff;
    font-family: var(--pl-font);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 10px 60px;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pl-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 32px;
}

.pl-hero__meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.pl-hero__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 20px;
}

.pl-hero__badge--listing  { background: var(--pl-secondary); color: #fff; }
.pl-hero__badge--type     { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.pl-hero__badge--featured { background: #f5a623; color: #fff; }

.pl-hero__title {
    font-family: var(--pl-font);
    font-size: 45px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pl-hero__address { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0 0 10px; }

.pl-hero__price { font-size: 28px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.pl-hero__price--sold { font-size: 20px; font-weight: 600; color: rgba(255,255,255,0.9); font-style: italic; }
.pl-hero__price-period { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.85); }

/* ════════════════════════════════════════════════════════════
   SINGLE PROPERTY PAGE
   ════════════════════════════════════════════════════════════ */
.pl-single-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; }

.pl-single-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

.pl-section { margin-bottom: 36px; }

.pl-section__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pl-primary);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pl-border);
}

.pl-description { line-height: 1.75; color: var(--pl-text); }

/* ── Specs grid ──────────────────────────────────────────── */
.pl-specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.pl-spec-item {
    display: flex;
    flex-direction: column;
    background: var(--pl-bg);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    padding: 14px 16px;
}

.pl-spec-item__icon  { font-size: 20px; margin-bottom: 6px; }
.pl-spec-item__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pl-text-light); margin-bottom: 4px; }
.pl-spec-item__value { font-size: 17px; font-weight: 700; color: var(--pl-text); }

/* ── Rates & Levies ──────────────────────────────────────── */
.pl-rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.pl-rate-item {
    display: flex;
    flex-direction: column;
    background: var(--pl-bg);
    border: 1px solid var(--pl-border);
    border-left: 4px solid var(--pl-secondary);
    border-radius: var(--pl-radius);
    padding: 16px 20px;
}

.pl-rate-item__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pl-text-light); margin-bottom: 6px; }
.pl-rate-item__value { font-size: 22px; font-weight: 700; color: var(--pl-primary); }
.pl-rate-item__value small { font-size: 13px; font-weight: 400; color: var(--pl-text-light); }

/* ── Amenities ───────────────────────────────────────────── */
.pl-amenities-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

.pl-amenity {
    background: var(--pl-bg);
    border: 1px solid var(--pl-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* ── Gallery ─────────────────────────────────────────────── */
.pl-gallery { border-radius: var(--pl-radius); overflow: hidden; border: 1px solid var(--pl-border); }

.pl-gallery__main-img { width: 100%; height: 420px; object-fit: cover; display: block; transition: opacity 0.25s; }

.pl-gallery__thumbs { display: flex; gap: 6px; padding: 8px; background: var(--pl-bg); flex-wrap: wrap; }

.pl-gallery__thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.75;
}

.pl-gallery__thumb:hover,
.pl-gallery__thumb.active { border-color: var(--pl-primary); opacity: 1; }

/* ── Map ─────────────────────────────────────────────────── */
.pl-map-wrap { border-radius: var(--pl-radius); overflow: hidden; border: 1px solid var(--pl-border); margin-bottom: 10px; }
.pl-map { width: 100%; height: 320px; border: 0; display: block; }
.pl-map-address { font-size: 14px; color: var(--pl-text-light); margin: 0; }

/* ── Sidebar ─────────────────────────────────────────────── */
.pl-single-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

.pl-agent-card,
.pl-summary-card {
    background: var(--pl-white);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    padding: 24px;
    box-shadow: var(--pl-shadow);
}

.pl-agent-card__title,
.pl-summary-card__title { font-size: 16px; font-weight: 700; color: var(--pl-primary); margin: 0 0 14px; }

.pl-agent-card__name { font-size: 18px; font-weight: 600; margin: 0 0 14px; }

.pl-summary-card__price { font-size: 26px; font-weight: 800; color: var(--pl-primary); margin-bottom: 14px; }

.pl-summary-card__sold {
    font-size: 28px;
    font-weight: 800;
    color: var(--pl-sold);
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--pl-sold);
    border-radius: var(--pl-radius);
}

.pl-summary-specs { list-style: none; margin: 0 0 16px; padding: 0; }
.pl-summary-specs li { padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--pl-border); color: var(--pl-text); }
.pl-summary-specs li:last-child { border-bottom: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .pl-single-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .pl-grid { grid-template-columns: 1fr; }
    .pl-filters { flex-direction: column; }
    .pl-filter-group { min-width: 100%; }
    .pl-hero { height: 260px; }
    .pl-hero__title { font-size: 28px; }
    .pl-hero__price { font-size: 22px; }
    .pl-gallery__main-img { height: 240px; }
    .pl-hero__sold-ribbon { font-size: 14px; top: 24px; right: -40px; }
}
