.local-proof-page {
    background: #f3f5f6;
}

.local-proof-page main {
    padding-top: 120px;
}

.local-proof__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 590px;
    overflow: hidden;
    color: #fff;
    background: #152027;
}

.local-proof__hero::before,
.local-proof__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.local-proof__hero::before {
    background: url('/images/products/header/portofoliu_header.jpg') center 56% / cover no-repeat;
    transform: scale(1.015);
}

.local-proof__hero::after {
    background: linear-gradient(90deg, rgba(8, 15, 20, .94) 0%, rgba(8, 15, 20, .78) 43%, rgba(8, 15, 20, .28) 100%);
}

.local-proof__hero-content {
    width: 100%;
    padding-top: 76px;
    padding-bottom: 80px;
}

.local-proof__hero-copy {
    max-width: 690px;
}

.local-proof__kicker,
.local-proof__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d95d27;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.local-proof__hero .local-proof__kicker {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.local-proof__hero h1 {
    max-width: 680px;
    margin: 23px 0 18px;
    font-size: clamp(2.8rem, 5vw, 4.85rem);
    line-height: 1.04;
    letter-spacing: -.048em;
}

.local-proof__hero p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.6vw, 1.17rem);
    line-height: 1.65;
}

.local-proof__hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 27px;
}

.local-proof__hero-actions .btn {
    min-height: 48px;
}

.local-proof__search-wrap {
    position: relative;
    max-width: 560px;
    margin-top: 32px;
}

.local-proof__search-wrap label {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
}

.local-proof__search-wrap i {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #e5632a;
    pointer-events: none;
}

.local-proof__search-wrap input {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 51px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 18px;
    outline: none;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    color: #17202a;
    font: inherit;
}

.local-proof__search-wrap input:focus-visible {
    border-color: #f07943;
    box-shadow: 0 0 0 4px rgba(240, 121, 67, .25), 0 18px 50px rgba(0, 0, 0, .18);
}

.local-proof__suggestions:not([hidden]) {
    position: absolute;
    z-index: 5;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(31, 48, 59, .13);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
}

.local-proof__suggestions button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 17px;
    border: 0;
    border-bottom: 1px solid #edf0f1;
    background: #fff;
    color: #1e2a30;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.local-proof__suggestions button:last-child {
    border-bottom: 0;
}

.local-proof__suggestions button:hover,
.local-proof__suggestions button:focus-visible {
    background: #fff3ed;
    outline: none;
}

.local-proof__suggestions span {
    color: #68727a;
    font-size: .84rem;
}

.local-proof__explorer {
    padding: 74px 0 90px;
}

.local-proof__section-head {
    max-width: 740px;
    margin-bottom: 25px;
}

.local-proof__section-head h2 {
    margin: 12px 0 11px;
    color: #17212a;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.local-proof__section-head p {
    margin: 0;
    color: #59636d;
    line-height: 1.65;
}

.local-proof__places {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    max-height: 263px;
    padding: 3px 7px 3px 3px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.local-proof__place {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 104px;
    padding: 17px 50px 15px 18px;
    border: 1px solid rgba(39, 54, 61, .12);
    border-radius: 18px;
    color: #17212a;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 9px 26px rgba(28, 40, 48, .04);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}

.local-proof__place:hover,
.local-proof__place:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(217, 93, 39, .5);
    box-shadow: 0 15px 28px rgba(28, 40, 48, .1);
    outline: none;
}

.local-proof__place.is-active {
    border-color: #dc612c;
    background: #fff6f1;
    box-shadow: 0 12px 30px rgba(217, 93, 39, .12);
}

.local-proof__place-name {
    overflow: hidden;
    max-width: 100%;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.local-proof__place-district {
    margin-top: 5px;
    color: #68727a;
    font-size: .81rem;
}

.local-proof__place-count {
    position: absolute;
    top: 17px;
    right: 16px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #e9eef0;
    color: #4a5961;
    font-size: .77rem;
    font-weight: 800;
}

.local-proof__place.is-active .local-proof__place-count {
    background: #d95d27;
    color: #fff;
}

.local-proof__no-matches {
    margin: 16px 0 0;
    padding: 18px 20px;
    border-radius: 16px;
    color: #5c6670;
    background: #fff;
}

.local-proof__results {
    margin-top: 46px;
    scroll-margin-top: 145px;
}

.local-proof__selection-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(38, 53, 61, .15);
}

.local-proof__selection-head h2 {
    margin: 7px 0 4px;
    color: #17212a;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.local-proof__selection-head p {
    margin: 0;
    color: #63707a;
}

.local-proof__totals {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.local-proof__totals span {
    padding: 10px 13px;
    border: 1px solid rgba(31, 48, 59, .09);
    border-radius: 999px;
    background: #fff;
    color: #55626c;
    font-size: .83rem;
}

.local-proof__totals strong {
    color: #19252c;
}

/* Un card per proiect: recenzia video + fotografiile + citatul cu 5 stele. */
.local-proof__stories {
    display: grid;
    gap: 32px;
    margin-top: 30px;
}

.local-proof__story {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(31, 48, 59, .09);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(31, 48, 59, .07);
}

.local-proof__story-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 14px;
    height: min(72vh, 580px);
    min-height: 420px;
    padding: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #f3f5f6 0%, #eceff1 100%);
}

.local-proof__story--mixed .local-proof__story-media {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.local-proof__story--video {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

/* Video și fotografii stau în două „plăci” separate, cu spațiu deschis între ele. */
.local-proof__story-video,
.local-proof__story-photos {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #111b22;
    box-shadow: 0 10px 24px rgba(17, 27, 34, .14);
}

.local-proof__story-photos {
    display: flex;
    flex-direction: column;
}

.local-proof__photo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #1c2930;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.local-proof__photo-badge i {
    color: #eb7139;
}

.local-proof__photo-stage,
.local-proof__video-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #111b22;
}

.local-proof__story-photos .local-proof__photo-stage {
    flex: 1 1 auto;
}

/* Toată banda cu miniaturi stă într-un panou de sticlă cu margini argintii;
   miniaturile își păstrează selecția portocalie. */
.local-proof__story-photos .local-proof__thumbs {
    flex: 0 0 auto;
    margin: 10px 12px 12px;
    padding: 10px 10px 8px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 100%) padding-box,
        linear-gradient(#111b22, #111b22) padding-box,
        linear-gradient(135deg, #ffffff 0%, #aeb7c0 28%, #eef2f5 52%, #8f99a3 76%, #e6ebef 100%) border-box;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 8px 22px rgba(0, 0, 0, .35);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.local-proof__video-tabs,
.local-proof__video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.local-proof__video-tabs {
    right: 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.local-proof__video-tabs button,
.local-proof__video-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(9, 17, 22, .72);
    color: #fff;
    font: inherit;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.local-proof__video-tabs button {
    cursor: pointer;
}

.local-proof__video-tabs button[aria-pressed='true'] {
    border-color: #eb7139;
    background: #eb7139;
}

.local-proof__video-tabs button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.local-proof__story-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 36px;
    padding: 24px 28px 26px;
}

.local-proof__story--video .local-proof__story-body {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 34px clamp(24px, 4vw, 48px);
}

.local-proof__story--video .local-proof__story-quote {
    flex: 0 0 auto;
    max-width: 560px;
}

.local-proof__story-head h4 {
    margin: 5px 0 0;
    color: #1c2930;
    font-size: 1.3rem;
    letter-spacing: -.02em;
}

.local-proof__story-head p {
    margin: 6px 0 0;
    color: #6d777f;
    font-size: .87rem;
}

.local-proof__story-quote {
    flex: 0 1 560px;
    margin: 0;
    padding-left: 18px;
    border-left: 3px solid #eb7139;
}

.local-proof__stars {
    display: flex;
    gap: 4px;
    color: #e5a62d;
    font-size: .92rem;
}

.local-proof__story-quote blockquote {
    margin: 9px 0 0;
    color: #26343c;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
}

.local-proof__photo-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.local-proof__photo-open:focus-visible {
    outline: 3px solid #eb7139;
    outline-offset: -3px;
}

.local-proof__video-stage {
    position: relative;
}

.local-proof__video-stage video {
    cursor: pointer;
}

.local-proof__photo-main,
.local-proof__story-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.local-proof__photo-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(9, 17, 22, .78);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.local-proof__video-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 38px auto minmax(40px, 1fr) 38px 38px;
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 18px 12px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .92));
    color: #fff;
}

.local-proof__video-controls button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.local-proof__video-controls button:hover,
.local-proof__video-controls button:focus-visible {
    background: rgba(255, 255, 255, .16);
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.local-proof__video-controls span {
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.local-proof__video-controls input {
    width: 100%;
    height: 5px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(to right, #ee733b var(--progress, 0%), rgba(255, 255, 255, .55) var(--progress, 0%));
    cursor: pointer;
}

.local-proof__video-controls input::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    appearance: none;
    border-radius: 50%;
    background: #fff;
}

.local-proof__video-controls input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.local-proof__viewer {
    inset: 0;
    /* reset-ul global (* { margin: 0 }) anulează centrarea implicită a <dialog> */
    margin: auto;
    /* fereastra ia dimensiunea fotografiei sau a videoclipului, fără benzi negre laterale */
    width: fit-content;
    min-width: min(320px, 96vw);
    max-width: 96vw;
    max-height: 96vh;
    max-height: 96dvh;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: #111b22;
    color: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.local-proof__viewer::backdrop {
    background: rgba(3, 8, 12, .88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.local-proof__viewer [hidden] {
    display: none !important;
}

.local-proof__viewer-panel {
    display: flex;
    flex-direction: column;
    max-height: 96vh;
    max-height: 96dvh;
}

.local-proof__viewer-bar,
.local-proof__viewer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
}

.local-proof__viewer-bar {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.local-proof__viewer-bar strong {
    overflow: hidden;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.local-proof__viewer-close,
.local-proof__viewer-nav button {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
}

.local-proof__viewer-close:hover,
.local-proof__viewer-nav button:hover,
.local-proof__viewer-close:focus-visible,
.local-proof__viewer-nav button:focus-visible {
    background: rgba(255, 255, 255, .22);
    outline: 2px solid #f07842;
}

.local-proof__viewer-stage {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    background: #0b1318;
}

.local-proof__viewer-stage img,
.local-proof__viewer-stage video {
    display: block;
    width: auto;
    max-width: calc(96vw - 2px);
    height: auto;
    max-height: calc(96vh - 122px);
    max-height: calc(96dvh - 122px);
    object-fit: contain;
}

/* Fără bara de jos (video sau o singură fotografie), media poate fi mai înaltă. */
.local-proof__viewer:has([data-viewer-nav][hidden]) .local-proof__viewer-stage img,
.local-proof__viewer:has([data-viewer-nav][hidden]) .local-proof__viewer-stage video {
    max-height: calc(96dvh - 62px);
}

.local-proof__viewer-stage video {
    min-height: 0;
    background: #000;
}

.local-proof__viewer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.local-proof__viewer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.local-proof__viewer-nav span {
    min-width: 48px;
    font-size: .85rem;
    text-align: center;
}

.local-proof__viewer-bottom {
    justify-content: center;
}

.local-proof__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 7px;
}

.local-proof__thumb {
    flex: 0 0 72px;
    height: 58px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #e9ecee;
    cursor: pointer;
}

.local-proof__thumb[aria-pressed='true'] {
    border-color: #df612b;
}

.local-proof__thumb:focus-visible {
    outline: 2px solid #df612b;
    outline-offset: 2px;
}

.local-proof__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-proof__selection-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.local-proof__text-link {
    color: #a8461c;
    font-weight: 700;
    text-decoration: none;
}

.local-proof__text-link:hover {
    text-decoration: underline;
}

.local-proof__cta {
    padding: 0 0 90px;
}

.local-proof__cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: clamp(27px, 4vw, 54px);
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(125deg, #1c2930 0%, #2a3740 68%, #463327 100%);
    box-shadow: 0 24px 55px rgba(21, 32, 39, .16);
}

.local-proof__cta-box h2 {
    max-width: 670px;
    margin: 9px 0 11px;
    font-size: clamp(1.75rem, 2.8vw, 2.75rem);
    line-height: 1.14;
    letter-spacing: -.035em;
}

.local-proof__cta-box p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, .79);
    line-height: 1.6;
}

.local-proof__cta-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
}

@media (max-width: 1100px) {
    .local-proof__places {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .local-proof__cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .local-proof__story--mixed .local-proof__story-media {
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .local-proof-page main {
        padding-top: 88px;
    }

    .local-proof__hero {
        min-height: 570px;
    }

    .local-proof__hero::after {
        background: linear-gradient(90deg, rgba(8, 15, 20, .91), rgba(8, 15, 20, .69));
    }

    .local-proof__hero-content {
        padding-top: 62px;
        padding-bottom: 66px;
    }

    .local-proof__places {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 320px;
    }

    .local-proof__selection-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .local-proof__story--mixed .local-proof__story-media,
    .local-proof__story--video {
        grid-template-columns: minmax(0, 1fr);
    }

    .local-proof__story-media,
    .local-proof__story--mixed .local-proof__story-media {
        grid-template-rows: none;
        height: auto;
        min-height: 0;
    }

    .local-proof__story-video .local-proof__video-stage {
        height: min(125vw, 560px);
    }

    .local-proof__story-media,
    .local-proof__story--video .local-proof__story-media {
        gap: 10px;
        padding: 10px;
    }

    .local-proof__story-video,
    .local-proof__story-photos {
        border-radius: 14px;
    }

    .local-proof__story-photos .local-proof__photo-stage {
        flex: 0 0 auto;
        height: min(85vw, 460px);
    }

    .local-proof__story-body,
    .local-proof__story--video .local-proof__story-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px 24px;
    }

    .local-proof__story-quote {
        flex: 0 0 auto;
    }
}

@media (max-width: 520px) {
    .local-proof__viewer {
        max-width: calc(100vw - 16px);
        border-radius: 16px;
    }

    .local-proof__viewer-stage img,
    .local-proof__viewer-stage video {
        max-width: calc(100vw - 18px);
    }

    .local-proof__viewer-bar,
    .local-proof__viewer-bottom {
        padding-right: 12px;
        padding-left: 12px;
    }

    .local-proof__hero {
        min-height: 620px;
    }

    .local-proof__hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.45rem);
    }

    .local-proof__hero-actions,
    .local-proof__selection-actions,
    .local-proof__cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .local-proof__hero-actions .btn,
    .local-proof__selection-actions .btn,
    .local-proof__cta-actions .btn {
        width: 100%;
    }

    .local-proof__explorer {
        padding: 55px 0 68px;
    }

    .local-proof__places {
        gap: 8px;
    }

    .local-proof__stories {
        gap: 24px;
    }

    .local-proof__story {
        border-radius: 22px;
    }

    .local-proof__place {
        min-height: 95px;
        padding: 13px 32px 12px 12px;
    }

    .local-proof__place-count {
        top: 13px;
        right: 9px;
        width: 22px;
        height: 22px;
    }

    .local-proof__cta {
        padding-bottom: 70px;
    }
}
