/* ═══ Masters Catalog Page ═══ */

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 48px 32px 12px;
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 400;
    color: var(--warm-brown);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.hero h1 em {
    font-style: italic;
    color: var(--rose-deep);
}
.hero p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto;
}

/* ── LAYOUT ── */
.masters-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 80px;
}
.masters-content {
    min-width: 0;
}

/* ── FILTER BAR ── */
.masters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.masters-bar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.masters-select {
    padding: 9px 32px 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239B8A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.masters-select:hover {
    border-color: var(--rose);
}

/* City select in filter bar */
.city-select--bar {
    width: 280px;
    min-width: 220px;
}
.city-select--bar .cs-trigger {
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    min-height: auto;
    gap: 10px;
    border-radius: var(--radius-sm);
}
.city-select--bar .cs-trigger-icon {
    width: 18px;
    height: 18px;
    color: var(--rose);
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.city-select--bar .cs-trigger:hover .cs-trigger-icon {
    color: var(--burgundy);
}
.city-select--bar .cs-dropdown {
    min-width: 300px;
}

/* ── GRID ── */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── MASTER CARD ── */
.master-card {
    display: flex;
    flex-direction: column;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    animation: fadeUp 0.5s ease both;
}
.master-card:hover {
    border-color: var(--rose);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card top: avatar + info */
.master-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.master-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--blush);
    background: var(--cream);
}
.master-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.master-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--warm-white);
    background: var(--warm-brown);
}
.master-card-info {
    flex: 1;
    min-width: 0;
}
.master-card-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--warm-brown);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.master-card-verified {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}
.master-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
}
.master-card-location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.master-card-exp {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Bio */
.master-card-bio {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Services pills */
.master-card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.master-card-service-pill {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--blush-light);
    border: 1px solid var(--blush);
    white-space: nowrap;
}
.master-card-service-pill--more {
    background: var(--cream);
    color: var(--text-light);
    border-color: var(--border);
}

/* Portfolio thumbnails */
.master-card-portfolio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}
.master-card-portfolio-img {
    aspect-ratio: 1;
    border-radius: var(--radius-xs);
    overflow: hidden;
}
.master-card-portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.master-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.master-card-stats {
    display: flex;
    gap: 12px;
}
.master-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-light);
}
.master-card-stat svg {
    width: 14px;
    height: 14px;
}
.master-card-link {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--rose);
    transition: var(--transition);
}
.master-card:hover .master-card-link {
    color: var(--burgundy);
}

/* ── EMPTY STATE ── */
.masters-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.masters-empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
    color: var(--text-light);
}
.masters-empty h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--warm-brown);
    margin-bottom: 8px;
}
.masters-empty a {
    color: var(--rose);
    text-decoration: underline;
}

/* ── PAGINATION (reuse from app.css) ── */

/* ── RESPONSIVE ── */
@media (min-width: 1600px) {
    .masters-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .masters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero h1 { font-size: 34px; }
}
@media (max-width: 700px) {
    .hero { padding: 32px 20px 8px; }
    .hero h1 { font-size: 28px; }
    .masters-layout { padding: 16px 16px 60px; }
    .masters-grid { grid-template-columns: 1fr; }
    .masters-bar { flex-direction: column; align-items: stretch; }
    .city-select--bar { width: 100%; }
    .master-card { padding: 18px; }
    .master-card-portfolio { grid-template-columns: repeat(3, 1fr); }
}
