/* ===================================================
   Pet Rescue Platform - Frontend Styles
   Mobile-first, modular, CSS-only components
   =================================================== */

/* --- CSS Variables / Theme --- */
:root {
    --prp-primary: #4a90d9;
    --prp-primary-dark: #357abd;
    --prp-success: #27ae60;
    --prp-danger: #e74c3c;
    --prp-warning: #f39c12;
    --prp-info: #3498db;
    --prp-bg: #f5f7fa;
    --prp-white: #ffffff;
    --prp-text: #333333;
    --prp-text-light: #666666;
    --prp-border: #e0e0e0;
    --prp-radius: 8px;
    --prp-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --prp-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --prp-transition: 0.2s ease;
    --prp-max-width: 1200px;
    /* Date filter icon sizing (can be overridden by preset classes) */
    --prp-date-icon-size: 28px;
    --prp-date-icon-inner: 14px;
    --prp-date-label-maxwidth: calc(100% - 44px);
}

/* --- Reset & Base --- */
.prp-wizard,
.prp-feed,
.prp-search,
.prp-dashboard {
    max-width: var(--prp-max-width);
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--prp-text);
    line-height: 1.5;
}

/* --- Buttons --- */
.prp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--prp-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--prp-transition);
    text-align: center;
    line-height: 1.4;
}

.prp-btn-primary {
    background: var(--prp-primary);
    color: var(--prp-white);
}
.prp-btn-primary:hover {
    background: var(--prp-primary-dark);
    transform: translateY(-1px);
}

.prp-btn-outline {
    background: transparent;
    color: var(--prp-primary);
    border: 2px solid var(--prp-primary);
}
.prp-btn-outline:hover {
    background: var(--prp-primary);
    color: var(--prp-white);
}

.prp-btn-prev {
    background: var(--prp-bg);
    color: var(--prp-text);
}
.prp-btn-prev:hover {
    background: var(--prp-border);
}

.prp-btn-next {
    background: var(--prp-primary);
    color: var(--prp-white);
}
.prp-btn-next:hover {
    background: var(--prp-primary-dark);
}

.prp-btn-submit {
    background: var(--prp-success);
    color: var(--prp-white);
    font-size: 16px;
    padding: 12px 32px;
}
.prp-btn-submit:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.prp-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.prp-btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}
.prp-btn-view {
    background: var(--prp-primary);
    color: var(--prp-white);
}
.prp-btn-contact {
    background: var(--prp-success);
    color: var(--prp-white);
}
.prp-btn-delete {
    background: var(--prp-danger);
    color: var(--prp-white);
}
.prp-btn-delete:hover {
    background: #c0392b;
}

/* --- Locate Button (Geolocation) --- */
.prp-locate-btn {
    margin-bottom: 12px;
    font-size: 13px;
    padding: 8px 18px;
    transition: all var(--prp-transition);
}
.prp-locate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.prp-locate-status {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
    min-height: 18px;
}

/* --- Social Share --- */
.prp-share-buttons { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.prp-share-btn { display:inline-flex; align-items:center; gap:5px; padding:7px 14px; border-radius:6px; font-size:12px; font-weight:600; text-decoration:none; transition:all .15s; border:none; cursor:pointer; }
.prp-share-wa { background:#25D366; color:#fff; } .prp-share-wa:hover { background:#1da851; }
.prp-share-fb { background:#1877F2; color:#fff; } .prp-share-fb:hover { background:#1565c0; }
.prp-share-tw { background:#000; color:#fff; } .prp-share-tw:hover { background:#333; }
.prp-share-copy { background:#f0f0f1; color:#333; } .prp-share-copy:hover { background:#e0e0e0; }

/* --- Expired badge --- */
.prp-expired-badge { display:inline-block; padding:2px 8px; border-radius:12px; font-size:10px; font-weight:600; background:#e74c3c; color:#fff; }
.prp-renew-btn { background:#f39c12; color:#fff; border:none; padding:6px 14px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; margin-top:4px; }
.prp-renew-btn:hover { background:#d68910; }

/* --- Form Elements --- */
.prp-input,
.prp-wizard select,
.prp-search select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--prp-border);
    border-radius: var(--prp-radius);
    font-size: 15px;
    transition: border-color var(--prp-transition);
    background: var(--prp-white);
    box-sizing: border-box;
}
.prp-input:focus,
.prp-wizard select:focus {
    outline: none;
    border-color: var(--prp-primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}

.prp-input::placeholder {
    color: #999;
}

.prp-field-hint {
    font-size: 12px;
    color: var(--prp-text-light);
    margin-top: 4px;
    font-style: italic;
}

/* --- Wizard --- */
.prp-wizard-progress {
    margin-bottom: 30px;
}

.prp-progress-bar {
    height: 6px;
    background: var(--prp-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}
.prp-progress-fill {
    height: 100%;
    background: var(--prp-primary);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.prp-steps-indicator {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.prp-step-dot {
    font-size: 12px;
    color: var(--prp-text-light);
    padding: 4px 8px;
    border-radius: 20px;
    background: var(--prp-bg);
    transition: all var(--prp-transition);
}
.prp-step-dot.active {
    background: var(--prp-primary);
    color: var(--prp-white);
}
.prp-step-dot.completed {
    background: var(--prp-success);
    color: var(--prp-white);
}

.prp-wizard-form {
    background: var(--prp-white);
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    padding: 30px;
}
.prp-wizard-form h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--prp-text);
}
.prp-step-desc {
    color: var(--prp-text-light);
    margin-bottom: 20px;
}

.prp-step {
    display: none;
}
.prp-wizard .prp-step[hidden],
.prp-wizard .prp-step:not(.active) {
    display: none !important;
}
.prp-step.active {
    display: block;
}

/* Status Selection Grid */
.prp-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.prp-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid var(--prp-border);
    border-radius: var(--prp-radius);
    cursor: pointer;
    transition: all var(--prp-transition);
    text-align: center;
    background: var(--prp-bg);
}
.prp-status-card:hover {
    border-color: var(--prp-primary);
    box-shadow: var(--prp-shadow-hover);
}
.prp-status-card input[type="radio"] {
    display: none;
}
.prp-status-card:has(input:checked) {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-status-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.prp-status-label {
    font-weight: 600;
    font-size: 16px;
}
.prp-status-desc {
    font-size: 12px;
    color: var(--prp-text-light);
    margin-top: 4px;
    font-weight: 600;
}

/* Pet Type Quick-Select Cards */
.prp-pettype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}
.prp-pettype-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border: 2px solid var(--prp-border);
    border-radius: var(--prp-radius);
    cursor: pointer;
    transition: all var(--prp-transition);
    text-align: center;
    background: var(--prp-bg);
}
.prp-pettype-card:hover {
    border-color: var(--prp-primary);
    box-shadow: var(--prp-shadow-hover);
}
.prp-pettype-card input[type="radio"] {
    display: none;
}
.prp-pettype-card:has(input:checked) {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-pettype-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
}
.prp-pettype-label {
    font-weight: 600;
    font-size: 14px;
}
.prp-pettype-other {
    display: none;
    margin: 10px 0;
}
.prp-pettype-other .prp-input { margin-top: 6px; }

/* Pet Type selection: other details stay hidden until a type is chosen */
.prp-pet-details {
    margin-top: 5px;
}

/* Breed dynamic dropdown / manual entry */
.prp-breed-wrap .prp-input { width: 100%; }
.prp-breed-manual { margin-top: 6px; }
.prp-breed-hint { margin-top: 6px; }

/* Extra trait rows (Ear Clip, Leg, Limp, Body, Patches, Nose, Eye) */
.prp-trait-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}
.prp-trait-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.prp-trait-row label {
    flex: 0 0 150px;
    font-weight: 600;
    color: var(--prp-text);
}
.prp-trait-row select,
.prp-trait-row input[type="text"].prp-input {
    flex: 1 1 220px;
    max-width: 320px;
}
.prp-trait-row .prp-trait-other-input {
    flex: 1 1 220px;
    max-width: 320px;
}
@media (max-width: 600px) {
    .prp-trait-row label { flex-basis: 100%; }
    .prp-trait-row select,
    .prp-trait-row input[type="text"].prp-input { max-width: none; }
}

/* Photo Upload */
.prp-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.prp-photo-add {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--prp-border);
    border-radius: var(--prp-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--prp-transition);
}
.prp-photo-add:hover {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-add-icon {
    font-size: 32px;
    color: var(--prp-primary);
    line-height: 1;
}
.prp-add-text {
    font-size: 12px;
    color: var(--prp-text-light);
    margin-top: 4px;
}
.prp-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--prp-radius);
    object-fit: cover;
    position: relative;
}
.prp-photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--prp-danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}
.prp-photo-hint {
    font-size: 12px;
    color: var(--prp-text-light);
}
.prp-photo-error {
    color: var(--prp-danger);
    font-size: 13px;
    margin-top: 8px;
}

/* Form Layout */
.prp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.prp-form-group {
    margin-bottom: 15px;
}
.prp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.prp-form-group .required {
    color: var(--prp-danger);
}

/* Checkbox Grid */
.prp-checkbox-heading {
    margin: 0 0 8px;
    color: #222;
    font-weight: 700;
}
.prp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.prp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--prp-border);
    border-radius: var(--prp-radius);
    cursor: pointer;
    transition: all var(--prp-transition);
}
.prp-checkbox-label:has(input:checked) {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.prp-checkbox-text {
    font-size: 14px;
}

/* Wizard Navigation */
.prp-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--prp-border);
    gap: 10px;
    flex-wrap: wrap;
}
.prp-form-message {
    padding: 12px 16px;
    border-radius: var(--prp-radius);
    margin-top: 15px;
    font-size: 14px;
}
.prp-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.prp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Review Summary --- */
.prp-review-summary {
    background: var(--prp-bg);
    border-radius: var(--prp-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.prp-review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--prp-border);
}
.prp-review-item:last-child { border-bottom: none; }
.prp-review-label { font-weight: 600; color: var(--prp-text-light); }
.prp-review-value { color: var(--prp-text); }

/* --- Card Feed --- */
.prp-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: none;
    margin: 0;
}
.prp-feed-cols-1 { grid-template-columns: 1fr; }
.prp-feed-cols-2 { grid-template-columns: repeat(2, 1fr); }
.prp-feed-cols-3 { grid-template-columns: repeat(3, 1fr); }
.prp-feed-cols-4 { grid-template-columns: repeat(4, 1fr); }

.prp-card {
    background: var(--prp-white);
    border: 1px solid #000;
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    overflow: visible;
    position: relative;
    transition: transform var(--prp-transition), box-shadow var(--prp-transition);
    display: flex;
    flex-direction: column;
}
.prp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--prp-shadow-hover);
}

.prp-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--prp-radius) var(--prp-radius) 0 0;
    background: var(--prp-bg);
}
.prp-card-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: var(--prp-bg);
}
.prp-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--prp-bg);
    color: var(--prp-text-light);
    font-size: 14px;
}

/* Status Badges */
.prp-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}
.prp-status-danger  { background: red; color: #FFFFFF; }
.prp-status-success { background: var(--prp-success); }
.prp-status-info    { background: var(--prp-info); }
.prp-status-warning { background: var(--prp-warning); }
.prp-status-black   { background: #000000; }

.prp-verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: var(--prp-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Reward Badge on Card Image */
.prp-reward-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    background: #ffeb3b;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.3px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
}
.prp-reward-badge-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    padding: 1px 7px;
    line-height: 1.4;
    white-space: nowrap;
}
.prp-reward-badge-amount {
    white-space: nowrap;
}
.prp-reward-badge-amount:only-child {
    padding-left: 2px;
}

.prp-card-body {
    padding: 15px;
    flex: 1;
}
.prp-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--prp-text);
    line-height: 1.3;
}
.prp-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--prp-text-light);
}
.prp-card-meta span {
    background: var(--prp-bg);
    padding: 2px 8px;
    border-radius: 12px;
}
.prp-card-tag {
    cursor: pointer;
    transition: all var(--prp-transition);
    border: 1px solid transparent;
}
.prp-card-tag:hover {
    background: var(--prp-primary);
    color: #fff;
    border-color: var(--prp-primary);
    transform: translateY(-1px);
}

/* --- Tag Filter Indicator --- */
.prp-tag-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #e8f5e9;
    border: 1px solid #c3e6cb;
    border-radius: var(--prp-radius);
    font-size: 14px;
}
.prp-tag-indicator-label {
    font-weight: 600;
    color: #155724;
    flex: 1;
}
.prp-tag-indicator-tax {
    font-weight: 400;
    font-size: 12px;
    color: #6c757d;
    margin-left: 4px;
}
.prp-tag-indicator-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #155724;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    transition: background var(--prp-transition);
}
.prp-tag-indicator-clear:hover {
    background: #0d3b1a;
    color: #fff;
}
.prp-card-location {
    font-size: 13px;
    color: var(--prp-text-light);
    margin-bottom: 6px;
}
.prp-card-date {
    font-size: 12px;
    color: #999;
}

.prp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px;
}

/* Share button inside pet card */
.prp-btn-share {
    background: var(--prp-text-light);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.prp-btn-share:hover {
    background: #4d4d4d;
    color: #fff;
}
.prp-btn-share svg {
    flex-shrink: 0;
}

/* Share popup (4 sub-options) anchored to bottom of the card */
.prp-card-share {
    position: absolute;
    right: 15px;
    bottom: 60px;
    z-index: 20;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 220px;
    padding: 12px;
    background: var(--prp-white);
    border: 1px solid var(--prp-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.prp-card-share.open {
    display: grid;
}
.prp-card-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--prp-text);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    transition: background 0.15s ease, transform 0.15s ease;
}
.prp-card-share-option:hover {
    background: var(--prp-bg);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--prp-text);
}
.prp-card-share-icon {
    font-size: 20px;
    line-height: 1;
}
.prp-card-share-whatsapp .prp-card-share-icon { color: #25D366; }
.prp-card-share-facebook .prp-card-share-icon { color: #1877F2; }
.prp-card-share-instagram .prp-card-share-icon { color: #C13584; }
.prp-card-share-twitter .prp-card-share-icon { color: #000000; }

.prp-feed-post-row {
    grid-column: 1 / -1;
    margin: 10px 0 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f5f7fa, #eef5ff);
    border: 1px solid rgba(74, 144, 217, 0.18);
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    align-items: center;
    gap: 18px;
}
.prp-feed-post-copy {
    display: flex;
    align-items: center;
    min-height: 100%;
}
.prp-feed-post-copy-text {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: #0d2d6d;
    text-transform: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.prp-feed-post-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.prp-feed-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--prp-white);
    text-decoration: none;
    text-align: center;
    transition: transform var(--prp-transition), box-shadow var(--prp-transition), opacity var(--prp-transition);
}
.prp-feed-post-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    color: var(--prp-white);
    text-decoration: none;
}
.prp-feed-post-btn .prp-feed-post-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.prp-feed-post-btn .prp-feed-post-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 1;
}
.prp-feed-post-btn-missing { background: #d93c3c; }
.prp-feed-post-btn-found { background: #f39c12; }
.prp-feed-post-btn-relocation { background: #000000; }
.prp-feed-post-btn-adoption { background: #27ae60; }

/* CTA button label: increase contrast and prominence */
.prp-feed-post-label {
    display: inline-block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.36);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

/* --- Post Now CTA: mobile-friendly buttons --- */
@media (max-width: 768px) {
    /* Stack the call-to-action card so the buttons get full width on phones */
    .prp-feed-post-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }
    .prp-feed-post-copy {
        min-height: 0;
    }
    .prp-feed-post-copy-text {
        font-size: 20px;
    }
    .prp-feed-post-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }
    .prp-feed-post-btn {
        min-height: 48px;
        /* Rounded rectangle: keeps the curved look without clipping the label */
        border-radius: 14px;
        padding: 10px 12px;
        gap: 8px;
    }
    .prp-feed-post-btn .prp-feed-post-icon {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }
    .prp-feed-post-btn .prp-feed-post-icon img {
        width: 16px;
        height: 16px;
    }
    .prp-feed-post-label {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    /* Extra small phones: tighten spacing so both button columns fit comfortably */
    .prp-feed-post-actions {
        gap: 8px;
    }
    .prp-feed-post-btn {
        padding: 9px 8px;
        gap: 6px;
    }
    .prp-feed-post-btn .prp-feed-post-icon {
        width: 24px;
        height: 24px;
    }
    .prp-feed-post-btn .prp-feed-post-icon img {
        width: 15px;
        height: 15px;
    }
    .prp-feed-post-label {
        font-size: 12.5px;
    }
}

/* --- Feed Wrapper (aligns filters + cards together) --- */
.prp-feed-wrapper {
    max-width: var(--prp-max-width);
    margin: 0 auto;
}

/* --- Date Filters --- */
.prp-date-filters-wrapper {
    margin-bottom: 16px;
}
.prp-date-filters {
    margin-bottom: 16px;
    background: var(--prp-white);
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    padding: 8px;
    /* Default (desktop): use standard size for date icons/labels */
    --prp-date-icon-size: 28px;
    --prp-date-icon-inner: 14px;
    --prp-date-label-maxwidth: calc(100% - 44px);
}
.prp-date-filters-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
.prp-date-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    background: #e6e9ec;
    border: 1px solid var(--prp-border);
    border-radius: 8px;
}
.prp-date-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.prp-date-filter-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Pastel badge for clock icon in date filters */
.prp-date-filter .prp-date-filter-icon {
    width: var(--prp-date-icon-size);
    height: var(--prp-date-icon-size);
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4ff, #dff0ff);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.prp-date-filter .prp-date-filter-icon img {
    width: var(--prp-date-icon-inner);
    height: var(--prp-date-icon-inner);
    filter: none;
}

/* On active date filter, use white badge for contrast (matching status filters) */
.prp-date-filter.active .prp-date-filter-icon {
    background: rgba(255,255,255,0.96);
}
.prp-date-filter-label {
    display: inline-block;
    white-space: nowrap;
}
.prp-date-custom-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px 8px 0;
    width: 100%;
}
.prp-date-custom-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--prp-text);
}
.prp-date-custom-label span {
    font-weight: 600;
    color: var(--prp-text-light);
    white-space: nowrap;
}
.prp-date-custom-label input[type="date"] {
    padding: 6px 10px;
    border: 2px solid var(--prp-border);
    border-radius: var(--prp-radius);
    font-size: 13px;
    font-family: inherit;
    background: var(--prp-white);
    color: var(--prp-text);
    transition: border-color var(--prp-transition);
}
.prp-date-custom-label input[type="date"]:focus {
    outline: none;
    border-color: var(--prp-primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.prp-date-custom-apply {
    background: var(--prp-primary);
    color: var(--prp-white);
    border: none;
    padding: 6px 16px;
    border-radius: var(--prp-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--prp-transition);
    font-family: inherit;
}
.prp-date-custom-apply:hover {
    background: var(--prp-primary-dark);
    transform: translateY(-1px);
}

/* --- Feed Filters (Status Tabs) --- */
.prp-feed-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    background: var(--prp-white);
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    padding: 8px;
}
.prp-feed-filter {
    padding: 8px 12px;
    border: 0;
    border-radius: var(--prp-radius);
    background: #e6e9ec;
    text-decoration: none;
    color: var(--prp-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--prp-shadow);
    transition: all var(--prp-transition);
    width: 100%;
    white-space: nowrap;
}
.prp-feed-filter:focus {
    outline: 2px solid rgba(52, 152, 219, 0.3);
    outline-offset: 2px;
}
.prp-feed-filter:hover {
    background: var(--prp-bg);
    box-shadow: var(--prp-shadow-hover);
}
.prp-feed-filter.active {
    background: var(--prp-primary);
    color: var(--prp-white);
    box-shadow: var(--prp-shadow-hover);
}

/* Date filter active state (matches status filters) */
.prp-date-filter.active {
    background: var(--prp-primary);
    color: var(--prp-white);
    box-shadow: var(--prp-shadow-hover);
}

@media (max-width: 600px) {
    /* Mobile: stack icon above the label so the text is centered and never truncated */
    .prp-date-filter {
        flex-direction: column;
        padding: 7px 2px;
        gap: 3px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .prp-date-filter .prp-date-filter-icon {
        width: calc(var(--prp-date-icon-size) * 1);
        height: calc(var(--prp-date-icon-size) * 1);
        border-radius: 50%;
    }
    .prp-date-filter .prp-date-filter-icon img {
        width: calc(var(--prp-date-icon-inner) * 1);
        height: calc(var(--prp-date-icon-inner) * 1);
    }
    .prp-date-filter-label {
        font-size: 12px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        line-height: 1.1;
        text-align: center;
    }
    .prp-date-filter .prp-date-filter-icon {
        margin-right: 0px;
        flex: 0 0 auto;
    }
    .prp-date-filters-buttons {
        grid-auto-rows: auto;
    }

    /* Mobile: switch date filters to compact preset for more label space */
    .prp-date-filters {
        --prp-date-icon-size: 20px;
        --prp-date-icon-inner: 12px;
        --prp-date-label-maxwidth: 100%;
    }
}

/* Preset classes to preview different icon sizes:
   - Add `prp-date-presets-compact` to `.prp-date-filters` for smaller icons
   - Add `prp-date-presets-standard` to use the default values
   - Add `prp-date-presets-wide` for larger icons
   Toggle these in browser devtools to preview quickly. */
.prp-date-presets-compact {
    --prp-date-icon-size: 20px;
    --prp-date-icon-inner: 12px;
    --prp-date-label-maxwidth: calc(100% - 36px);
}
.prp-date-presets-standard {
    --prp-date-icon-size: 28px;
    --prp-date-icon-inner: 14px;
    --prp-date-label-maxwidth: calc(100% - 44px);
}
.prp-date-presets-wide {
    --prp-date-icon-size: 34px;
    --prp-date-icon-inner: 18px;
    --prp-date-label-maxwidth: calc(100% - 52px);
}
/* Status filter buttons with icons */
.prp-feed-filter-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}
.prp-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.prp-filter-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: none;
}
.prp-filter-label {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}
.prp-feed-filter-link.active .prp-filter-icon {
    background: rgba(255, 255, 255, 0.96);
}
.prp-feed-filter-link.active .prp-filter-icon img {
    filter: none;
}

/* Soothing pastel backgrounds per status for non-active state */
.prp-feed-filter[data-status="missing"] .prp-filter-icon {
    background: linear-gradient(135deg, #ffe9e9, #ffd6d6);
}
.prp-feed-filter[data-status="found"] .prp-filter-icon {
    background: linear-gradient(135deg, #fff4e6, #ffe6cc);
}
.prp-feed-filter[data-status="relocation"] .prp-filter-icon {
    background: linear-gradient(135deg, #eef6fb, #dfeef8);
}
.prp-feed-filter[data-status="adoption"] .prp-filter-icon {
    background: linear-gradient(135deg, #eafaf0, #d6f4de);
}

/* Ensure icon image stays visible on pastel badges */
.prp-feed-filter .prp-filter-icon img {
    filter: none;
    opacity: 1;
}

/* --- Search --- */
.prp-search-filters {
    background: var(--prp-white);
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

/* Search Button Rows */
.prp-search-btn-row {
    margin-bottom: 14px;
}
.prp-search-row-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--prp-text-light);
}
.prp-search-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.prp-search-btn-group-combo {
    flex: 1;
    min-width: 140px;
}

/* Search Filter Buttons */
.prp-sbtn {
    display: inline-block;
    padding: 7px 16px;
    border: 2px solid var(--prp-border);
    border-radius: 20px;
    background: var(--prp-white);
    color: var(--prp-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--prp-transition);
    line-height: 1.4;
}
.prp-sbtn:hover {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-sbtn.active {
    border-color: var(--prp-primary);
    background: var(--prp-primary);
    color: var(--prp-white);
}

/* Search Radio Button Labels (styled like pill buttons) */
.prp-rbtn {
    display: inline-block;
    padding: 7px 16px;
    border: 2px solid var(--prp-border);
    border-radius: 20px;
    background: var(--prp-white);
    color: var(--prp-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--prp-transition);
    line-height: 1.4;
    user-select: none;
}
.prp-rbtn:hover {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-rbtn input[type="radio"] {
    display: none;
}
.prp-rbtn.active,
.prp-rbtn:has(input:checked) {
    border-color: var(--prp-primary);
    background: var(--prp-primary);
    color: var(--prp-white);
}
.prp-rbtn span {
    pointer-events: none;
}

/* Advanced Filters Toggle & Panel */
#prp-adv-toggle {
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
}
.prp-search-advanced {
    padding: 16px;
    margin-bottom: 12px;
    background: var(--prp-bg);
    border-radius: var(--prp-radius);
    border: 1px solid var(--prp-border);
}

/* Standard filter row for advanced dropdowns */
.prp-filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.prp-filter-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--prp-text-light);
}
.prp-filter-checkbox {
    display: flex;
    align-items: flex-end;
}
.prp-filter-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0;
}
.prp-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.prp-search-count {
    font-size: 13px;
    color: var(--prp-text-light);
    margin-left: auto;
}
.prp-search-loading {
    text-align: center;
    padding: 40px;
    color: var(--prp-text-light);
}
.prp-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--prp-text-light);
}

/* --- Pagination --- */
.prp-pagination {
    text-align: center;
    padding: 20px 0;
}
.prp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: var(--prp-white);
    border: 1px solid var(--prp-border);
    border-radius: var(--prp-radius);
    color: var(--prp-primary);
    text-decoration: none;
    transition: all var(--prp-transition);
}
.prp-pagination .page-numbers.current {
    background: var(--prp-primary);
    color: var(--prp-white);
    border-color: var(--prp-primary);
}
.prp-pagination .page-numbers:hover:not(.current) {
    background: var(--prp-bg);
}

/* --- Dashboard --- */
.prp-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.prp-dashboard-scope-form {
    margin-bottom: 12px;
}
.prp-dashboard-scope-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--prp-border);
    border-radius: 999px;
    background: var(--prp-bg);
}
.prp-dashboard-scope-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--prp-text-light);
    cursor: pointer;
    transition: all var(--prp-transition);
}
.prp-dashboard-scope-options input[type="radio"] {
    accent-color: var(--prp-primary);
    margin: 0;
}
.prp-dashboard-scope-options label:has(input:checked) {
    background: var(--prp-primary);
    color: var(--prp-white);
}
.prp-tab {
    padding: 7px 12px;
    border-radius: var(--prp-radius);
    text-decoration: none;
    color: var(--prp-text);
    font-size: 13px;
    line-height: 1.2;
    transition: all var(--prp-transition);
    white-space: nowrap;
}
.prp-tab:hover {
    background: var(--prp-bg);
}
.prp-tab.active {
    background: var(--prp-primary);
    color: var(--prp-white);
}

.prp-dashboard-content {
    background: var(--prp-white);
    border-radius: var(--prp-radius);
    box-shadow: var(--prp-shadow);
    padding: 20px;
}

.prp-dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prp-dashboard-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}
.prp-dashboard-table th,
.prp-dashboard-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--prp-border);
    font-size: 14px;
}
.prp-dashboard-table th {
    background: var(--prp-bg);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--prp-text-light);
}
.prp-dashboard-table tr:hover td {
    background: rgba(74,144,217,0.03);
}
.prp-thumb-sm {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}
.prp-no-thumb {
    font-size: 24px;
}
.prp-status-badge-sm {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--prp-bg);
}
.prp-resolved-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: var(--prp-success);
    color: white;
}

/* --- Sortable Dashboard Table Headers --- */
.prp-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 22px !important;
    transition: background-color 0.15s ease;
}
.prp-sortable:hover {
    background: rgba(74, 144, 217, 0.08);
}
.prp-sortable .prp-sort-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
    transition: opacity 0.15s ease;
}
.prp-sortable:hover .prp-sort-arrow {
    opacity: 0.6;
}
.prp-sortable.prp-sort-active .prp-sort-arrow {
    opacity: 1;
}
/* Ascending arrow (pointing up) */
.prp-sortable.prp-sort-asc .prp-sort-arrow {
    border-bottom: 5px solid var(--prp-primary);
    border-top: none;
}
/* Descending arrow (pointing down) */
.prp-sortable.prp-sort-desc .prp-sort-arrow {
    border-top: 5px solid var(--prp-primary);
    border-bottom: none;
}
.prp-nosort {
    cursor: default;
}
.prp-dashboard-table th.prp-sortable:focus-visible {
    outline: 2px solid var(--prp-primary);
    outline-offset: -2px;
}

/* --- Single Listing Detail --- */
.prp-detail-grid {
    display: grid;
    gap: 20px;
}
.prp-info-table {
    width: 100%;
    border-collapse: collapse;
}
.prp-info-table th,
.prp-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--prp-border);
    font-size: 14px;
}
.prp-info-table th {
    width: 40%;
    color: var(--prp-text-light);
    font-weight: 600;
    text-align: left;
}
.prp-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px;
    border-radius: 20px;
    font-size: 12px;
}
.prp-tag-green {
    background: #d4edda;
    color: #155724;
}

/* --- Single Listing: Top Row (Share + Reward) --- */
.prp-listing-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}
.prp-listing-top .prp-social-share {
    margin: 0;
    flex: 1 1 auto;
}
.prp-listing-top .prp-detail-reward {
    margin: 0;
    flex: 0 0 auto;
}

/* --- Listing Detail: Summary, Attribute Cards, More Info, Contact --- */
.prp-listing-summary {
    margin: 0;
}
.prp-summary-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--prp-text);
    margin: 0 0 6px;
}
.prp-summary-location {
    font-size: 14px;
    font-weight: 500;
    color: var(--prp-text-light);
    margin: 0 0 18px;
}
.prp-attr-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 24px;
}
.prp-attr-card {
    background: var(--prp-white);
    border: 1px solid var(--prp-border);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--prp-shadow);
}
/* Different light backgrounds per attribute card */
.prp-attr-card-color { background: #ffeef0; border-color: #f5c6cb; }
.prp-attr-card-age   { background: #eef5ff; border-color: #b8d4f0; }
.prp-attr-card-size  { background: #eefbe9; border-color: #c3e6cb; }
.prp-attr-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--prp-text-light);
    margin-bottom: 6px;
}
.prp-attr-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--prp-text);
}

/* --- More Info --- */
.prp-more-info {
    margin: 0 0 24px;
}
.prp-more-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--prp-text);
    margin: 0 0 12px;
}
.prp-more-item {
    margin: 0 0 12px;
}
.prp-more-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--prp-text-light);
    margin-bottom: 2px;
}
.prp-more-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--prp-text);
}

/* --- Contact cards --- */
.prp-contact-section {
    margin: 0 0 20px;
}
.prp-contact-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--prp-text);
    margin: 0 0 12px;
}
.prp-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.prp-contact-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prp-contact-card:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.prp-contact-card .prp-contact-icon {
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}
.prp-contact-card-call { background: #4CAF50; }
.prp-contact-card-whatsapp { background: #25D366; }
.prp-contact-card-email { background: #1877F2; }
.prp-contact-section > p {
    font-size: 14px;
    color: var(--prp-text-light);
}

/* Compact share buttons + stacked cards on small screens */
@media (max-width: 600px) {
    .prp-listing-top {
        gap: 12px;
        align-items: center;
    }
    /* Social share: 2 rows of 2 compact buttons, on the left */
    .prp-listing-top .prp-social-share {
        display: grid;
        grid-template-columns: repeat(2, 40px);
        grid-auto-rows: 40px;
        gap: 8px;
        margin: 0;
        flex: 0 0 auto;
    }
    .prp-listing-top .prp-social-share-label {
        display: none;
    }
    .prp-listing-top .prp-social-share .prp-social-share-link {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
    .prp-listing-top .prp-social-share .prp-social-share-link-label {
        display: none;
    }
    /* Reward box stays on the right of the same row */
    .prp-listing-top .prp-detail-reward {
        margin: 0;
        margin-left: auto;
        flex: 0 0 auto;
        padding: 12px 18px;
        text-align: center;
    }
    .prp-listing-top .prp-reward-amount {
        font-size: 24px;
    }
}
@media (max-width: 480px) {
    /* Attribute cards stay in one row, more compact */
    .prp-attr-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .prp-attr-card {
        padding: 10px 6px;
    }
    .prp-attr-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .prp-attr-value {
        font-size: 13px;
    }
    /* Contact cards stay in one row, more compact */
    .prp-contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .prp-contact-card {
        padding: 12px 8px;
        font-size: 13px;
        flex-direction: column;
        gap: 6px;
    }
    .prp-contact-card .prp-contact-icon {
        font-size: 18px;
    }
}

/* --- Image Gallery with Swipe --- */
.prp-detail-gallery-section {
    margin-bottom: 20px;
}
.prp-gallery-main-wrapper {
    position: relative;
    margin-bottom: 10px;
}
.prp-gallery-main {
    position: relative;
    background: #000;
    border-radius: var(--prp-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
}
.prp-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.prp-gallery-slide {
    min-width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}
.prp-gallery-slide.active {
    display: flex;
}
.prp-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.prp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.prp-gallery-nav:hover {
    background: rgba(0,0,0,0.8);
}
.prp-gallery-prev {
    left: 10px;
}
.prp-gallery-next {
    right: 10px;
}
.prp-gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 2;
}
.prp-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}
.prp-gallery-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.prp-gallery-thumb.active {
    opacity: 1;
    border-color: var(--prp-primary);
}
.prp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Lightbox --- */
.prp-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}
.prp-lightbox.active {
    display: flex;
}
.prp-lightbox-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
}
.prp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.prp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.prp-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}
.prp-lightbox-prev {
    left: 20px;
}
.prp-lightbox-next {
    right: 20px;
}
.prp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 6px 14px;
    border-radius: 16px;
}

/* --- Dashboard Gallery Badge --- */
.prp-dash-gallery {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
}
.prp-dash-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
}
.prp-dash-gallery-count {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--prp-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.4;
    z-index: 1;
}

/* --- Detail Page Back Button --- */
.prp-detail-back-wrap {
    margin: 0 0 16px;
}
.prp-back-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .prp-back-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        font-size: 16px;
        line-height: 1;
    }
    .prp-back-btn span:not(.prp-back-icon) {
        display: none;
    }
    .prp-back-btn .prp-back-icon {
        display: inline-block;
        font-size: 18px;
        line-height: 1;
    }
}

/* --- Reward Amount Highlight Card --- */
.prp-detail-reward {
    background: linear-gradient(135deg, #fff9c4, #ffecb3);
    border: 2px solid #fdd835;
    border-radius: var(--prp-radius);
    padding: 20px 24px;
    margin: 0 0 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(253, 216, 53, 0.32);
}
.prp-reward-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #f57f17;
}
.prp-reward-amount {
    font-size: 30px;
    font-weight: 900;
    color: #e65100;
    line-height: 1.2;
}

/* --- Social Share Bar --- */
.prp-social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 18px;
}
.prp-social-share-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--prp-text-light);
}
.prp-social-share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--prp-border);
    color: var(--prp-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prp-social-share-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.prp-social-share-whatsapp .prp-social-share-icon {
    width: 28px;
    height: 28px;
}
.prp-social-share-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.prp-social-share-whatsapp {
    color: #25D366;
}
.prp-social-share-facebook {
    color: #1877F2;
}
.prp-social-share-instagram {
    color: #C13584;
}
.prp-social-share-twitter {
    color: #000000;
}

/* --- Matches Section --- */
.prp-matches-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--prp-border);
}
.prp-matches-desc {
    color: var(--prp-text-light);
}
.prp-match-score {
    text-align: center;
    font-size: 13px;
    color: var(--prp-success);
    font-weight: 600;
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .prp-form-row,
    .prp-filter-row {
        grid-template-columns: 1fr;
    }
    /* Status filter buttons fit in one row on mobile */
    .prp-feed-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px;
        gap: 4px;
    }
    .prp-feed-filters .prp-feed-filter {
        flex: 1 0 auto;
        white-space: nowrap;
        padding: 7px 10px;
        font-size: 13px;
    }
    /* Date filter buttons fit in one row on mobile */
    .prp-date-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 8px;
        gap: 6px;
    }
    .prp-date-filters-label {
        flex: 0 0 auto;
    }
    .prp-date-filters-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
    }
    .prp-date-filters-buttons .prp-feed-filter {
        flex: 1 0 auto;
        white-space: nowrap;
        padding: 7px 0px;
        font-size: 13px;
    }
    .prp-feed { grid-template-columns: 1fr; }
    .prp-feed-cols-2,
    .prp-feed-cols-3,
    .prp-feed-cols-4 { grid-template-columns: 1fr; }
    .prp-status-grid { grid-template-columns: repeat(2, 1fr); }
    /* Pet type quick-select cards stay in one single row on mobile */
    .prp-pettype-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .prp-pettype-card { padding: 12px 8px; }
    .prp-steps-indicator { font-size: 10px; }
    .prp-step-dot { font-size: 10px; padding: 3px 6px; }
    .prp-wizard-form {
        padding: 20px 15px calc(90px + env(safe-area-inset-bottom, 0px));
    }
    .prp-dashboard-content { padding: 16px; }
    .prp-dashboard-table-wrap {
        margin: 0 -4px;
        padding: 0 4px;
    }
    .prp-dashboard-table {
        min-width: 0;
        display: block;
        border-collapse: separate;
        border-spacing: 0 10px;
        font-size: 13px;
    }
    .prp-dashboard-table thead { display: none; }
    .prp-dashboard-table tbody { display: block; }
    .prp-dashboard-table tr {
        display: block;
        background: var(--prp-white);
        border: 1px solid var(--prp-border);
        border-radius: var(--prp-radius);
        padding: 12px;
        box-shadow: var(--prp-shadow);
        margin-bottom: 12px;
    }
    .prp-dashboard-table th,
    .prp-dashboard-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        padding: 6px 0;
        border-bottom: none;
    }
    .prp-dashboard-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--prp-text-light);
        flex: 0 0 92px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }
    .prp-dashboard-table td.prp-table-thumb {
        display: block;
        padding-bottom: 10px;
    }
    .prp-dashboard-table td.prp-table-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .prp-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .prp-gallery-main { aspect-ratio: 4/3; }
    .prp-lightbox-nav { width: 40px; height: 40px; font-size: 22px; }

    /* Site-wide top navigation overlay: hidden by default, shown via injectOverlay JS */
}

@media (max-width: 480px) {
    .prp-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .prp-status-card { padding: 10px 6px; }
    .prp-status-icon {
        font-size: 28px;
        margin-bottom: 4px;
    }
    .prp-status-label { font-size: 14px; }
    .prp-status-desc {
        font-size: 11px;
        margin-top: 2px;
    }
    .prp-checkbox-grid { grid-template-columns: 1fr; }
    .prp-dashboard-nav {
        gap: 6px;
        margin-bottom: 12px;
    }
    .prp-tab {
        padding: 6px 9px;
        font-size: 12px;
    }
    .prp-dashboard-content { padding: 12px; }
    .prp-dashboard-table tr { padding: 10px; }
    .prp-dashboard-table td::before { flex-basis: 78px; }
    .prp-dashboard-table th,
    .prp-dashboard-table td { padding: 5px 0; font-size: 12px; }
    .prp-gallery-thumb { flex: 0 0 50px; width: 50px; height: 36px; }
}

/* --- Admin Cards --- */
.prp-admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.prp-admin-card {
    background: var(--prp-white);
    border: 1px solid var(--prp-border);
    border-radius: var(--prp-radius);
    padding: 20px;
}
.prp-admin-card h2,
.prp-admin-card h3 {
    margin-top: 0;
}

/* --- Notices --- */
.prp-notice {
    background: var(--prp-bg);
    border-left: 4px solid var(--prp-primary);
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* --- Dashboard Settings Tab --- */
.prp-dashboard-settings {
    max-width: 800px;
}
.prp-settings-desc {
    color: var(--prp-text-light);
    margin-bottom: 24px;
    font-size: 14px;
}
.prp-settings-form .prp-settings-section {
    background: var(--prp-bg);
    border: 1px solid var(--prp-border);
    border-radius: var(--prp-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.prp-settings-form .prp-settings-section h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--prp-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--prp-border);
}
.prp-settings-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.prp-settings-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--prp-border);
    border-radius: var(--prp-radius);
    cursor: pointer;
    transition: all var(--prp-transition);
    font-size: 13px;
}
.prp-settings-radio:has(input:checked) {
    border-color: var(--prp-primary);
    background: rgba(74,144,217,0.05);
}
.prp-settings-radio input[type="radio"] {
    accent-color: var(--prp-primary);
}
.prp-range-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--prp-primary);
    min-width: 40px;
}
.prp-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.prp-color-picker-wrap label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--prp-text-light);
    margin-bottom: 4px;
}
.prp-color-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.prp-color-input-group input[type="color"] {
    width: 40px;
    height: 36px;
    border: 1px solid var(--prp-border);
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    background: none;
}
.prp-color-hex {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--prp-border);
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    text-transform: uppercase;
}
.prp-settings-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}
.prp-settings-message {
    padding: 8px 14px;
    border-radius: var(--prp-radius);
    font-size: 13px;
    display: none;
}
    .prp-listing-top .prp-social-share .prp-social-share-whatsapp .prp-social-share-icon {
        width: 32px;
        height: 32px;
    }
.prp-settings-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.prp-settings-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.prp-btn-save-settings {
    background: var(--prp-primary);
    color: var(--prp-white);
    font-size: 15px;
    padding: 12px 28px;
}
.prp-btn-save-settings:hover {
    background: var(--prp-primary-dark);
    transform: translateY(-1px);
}
.prp-btn-save-settings:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .prp-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prp-settings-radio {
        flex: 1;
        min-width: 120px;
    }
}

/* --- Leadership Board --- */
.prp-leaderboard-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--prp-border);
}
.prp-leaderboard-section h3 {
    font-size: 18px;
    margin: 0 0 12px;
    color: var(--prp-text);
}
.prp-lb-points {
    font-size: 24px;
    font-weight: 800;
    color: var(--prp-primary);
}
.prp-lb-rank {
    font-size: 16px;
    font-weight: 700;
    color: var(--prp-success);
    background: #e8f5e9;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.prp-lb-top {
    margin-top: 20px;
}
.prp-lb-top h4 {
    font-size: 15px;
    margin: 0 0 10px;
    color: var(--prp-text-light);
}
.prp-lb-list {
    margin: 0;
    padding: 0;
    list-style: decimal inside;
}
.prp-lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--prp-border);
    font-size: 14px;
}
.prp-lb-item:last-child {
    border-bottom: none;
}
.prp-lb-current-user {
    background: rgba(74, 144, 217, 0.08);
    border-radius: 6px;
    font-weight: 700;
}
.prp-lb-name {
    color: var(--prp-text);
}
.prp-lb-current-user .prp-lb-name {
    color: var(--prp-primary);
}
.prp-lb-score {
    font-weight: 600;
    color: var(--prp-text-light);
}
