/* ==========================================================================
   Reviews — modern editorial card with quote mark + inline author/city
   ========================================================================== */

.ab-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1000px) { .ab-reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ab-reviews-grid { grid-template-columns: 1fr; } }

/* Card ── editorial design on dark petrol with subtle orange accent strip */
.ab-review {
    position: relative;
    background: var(--ab-petrol-600);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 36px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--ab-ice-100);
    transition:
        border-color 380ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-review::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--ab-orange-500);
    transition: width 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-review:hover {
    border-color: var(--ab-ice-brand);
    transform: translateY(-2px);
}
.ab-review:hover::before { width: 92px; }

/* Verified badge — minimal cyan pill, top-right */
.ab-review__verified {
    position: absolute;
    top: 18px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ab-font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ab-orange-500);
}
.ab-review__verified::before {
    content: '';
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Decorative oversized quote mark */
.ab-review__quote {
    font-family: var(--ab-font-display);
    font-size: 5rem;
    line-height: 0.5;
    color: var(--ab-ice-brand);
    opacity: 0.55;
    margin: 0 0 14px;
    height: 30px;
    overflow: hidden;
    user-select: none;
    font-weight: 400;
}

.ab-review__body {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 28px;
    flex: 1;
}
.ab-review__body p { margin: 0 0 0.9em; }
.ab-review__body p:last-child { margin-bottom: 0; }

/* Author footer ── name and city on same line */
.ab-review__foot {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.ab-review__author {
    font-family: var(--ab-font-display);
    font-size: 1.05rem;
    color: var(--ab-white);
    letter-spacing: 0.01em;
    line-height: 1;
}
.ab-review__sep {
    color: var(--ab-orange-500);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}
.ab-review__city {
    font-family: var(--ab-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1;
}

/* ──────────── Swiper carousel wrapper ──────────── */
.ab-reviews-swiper {
    position: relative;
    padding-bottom: 4px;
    overflow: hidden;
}
.ab-reviews-swiper .swiper-wrapper {
    align-items: stretch;
    box-sizing: content-box;
}
.ab-reviews-swiper .swiper-slide { height: auto; }
.ab-reviews-swiper__controls {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    margin-top: 36px;
}
.ab-reviews-swiper__prev,
.ab-reviews-swiper__next {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--ab-white);
    border: 1px solid var(--ab-line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ab-ink-900);
    cursor: pointer;
    transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
    padding: 0;
}
.ab-reviews-swiper__prev svg,
.ab-reviews-swiper__next svg { width: 18px; height: 18px; }
.ab-reviews-swiper__prev:hover,
.ab-reviews-swiper__next:hover {
    background: var(--ab-orange-500);
    color: var(--ab-white);
    border-color: var(--ab-orange-500);
}
.ab-reviews-swiper__prev[disabled],
.ab-reviews-swiper__next[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.ab-reviews-swiper__pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.ab-reviews-swiper__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--ab-line-strong);
    opacity: 1;
    margin: 0 !important;
    transition: width 280ms ease, background 280ms ease;
    cursor: pointer;
}
.ab-reviews-swiper__pagination .swiper-pagination-bullet-active {
    background: var(--ab-orange-500);
    width: 28px;
}

@media (max-width: 640px) {
    .ab-review { padding: 32px 24px 26px; }
    .ab-reviews-swiper__controls { gap: 12px; }
}

/* Empty state — shown on /anmeldelser/ when no published reviews exist */
.ab-reviews-empty {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.ab-reviews-empty__icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 204, 220, 0.16);
    color: var(--ab-ice-brand);
    margin-bottom: 6px;
}
.ab-reviews-empty__icon svg { width: 36px; height: 36px; }
.ab-reviews-empty h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0;
    color: var(--ab-ink-900);
}
.ab-reviews-empty p {
    color: var(--ab-ink-500);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 460px;
}
.ab-reviews-empty p:last-child { margin-top: 10px; }
