.bird-club-comment-date {
    display: block;
    margin-top: 3px;
    font-size: .85rem;
    color: var(--text-light);
}

.comment-editor {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
    background: var(--bg);
    box-sizing: border-box;
    max-width: 100%;
}

.comment-editor-author {
    margin-bottom: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.comment-editor-author > strong {
    margin-right: 6px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.comment-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

#comment-cancel-reply[hidden] {
    display: none !important;
}

#comment-form-message {
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.comment-login-message {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
    background: var(--bg);
    box-sizing: border-box;
    max-width: 100%;
}

.comment-login-message p {
    margin: 0;
    overflow-wrap: anywhere;
}

#comments-container {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
}

#comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    width: 100%;
}

.bird-club-comment {
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 15px;
    border-radius: 8px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.bird-club-comment[data-depth="1"] {
    margin-left: 30px;
}

.bird-club-comment[data-depth="2"] {
    margin-left: 60px;
}

.bird-club-comment[data-depth="3"] {
    margin-left: 90px;
}

.bird-club-comment[data-depth="4"] {
    margin-left: 120px;
}

.bird-club-comment[data-depth="5"] {
    margin-left: 150px;
}

.bird-club-comment[data-depth="6"],
.bird-club-comment[data-depth="7"],
.bird-club-comment[data-depth="8"],
.bird-club-comment[data-depth="9"],
.bird-club-comment[data-depth="10"] {
    margin-left: 150px;
}

.bird-club-comment-header {
    margin-bottom: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bird-club-comment-reply-to {
    margin-top: 4px;
    font-size: .85rem;
    color: var(--text-light);
    overflow-wrap: anywhere;
}

.bird-club-comment-body {
    min-width: 0;
    max-width: 100%;
}

.bird-club-comment-body p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bird-club-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.bird-club-comment-actions-menu {
    position: relative;
    min-width: 0;
}

.bird-club-comment-actions-button {
    cursor: pointer;
}

.bird-club-comment-actions-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 20;
    min-width: 120px;
    max-width: calc(100vw - 20px);
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
    background: var(--bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    box-sizing: border-box;
}

.bird-club-comment-actions-dropdown-up {
    top: auto;
    bottom: calc(100% + 5px);
}

.bird-club-comment-action {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.bird-club-comment-action:hover {
    background: var(--panel-bg);
}

.bird-club-comment-status {
    display: inline-block;
    margin-left: 8px;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.comments-loading,
.comments-empty,
.comments-end {
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.comments-loading,
.comments-end {
    opacity: .75;
}

@media (max-width: 599px) {
    #comments-container {
        max-height: 400px;
        padding: 8px;
    }

    .bird-club-comment {
        padding: 12px;
    }

    .bird-club-comment[data-depth="1"] {
        margin-left: 20px;
    }

    .bird-club-comment[data-depth="2"] {
        margin-left: 40px;
    }

    .bird-club-comment[data-depth="3"] {
        margin-left: 60px;
    }

    .bird-club-comment[data-depth="4"] {
        margin-left: 80px;
    }

    .bird-club-comment[data-depth="5"],
    .bird-club-comment[data-depth="6"],
    .bird-club-comment[data-depth="7"],
    .bird-club-comment[data-depth="8"],
    .bird-club-comment[data-depth="9"],
    .bird-club-comment[data-depth="10"] {
        margin-left: 100px;
    }

    .bird-club-comment-actions-dropdown {
        right: auto;
        left: 0;
    }
}

.form-alert[hidden] {
    display: none;
}

.form-message {
    padding: 10px 14px;
    border-radius: var(--standard-border-radius);
    border: var(--border-width) solid transparent;
    margin-bottom: 16px;
    font-size: .9em;
    display: none;
}

.form-message.success {
    background-color: var(--alert-success-bg);
    color: var(--text);
    border-color: var(--alert-success-border);
}

.form-message.error {
    background-color: var(--alert-error-bg);
    color: var(--text);
    border-color: var(--alert-error-border);
}

.member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 140px;
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    box-sizing: border-box;
    font-size: .85em;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
    position: relative;
    overflow: hidden;
}

.member-badge i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.member-badge a {
    color: #ababab;
    text-decoration: none;
}

.member-badge a:hover {
    text-decoration: underline;
}

.member-badge.adminStyle {
    background: linear-gradient(
        135deg,
        #000,
        #000,
        #ff416c,
        #ff416c,
        #ff4b2b
    ) !important;
    color: #fff !important;
}

.member-badge.modStyle {
    background: linear-gradient(
        135deg,
        #000,
        #000,
        #28a745,
        #28a745,
        #218838
    ) !important;
    color: #fff !important;
}

.member-badge.memberStyle {
    background: linear-gradient(
        135deg,
        #000,
        #000,
        #007bff,
        #007bff,
        #0056b3
    ) !important;
    color: #fff !important;
}

.member-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, .25);
    filter: brightness(1.08);
}

.modal-overlay {
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--panel-bg);
    color: var(--text);
    border: var(--border-width) solid var(--panel-border);
    border-radius: var(--standard-border-radius);
    box-shadow: var(--panel-shadow);
    width: 100%;
    max-width: 500px;
    padding: 24px;
}

.modal-header h3 {
    color: var(--text);
    margin-top: 0;
    margin-bottom: 16px;
}

.modal-content .form-control {
    background-color: var(--bg);
    color: var(--text);
    border: var(--border-width) solid var(--border);
    border-radius: var(--standard-border-radius);
    padding: 8px 12px;
    width: 100%;
    font-family: var(--sans-font);
}

.modal-content .form-control:focus {
    border-color: var(--accent);
    outline: none;
}

.modal-content small,
.modal-content .char-counter {
    color: var(--text-light);
}

.listing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    padding: 4px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.listing-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
}

.listing-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.listing-container picture,
.album-container picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.album-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    width: 380px;
    padding: 10px 40px 34px;
    background: var(--accent-bg);
    border-radius: 8px;
    box-sizing: border-box;
}

.album {
    position: relative;
    width: 95%;
    height: 100%;
    perspective: 1000px;
}

.album-card {
    position: absolute;
    top: 0;
    margin: 0 auto;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    overflow: hidden;
    transition: transform .6s ease, opacity .6s ease;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    padding: 4px;
}

.album-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #c4e0ff;
    background: #e0efff;
    border: none;
    border-radius: 20%;
    padding: .1rem .3rem;
    cursor: pointer;
    z-index: 999;
    transition: background .3s ease;
}

.album-arrow:hover {
    background: #c4e0ff;
    color: #e0efff;
}

.album-arrow.left {
    left: 8px;
}

.album-arrow.right {
    right: 8px;
}

.album-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .8);
}

.album-modal .modal-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.album-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
}

.fallback {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.flag-img {
    position: absolute;
    top: 20px;
    right: 24px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--panel-border, rgba(0, 0, 0, .05));
    font-size: 1rem;
    gap: 10px;
}

.info-item span {
    color: var(--text);
}

.info-item .txtRight {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.info-item.grouped {
    border-bottom: none;
    padding: 1px 0;
}

.info-grid.grouped-grid {
	gap: 0;
	margin-top: 6px;
}

@media (max-width: 480px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .info-item span {
        font-size: 1rem;
    }

    .txtRight {
        text-align: left;
    }
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.member-links a img {
    transition: transform .2s ease;
}

.member-links a img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .av-panels .av-col.carousel-col {
        padding: 4px !important;
    }
}

.bird-club-map {
    margin-top: 20px;
    width: 100%;
}

.bird-club-map iframe {
    display: block;
    width: 100%;
    min-height: 250px;
    border: 0;
    border-radius: 8px;
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 30px;
    padding: 0 12px;
    border-radius: 16px;
    box-sizing: border-box;
    font-size: .85em;
    font-weight: 700;
    line-height: 1;
    background: var(--badge-bg);
    color: var(--badge-color);
}

.status-badge {
    white-space: nowrap;
}

