/* =========================================================
   POROČNI PROTOKOL – GUMBI IN POJAVNO OKNO
   ========================================================= */

body.protocol-open {
    overflow: hidden !important;
}

.protocol-button-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.protocol-button-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Gumb na glavni naslovni fotografiji */
.protocol-hero-button {
    width: min(275px, 100%);
    min-height: 60px;
    margin: 16px auto 0;
    padding: 10px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 1px solid rgba(185, 133, 67, 0.88);
    border-radius: 9px;
    background: rgba(255, 250, 242, 0.88);
    color: #2b211b;

    box-shadow: 0 9px 26px rgba(20, 12, 7, 0.20);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.protocol-hero-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 250, 242, 0.97);
    box-shadow: 0 14px 32px rgba(20, 12, 7, 0.26);
}

.protocol-hero-button .protocol-button-icon {
    color: #b98543;
}

.protocol-hero-button strong,
.gate-protocol-button strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.protocol-hero-button small,
.gate-protocol-button small {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

/* Gumb na zaklenjeni zavesi */
.gate-protocol-button {
    width: min(270px, 100%);
    min-height: 52px;
    margin: -8px auto 18px;
    padding: 9px 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border: 1px solid rgba(185, 133, 67, 0.62);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: #2b211b;

    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gate-protocol-button:hover {
    background: rgba(255, 255, 255, 0.90);
    transform: translateY(-2px);
}

.gate-protocol-button .protocol-button-icon {
    color: #b98543;
}

/* Pojavno okno */
.protocol-modal[hidden] {
    display: none !important;
}

.protocol-modal {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.protocol-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 12, 8, 0.82);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.protocol-dialog {
    position: relative;
    z-index: 1;
    width: min(610px, 100%);
    max-height: calc(100svh - 48px);
    overflow: auto;
    padding: 34px 38px 32px;

    border: 1px solid rgba(185, 133, 67, 0.86);
    border-radius: 16px;
    background:
        radial-gradient(circle at center top, rgba(255, 255, 255, 0.92), transparent 48%),
        #fffaf2;
    color: #2b211b;

    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: #b98543 #f6ead8;
}

.protocol-dialog::after {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(185, 133, 67, 0.26);
    border-radius: 11px;
    content: "";
    pointer-events: none;
}

.protocol-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(185, 133, 67, 0.52);
    border-radius: 50%;
    background: rgba(255, 250, 242, 0.88);
    color: #2b211b;

    font: 300 29px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.protocol-close:hover {
    background: #b98543;
    color: white;
    transform: rotate(4deg) scale(1.04);
}

.protocol-ornament {
    position: relative;
    width: min(270px, 70%);
    margin: 0 auto 18px;
}

.protocol-ornament img {
    display: block;
    width: 100%;
    height: auto;
}

.protocol-ornament span {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    color: #b98543;
    font-size: 25px;
    line-height: 1;
}

.protocol-kicker {
    margin: 0 0 8px;
    color: #8d612c;
    font: 600 11px/1 "Montserrat", Arial, sans-serif;
    letter-spacing: 3px;
}

.protocol-dialog h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(34px, 7vw, 48px);
    font-weight: 500;
    letter-spacing: 5px;
    line-height: 1.05;
}

.protocol-description {
    margin: 10px auto 23px;
    color: #6b6057;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
}

.protocol-timeline {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.protocol-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    min-height: 47px;
    border-top: 1px solid rgba(185, 133, 67, 0.24);
}

.protocol-timeline li:last-child {
    border-bottom: 1px solid rgba(185, 133, 67, 0.24);
}

.protocol-timeline time {
    color: #8d612c;
    font: 600 13px/1 "Montserrat", Arial, sans-serif;
    letter-spacing: 0.8px;
}

.protocol-timeline span {
    position: relative;
    padding-left: 22px;
    color: #3b322c;
    font: 500 13px/1.4 "Montserrat", Arial, sans-serif;
}

.protocol-timeline span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border: 1px solid #b98543;
    border-radius: 50%;
    background: #fffaf2;
    content: "";
    transform: translateY(-50%);
}

@media (max-width: 850px) {
    .protocol-hero-button {
        width: min(370px, 94vw);
        min-height: 58px;
        margin-top: 11px;
        padding: 9px 14px;
    }

    .protocol-hero-button strong {
        font-size: 13px;
    }
}

@media (max-width: 650px) {
    .gate-protocol-button {
        margin-top: -6px;
        margin-bottom: 15px;
    }

    .protocol-modal {
        padding: 10px;
    }

    .protocol-dialog {
        max-height: calc(100svh - 20px);
        padding: 29px 18px 22px;
        border-radius: 12px;
    }

    .protocol-close {
        top: 10px;
        right: 10px;
        width: 39px;
        height: 39px;
        font-size: 27px;
    }

    .protocol-ornament {
        width: min(235px, 68%);
        margin-bottom: 16px;
    }

    .protocol-dialog h2 {
        font-size: 34px;
        letter-spacing: 3px;
    }

    .protocol-description {
        margin-bottom: 17px;
        font-size: 11px;
    }

    .protocol-timeline li {
        grid-template-columns: 65px 1fr;
        min-height: 44px;
    }

    .protocol-timeline time,
    .protocol-timeline span {
        font-size: 12px;
    }
}
