/* Extra single church styles: daily missa, prayer helpers, status badges, and map utilities. */

/* === Enhanced UI Elements === */

/* Mass Status Badge */
.cig-mass-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #e0e0e0;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cig-mass-status-badge.is-soon {
    background-color: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFB74D;
    animation: pulse 2s infinite;
}

.cig-mass-status-badge.is-active {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #81C784;
}

.cig-mass-status-badge.is-ended {
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.cig-contribution-log-modal-content {
    max-width: 500px;
}

.cig-contribution-log-modal-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cig-contribution-log-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.cig-contribution-log-full-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cig-contribution-log-full-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cig-contribution-log-full-name {
    font-weight: 700;
    color: #333;
}

.cig-contribution-log-full-date {
    font-size: 0.9em;
    color: #888;
}

/* Missing info modal */
.cig-missing-info-modal .cig-modal-content {
    max-width: 520px;
}

.cig-missing-info-modal .cig-missing-info-note {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #777;
}

/* === Sidebar Map Styles (Moved from inline) === */
.cig-sidebar-map-wrap {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--uf-secondary);
}

.cig-sidebar-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cig-sidebar-map-title {
    color: var(--uf-primary-deep);
    font-size: 0.98rem;
    font-weight: 700;
}

.cig-sidebar-map-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(118, 86, 50, 0.16);
    background: rgba(255, 249, 240, 0.82);
    color: #6a5035;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.cig-sidebar-map-status.is-ready {
    background: rgba(239, 248, 242, 0.96);
    border-color: rgba(62, 124, 92, 0.18);
    color: #2f6c4f;
}

.cig-sidebar-map-status.is-address_only {
    background: rgba(255, 248, 235, 0.96);
    border-color: rgba(200, 134, 39, 0.2);
    color: #8e5d11;
}

.cig-sidebar-map-status.is-missing {
    background: rgba(247, 247, 247, 0.96);
    border-color: rgba(120, 120, 120, 0.16);
    color: #666;
}

.cig-sidebar-map-note {
    margin: 0 0 12px;
    color: var(--uf-text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.cig-minimap-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 10px;
}

.cig-sidebar-map-fallback {
    margin-bottom: 10px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(118, 86, 50, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.cig-sidebar-map-fallback-text {
    margin: 0;
    color: var(--uf-primary-deep);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.cig-sidebar-map-address {
    margin: 8px 0 0;
    color: var(--uf-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.cig-sidebar-map-admin-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.cig-sidebar-map-admin-hint a {
    color: var(--uf-primary-deep);
    font-weight: 600;
    text-decoration: none;
}

.cig-sidebar-map-admin-hint a:hover {
    text-decoration: underline;
}

.cig-official-profile {
    display: grid;
    gap: 16px;
}

.cig-official-profile__header h2 {
    margin: 0 0 4px;
}

.cig-official-profile__header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cig-official-profile__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.cig-official-profile__fact {
    padding: 14px 16px;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    background: #fafbfc;
}

.cig-official-profile__label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 13px;
}

.cig-official-profile__value {
    display: block;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
}

.cig-official-profile__intro h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.cig-official-profile__intro-body {
    color: #1f2937;
    line-height: 1.8;
}

.cig-official-profile__intro-body p {
    margin: 0;
}

.cig-map-links-wrapper {
    font-size: 0.85em;
    text-align: right;
}

.cig-map-links a {
    display: inline-block;
    margin-left: 8px;
    color: var(--uf-primary-deep);
    text-decoration: none;
    font-weight: 600;
}

.cig-map-links a:hover {
    text-decoration: underline;
}

/* Mobile Optimizations for Map */
@media (max-width: 480px) {
    .cig-sidebar-map-wrap {
        margin-top: var(--cig-space-2);
        padding-top: var(--cig-space-2);
    }

    .cig-sidebar-map-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cig-minimap-container {
        height: 160px;
        /* Reduced height for mobile */
    }

    /* Enhance touch targets */
    .cig-map-links a {
        padding: 4px 0;
        /* Increase touch area slightly */
    }
}
