/*
 * Styling for page-templates/page-cennik-podglad.php - the rebuilt,
 * non-Elementor /cennik/ page. New patterns not already covered by
 * design-system-lab.css's shared "lp-*" components (that file supplies
 * the section padding, buttons, video grid, and photo gallery grid this
 * page also uses).
 *
 * @package Anima_Child
 */

.lp-cennik-group {
    margin-top: 40px;
}

.lp-cennik-group:first-child {
    margin-top: 0;
}

/* The category header is the first child of .lp-cennik-list, so it forms
   one seamless card with the rows below it - not a separate pill
   floating above the list with its own gaps. .lp-cennik-list's own
   border-radius + overflow:hidden clip the header's top corners to
   match automatically. */
.lp-cennik-group__header {
    padding: 16px 20px;
    background: var(--lp-color-primary-900);
}

.lp-cennik-group__title {
    margin: 0;
    color: #ffffff !important;
    font-family: var(--lp-font-heading);
    font-size: var(--lp-text-lg);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lp-cennik-group__subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--lp-text-sm);
}

.lp-cennik-list {
    border: 1px solid var(--lp-color-border);
    border-radius: var(--lp-radius-lg);
    background: var(--lp-color-surface);
    box-shadow: var(--lp-shadow-sm);
    overflow: hidden;
}

.lp-cennik-row {
    padding: 10px 18px;
    border-bottom: 1px solid var(--lp-color-border);
    border-left: 3px solid transparent;
    transition: background-color 160ms ease, border-left-color 160ms ease;
}

.lp-cennik-list .lp-cennik-row:last-child {
    border-bottom: 0;
}

.lp-cennik-row:nth-child(even) {
    background: var(--lp-color-surface-warm);
}

.lp-cennik-row:hover {
    background: var(--lp-color-primary-50);
    border-left-color: var(--lp-color-primary-500);
}

.lp-cennik-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.lp-cennik-row__name {
    margin: 0;
    color: var(--lp-color-ink);
    font-family: var(--lp-font-heading);
    font-size: var(--lp-text-base);
    font-weight: 700;
}

.lp-cennik-row__desc {
    margin: 2px 0 0;
    color: var(--lp-color-muted);
    font-size: var(--lp-text-xs);
    line-height: 1.4;
}

.lp-cennik-row__price {
    margin: 0;
    flex-shrink: 0;
    color: var(--lp-color-primary-700);
    font-family: var(--lp-font-heading);
    font-size: var(--lp-text-lg);
    font-weight: 700;
    white-space: nowrap;
}

.lp-cennik-location {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.lp-cennik-location iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--lp-radius-md);
}

.lp-cennik-location__details {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--lp-color-border);
    border-radius: var(--lp-radius-md);
    background: var(--lp-color-surface);
    box-shadow: var(--lp-shadow-sm);
}

.lp-cennik-location__details h3 {
    margin: 0;
    color: var(--lp-color-ink);
    font-family: var(--lp-font-heading);
}

.lp-cennik-location__details p {
    margin: 0;
    color: var(--lp-color-muted);
    font-size: var(--lp-text-sm);
    line-height: var(--lp-line-body);
}

.lp-cennik-payment-banner {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
}

.lp-cennik-payment-banner img {
    max-width: 220px;
    height: auto;
}

.lp-cennik-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.lp-cennik-programs__item {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 20px;
    border: 1px solid var(--lp-color-border);
    border-radius: var(--lp-radius-md);
    background: var(--lp-color-surface);
    box-shadow: var(--lp-shadow-sm);
    text-align: center;
}

.lp-cennik-programs__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lp-color-primary-700);
    color: #ffffff;
    font-size: 20px;
}

.lp-cennik-programs__label {
    margin: 0;
    color: var(--lp-color-ink);
    font-family: var(--lp-font-heading);
    font-weight: 600;
}

.lp-cennik-programs__desc {
    margin: 0;
    color: var(--lp-color-muted);
    font-size: var(--lp-text-sm);
    line-height: var(--lp-line-body);
}

.lp-cennik-programs__logo {
    max-width: 160px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 720px) {
    .lp-cennik-location {
        grid-template-columns: 1fr;
    }
}
