/*
 * mojFOTOGRAF directory card: one photographer in the directory lists and
 * in the owner's Katalóg preview. Layouts: mfc--cover, mfc--trio,
 * mfc--mosaic. Tones: mfc--light, mfc--dark, mfc--brand (the site's own
 * colours, set as --mfc-* on the card).
 */
.mfc {
    --mfc-bg: #ffffff;
    --mfc-text: #1d1a16;
    --mfc-muted: #6f675d;
    --mfc-line: rgba(29, 26, 22, .12);
    --mfc-accent: #a4522b;
    --mfc-accent-text: #ffffff;
    --mfc-empty: #efe9e0;
    display: flex; flex-direction: column; overflow: hidden; height: 100%;
    border-radius: 18px; background: var(--mfc-bg); color: var(--mfc-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(29, 26, 22, .08);
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-align: left;
}
.mfc--dark { --mfc-bg: #171512; --mfc-text: #f5f1ea; --mfc-muted: #a99f92; --mfc-line: rgba(255, 255, 255, .14); --mfc-accent: #e0a37e; --mfc-accent-text: #171512; --mfc-empty: #2a2622; }
.mfc--brand { --mfc-line: color-mix(in srgb, var(--mfc-text) 14%, transparent); --mfc-empty: color-mix(in srgb, var(--mfc-text) 8%, var(--mfc-bg)); }

.mfc-photos { display: grid; gap: 3px; aspect-ratio: 4 / 3; background: var(--mfc-bg); }
.mfc--cover .mfc-photos { grid-template-columns: 1fr; }
.mfc--trio .mfc-photos { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mfc--trio .mfc-photo:first-child { grid-row: 1 / 3; }
.mfc--mosaic .mfc-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mfc-photo { position: relative; display: block; overflow: hidden; min-height: 0; background: var(--mfc-empty); }
.mfc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mfc-photo.is-empty { background: repeating-linear-gradient(135deg, var(--mfc-empty) 0 10px, transparent 10px 20px), var(--mfc-empty); }

.mfc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.mfc-place { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--mfc-muted); font-size: 13px; }
.mfc-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfc-place svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--mfc-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mfc-name { margin: 0; color: inherit; text-transform: none; font-size: 1.2rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.mfc-headline { margin: 0; color: var(--mfc-text); opacity: .86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mfc-headline.is-empty { opacity: .45; font-style: italic; }
.mfc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.mfc-tags li { padding: 3px 10px; border: 1px solid var(--mfc-line); border-radius: 999px; font-size: 12.5px; color: var(--mfc-text); }
.mfc-tags li.is-more { color: var(--mfc-muted); }
.mfc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--mfc-line); }
.mfc-price { font-weight: 700; }
.mfc-cta { margin-left: auto; padding: 7px 14px; border-radius: 999px; background: var(--mfc-accent); color: var(--mfc-accent-text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
a.mfc { text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
a.mfc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 18px 40px rgba(29, 26, 22, .14); }

/* Reputation: badges over the photos, the rating under the name */
.mfc-photos { position: relative; }
.mfc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.mfc-badge, .dir-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1d1a16; font-size: 12px; font-weight: 700; line-height: 1.2; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.mfc-badge svg, .dir-badge svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.mfc-badge svg .is-line, .dir-badge svg .is-line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mfc-badge--overeny svg, .dir-badge--overeny svg { color: #2f7d57; }
.mfc-badge--oblubeny svg, .dir-badge--oblubeny svg { color: #c2413b; }
.mfc-badge--hodnoteny svg, .dir-badge--hodnoteny svg { color: #d99a16; }
.mfc-badge--novy svg, .dir-badge--novy svg { color: #3b6fd1; }
.mfc-rating { display: flex; align-items: center; gap: 4px; margin: -2px 0 0; font-size: 13.5px; color: var(--mfc-muted); }
.mfc-rating b { color: var(--mfc-text); }
.mfc-rating svg { width: 16px; height: 16px; fill: #e0a117; }

/* Promoted: a quiet label top right and a thin accent ring, so paid cards are clear but not loud */
.mfc-promoted { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(29, 26, 22, .72); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; pointer-events: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mfc.is-promoted { box-shadow: 0 0 0 2px var(--mfc-accent, #8a4b2a), 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px rgba(29, 26, 22, .08); }

/* Trust ribbons: topics clients rate a photographer best at */
.mfc-ribbons { display: flex; align-items: flex-start; gap: 5px; margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--mfc-text); }
.mfc-ribbons svg, .dir-ribbon svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #a4522b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfc-ribbons svg { margin-top: 1px; }
.mfc--brand .mfc-ribbons svg { stroke: var(--mfc-accent); }
.mfc-ribbons__lead { color: var(--mfc-muted); }
.dir-ribbon { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #fbf3ec; color: #7a3a1c; font-size: 12px; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(164, 82, 43, .25); }
a.dir-ribbon:hover { box-shadow: inset 0 0 0 1px #a4522b; }
