/* Gallery, global taxonomy and language controls inherit each venue's existing theme. */
.icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ui-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.language-picker {
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    font-size: 13px;
}

.language-picker summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
}

.language-picker summary::-webkit-details-marker {
    display: none;
}

.language-picker summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.language-picker summary .ui-icon {
    width: 15px;
    height: 15px;
}

.language-flag {
    font-size: 21px;
    line-height: 1;
}

.language-options {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 225px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 14px 32px #0002;
}

.language-options a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    min-height: 46px;
    border-radius: 9px;
    color: var(--ink);
}

.language-options a:hover,
.language-options a[aria-current="true"] {
    background: var(--surface);
}

.language-options small {
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
}

.venue-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-nav .ui-icon {
    width: 17px;
    height: 17px;
}

.gallery-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
}

/* Keep the original Google mark; all surrounding surfaces follow the merchant theme. */
.google-review {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 25px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.google-review-mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface);
}

.google-review-mark img {
    width: 36px;
    height: 36px;
}

.google-review-copy {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.google-review-copy .eyebrow {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 10px;
}

.google-review-copy h2 {
    margin: 0 0 5px;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.4px;
}

.google-review-copy > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.google-review-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-left: auto;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.google-review-action:hover {
    color: var(--accent);
    background: var(--surface);
}

.public-gallery {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 20px;
}

.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.gallery-heading h2 {
    margin: 0;
    font: 400 32px/1.2 Georgia, serif;
    letter-spacing: -.7px;
}

.gallery-heading .eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 10px;
}

.gallery-open {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 12px;
    white-space: nowrap;
}

.public-photo-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 12px;
}

.public-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
}

.public-photo img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.public-photo > span {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    padding: 45px 15px 16px;
    color: #fff;
    background: linear-gradient(transparent, #000c);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.gallery-dialog {
    width: min(1050px, calc(100% - 28px));
    max-height: 94vh;
    margin: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: var(--ink);
}

.gallery-dialog:not([open]) {
    display: none;
}

.gallery-dialog::backdrop {
    background: #000d;
}

.gallery-dialog-header,
.gallery-dialog-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.gallery-dialog-header h2 {
    margin: 0;
    font: 24px Georgia, serif;
}

.gallery-dialog button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.gallery-dialog-image {
    position: relative;
    margin-top: 15px;
}

.gallery-dialog-image img {
    display: block;
    width: 100%;
    height: min(65vh, 670px);
    object-fit: contain;
}

.gallery-dialog-image button {
    position: absolute;
    top: calc(50% - 22px);
}

.gallery-dialog-image button:first-child {
    left: 8px;
}

.gallery-dialog-image button:last-child {
    right: 8px;
}

.gallery-dialog-caption {
    padding-top: 15px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.gallery-dialog-caption > span:last-child {
    flex-shrink: 0;
    color: var(--muted);
}

/* Branded footer icons retain text labels and generous touch targets. */
.venue-socials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.venue-socials a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
}

.social-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--accent);
    background: var(--surface);
}

.social-instagram {
    color: #fff;
    background: linear-gradient(30deg, #e9ad41, #da3469 48%, #8245b2);
}

.social-facebook {
    color: #fff;
    background: #1877f2;
}

.social-facebook svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.social-google {
    background: #fff;
}

/* Management stays readable on mobile and always submits authoritative server-side actions. */
.gallery-capacity {
    padding: 7px 12px;
    border-radius: 25px;
    background: var(--surface);
    white-space: nowrap;
}

.gallery-upload {
    padding: 24px;
    margin: 24px 0;
    border: 1px dashed var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.gallery-upload .muted,
.gallery-upload-status {
    margin: 10px 0;
    font-size: 12px;
}

.gallery-upload-status {
    color: #a33c30;
}

.gallery-manage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.gallery-manage-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.gallery-manage-image {
    position: relative;
}

.gallery-manage-image img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.gallery-manage-image > span {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--paper);
    border-radius: 50%;
    font-size: 12px;
}

.gallery-caption-form {
    padding: 12px;
}

.gallery-caption-form label {
    margin-bottom: 8px;
    font-size: 12px;
}

.gallery-photo-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.gallery-photo-actions button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
}

.gallery-photo-actions button:disabled,
.gallery-upload button:disabled {
    opacity: .4;
    cursor: default;
}

.gallery-photo-actions .danger {
    margin-left: auto;
    color: #a33c30;
}

.category-admin-list .panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.category-admin-list small {
    display: block;
    color: var(--muted);
}

@media (max-width: 800px) {
    .google-review {
        flex-wrap: wrap;
        gap: 16px;
    }

    .google-review-action {
        margin-left: 0;
    }

    .gallery-manage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .venue-socials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    html[lang="de"] .venue-hero h1 {
        font-size: 40px;
    }

    .language-picker summary {
        padding: 8px 10px;
        gap: 7px;
    }

    .google-review {
        display: grid;
        grid-template-columns: 45px minmax(0, 1fr);
        padding: 18px;
        gap: 15px;
    }

    .google-review-mark {
        width: 45px;
        height: 45px;
    }

    .google-review-mark img {
        width: 30px;
        height: 30px;
    }

    .google-review-copy {
        padding-left: 0;
        border-left: 0;
    }

    .google-review-copy h2 {
        font-size: 19px;
    }

    .google-review-copy .eyebrow {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .google-review-copy > p:last-child {
        font-size: 12px;
    }

    .google-review-action {
        grid-column: 1 / -1;
        width: 100%;
        padding: 11px 15px;
        font-size: 12px;
    }

    .gallery-heading {
        flex-wrap: wrap;
        gap: 15px;
    }

    .gallery-heading h2 {
        font-size: 29px;
    }

    .public-photo-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .public-photo {
        min-width: 83%;
        scroll-snap-align: start;
    }

    .gallery-manage-grid {
        gap: 10px;
    }

    .gallery-manage-image img {
        height: 135px;
    }

    .gallery-caption-form {
        padding: 8px;
    }

    .gallery-photo-actions {
        gap: 3px;
    }

    .gallery-photo-actions button {
        width: 40px;
        height: 44px;
    }
}
