/**
 * Žluté Stránky — Offers
 *
 * Styles for the shared offer card (partials/nabidka.php) in its three
 * variants, plus the grids and empty states that hold them.
 *
 * Loaded via $extraCss = ['nabidky.css'] so main.css, hledat.css and kategorie.css
 * stay untouched. Everything here is namespaced under .nabidka- / .nabidky- to keep
 * it out of the way of the existing .business-card and .featured-card rules.
 *
 * All tokens come from main.css :root. No new colours are invented — an offer
 * card must look like it belongs beside a business card, because it will.
 *
 * @package ZluteStranky
 * @subpackage Frontend
 */

/* ==================== TOKENS ==================== */
/* Local to this component. The voucher notch needs a radius that matches the
   card radius, and the accent needs to differ from the business-card yellow just
   enough to be distinguishable at a glance without looking like a second brand. */
.nabidka-card,
.nabidky-grid {
    --nabidka-radius: var(--radius-xl);
    --nabidka-notch: 14px;
    --nabidka-accent: var(--color-yellow);
    --nabidka-accent-deep: #B45309;
    --nabidka-surface: var(--color-white);
    --nabidka-tint: var(--color-yellow-light);
}

/* ==================== GRIDS ==================== */

.nabidky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* The horizontal strip used inside search and category listings. Scroll-snapped
   rather than wrapped: it is a sidebar of suggestions, not the main result set,
   and it must not push the actual results below the fold. */
.nabidky-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.nabidky-strip > .nabidka-card {
    scroll-snap-align: start;
}

.nabidky-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nabidky-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nabidky-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-600);
    white-space: nowrap;
}

.nabidky-section-link:hover {
    color: var(--color-black);
}

/* ==================== CARD ==================== */

.nabidka-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--nabidka-surface);
    border-radius: var(--nabidka-radius);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    /* Not overflow:hidden — the notch pseudo-elements sit on the edge and would
       be clipped away. The head clips its own image instead. */
    isolation: isolate;
}

.nabidka-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Keyboard focus lands on the stretched link inside; lift the whole card so the
   focus ring is not a lone rectangle floating over a title. */
.nabidka-card:focus-within {
    box-shadow: var(--shadow-card-hover);
}

.nabidka-card--compact {
    flex-direction: row;
    align-items: stretch;
}

/* ---- Head ---- */

.nabidka-card-head {
    position: relative;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nabidka-tint) 0%, #FDE68A 100%);
    border-radius: var(--nabidka-radius) var(--nabidka-radius) 0 0;
    overflow: hidden;
}

.nabidka-card--compact .nabidka-card-head {
    min-height: 0;
    width: 96px;
    flex-shrink: 0;
    border-radius: var(--nabidka-radius) 0 0 var(--nabidka-radius);
}

.nabidka-card-image {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    display: block;
}

.nabidka-card--compact .nabidka-card-image {
    min-height: 100%;
}

.nabidka-card-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.nabidka-card--compact .nabidka-card-icon {
    font-size: 1.75rem;
}

/* ---- Badges ---- */

.nabidka-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-width: calc(100% - 4rem); /* leaves room for the heart */
}

.nabidka-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.nabidka-badge--type {
    background: rgba(10, 10, 10, 0.72);
    color: var(--color-white);
}

.nabidka-badge--boost {
    background: var(--color-black);
    color: var(--nabidka-accent);
}

/* ---- Save (heart) ---- */

.nabidka-save {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    font-size: 1.125rem;
    line-height: 1;
    transition: transform var(--transition-fast), background var(--transition-fast);
    z-index: 3; /* above the stretched link */
}

.nabidka-save:hover {
    transform: scale(1.1);
    background: var(--color-white);
}

.nabidka-save:focus-visible {
    outline: 3px solid var(--color-black);
    outline-offset: 2px;
}

.nabidka-save.is-saved {
    background: var(--color-white);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25), var(--shadow-sm);
}

.nabidka-save.is-pulsing .nabidka-save-icon {
    animation: nabidka-pulse 400ms var(--transition-spring);
}

@keyframes nabidka-pulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.nabidka-card--compact .nabidka-save {
    top: 0.375rem;
    right: 0.375rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

/* ---- Body ---- */

.nabidka-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.125rem 1.25rem 0.75rem;
    min-width: 0; /* lets the title ellipsis work inside a flex row */
}

.nabidka-card--compact .nabidka-card-body {
    padding: 0.75rem 0.875rem;
    justify-content: center;
}

.nabidka-card-title {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.nabidka-card--compact .nabidka-card-title {
    font-size: 0.9375rem;
}

/* Stretched link: the anchor covers the card so the whole thing is clickable,
   while the heart and chips stay real buttons outside the anchor. */
.nabidka-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--nabidka-radius);
    z-index: 1;
}

.nabidka-card-link:focus-visible::after {
    outline: 3px solid var(--color-black);
    outline-offset: 3px;
}

.nabidka-card-link:hover {
    color: inherit;
}

.nabidka-card-subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nabidka-accent-deep);
    margin-bottom: 0.5rem;
}

.nabidka-card-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-gray-600);
    margin-bottom: 0.75rem;
}

/* ---- Chips ---- */

.nabidka-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.nabidka-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.nabidka-chip--urgent {
    background: var(--color-warning-light);
    color: #92400E;
}

.nabidka-chip--saving {
    background: var(--color-success-light);
    color: #065F46;
}

/* ---- Foot: the voucher notch ---- */
/*
 * The signature. Two half-circles bitten out of the card edge where the price
 * block meets the body, plus a dashed rule — the visual language of a tear-off
 * voucher. It is doing a job, not decorating: in a mixed listing where offer
 * cards sit beside business cards, this is what tells a scanning eye which is
 * which before any text is read.
 */
.nabidka-card-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem 1.125rem;
    border-top: 2px dashed var(--color-gray-200);
    margin-top: 0.25rem;
}

.nabidka-card-foot::before,
.nabidka-card-foot::after {
    content: '';
    position: absolute;
    top: calc(var(--nabidka-notch) / -2 - 1px);
    width: var(--nabidka-notch);
    height: var(--nabidka-notch);
    border-radius: var(--radius-full);
    /* Matches the page background rather than being transparent: a transparent
       notch would show the card's own shadow through it and read as a smudge. */
    background: var(--color-gray-50);
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.06);
}

.nabidka-card-foot::before {
    left: calc(var(--nabidka-notch) / -2);
}

.nabidka-card-foot::after {
    right: calc(var(--nabidka-notch) / -2);
}

/* On a white page the notch must be white too, or it reads as a grey dot. */
.nabidky-grid--on-white .nabidka-card-foot::before,
.nabidky-grid--on-white .nabidka-card-foot::after {
    background: var(--color-white);
}

.nabidka-card--compact .nabidka-card-foot {
    display: none; /* compact puts the price in the body row instead */
}

.nabidka-card-price {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-gray-900);
    white-space: nowrap;
}

.nabidka-card-price--ask {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

.nabidka-card-biz {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    font-size: 0.75rem;
}

.nabidka-card-biz-name {
    font-weight: 600;
    color: var(--color-gray-700);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nabidka-card-biz-rating {
    color: var(--color-gray-500);
    font-weight: 600;
}

/* Compact keeps price and business on one line under the title. */
.nabidka-card--compact .nabidka-card-chips {
    padding-top: 0.375rem;
}

/* ==================== SAVED VARIANT ==================== */

.nabidka-saved-controls {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-100);
    position: relative;
    z-index: 2; /* above the stretched link, or the buttons are unclickable */
}

.nabidka-saved-note {
    display: flex;
    gap: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    border-left: 3px solid var(--color-gray-300);
    padding: 0.5rem 0.625rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 0.625rem;
}

.nabidka-saved-note-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.nabidka-saved-note-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nabidka-saved-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.nabidka-circle-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-500);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.nabidka-circle-chip:hover {
    border-color: var(--circle-color, var(--color-gray-400));
    color: var(--color-gray-700);
}

.nabidka-circle-chip.is-active {
    border-color: var(--circle-color, var(--color-work));
    background: color-mix(in srgb, var(--circle-color, #3B82F6) 12%, white);
    color: var(--color-gray-900);
}

.nabidka-circle-chip:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

.nabidka-saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nabidka-action {
    padding: 0.3125rem 0.625rem;
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nabidka-action:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-900);
}

.nabidka-action.is-on {
    background: var(--color-info-light);
    color: #1E40AF;
}

.nabidka-action--danger:hover {
    background: var(--color-error-light);
    color: #991B1B;
}

.nabidka-action:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* ==================== UNAVAILABLE (TOMBSTONE) ==================== */
/*
 * A saved offer whose business was frozen, or which expired. The card stays —
 * the person saved it deliberately and it is theirs — but it stops pretending to
 * be actionable: no link, no heart, drained of colour.
 */

.nabidka-card.is-unavailable {
    box-shadow: none;
    border: 1px dashed var(--color-gray-300);
}

.nabidka-card.is-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.nabidka-card.is-unavailable .nabidka-card-head,
.nabidka-card.is-unavailable .nabidka-card-body,
.nabidka-card.is-unavailable .nabidka-card-foot {
    filter: grayscale(1);
    opacity: 0.55;
}

/* The controls must stay usable — removing a dead offer is the main thing
   someone wants to do with one. */
.nabidka-card.is-unavailable .nabidka-saved-controls {
    filter: none;
    opacity: 1;
}

.nabidka-tombstone {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(10, 10, 10, 0.86);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.nabidka-tombstone-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.nabidka-tombstone-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== BOOSTED / EXPIRING ACCENTS ==================== */

.nabidka-card.is-boosted {
    box-shadow: 0 0 0 2px var(--nabidka-accent), var(--shadow-card);
}

.nabidka-card.is-boosted:hover {
    box-shadow: 0 0 0 2px var(--nabidka-accent), var(--shadow-card-hover);
}

.nabidka-card.is-expiring .nabidka-card-foot {
    border-top-color: var(--color-warning);
}

/* ==================== EMPTY STATE ==================== */
/*
 * Seen often at launch: there are four offers in the database. An empty state
 * that says "no offers" and stops is a dead end; this one points somewhere.
 */

.nabidky-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--color-gray-50);
    border-radius: var(--nabidka-radius);
    border: 1px dashed var(--color-gray-300);
}

.nabidky-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.nabidky-empty-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.nabidky-empty-text {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    max-width: 42ch;
    margin: 0 auto 1rem;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .nabidky-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .nabidka-card-head {
        min-height: 112px;
    }

    .nabidka-card-body {
        padding: 1rem 1rem 0.625rem;
    }

    .nabidka-card-foot {
        padding: 0.75rem 1rem 1rem;
    }

    .nabidka-card-biz-name {
        max-width: 110px;
    }
}

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

    /* Tap targets: 38px is fine with a mouse, tight with a thumb. */
    .nabidka-save {
        width: 44px;
        height: 44px;
    }

    .nabidka-action {
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
    .nabidka-card,
    .nabidka-save,
    .nabidka-circle-chip,
    .nabidka-action {
        transition: none;
    }

    .nabidka-card:hover {
        transform: none;
    }

    .nabidka-save:hover {
        transform: none;
    }

    .nabidka-save.is-pulsing .nabidka-save-icon {
        animation: none;
    }
}

@media (prefers-contrast: more) {
    .nabidka-card {
        border: 1px solid var(--color-gray-700);
    }

    .nabidka-chip {
        border: 1px solid var(--color-gray-400);
    }
}

/* Fallback for browsers without color-mix (Safari < 16.2): the active circle
   chip still reads as active through its border and text colour. */
@supports not (background: color-mix(in srgb, red 10%, white)) {
    .nabidka-circle-chip.is-active {
        background: var(--color-gray-100);
    }
}

/* ============================================================
   DETAIL NABÍDKY (firma-nabidka.php)
   ============================================================
   Two columns on desktop: the offer reads on the left, the decision
   (price, save, contact) stays put on the right. On mobile the CTA
   card comes FIRST — someone arriving from a feed wants the price
   before the prose.
   ============================================================ */

.nabidka-detail {
    padding: 1.5rem 0 4rem;
}

.nabidka-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-bottom: 1.25rem;
}

.nabidka-breadcrumbs a:hover {
    color: var(--color-black);
    text-decoration: underline;
}

.nabidka-breadcrumbs .is-current {
    color: var(--color-gray-700);
    font-weight: 600;
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nabidka-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

/* ---- Main column ---- */

.nabidka-detail-main {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.nabidka-detail-head {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-yellow-light) 0%, #FDE68A 100%);
}

.nabidka-detail-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.nabidka-detail-icon {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.nabidka-detail-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nabidka-badge--urgent {
    background: var(--color-warning);
    color: var(--color-black);
}

.nabidka-detail-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding: 1.5rem 1.75rem 0;
}

.nabidka-detail-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nabidka-accent-deep, #B45309);
    padding: 0.5rem 1.75rem 0;
}

.nabidka-detail-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    padding: 1.25rem 1.75rem 0;
}

/* ---- Facts ---- */

.nabidka-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--color-gray-200);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    margin: 1.75rem 0 0;
}

.nabidka-fact {
    background: var(--color-white);
    padding: 0.875rem 1.75rem;
}

.nabidka-fact dt {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    margin-bottom: 0.1875rem;
}

.nabidka-fact dd {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.nabidka-detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.75rem 1.5rem;
}

.nabidka-social-proof {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Reporting is available, not advertised: quiet until hovered. */
.nabidka-report-link {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.nabidka-report-link:hover {
    color: var(--color-error);
    text-decoration: underline;
}

/* ---- Sidebar ---- */

.nabidka-detail-side {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nabidka-cta-card {
    background: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.nabidka-cta-price {
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.nabidka-cta-price .is-ask {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

.nabidka-cta-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.nabidka-cta-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.nabidka-cta-save,
.nabidka-cta-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nabidka-cta-save:hover,
.nabidka-cta-share:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-900);
}

.nabidka-cta-save-text {
    white-space: nowrap;
}

.nabidka-cta-save.is-saved {
    background: var(--color-error-light);
    color: #991B1B;
}

.nabidka-cta-save:focus-visible,
.nabidka-cta-share:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

.nabidka-cta-circles {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.nabidka-cta-circles-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
}

.nabidka-circle-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.nabidka-cta-hint {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.nabidka-cta-hint a {
    font-weight: 700;
    color: var(--color-black);
    text-decoration: underline;
}

/* ---- Business card ---- */

.nabidka-biz-card {
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
}

.nabidka-biz-name {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--color-gray-900);
}

.nabidka-biz-name:hover {
    text-decoration: underline;
}

.nabidka-biz-verified {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--color-success);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 900;
}

.nabidka-biz-rating {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
}

.nabidka-biz-reviews {
    color: var(--color-gray-500);
}

.nabidka-biz-desc {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-gray-600);
}

.nabidka-biz-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-gray-200);
}

.nabidka-biz-contact {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.nabidka-biz-contact:hover {
    color: var(--color-black);
}

/* ---- Sections below ---- */

.nabidky-section {
    margin-top: 2.5rem;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .nabidka-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Price and save move above the description: the decision comes first for
       anyone who arrived from a feed. */
    .nabidka-detail-side {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .nabidka-detail-title {
        font-size: 1.375rem;
        padding: 1.25rem 1.25rem 0;
    }

    .nabidka-detail-subtitle,
    .nabidka-detail-desc {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nabidka-fact,
    .nabidka-detail-foot {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nabidka-detail-head {
        min-height: 160px;
    }

    .nabidka-detail-icon {
        font-size: 3.5rem;
    }
}

/* ============================================================
   NABÍDKA UŽ NEPLATÍ (includes/partials/nabidka-gone.php)
   ============================================================
   Deliberately not styled like an error page: no red, no big
   sad number. It reads as a normal page that happens to open
   with an explanation, because the alternatives below it are
   the actual content.
   ============================================================ */

.nabidka-gone {
    padding: 2.5rem 0 4rem;
}

.nabidka-gone-head {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.nabidka-gone-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.75;
}

.nabidka-gone-title {
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.nabidka-gone-what {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}

.nabidka-gone-what strong {
    color: var(--color-gray-900);
}

.nabidka-gone-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.nabidka-gone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 480px) {
    .nabidka-gone-title {
        font-size: 1.375rem;
    }

    .nabidka-gone-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Lead line under an offers section heading. Reuses the host page's
   .cat-section-header / .cat-section-title so the block sits in the page's own
   rhythm rather than announcing itself as a bolted-on module. */
.nabidky-section-lead {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin: -0.25rem 0 1.25rem;
    max-width: 62ch;
}

/* ============================================================
   VYHLEDÁVÁNÍ (hledat.php)
   ============================================================ */

/* Firms / offers switch. Underline tabs rather than pills — this is a view
   switch on one result set, not a filter that adds to it. */
.search-type-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 1.25rem;
}

.search-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    color: var(--color-gray-500);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.search-type-tab:hover {
    color: var(--color-gray-900);
}

.search-type-tab.is-active {
    color: var(--color-black);
    border-bottom-color: var(--color-yellow);
    font-weight: 800;
}

.search-type-count {
    padding: 0.0625rem 0.4375rem;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-600);
}

.search-type-tab.is-active .search-type-count {
    background: var(--color-yellow-light);
    color: #92400E;
}

.search-type-tab:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: -2px;
}

/* Offer strip above the business grid. Capped height so it stays one row and
   never pushes the actual results below the fold. */
.search-offers-strip {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
}

.search-offers-strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.search-offers-strip-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.search-offers-strip-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-600);
    white-space: nowrap;
}

.search-offers-strip-link:hover {
    color: var(--color-black);
}

.search-offers-strip .nabidky-strip {
    grid-auto-columns: minmax(240px, 1fr);
}

/* On a grey strip the voucher notch must be grey too, or it reads as a dot. */
.search-offers-strip .nabidka-card-foot::before,
.search-offers-strip .nabidka-card-foot::after {
    background: var(--color-gray-50);
}

/* Zero business results, offers found. Given real presence rather than a
   footnote under an apology — it is the answer to what was asked. */
.search-offers-rescue {
    padding: 1.5rem;
    background: var(--color-yellow-light);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-offers-rescue-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.375rem;
}

.search-offers-rescue-text {
    font-size: 0.9375rem;
    color: var(--color-gray-700);
    margin-bottom: 1.25rem;
}

.search-offers-rescue .nabidky-grid {
    text-align: left;
    margin-bottom: 1.25rem;
}

.search-offers-rescue .nabidka-card-foot::before,
.search-offers-rescue .nabidka-card-foot::after {
    background: var(--color-yellow-light);
}

@media (max-width: 480px) {
    .search-type-tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }

    .search-offers-strip,
    .search-offers-rescue {
        padding: 1rem 0.75rem;
    }
}

/* ============================================================
   OBLÍBENÉ — dvě sbírky (oblibene.php)
   ============================================================ */

.favorites-tabs {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.fav-tabs {
    display: flex;
    gap: 0.25rem;
}

.fav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.125rem;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    color: var(--color-gray-500);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.fav-tab:hover {
    color: var(--color-gray-900);
}

.fav-tab.is-active {
    color: var(--color-black);
    border-bottom-color: var(--color-yellow);
    font-weight: 800;
}

.fav-tab-count {
    padding: 0.0625rem 0.4375rem;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-600);
}

.fav-tab.is-active .fav-tab-count {
    background: var(--color-yellow-light);
    color: #92400E;
}

.fav-tab:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: -2px;
}

/* Circle pills sit in the same row as category pills but carry the circle's own
   colour, so the two kinds of filter stay distinguishable at a glance. */
.pill-circle {
    border: 1.5px solid var(--circle-color, var(--color-gray-300));
}

.pill-circle.active {
    background: var(--circle-color, var(--color-gray-900));
    border-color: var(--circle-color, var(--color-gray-900));
    color: var(--color-white);
}

/* Filing nudge. Shown only when circles exist AND something is unfiled — a hint
   you cannot act on is just noise. */
.offers-nudge {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: var(--color-info-light);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1E40AF;
}

/* The saved grid sits on the page's grey content background. */
.favorites-content .nabidka-card-foot::before,
.favorites-content .nabidka-card-foot::after {
    background: var(--color-gray-50);
}

/* ============================================================
   DETAIL KRUHU (kruhy.php?circle_id=N)
   ============================================================
   The circle's own colour drives the header, so each place feels
   like a distinct space rather than a generic list view.
   ============================================================ */

.circle-detail-header {
    /* .header is position:fixed and main.css does not compensate for it — every
       page's first section pays for its own clearance. */
    padding-top: calc(var(--header-height, 72px) + 1.75rem);
    padding-bottom: 1.75rem;

    /* Left-to-right wash: strongest under the icon and title, fading out before
       it reaches the buttons on the right so they keep a clean surface.
       Capped at 22% deliberately — the circle colour is USER-CHOSEN, so it can
       be yellow, lime or pale grey. Anything strong enough to carry white text
       for a dark blue circle would be unreadable for a yellow one. A light tint
       with dark text is legible for every colour a person can pick. */
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--circle-color, #3B82F6) 22%, white) 0%,
        color-mix(in srgb, var(--circle-color, #3B82F6) 10%, white) 42%,
        var(--color-white) 88%);
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
}

/* A full-strength hairline of the circle's colour along the top edge. This is
   where the colour can be unapologetic: it identifies the circle instantly and
   nothing has to stay readable on top of it. */
.circle-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--circle-color, #3B82F6);
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .circle-detail-header {
        background: linear-gradient(100deg, var(--color-gray-100) 0%, var(--color-white) 88%);
    }
}

@media (max-width: 768px) {
    .circle-detail-header {
        padding-top: calc(var(--header-height, 64px) + 1.25rem);
    }
}

.circle-detail-back {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.circle-detail-back:hover { color: var(--color-black); }

.circle-detail-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.circle-detail-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--color-white);
    border: 3px solid var(--circle-color, #3B82F6);
    box-shadow: var(--shadow-md);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.circle-detail-titles { flex: 1; min-width: 200px; }

.circle-detail-titles h1 {
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-gray-900);
}

.circle-detail-loc {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.1875rem;
}

.circle-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---- Stats ----
   Own class names (.cd-stat*), NOT .circle-stat-item / .stat-value: kruhy.css
   paints those white for the dark dashboard header, which made them invisible
   here. Colours are set explicitly so no future dark-hero rule can reach in. */
.circle-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cd-stat {
    display: flex;
    align-items: baseline;
    gap: 0.4375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.cd-stat-value {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-gray-900);
}

.cd-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

.circle-detail-body { padding: 2rem 0 4rem; }

.circle-section { margin-bottom: 2.5rem; }

.circle-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.circle-section-head h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.circle-section-link,
.circle-section-note {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

.circle-section-link:hover { color: var(--color-black); }

.circle-section-lead {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin: -0.5rem 0 1.25rem;
    max-width: 62ch;
}

.circle-section-empty {
    padding: 1.75rem 1.25rem;
    background: var(--color-gray-50);
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-xl);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-gray-600);
}

.circle-section-empty p { margin-bottom: 0.875rem; max-width: 54ch; margin-inline: auto; }

/* Discovery is visually distinct from the saved sections: these are suggestions,
   not the person's own collection. */
.circle-section--discover {
    padding: 1.5rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
}

.circle-section--discover .nabidka-card-foot::before,
.circle-section--discover .nabidka-card-foot::after {
    background: var(--color-gray-50);
}

/* ---- Businesses in the circle ---- */

.circle-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.circle-biz-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.circle-biz-card:hover {
    border-color: var(--color-gray-400);
    box-shadow: var(--shadow-sm);
}

.circle-biz-logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--color-gray-100);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-gray-500);
    overflow: hidden;
}

.circle-biz-logo img { width: 100%; height: 100%; object-fit: cover; }

.circle-biz-info { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }

.circle-biz-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.circle-biz-cat,
.circle-biz-rating { font-size: 0.75rem; color: var(--color-gray-500); }

@media (max-width: 640px) {
    .circle-detail-stats { gap: 1.25rem; }
    .circle-detail-titles h1 { font-size: 1.25rem; }
    .circle-section--discover { padding: 1rem 0.75rem; }
}

/* ============================================================
   VEŘEJNÝ PROFIL (profil-verejny.php, /u/{username})
   ============================================================ */

.pubprofile-header {
    /* .header is fixed; this is the page's first section, so it pays for the
       clearance itself (main.css does not). */
    padding-top: calc(var(--header-height, 72px) + 1.75rem);
    padding-bottom: 1.75rem;
    background: linear-gradient(180deg, var(--color-yellow-light) 0%, var(--color-white) 85%);
    border-bottom: 1px solid var(--color-gray-200);
}

@media (max-width: 768px) {
    .pubprofile-header {
        padding-top: calc(var(--header-height, 64px) + 1.25rem);
    }
}

.pubprofile-own-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--color-gray-600);
}

.pubprofile-own-notice a {
    font-weight: 700;
    color: var(--color-black);
    text-decoration: underline;
}

.pubprofile-identity {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pubprofile-avatar {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--color-white);
    border: 3px solid var(--color-yellow);
    box-shadow: var(--shadow-md);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-gray-400);
    overflow: hidden;
}

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

.pubprofile-identity-text { flex: 1; min-width: 220px; }

.pubprofile-name {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-gray-900);
}

.pubprofile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
}

.pubprofile-level {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--color-black);
    color: var(--color-yellow);
    font-weight: 700;
}

.pubprofile-city,
.pubprofile-since {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pubprofile-since { color: var(--color-gray-500); }

.pubprofile-bio {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    max-width: 62ch;
}

.pubprofile-web {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

.pubprofile-web:hover { color: var(--color-black); text-decoration: underline; }

/* Circles: name + icon only. No location is ever rendered here. */
.pubprofile-circles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.pubprofile-circles-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

.pubprofile-circle-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.pubprofile-circle-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--circle-color, #3B82F6);
    background: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-700);
    /* Not a link: these are labels, and clicking through to someone else's
       circle is not a thing that should exist. */
    cursor: default;
}

.pubprofile-body { padding: 2rem 0 4rem; }

.pubprofile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.pubprofile-cat {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

.pubprofile-cat strong { color: var(--color-gray-900); }

.pubprofile-cta {
    margin-top: 2rem;
    padding: 1.75rem 1.25rem;
    background: var(--color-yellow-light);
    border-radius: var(--radius-xl);
    text-align: center;
}

.pubprofile-cta p {
    font-size: 0.9375rem;
    color: var(--color-gray-700);
    max-width: 52ch;
    margin: 0 auto 1rem;
}

@media (max-width: 640px) {
    .pubprofile-name { font-size: 1.375rem; }
    .pubprofile-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* ============================================================
   FIRMA.PHP — offer preview cards
   ============================================================
   The profile's own offer tiles keep their existing look (.offer-card there is
   legacy markup styled by firma's own CSS); these two rules only add the link
   wrapper and the secondary contact button introduced when each offer gained a
   detail page.
   ============================================================ */

.special-offers .offer-card-link-wrap {
    display: block;
    color: inherit;
}

.special-offers .offer-card-cta {
    display: block;
    width: 100%;
    margin-top: 0.625rem;
    padding: 0.4375rem 0.75rem;
    border-radius: var(--radius-md);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.special-offers .offer-card-cta:hover {
    background: var(--color-yellow);
    color: var(--color-black);
}

.special-offers .offer-card-cta:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* ============================================================
   POPTÁVKOVÝ FORMULÁŘ (firma.php)
   ============================================================
   Loaded AFTER firma-profile.css, so equal-specificity rules
   here win. This is deliberately a small override set, not a
   reimplementation: firma-profile.css already handles focus
   mode (fixed, centred, animated, ✕ swap), the overlay
   transition and the 900px stacking breakpoint, and all of
   that works. Only the things that made the form hard to fill
   in are changed.
   ============================================================ */

/* Labels. The form previously relied on placeholders alone, which truncate in a
   narrow column ("Telefon (pro rychlejší odp…") and disappear once the field is
   filled, leaving no record of what was asked. */
.inquiry-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-gray-700);
}

.inquiry-label .req { color: var(--color-error); }

.inquiry-label-hint {
    font-weight: 500;
    color: var(--color-gray-500);
}

.inquiry-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-gray-500);
}

/* Room to breathe. 46px min-height stops the placeholder being clipped by the
   padding and makes the field a comfortable tap target; the row gap grows to
   accommodate the labels now sitting above each field. */
.inquiry-form-compact .form-row {
    gap: 1rem;
    margin-bottom: 1rem;
}

.inquiry-form-compact .form-input,
.inquiry-form-compact .form-select,
.inquiry-form-compact .form-textarea {
    min-height: 46px;
    padding: 0.6875rem 0.875rem;
    line-height: 1.5;
}

/* Six visible lines instead of roughly two. A cramped box invites a one-line
   enquiry; a better first message means a better reply, which is the whole
   point of the form. */
.inquiry-form-compact .form-textarea {
    min-height: 150px;
}

/* Give the form column the larger share — it is the element that has to
   convert, and the benefits list beside it does not need equal width. */
@media (min-width: 901px) {
    .inquiry-section-inner {
        grid-template-columns: minmax(200px, 0.75fr) minmax(0, 1.5fr);
    }
}

/* Focus mode: firma-profile.css already positions and animates the panel. The
   only problem left is that it keeps the two-column profile layout inside a
   900px modal, so "focus" did not actually make the form easier to fill. */
.inquiry-section.focus-mode .inquiry-section-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* The benefits list is reassurance for someone still deciding whether to write.
   Once they have opened focus mode they have decided; it is only taking space. */
.inquiry-section.focus-mode .inquiry-benefits {
    display: none;
}

.inquiry-section.focus-mode .inquiry-header {
    margin-bottom: 0;
}

/* Inline result for the inquiry form — replaces alert(), which gave the person
   nowhere to look after dismissing it. */
.inquiry-result {
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
}

.inquiry-result.is-ok {
    background: var(--color-success-light);
    color: #065F46;
    border-left: 3px solid var(--color-success);
}

.inquiry-result.is-error {
    background: var(--color-error-light);
    color: #991B1B;
    border-left: 3px solid var(--color-error);
}

/* ============================================================
   VÝSLEDEK POPTÁVKY — modal (firma.php)
   ============================================================
   Self-contained: uses no variable that firma-profile.css owns,
   so it renders correctly even if load order changes. Colours
   are literal for the same reason — a status message that
   silently loses its styling is worse than no styling at all,
   which is exactly what happened with the inline version.
   ============================================================ */

.inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.inquiry-modal[hidden] { display: none; }

.inquiry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    animation: inquiryFade 180ms ease;
}

.inquiry-modal-card {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.75rem 1.5rem;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    text-align: center;
    animation: inquiryPop 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inquiry-modal-card:focus { outline: none; }

@keyframes inquiryFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes inquiryPop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .inquiry-modal-backdrop,
    .inquiry-modal-card { animation: none; }
}

.inquiry-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.inquiry-modal-close:hover { background: #F1F5F9; color: #0F172A; }

.inquiry-modal-close:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 2px;
}

.inquiry-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.875rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #DCFCE7;
    font-size: 1.875rem;
}

.inquiry-modal.is-error .inquiry-modal-icon { background: #FEE2E2; }

.inquiry-modal-title {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.inquiry-modal-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.25rem;
}

/* Recap: what was sent and where the reply goes. The email line matters most —
   a typo there is the one failure the person can still fix, and they will only
   notice it if we show it back to them. */
.inquiry-modal-recap {
    text-align: left;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.inquiry-modal-recap-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3125rem 0;
    font-size: 0.8125rem;
}

.inquiry-modal-recap-row + .inquiry-modal-recap-row {
    border-top: 1px solid #E2E8F0;
}

.inquiry-modal-recap-label { color: #64748B; flex-shrink: 0; }

.inquiry-modal-recap-value {
    font-weight: 600;
    color: #0F172A;
    text-align: right;
    overflow-wrap: anywhere;
}

.inquiry-modal-next {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.inquiry-modal-next li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.inquiry-modal-next a { font-weight: 700; color: #0F172A; text-decoration: underline; }

.inquiry-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.inquiry-modal-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }

.inquiry-modal-actions [hidden] { display: none; }

@media (max-width: 480px) {
    .inquiry-modal-card { padding: 1.75rem 1.25rem 1.25rem; }
    .inquiry-modal-title { font-size: 1.1875rem; }
    .inquiry-modal-actions .btn { flex-basis: 100%; }
}


/* ============================================================
   PARLOR — moje poptávky (zpravy.php)
   ============================================================
   A case list, not a chat client: every row leads with the
   business and the SUBJECT, because several cases with one
   company are the normal situation now.
   ============================================================ */

/* ---- Shared dark surface ----
   The slate gradient used by the business dashboard (Denní mise banner, XP
   panel). Flat black read as a hole in the page; slate has depth and sits with
   the yellow instead of fighting it.

   Declared once as variables so the thread bubbles below use the SAME surface —
   two hand-tuned darks drift apart the moment either is adjusted. */
/* ---- Shared surfaces ----
   Copied verbatim from the business dashboard (Denní mise card, XP panel) rather
   than approximated: my first pass ran #1E293B -> #0F172A, i.e. DARKER toward the
   bottom-right, where the real card runs LIGHTER to slate-700. Same two hues,
   opposite direction — which is exactly why it looked close but wrong.

   In :root so the rest of Můj účet can adopt the same three tokens instead of a
   fourth hand-mixed dark. */
:root {
    --zs-dark-from: #1e293b;                                    /* slate-800 */
    --zs-dark-to:   #334155;                                    /* slate-700 */
    --zs-dark-surface: linear-gradient(135deg, #1e293b, #334155);

    /* Inner elements ON the dark surface — progress tracks, chips, tiles. */
    --zs-dark-edge: rgba(255, 255, 255, 0.2);

    /* Rows sitting ON the dark surface (kept in step with dashboard.css). */
    --zs-dark-row:       rgba(255, 255, 255, 0.05);
    --zs-dark-row-hover: rgba(255, 255, 255, 0.1);
    --zs-accent-row:        rgba(234, 179, 8, 0.2);
    --zs-accent-row-border: rgba(234, 179, 8, 0.3);

    /* TWO accents, named apart on purpose: the 90deg bar ramp (XP badges,
       progress fills) and the 135deg badge ramp (level discs) are not
       interchangeable, and dashboard.css declares the same two — identical
       values, so a page loading both gets one answer either way. */
    --zs-accent-bar:   linear-gradient(90deg, #fbbf24, #f59e0b);
    --zs-accent-badge: linear-gradient(135deg, var(--color-yellow, #FFD900), var(--color-orange, #f59e0b));
}

.parlor-hero {
    position: relative;
    padding-top: calc(var(--header-height, 72px) + 2rem);
    padding-bottom: 2rem;
    background: var(--zs-dark-surface);
    color: var(--color-white);
    overflow: hidden;
}

/* Dot texture kept, but as an overlay so it does not overwrite the gradient —
   background-image and background alone cannot coexist on one declaration. */
.parlor-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.parlor-hero > * { position: relative; z-index: 1; }

.parlor-title-icon {
    font-size: 1.5rem;
    line-height: 1;
    /* Nudge: most emoji fonts leave a little more space below the glyph than
       above, so optical centring is a hair above geometric centring. */
    transform: translateY(-1px);
}



@media (max-width: 768px) {
    .parlor-hero { padding-top: calc(var(--header-height, 64px) + 1.25rem); }
}

.parlor-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Flex rather than an inline emoji followed by a space: an emoji sits on its own
   baseline and renders noticeably low beside a 900-weight heading. Centring both
   on the flex axis aligns them regardless of the font's metrics.
   ONE definition — an earlier duplicate of this selector lost the cascade to
   this block and silently did nothing. */
.parlor-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-white);
}

/* Yellow, not grey: on the dark hero the grey dissolved into the background. */
.parlor-subtitle {
    font-size: 0.9375rem;
    color: var(--color-yellow);
    margin-top: 0.25rem;
}

.parlor-hero-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.parlor-stat {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    /* rgba(255,255,255,.2) is the dashboard's own inner-surface value — the same
       one its progress track uses. */
    background: var(--zs-dark-edge);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    min-width: 104px;
}

/* Unread is the one number worth shouting about — yellow fill, black text, the
   same emphasis the account hero gives its rank tile. */
.parlor-stat.is-highlight {
    background: var(--zs-accent-bar);
    border-color: #f59e0b;
}

.parlor-stat.is-highlight .parlor-stat-value { color: var(--color-black); }
.parlor-stat.is-highlight .parlor-stat-label { color: rgba(0, 0, 0, 0.65); }

.parlor-stat-value { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--color-white); }
.parlor-stat-label { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.6); }

/* ---- Layout ---- */

.parlor-layout {
    display: grid;
    /* Wider: Czech status labels ("Čeká na odpověď", "Odpovězené") plus a count
       do not fit 280px, and the filter row was scrolling sideways as a result. */
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .parlor-layout { grid-template-columns: 1fr; }
}

/* ---- List column ---- */

.parlor-list { display: flex; flex-direction: column; min-width: 0; }

/* ---- Filters ---- */

/* Wrap rather than scroll. A horizontally scrolling filter row hides options —
   the visitor cannot see that "Archiv" exists without discovering the scroll. */
.parlor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.parlor-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.parlor-filter:hover { background: var(--color-gray-200); color: var(--color-gray-900); }
.parlor-filter.is-active { background: var(--zs-dark-from); color: var(--color-white); }

.parlor-filter-count {
    padding: 0 0.3125rem;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.08);
    font-size: 0.6875rem;
    font-weight: 800;
}

.parlor-filter.is-active .parlor-filter-count { background: rgba(255,255,255,0.2); }

/* ---- List ---- */

.parlor-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.parlor-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    color: var(--color-gray-900);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.parlor-item:hover { border-color: var(--color-gray-400); }

/* The heavy black outline read as an error state. Selection is now a yellow
   rail plus a tinted surface — the same language the rest of the account uses
   for "you are here". */
.parlor-item.is-active {
    border-color: var(--color-yellow);
    background: var(--color-yellow-light);
    box-shadow: inset 3px 0 0 var(--color-yellow);
}

.parlor-item.is-active .parlor-item-subject { color: var(--color-black); }

/* Unread is carried by a left bar rather than a background tint: the row still
   has to be readable, and a tinted row plus a badge is one signal too many. */
/* Unread uses a black rail so it stays distinguishable from the yellow
   selection rail — otherwise the selected row and an unread row look identical. */
.parlor-item.is-unread { box-shadow: inset 3px 0 0 var(--zs-dark-from); }
.parlor-item.is-unread.is-active { box-shadow: inset 3px 0 0 var(--zs-dark-from); }

.parlor-item-icon { font-size: 1.25rem; flex-shrink: 0; }

.parlor-item-body { display: flex; flex-direction: column; gap: 0.1875rem; min-width: 0; flex: 1; }

.parlor-item-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }

.parlor-item-biz {
    font-size: 0.8125rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parlor-item-time { font-size: 0.6875rem; color: var(--color-gray-400); flex-shrink: 0; }

.parlor-item-subject {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parlor-item-preview {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parlor-item-preview em { font-style: normal; color: var(--color-gray-400); }

.parlor-item-count {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--zs-dark-from);
    color: var(--color-yellow);
    font-size: 0.6875rem;
    font-weight: 800;
}

/* ---- Status badge ---- */

.parlor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    align-self: flex-start;
    margin-top: 0.1875rem;
    padding: 0.125rem 0.4375rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
}

.parlor-badge.is-new      { background: var(--color-yellow); color: var(--color-black); }
.parlor-badge.is-waiting  { background: var(--color-warning-light); color: #92400E; }
.parlor-badge.is-answered { background: var(--color-success-light); color: #065F46; }
.parlor-badge.is-closed   { background: var(--color-gray-100); color: var(--color-gray-500); }

/* ---- Thread ---- */

.parlor-thread {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.parlor-thread-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.parlor-thread-titles { min-width: 0; flex: 1; }

.parlor-thread-subject { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }

.parlor-thread-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
}

.parlor-thread-meta a { font-weight: 600; color: var(--color-gray-800); }
.parlor-thread-meta a:hover { text-decoration: underline; }

.parlor-thread-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.parlor-inline-form { display: inline; }

/* ---- Offer recap ---- */

.parlor-offer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.875rem 1.25rem 0;
    padding: 0.75rem 0.875rem;
    background: var(--color-yellow-light);
    border-radius: var(--radius-lg);
    color: var(--color-gray-900);
}

.parlor-offer-card:hover { background: #FDE68A; }

.parlor-offer-icon { font-size: 1.375rem; }
.parlor-offer-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.parlor-offer-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #92400E;
}

.parlor-offer-title { font-size: 0.875rem; font-weight: 700; }
.parlor-offer-go { color: #92400E; font-weight: 800; }

/* ---- Messages ---- */

.parlor-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    max-height: 52vh;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.parlor-day {
    text-align: center;
    margin: 0.5rem 0;
}

.parlor-day span {
    display: inline-block;
    padding: 0.1875rem 0.625rem;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

.parlor-msg { display: flex; }
.parlor-msg.is-me { justify-content: flex-end; }

.parlor-msg-bubble {
    max-width: min(560px, 78%);
    padding: 0.625rem 0.875rem;
    border-radius: 14px;
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

/* The visitor's own messages carried flat #0A0A0A, which sat heavily against the
   white card and matched nothing else on the page. Same slate gradient as the
   hero — one dark surface across the whole feature. */
.parlor-msg.is-me .parlor-msg-bubble {
    background: var(--zs-dark-surface);
    color: var(--color-white);
    border-bottom-right-radius: 4px;
}

/* Attachment chips sit ON that gradient, so they need their own light surface
   rather than inheriting the bubble's text colour. */
.parlor-msg.is-me .parlor-file {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.parlor-msg.is-me .parlor-msg-time { color: rgba(255, 255, 255, 0.6); opacity: 1; }

.parlor-msg.is-them .parlor-msg-bubble { border-bottom-left-radius: 4px; }

.parlor-msg.is-pending .parlor-msg-bubble { opacity: 0.6; }

.parlor-msg-text { font-size: 0.9375rem; line-height: 1.55; overflow-wrap: anywhere; }

.parlor-msg-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    opacity: 0.6;
}

/* Sets an expectation instead of leaving someone staring at their own
   unanswered message wondering whether it arrived. */
.parlor-waiting-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: center;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    background: var(--color-warning-light);
    color: #92400E;
    font-size: 0.75rem;
}

/* ---- Composer ---- */

.parlor-composer {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.parlor-composer-input {
    width: 100%;
    min-height: 72px;
    max-height: 160px;
    padding: 0.6875rem 0.875rem;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: vertical;
}

/* Yellow only — the black border plus a yellow glow read as two competing focus
   rings, the same fix already applied on the business composer. */
.parlor-composer-input:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
}

/* Toolbar row: attach on the left, hint in the middle, send on the right —
   the same left-to-right order the business composer uses. */
.parlor-composer-bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.parlor-composer-hint {
    flex: 1;
    min-width: 0;
    font-size: 0.6875rem;
    color: var(--color-gray-500);
}

/* A labelled primary button, not a bare arrow tile. This is the main action on
   the page and should look like every other primary button in the account. */
.parlor-send { min-height: 42px; }

.parlor-file-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; overflow: hidden;
}

.parlor-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.parlor-attach-btn:hover { border-color: var(--color-gray-500); color: var(--color-gray-900); }
.parlor-file-input:focus-visible + .parlor-attach-btn { outline: 2px solid var(--color-black); outline-offset: 2px; }

.parlor-file-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.parlor-file-chip {
    padding: 0.1875rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

.parlor-file-chip.is-error { background: var(--color-error-light); color: #991B1B; }

/* ---- Empty states ---- */

.parlor-empty,
.parlor-placeholder {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--color-gray-600);
}

.parlor-empty-icon,
.parlor-placeholder-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.6; }

.parlor-empty-title,
.parlor-placeholder h2 { font-size: 1.0625rem; font-weight: 800; color: var(--color-gray-900); margin-bottom: 0.375rem; }

.parlor-empty-text,
.parlor-placeholder p { font-size: 0.875rem; line-height: 1.6; max-width: 44ch; margin: 0 auto 1rem; }

/* Attachments inside a customer's thread (zpravy.php). */

.parlor-files { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

.parlor-file-img {
    display: block; width: 110px; height: 84px;
    border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.parlor-file-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.parlor-file {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4375rem 0.625rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-gray-900);
    max-width: 240px;
}

/* The bubble is near-black on the visitor's own messages, so the file chip needs
   its own light surface rather than inheriting the text colour. */
.parlor-msg.is-them .parlor-file { background: var(--color-white); border: 1px solid var(--color-gray-200); }

.parlor-file:hover { background: var(--color-white); }

.parlor-file-icon { font-size: 1.125rem; flex-shrink: 0; }
.parlor-file-body { display: flex; flex-direction: column; min-width: 0; }

.parlor-file-name {
    font-size: 0.8125rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.parlor-file-size { font-size: 0.6875rem; color: var(--color-gray-500); }
