/**
 * WeTown community block styles.
 */

.wetown-hover-zoom {
    transition: transform 0.3s ease;
}

.wetown-hover-zoom:hover {
    transform: scale(1.05);
}

.wetown-hover-brightness {
    transition: filter 0.3s ease;
}

.wetown-hover-brightness:hover {
    filter: brightness(1.1);
}

.wetown-hover-opacity {
    transition: opacity 0.3s ease;
}

.wetown-hover-opacity:hover {
    opacity: 0.8;
}

.wetown-community-info--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em;
}

.wetown-community-info--stacked {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.wetown-community-info__icon {
    flex-shrink: 0;
    margin-right: 0.5em;
}

.wetown-community-info__label {
    font-weight: 600;
}

.wetown-community-info__separator {
    margin-right: 0.25em;
}

.wetown-community-info__value {
    word-break: break-word;
}

.wetown-link-style--default a {
    text-decoration: underline;
}

.wetown-link-style--default a:hover {
    text-decoration: none;
}

.wetown-link-style--plain a {
    text-decoration: none;
}

.wetown-link-style--plain a:hover {
    text-decoration: underline;
}

.wetown-link-style--button a {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.wetown-link-style--button a:hover {
    background-color: #005a87;
}

.wetown-community-map__iframe {
    display: block;
}

.wetown-community-map__link {
    margin-top: 0.5em;
    margin-bottom: 0;
}

.wetown-community-map__caption {
    margin-top: 0.5em;
    font-size: 0.875em;
    color: #666;
    text-align: center;
}

.wetown-credits-trigger.wp-block-button__link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    color: #fff;
}

.wetown-credits-popup {
    position: fixed;
    right: 10%;
    bottom: 0;
    z-index: 9999;
    width: 650px;
    max-width: 100vw;
    padding: 16px;
    overflow: hidden;
    color: #042e46;
    background: #fff;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wetown-credits-popup.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wetown-credits-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 32px 8px;
}

.wetown-credits-popup__title {
    font-size: 22px;
}

.wetown-credits-popup__close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
}

.wetown-credits-popup__close:hover {
    background-color: rgba(4, 46, 70, 0.08);
}

.wetown-credits-popup__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 40px;
    padding: 0 32px 20px;
}

.wetown-credits-popup__item {
    padding: 2px 0;
}

.wetown-credits-popup__logos {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px 32px 8px;
}

.wetown-credits-popup__logos a {
    display: flex;
    color: inherit;
}

.wetown-credits-popup__logos a:first-child {
    height: 32px;
}

.wetown-credits-popup__logos a:last-child {
    height: 38px;
}

.wetown-credits-popup__logos svg {
    width: auto;
    height: 100%;
}

.wetown-credits-popup__logos a > span {
    display: none;
}

.wetown-credits-popup__logos-separator {
    font-size: 24px;
}

.wetown-credits-popup__footer {
    padding: 0 32px 32px;
    margin: 0;
}

@media (max-width: 768px) {
    .wetown-credits-popup {
        right: 0;
        width: 100vw;
        border-radius: 16px 16px 0 0;
    }
}
