.furniture-grid {
    margin-top: 4px;
}

.furniture-card {
    /* !important + overflow: the Radzen theme loads after this file and its .rz-card rule would win otherwise. */
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: none !important;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    background: var(--card);
}

.furniture-card:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08) !important;
    transform: translateY(-2px);
}

.furniture-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.furniture-name {
    font-weight: 700;
    color: #242251;
    font-size: 1rem;
}

/* min-width: 0 lets the subtitle be cut instead of pushing the action buttons out. */
.furniture-header {
    min-width: 0;
}

.furniture-header-text {
    min-width: 0;
}

.furniture-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.furniture-details {
    margin-top: 12px;
    color: #475569;
    font-size: 0.9rem;
    flex: 1;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.detail-icon {
    color: #a5b4fc;
}

.detail-label {
    color: #6b7280;
    margin-right: 4px;
}

.detail-value {
    color: #242251;
    font-weight: 600;
    margin-left: auto;
    text-align: right;
}

.detail-row-owners .detail-label {
    flex: none;
}

.detail-value-ellipsis {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

/* The action buttons stay side by side whatever the length of the name/category. */
.furniture-card-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.travel-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.travel-type-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 180px;
    padding: 1.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(36, 34, 81, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.travel-type-tile:hover,
.travel-type-tile:focus-visible {
    box-shadow: 0 8px 20px rgba(36, 34, 81, 0.1);
    transform: translateY(-2px);
}

.travel-type-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--travel-type-bg);
    color: var(--travel-type-fg);
}

.travel-type-icon .rzi {
    font-size: 32px;
}

.travel-type-name {
    font-weight: 700;
    font-size: 1rem;
    color: #242251;
    text-align: center;
}

.travel-type-green { --travel-type-bg: #dcfce7; --travel-type-fg: #16a34a; }
.travel-type-blue { --travel-type-bg: #dbeafe; --travel-type-fg: #2563eb; }
.travel-type-orange { --travel-type-bg: #ffedd5; --travel-type-fg: #ea580c; }
.travel-type-purple { --travel-type-bg: #ede9fe; --travel-type-fg: #7c3aed; }
.travel-type-pink { --travel-type-bg: #fce7f3; --travel-type-fg: #db2777; }
.travel-type-gold { --travel-type-bg: #fef3c7; --travel-type-fg: #ca8a04; }
.travel-type-turquoise { --travel-type-bg: #ccfbf1; --travel-type-fg: #0d9488; }

@media (max-width: 1199px) {
    .travel-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .travel-type-grid {
        gap: 0.75rem;
    }

    .travel-type-tile {
        min-height: 140px;
        padding: 1rem 0.5rem;
    }
}

/* Person-style tile for the Pets page (same rules as the inline block in FamilyPage.razor) */
.person-avatar {
    box-sizing: border-box;
    overflow: hidden;
    width: 64px;
    height: 88px;
    border-radius: 8px;
    background-color: var(--rz-primary);
    color: white;
    display: flex;
    justify-content: center !important;
    text-align: center !important;
    font-size: 1.1rem;
    font-weight: 500;
    flex-shrink: 0;
}

.person-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 88px;
}

.person-avatar-wrapper .person-avatar {
    align-items: center;
}

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

.person-card {
    background-color: var(--card) !important;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.person-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.person-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f7f8fd;
    border-bottom: 1px solid #eceef8;
}

.person-card-header .rzi {
    font-size: 1.75rem;
    color: #5b3fe4;
}

.person-card-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.125rem;
    font-weight: 700;
    color: #14123b;
}

.person-card-body {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
}

.person-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.person-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #14123b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e3e6f5;
    font-size: 0.9rem;
    color: #14123b;
}

.person-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-right: 0.9rem;
}

.person-relationship {
    margin-top: 0.25rem;
}

.person-meta-item + .person-meta-item {
    padding-left: 0.9rem;
    border-left: 1px solid #e3e6f5;
}

.person-meta .rzi,
.person-cell .rzi {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #5b3fe4;
}

.person-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #14123b;
}

.person-cell:nth-child(even) {
    padding-left: 0.9rem;
    border-left: 1px solid #e3e6f5;
}

.person-cell:nth-child(-n+2) {
    border-bottom: 1px solid #e3e6f5;
}

.person-cell > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-type-modal {
    border-radius: 20px;
}

.staff-type-question {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
    color: #242251;
}

.staff-type-subtitle {
    margin: 0.25rem 0 1.25rem;
    color: #3b4a7a;
}

.staff-type-section {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(36, 34, 81, 0.05);
}

.staff-type-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.staff-type-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #242251;
}

.staff-type-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.8rem;
    font-weight: 600;
}

.staff-type-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.staff-type-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 190px;
    padding: 1rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(36, 34, 81, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.staff-type-tile:hover,
.staff-type-tile:focus-visible {
    border-color: var(--staff-type-fg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 34, 81, 0.1);
}

.staff-type-tile-selected,
.staff-type-tile-selected:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
    box-shadow: 0 0 0 2px var(--primary);
}

.staff-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--staff-type-bg);
    color: var(--staff-type-fg);
}

.staff-type-icon .rzi {
    font-size: 28px;
}

.staff-type-name {
    font-weight: 700;
    font-size: 1rem;
    color: #242251;
    text-align: center;
}

.staff-type-description {
    font-size: 0.85rem;
    color: #3b4a5a;
    text-align: center;
}

.staff-type-green { --staff-type-bg: #dcfce7; --staff-type-fg: #16a34a; }
.staff-type-blue { --staff-type-bg: #dbeafe; --staff-type-fg: #2563eb; }
.staff-type-orange { --staff-type-bg: #ffedd5; --staff-type-fg: #ea580c; }
.staff-type-purple { --staff-type-bg: #ede9fe; --staff-type-fg: #7c3aed; }
.staff-type-pink { --staff-type-bg: #fce7f3; --staff-type-fg: #db2777; }
.staff-type-gold { --staff-type-bg: #fef3c7; --staff-type-fg: #ca8a04; }

@media (max-width: 1199px) {
    .staff-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .staff-type-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .staff-type-tile {
        min-height: 140px;
    }
}
