/**
 * Petsity Pet Profile - Refined Styles
 * Petsity branding: #E75301 (orange), Recoleta font
 * v5 - Improved spacing, font harmony, responsive, alignment
 */

/* ============================================
   BASE VARIABLES & RESETS
   ============================================ */
:root {
    --ppp-primary: #E75301;
    --ppp-primary-light: #fff3ed;
    --ppp-primary-hover: #d14a00;
    --ppp-text: #333333;
    --ppp-text-light: #666666;
    --ppp-text-muted: #999999;
    --ppp-border: #e0e0e0;
    --ppp-border-light: #f0f0f0;
    --ppp-bg-light: #f8f8f8;
    --ppp-bg-white: #ffffff;
    --ppp-success: #4CAF50;
    --ppp-danger: #e53935;
    --ppp-radius: 8px;
    --ppp-radius-lg: 12px;
    --ppp-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ppp-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --ppp-transition: all 0.2s ease;
}

.ppp-my-pets-wrap *,
.ppp-profile-pets-section *,
.ppp-modal-overlay *,
.ppp-customer-profile-page * {
    box-sizing: border-box;
}

/* ============================================
   MY PETS PAGE (Sidebar Content)
   ============================================ */
.ppp-my-pets-wrap {
    max-width: 900px;
}

.ppp-pets-header {
    margin-bottom: 16px;
}

.ppp-pets-header h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0 0 4px;
    font-family: 'Recoleta', serif;
}

.ppp-pets-subtitle {
    color: var(--ppp-text-light);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.5;
}

/* No Pets Checkbox */
.ppp-no-pets-option {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--ppp-bg-light);
    border-radius: var(--ppp-radius);
    border: 1px solid var(--ppp-border-light);
}

.ppp-no-pets-option .ppp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ppp-text);
}

.ppp-no-pets-option input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ppp-no-pets-option input[type="checkbox"]:checked {
    background: var(--ppp-primary);
    border-color: var(--ppp-primary);
}

.ppp-no-pets-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ppp-no-pets-option input[type="checkbox"]:hover {
    border-color: var(--ppp-primary);
}

.ppp-no-pets-option input[type="checkbox"]:focus {
    outline: 2px solid rgba(231, 83, 1, 0.25);
    outline-offset: 2px;
}

/* Pet List */
.ppp-pet-list {
    margin-bottom: 12px;
}

.ppp-pet-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--ppp-border);
    border-radius: var(--ppp-radius);
    margin-bottom: 8px;
    background: var(--ppp-bg-white);
    transition: var(--ppp-transition);
}

.ppp-pet-item:hover {
    border-color: var(--ppp-primary);
    box-shadow: var(--ppp-shadow);
}

.ppp-pet-item-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

.ppp-pet-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppp-pet-item-info {
    flex: 1;
    min-width: 0;
}

.ppp-pet-item-name {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ppp-text);
    margin-bottom: 1px;
}

.ppp-pet-item-breed {
    display: block;
    font-size: 12.5px;
    color: var(--ppp-text-light);
}

.ppp-pet-item-details {
    display: block;
    font-size: 12.5px;
    color: var(--ppp-text-muted);
}

.ppp-pet-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.ppp-pet-item-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ppp-border);
    border-radius: 50%;
    background: var(--ppp-bg-white);
    color: var(--ppp-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ppp-transition);
    font-size: 13px;
    padding: 0;
}

.ppp-edit-pet-btn:hover {
    border-color: var(--ppp-primary);
    color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

.ppp-delete-pet-btn:hover {
    border-color: var(--ppp-danger);
    color: var(--ppp-danger);
    background: #fef2f2;
}

/* No Pets Message */
.ppp-no-pets-message {
    text-align: center;
    padding: 24px 16px;
    color: var(--ppp-text-muted);
}

.ppp-no-pets-message .ppp-paw-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.4;
}

.ppp-no-pets-message p {
    margin: 0;
    font-size: 13.5px;
}

/* Add Pet Button */
.ppp-add-pet-wrap {
    margin-top: 6px;
}

.ppp-add-pet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--ppp-border);
    border-radius: 50px;
    background: transparent;
    color: var(--ppp-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ppp-transition);
}

.ppp-add-pet-btn:hover {
    border-color: var(--ppp-primary);
    color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

.ppp-plus-icon {
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

/* ============================================
   PET FORM
   ============================================ */
.ppp-pet-form-wrap {
    margin-top: 16px;
}

.ppp-pet-form {
    background: var(--ppp-bg-light);
    border: 1px solid var(--ppp-border);
    border-radius: var(--ppp-radius-lg);
    overflow: hidden;
}

/* ---- FORM HEADER ---- */
.ppp-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--ppp-border-light);
    background: linear-gradient(135deg, #fdf8f5 0%, #fff 100%);
}

.ppp-form-header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ppp-form-header h5 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--ppp-text);
    font-family: 'Recoleta', serif;
}

.ppp-form-header-sub {
    font-size: 12.5px;
    color: var(--ppp-text-muted);
    margin: 0;
}

.ppp-form-cancel-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ppp-border);
    background: var(--ppp-bg-white);
    color: var(--ppp-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--ppp-transition);
    flex-shrink: 0;
    padding: 0;
}

.ppp-form-cancel-btn:hover {
    background: var(--ppp-border-light);
    color: var(--ppp-text);
    border-color: var(--ppp-text-muted);
}

.ppp-form-cancel-btn svg {
    width: 16px;
    height: 16px;
}

/* ---- PHOTO UPLOAD ---- */
.ppp-photo-upload-section {
    display: flex;
    justify-content: center;
    padding: 22px 20px 12px !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.ppp-profile-photo-wrap {
    cursor: pointer;
    text-align: center;
}

.ppp-profile-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--ppp-primary-light);
    border: 2.5px solid var(--ppp-border);
    transition: var(--ppp-transition);
    margin: 0 auto;
}

.ppp-profile-photo-preview:hover {
    border-color: var(--ppp-primary);
    box-shadow: 0 0 0 3px rgba(231, 83, 1, 0.1);
}

.ppp-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppp-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    transition: var(--ppp-transition);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
}

.ppp-photo-overlay svg {
    width: 20px;
    height: 20px;
}

.ppp-profile-photo-preview:hover .ppp-photo-overlay {
    opacity: 1;
}

.ppp-profile-photo-preview.ppp-uploading .ppp-photo-overlay {
    opacity: 1;
}

.ppp-profile-photo-preview.ppp-uploading .ppp-photo-overlay svg,
.ppp-profile-photo-preview.ppp-uploading .ppp-photo-overlay span {
    visibility: hidden;
}

.ppp-profile-photo-preview.ppp-uploading .ppp-photo-overlay::after {
    content: '';
    visibility: visible;
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ppp-photo-spin 0.8s linear infinite;
}

@keyframes ppp-photo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- FORM CARD SECTIONS ---- */
.ppp-form-card {
    background: var(--ppp-bg-white) !important;
    border: 1px solid var(--ppp-border) !important;
    border-radius: var(--ppp-radius) !important;
    margin: 0 16px 14px !important;
    padding: 20px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.ppp-form-card:last-of-type {
    margin-bottom: 0 !important;
}

/* Section header with icon badge */
.ppp-section-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ppp-border-light);
}

.ppp-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ppp-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ppp-primary);
}

.ppp-section-icon svg {
    width: 16px;
    height: 16px;
}

.ppp-section-icon-care {
    background: #fef2f2;
    color: #e53935;
}

.ppp-section-icon-health {
    background: #f0fdf4;
    color: #16a34a;
}

.ppp-section-icon-photos {
    background: #eff6ff;
    color: #2563eb;
}

.ppp-section-icon-details {
    background: #fefce8;
    color: #ca8a04;
}

.ppp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0 0 2px;
    display: block;
    font-family: 'Recoleta', serif;
}

.ppp-section-title svg {
    display: none;
}

.ppp-section-desc {
    font-size: 13px;
    color: var(--ppp-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ---- FORM GROUPS ---- */
.ppp-form-group {
    margin-bottom: 22px;
}

.ppp-form-group:last-child {
    margin-bottom: 0;
}

.ppp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ppp-text);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.ppp-label .required {
    color: var(--ppp-danger);
}

/* ---- INPUTS ---- */
.ppp-input,
.ppp-select,
.ppp-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--ppp-border);
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--ppp-text);
    background: var(--ppp-bg-white);
    transition: var(--ppp-transition);
    font-family: inherit;
    outline: none;
}

.ppp-input::placeholder,
.ppp-textarea::placeholder {
    color: #b5b5b5;
    font-size: 13px;
}

.ppp-input:focus,
.ppp-select:focus,
.ppp-textarea:focus {
    border-color: var(--ppp-primary);
    box-shadow: 0 0 0 3px rgba(231, 83, 1, 0.08);
}

.ppp-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

.ppp-select {
    appearance: auto;
    cursor: pointer;
}

/* ---- FORM ROWS ---- */
.ppp-form-row {
    display: flex;
    gap: 12px;
}

.ppp-form-row-2>.ppp-form-group {
    flex: 1;
}

.ppp-form-row-3>.ppp-form-group {
    flex: 1;
}

.ppp-form-row-4>.ppp-form-group {
    flex: 1;
}

#ppp-breed-group {
    max-width: 50%;
}

.ppp-breed-other-wrap {
    margin-top: 8px;
}

.ppp-breed-other-hint {
    margin: 6px 0 0;
}

/* ---- BREED SELECT2 (searchable, mobile-friendly breed picker) ---- */
#ppp-breed-group .select2-container {
    width: 100% !important;
}

#ppp-breed-group .select2-container--default .select2-selection--single {
    height: auto;
    padding: 10px 13px;
    border: 1.5px solid var(--ppp-border);
    border-radius: 6px;
    background: var(--ppp-bg-white);
    transition: var(--ppp-transition);
}

#ppp-breed-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    padding-right: 18px;
    line-height: normal;
    font-size: 13.5px;
    color: var(--ppp-text);
}

#ppp-breed-group .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #b5b5b5;
}

#ppp-breed-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 8px;
}

#ppp-breed-group .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ppp-primary);
    box-shadow: 0 0 0 3px rgba(231, 83, 1, 0.08);
}

.select2-dropdown {
    border-color: var(--ppp-border);
    border-radius: 6px;
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 8px 10px;
    border: 1.5px solid var(--ppp-border);
    border-radius: 6px;
    font-size: 13.5px;
    outline: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--ppp-primary);
}

.ppp-sex-group {
    flex: 2 !important;
}

/* ---- TOGGLE BUTTONS (Male/Female) ---- */
.ppp-toggle-group {
    display: flex;
    gap: 6px;
}

.ppp-toggle-btn {
    flex: 1;
    cursor: pointer;
}

.ppp-toggle-btn input {
    display: none;
}

.ppp-toggle-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    padding: 8px 12px;
    border: 1.5px solid var(--ppp-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ppp-text);
    transition: var(--ppp-transition);
    font-weight: 500;
    background: var(--ppp-bg-white);
}

.ppp-toggle-btn span svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: var(--ppp-transition);
}

.ppp-toggle-btn input:checked+span {
    background: var(--ppp-primary);
    color: #fff;
    border-color: var(--ppp-primary);
    box-shadow: 0 2px 6px rgba(231, 83, 1, 0.25);
}

.ppp-toggle-btn input:checked+span svg {
    opacity: 1;
    stroke: #fff;
}

.ppp-toggle-btn:hover span {
    border-color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

/* ---- PET TYPE SELECTOR ---- */
.ppp-pet-type-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ppp-type-option {
    cursor: pointer;
    text-align: center;
    flex: 0 0 auto;
    min-width: 80px;
}

.ppp-type-option input {
    display: none;
}

.ppp-type-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 6px;
    border: 2px solid var(--ppp-border);
    border-radius: var(--ppp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ppp-transition);
    background: var(--ppp-bg-white);
    padding: 10px;
}

.ppp-type-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.45;
    transition: var(--ppp-transition);
    filter: grayscale(100%);
}

.ppp-type-option span {
    font-size: 12.5px;
    color: var(--ppp-text-muted);
    transition: var(--ppp-transition);
    font-weight: 500;
}

/* Active / checked state */
.ppp-type-option.active .ppp-type-icon,
.ppp-type-option input:checked~.ppp-type-icon {
    border-color: var(--ppp-primary);
    background: var(--ppp-primary-light);
    box-shadow: 0 0 0 3px rgba(231, 83, 1, 0.08);
}

.ppp-type-option.active .ppp-type-img,
.ppp-type-option input:checked~.ppp-type-icon .ppp-type-img {
    opacity: 1;
    filter: grayscale(0%);
}

.ppp-type-option.active span,
.ppp-type-option input:checked~span {
    color: var(--ppp-primary);
    font-weight: 700;
}

.ppp-type-option:hover .ppp-type-icon {
    border-color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

.ppp-type-option:hover .ppp-type-img {
    opacity: 0.8;
    filter: grayscale(30%);
}

/* ---- CHIP SELECTORS ---- */
.ppp-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ppp-chip {
    cursor: pointer;
    display: inline-flex;
    margin: 0;
}

.ppp-chip input {
    display: none;
}

.ppp-chip span {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid var(--ppp-border);
    border-radius: 50px;
    font-size: 12.5px;
    color: var(--ppp-text-light);
    transition: var(--ppp-transition);
    white-space: nowrap;
    background: var(--ppp-bg-white);
    font-weight: 450;
    line-height: 1.3;
}

.ppp-chip input:checked+span {
    background: var(--ppp-primary);
    color: #fff;
    border-color: var(--ppp-primary);
    box-shadow: 0 2px 6px rgba(231, 83, 1, 0.2);
    font-weight: 500;
}

.ppp-chip:hover span {
    border-color: var(--ppp-primary);
    color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

/* ---- RADIO/CHECKBOX - Using theme's sf-radio-checkbox classes ---- */
.ppp-pet-form .radio-inline-box {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 22px;
    margin-top: 5px;
}

.ppp-pet-form .radio.sf-radio-checkbox,
.ppp-pet-form .checkbox.sf-radio-checkbox {
    margin-bottom: 2px;
}

/* ---- SPECIAL INSTRUCTION TEXTAREA ---- */
.ppp-special-text {
    margin-top: 8px;
}

.ppp-special-text.ppp-visible {
    display: block !important;
}

/* ---- FIELD HINT ---- */
.ppp-field-hint {
    font-size: 12.5px;
    color: var(--ppp-text-muted);
    margin: 0 0 6px;
    line-height: 1.4;
}

/* ---- GALLERY ---- */
.ppp-gallery-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.ppp-gallery-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ppp-gallery-item {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1.5px solid var(--ppp-border);
}

.ppp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppp-gallery-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    transition: var(--ppp-transition);
    padding: 0;
}

.ppp-gallery-item:hover .ppp-gallery-item-remove {
    opacity: 1;
}

.ppp-gallery-add {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--ppp-border);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: var(--ppp-transition);
    color: var(--ppp-text-muted);
    font-size: 11px;
    background: var(--ppp-bg-light);
}

.ppp-gallery-add:hover {
    border-color: var(--ppp-primary);
    color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

.ppp-gallery-add svg {
    opacity: 0.6;
    width: 20px;
    height: 20px;
}

.ppp-gallery-add:hover svg {
    opacity: 1;
}

.ppp-gallery-add.ppp-uploading {
    pointer-events: none;
    opacity: 0.6;
    border-color: var(--ppp-primary);
    background: var(--ppp-primary-light);
}

.ppp-gallery-add-icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

/* ---- FORM ACTIONS ---- */
.ppp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    background: var(--ppp-bg-light);
    border-top: 1px solid var(--ppp-border-light);
}

.ppp-cancel-btn {
    padding: 9px 24px;
    border: 1.5px solid var(--ppp-border);
    border-radius: 50px;
    background: var(--ppp-bg-white);
    color: var(--ppp-text);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ppp-transition);
}

.ppp-cancel-btn:hover {
    border-color: var(--ppp-text-muted);
    background: var(--ppp-border-light);
}

.ppp-save-btn {
    padding: 9px 30px;
    border: none;
    border-radius: 50px;
    background: var(--ppp-primary);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ppp-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(231, 83, 1, 0.25);
}

.ppp-save-btn:hover {
    background: var(--ppp-primary-hover);
    box-shadow: 0 3px 10px rgba(231, 83, 1, 0.35);
}

.ppp-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   PROFILE PET CARDS (About Section)
   — Harmonized with profile page bio-section
   ============================================ */
.ppp-profile-pets-section {
    margin-top: 0;
    margin-bottom: 25px;
    padding-top: 0;
    border-top: none;
}

.ppp-profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ppp-text);
    margin: 0 0 12px;
    font-family: inherit;
}

.ppp-no-pets-text {
    font-size: 14px;
    color: var(--ppp-text-muted);
    /* font-style: italic; */
}

.ppp-pet-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ppp-pet-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--ppp-bg-white);
    border: 1px solid var(--ppp-border);
    border-radius: var(--ppp-radius);
    cursor: pointer;
    transition: var(--ppp-transition);
    text-decoration: none;
    color: inherit;
}

.ppp-pet-card:hover {
    border-color: var(--ppp-primary);
    box-shadow: var(--ppp-shadow);
    text-decoration: none;
    color: inherit;
}

.ppp-pet-card-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

.ppp-pet-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppp-pet-card-info {
    flex: 1;
    min-width: 0;
}

.ppp-pet-card-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ppp-text);
    margin-bottom: 1px;
}

.ppp-pet-card-breed {
    display: block;
    font-size: 12.5px;
    color: var(--ppp-text-light);
}

.ppp-pet-card-details {
    display: block;
    font-size: 12.5px;
    color: var(--ppp-text-muted);
}

.ppp-pet-card-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    color: var(--ppp-text-muted);
}

.ppp-pet-card-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* ============================================
   PET MODAL
   ============================================ */
.ppp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ppp-modal-overlay.ppp-modal-visible {
    opacity: 1;
}

.ppp-modal-container {
    background: var(--ppp-bg-white);
    border-radius: var(--ppp-radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--ppp-shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ppp-modal-overlay.ppp-modal-visible .ppp-modal-container {
    transform: translateY(0);
}

.ppp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ppp-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: var(--ppp-transition);
    padding: 0;
}

.ppp-modal-close:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ppp-modal-body {
    min-height: 200px;
}

/* Modal Loading */
.ppp-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--ppp-text-muted);
    font-size: 13.5px;
    gap: 8px;
}

/* Modal Pet Content */
.ppp-modal-hero {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    background: var(--ppp-bg-light);
}

.ppp-modal-hero-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.ppp-modal-pet-header {
    text-align: center;
    padding: 18px 20px 8px;
}

.ppp-modal-pet-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 3px;
    font-family: 'Recoleta', serif;
    color: var(--ppp-text);
}

.ppp-modal-pet-breed {
    font-size: 13.5px;
    color: var(--ppp-text-light);
    margin: 0 0 2px;
}

.ppp-modal-pet-meta {
    font-size: 12.5px;
    color: var(--ppp-text-muted);
    margin: 0;
}

/* Modal Sections */
.ppp-modal-section {
    padding: 18px 20px;
    border-top: 1px solid var(--ppp-border-light);
}

.ppp-modal-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Recoleta', serif;
}

.ppp-modal-section-title svg {
    flex-shrink: 0;
    color: var(--ppp-text);
    width: 18px;
    height: 18px;
}

.ppp-modal-about-text {
    font-size: 13.5px;
    color: var(--ppp-text-light);
    line-height: 1.6;
    margin: 0 0 14px;
}

.ppp-modal-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ppp-modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ppp-modal-detail-item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ppp-text);
}

.ppp-modal-detail-item span {
    font-size: 13.5px;
    color: var(--ppp-text-light);
}

/* No Details */
.ppp-modal-no-details {
    text-align: center;
    padding: 20px 14px;
    background: var(--ppp-bg-light);
    border-radius: var(--ppp-radius);
}

.ppp-modal-no-details svg {
    margin-bottom: 4px;
}

.ppp-modal-no-details p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ppp-text-muted);
}

/* Modal Gallery */
.ppp-modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ppp-modal-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.ppp-modal-gallery-item:only-child {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
    max-width: 380px;
}

.ppp-modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ppp-transition);
}

.ppp-modal-gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   CUSTOMER PET PROFILE PAGE
   ============================================ */
.ppp-customer-profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ppp-customer-header {
    margin-bottom: 20px;
}

.ppp-back-link-wrapper {
    margin-bottom: 20px;
    text-align: left;
}

.ppp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ppp-back-link:hover {
    color: #E75301;
    text-decoration: none;
    border-color: #E75301;
    background: #fff7ed;
    transform: translateX(-2px);
}

.ppp-back-link svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ppp-back-link:hover svg {
    transform: translateX(-3px);
}

.ppp-customer-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0;
    font-family: 'Recoleta', serif;
}

/* Customer Info Card */
.ppp-customer-info-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--ppp-bg-white);
    border: 1px solid var(--ppp-border-light);
    border-radius: var(--ppp-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--ppp-shadow);
}

.ppp-customer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 14px;
}

.ppp-customer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppp-customer-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--ppp-text);
}

.ppp-customer-location {
    font-size: 12.5px;
    color: var(--ppp-text-light);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ppp-customer-location svg {
    flex-shrink: 0;
}

.ppp-customer-member-since {
    font-size: 12px;
    color: var(--ppp-text-muted);
    margin: 0;
}

.ppp-customer-reviews-title {
    margin-top: 32px;
}

/* Customer Pet Tabs */
.ppp-customer-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0 0 14px;
    font-family: 'Recoleta', serif;
}

.ppp-customer-pet-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    background: var(--ppp-bg-white);
    border: 1px solid var(--ppp-border-light);
    border-radius: var(--ppp-radius);
    overflow: hidden;
}

.ppp-customer-pet-tab {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--ppp-transition);
}

.ppp-customer-pet-tab:hover,
.ppp-customer-pet-tab.active {
    background: var(--ppp-primary-light);
}

.ppp-customer-pet-tab.active {
    border-left: 3px solid var(--ppp-primary);
}

.ppp-tab-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.ppp-tab-info strong {
    display: block;
    font-size: 13.5px;
    color: var(--ppp-primary);
}

.ppp-tab-info span {
    display: block;
    font-size: 11.5px;
    color: var(--ppp-text-muted);
}

/* Customer Pet Detail Cards */
.ppp-customer-pet-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ppp-customer-pet-detail-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--ppp-bg-white);
    border: 1px solid var(--ppp-border-light);
    border-radius: var(--ppp-radius-lg);
    box-shadow: var(--ppp-shadow);
    cursor: default;
    overflow: hidden;
}

.ppp-customer-pet-photo {
    width: 140px;
    height: 140px;
    border-radius: var(--ppp-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.ppp-customer-pet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppp-customer-pet-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--ppp-text);
    font-family: 'Recoleta', serif;
}

.ppp-customer-pet-breed {
    font-size: 13.5px;
    color: var(--ppp-text-light);
    margin: 0 0 2px;
}

.ppp-customer-pet-meta {
    font-size: 12.5px;
    color: var(--ppp-text-muted);
    margin: 0 0 8px;
}

/* Info Tags */
.ppp-customer-pet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.ppp-info-tag {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--ppp-border);
    border-radius: 50px;
    font-size: 11px;
    color: var(--ppp-text-light);
    background: var(--ppp-bg-light);
}

.ppp-view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: 1px solid var(--ppp-primary);
    border-radius: 50px;
    background: transparent;
    color: var(--ppp-primary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ppp-transition);
}

.ppp-view-details-btn:hover {
    background: var(--ppp-primary);
    color: #fff;
}

/* Customer No Pets */
.ppp-customer-no-pets {
    text-align: center;
    padding: 40px 20px;
    background: var(--ppp-bg-white);
    border: 1px solid var(--ppp-border-light);
    border-radius: var(--ppp-radius-lg);
}

.ppp-no-pets-icon {
    margin-bottom: 10px;
}

.ppp-customer-no-pets p {
    font-size: 14px;
    color: var(--ppp-text-muted);
    margin: 0;
}

/* ============================================
   VIEW PET PROFILE LINK (Bookings / Inbox)
   ============================================ */
.ppp-view-pet-profile-link,
.ppp-view-pet-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid var(--ppp-primary);
    border-radius: 50px;
    color: var(--ppp-primary);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--ppp-transition);
    margin-top: 6px;
}

.ppp-view-pet-profile-link:hover,
.ppp-view-pet-profile-btn:hover {
    background: var(--ppp-primary);
    color: #fff;
    text-decoration: none;
}

.ppp-view-pet-profile-link i,
.ppp-view-pet-profile-btn i {
    font-size: 13px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.ppp-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 40px 14px 14px;
    border-radius: 14px;
    border: 1px solid #e7ded0;
    color: #221d16;
    font-size: 13.5px;
    font-weight: 400;
    z-index: 100000;
    box-shadow: 0 16px 40px -12px rgba(40, 25, 10, 0.22), 0 2px 8px rgba(40, 25, 10, 0.08);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 340px;
    background: #fffdf9;
}

.ppp-toast.ppp-toast-visible {
    transform: translateX(0);
}

.ppp-toast-success,
.ppp-toast-error {
    background: #fffdf9;
}

.ppp-toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG background-image instead of a FontAwesome glyph: crisp at any size and
   trivially centered, no icon-font metrics to fight. */
.ppp-toast-icon:before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ppp-toast-success .ppp-toast-icon {
    background: #e7f6ec;
}

.ppp-toast-success .ppp-toast-icon:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.ppp-toast-error .ppp-toast-icon {
    background: #fbeceb;
}

.ppp-toast-error .ppp-toast-icon:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4362f' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='14'/%3E%3Ccircle cx='12' cy='19' r='1.5' fill='%23c4362f' stroke='none'/%3E%3C/svg%3E");
}

.ppp-toast-message {
    flex: 1;
    line-height: 1.5;
}

.ppp-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #5b5347;
    opacity: 0.7;
    transition: background-color 0.15s, opacity 0.15s;
}

.ppp-toast-close:hover {
    opacity: 1;
    background-color: #f6f1e8;
}

@media (max-width: 600px) {
    .ppp-toast {
        top: 76px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ppp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .ppp-form-row-3 {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ppp-form-row-3>.ppp-form-group {
        flex: 1 1 45%;
    }

    .ppp-form-row-4 {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ppp-form-row-4>.ppp-form-group {
        flex: 1 1 45%;
    }

    .ppp-sex-group {
        flex: 1 1 100% !important;
    }

    #ppp-breed-group {
        max-width: 100%;
    }

    #ppp-breed-group .select2-container--default .select2-selection--single {
        padding: 12px 13px;
        font-size: 15px;
    }

    .select2-container--default .select2-search--dropdown .select2-search__field {
        /* 16px prevents iOS Safari from auto-zooming the page on focus */
        font-size: 16px;
        padding: 10px 12px;
    }

    .select2-container--default .select2-results__option {
        padding: 10px 12px;
        font-size: 14px;
    }

    .ppp-pet-type-selector {
        gap: 10px;
    }

    .ppp-type-icon {
        width: 60px;
        height: 60px;
        padding: 8px;
    }

    .ppp-type-img {
        width: 32px;
        height: 32px;
    }

    .ppp-chip span {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ppp-pet-form .radio-inline-box {
        gap: 3px 16px;
    }

    .ppp-modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .ppp-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .ppp-modal-hero-img {
        height: 200px;
    }

    .ppp-modal-gallery-item {
        border-radius: 6px;
    }

    .ppp-modal-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .ppp-customer-pet-detail-card {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .ppp-customer-pet-photo {
        width: 100%;
        height: 200px;
        border-radius: 0;
    }

    .ppp-customer-pet-info {
        padding: 14px 16px 16px;
    }

    .ppp-customer-title {
        font-size: 20px;
    }

    .ppp-customer-profile-page {
        padding: 16px;
    }

    .ppp-form-card {
        margin: 0 10px 10px !important;
        padding: 16px !important;
    }

    .ppp-form-header {
        padding: 14px 14px;
    }

    .ppp-form-actions {
        padding: 14px;
    }

    .ppp-section-header {
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .ppp-section-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .ppp-section-icon svg {
        width: 14px;
        height: 14px;
    }

    .ppp-section-title {
        font-size: 14px;
    }

    .ppp-section-desc {
        font-size: 12px;
    }

    .ppp-profile-photo-preview {
        width: 80px;
        height: 80px;
    }

    .ppp-pet-cards {
        flex-direction: column;
    }

    /* Profile pet cards: full width on mobile */
    .ppp-pet-card-photo {
        width: 40px;
        height: 40px;
    }

    .ppp-pet-card-name {
        font-size: 13.5px;
    }

    .ppp-profile-section-title {
        font-size: 15px;
    }

    .ppp-form-group {
        margin-bottom: 18px;
    }

    .ppp-label {
        font-size: 13.5px;
        margin-bottom: 7px;
    }

    .ppp-input,
    .ppp-select,
    .ppp-textarea {
        padding: 9px 11px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ppp-pet-type-selector {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .ppp-type-option {
        min-width: unset;
    }

    .ppp-form-row-3>.ppp-form-group,
    .ppp-form-row-4>.ppp-form-group {
        flex: 1 1 100%;
    }

    .ppp-gallery-item,
    .ppp-gallery-add {
        width: 80px;
        height: 80px;
    }

    .ppp-form-card {
        margin: 0 6px 8px !important;
        padding: 14px !important;
    }

    .ppp-form-header {
        padding: 12px 10px;
    }

    .ppp-form-header h5 {
        font-size: 15px;
    }

    .ppp-type-icon {
        width: 54px;
        height: 54px;
        padding: 6px;
    }

    .ppp-type-img {
        width: 28px;
        height: 28px;
    }

    .ppp-type-option span {
        font-size: 11px;
    }

    .ppp-pet-form .radio-inline-box {
        flex-direction: column;
        gap: 3px;
    }

    .ppp-modal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .ppp-photo-upload-section {
        padding: 16px 12px 8px !important;
    }

    .ppp-profile-photo-preview {
        width: 72px;
        height: 72px;
    }

    .ppp-form-actions {
        padding: 12px 10px;
    }

    .ppp-cancel-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .ppp-save-btn {
        padding: 8px 22px;
        font-size: 13px;
    }
}

/* ============================================================
   ADDITIONS — append these to the bottom of pet-profile.css
   ============================================================ */

/* ---- Gallery Count Label ---- */
.ppp-gallery-count-label {
    font-size: 12px;
    color: var(--ppp-text-muted);
    margin: 6px 0 0;
    text-align: left;
    width: 100%;
}

/* ---- Lightbox Overlay ---- */
.ppp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

/* ---- Lightbox Content ---- */
.ppp-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.ppp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

.ppp-lightbox-loader {
    position: absolute;
    color: #fff;
    font-size: 28px;
}

.ppp-lightbox-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---- Lightbox Close Button ---- */
.ppp-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    padding: 0;
}

.ppp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---- Lightbox Nav Buttons ---- */
.ppp-lightbox-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.ppp-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.ppp-lightbox-prev {
    left: 16px;
}

.ppp-lightbox-next {
    right: 16px;
}

@media (max-width: 640px) {
    .ppp-lightbox-prev {
        left: 6px;
    }

    .ppp-lightbox-next {
        right: 6px;
    }

    .ppp-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* ====================================================
   PET DETAIL PAGE
   ==================================================== */
.ppp-detail-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* Back bar */
.ppp-detail-back-bar {
    padding: 12px 0 4px;
}

.ppp-detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ppp-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ppp-detail-back-link:hover {
    color: var(--ppp-primary);
    text-decoration: none;
}

/* Hero image */
.ppp-detail-hero {
    border-radius: 14px;
    overflow: hidden;
    background: var(--ppp-bg-light);
    margin-bottom: 28px;
    aspect-ratio: 4 / 3;
}

.ppp-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header */
.ppp-detail-header {
    margin-bottom: 32px;
}

.ppp-detail-name {
    font-size: 30px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0 0 6px;
}

.ppp-detail-breed {
    font-size: 16px;
    color: var(--ppp-text-light);
    margin: 0 0 8px;
}

.ppp-detail-meta {
    font-size: 14px;
    color: var(--ppp-text-muted);
    margin: 0 0 8px;
}

.ppp-detail-owner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ppp-text-muted);
    margin: 0;
}

/* Sections */
.ppp-detail-section {
    background: var(--ppp-bg-white);
    border: 1px solid var(--ppp-border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ppp-detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ppp-text);
    margin: 0 0 20px;
}

.ppp-detail-section-title svg {
    color: var(--ppp-primary);
    flex-shrink: 0;
}

/* About text */
.ppp-detail-about-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ppp-text-light);
    margin: 0 0 20px;
}

/* Detail grid */
.ppp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
    column-gap: 20px;
}

.ppp-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ppp-detail-item-wide {
    grid-column: 1 / -1;
}

.ppp-detail-item-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ppp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ppp-detail-item-value {
    font-size: 15px;
    color: var(--ppp-text);
    line-height: 1.5;
}

/* Empty state */
.ppp-detail-empty {
    text-align: center;
    padding: 16px 0 4px;
    color: var(--ppp-text-muted);
}

.ppp-detail-empty svg {
    margin-bottom: 8px;
}

.ppp-detail-empty p {
    font-size: 13px;
    margin: 0;
    color: var(--ppp-text-muted);
}

/* Gallery grid — images open lightbox */
.ppp-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ppp-detail-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--ppp-bg-light);
    cursor: pointer;
}

.ppp-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.ppp-detail-gallery-item:hover img {
    transform: scale(1.04);
}

/* Zoom icon overlay on hover */
.ppp-detail-gallery-zoom {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.2s ease;
}

.ppp-detail-gallery-item:hover .ppp-detail-gallery-zoom {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

@media (max-width: 480px) {
    .ppp-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .ppp-detail-name {
        font-size: 22px;
    }

    .ppp-detail-grid {
        grid-template-columns: 1fr;
    }
}
