/* ─── Shelterluv Pets Plugin Styles ───────────────────────────────────────── */

/* Grid: 4 columns desktop → 2 tablet → 1 mobile */
.slp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0 40px;
    padding: 0;
    list-style: none;
    clear: both;
}

@media (max-width: 1024px) {
    .slp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .slp-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card ── */
.slp-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	font-family: "Montserrat", Sans-serif;
}

.slp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* ── Link (wraps the whole card) ── */
.slp-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Image wrapper ── */
.slp-card__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 square */
    background: #f0f0f0;
    overflow: hidden;
}

.slp-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slp-card:hover .slp-card__img {
    transform: scale(1.05);
}

/* Placeholder when no photo */
.slp-card__img--placeholder {
    position: absolute;
    inset: 0;
    background: #e8e8e8
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23bbb'%3E%3Cpath d='M32 8a24 24 0 1 0 0 48A24 24 0 0 0 32 8zm0 44a20 20 0 1 1 0-40 20 20 0 0 1 0 40z'/%3E%3Ccircle cx='24' cy='28' r='3'/%3E%3Ccircle cx='40' cy='28' r='3'/%3E%3Cpath d='M21 38c2 4 20 4 22 0'/%3E%3C/svg%3E")
        center/40% no-repeat;
}

/* ── Status badge ── */
.slp-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
	font-family: "Montserrat", Sans-serif;
}

.slp-badge--available {
    background: #2d9e4e;
    color: #fff;
}

.slp-badge--foster {
    background: #e07b00;
    color: #fff;
}

/* ── Card info (name + breed) ── */
.slp-card__info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slp-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	font-family: "Montserrat", Sans-serif;
}

.slp-card__breed {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	font-family: "Montserrat", Sans-serif;
}

/* ── Optional heading ── */
.slp-heading {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #1a1a1a;
	font-family: "Montserrat", Sans-serif;
}

/* ── Empty state ── */
.slp-no-animals {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

/* ─── Profile Page Styles ──────────────────────────────────────────────────── */

/* Cover photo */
.slp-profile-cover {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Photo gallery */
.slp-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.slp-photo-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slp-photo-thumb:hover img {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Attributes / tags */
.slp-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.slp-attribute {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Adoption fee */
.slp-fee-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
}

.slp-fee-discounted {
    color: #2d9e4e;
    font-weight: 700;
}

/* Apply button */
.slp-apply-btn {
    display: inline-block;
    background: #2760AF;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.slp-apply-btn:hover {
    color: #fff;
    text-decoration: none;
}
